@antv/l7-layers
Advanced tools
Comparing version 2.0.18 to 2.0.19
@@ -5,2 +5,3 @@ import BaseLayer from '../core/BaseLayer'; | ||
buildModels(): void; | ||
setLight(t: number): void; | ||
protected getConfigSchema(): { | ||
@@ -7,0 +8,0 @@ properties: { |
@@ -35,2 +35,9 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
}, { | ||
key: "setLight", | ||
value: function setLight(t) { | ||
this.updateLayerConfig({ | ||
time: t | ||
}); | ||
} | ||
}, { | ||
key: "getConfigSchema", | ||
@@ -37,0 +44,0 @@ value: function getConfigSchema() { |
@@ -33,3 +33,5 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
_ref$windowColor = _ref.windowColor, | ||
windowColor = _ref$windowColor === void 0 ? 'rgb(30,60,89)' : _ref$windowColor; | ||
windowColor = _ref$windowColor === void 0 ? 'rgb(30,60,89)' : _ref$windowColor, | ||
_ref$time = _ref.time, | ||
time = _ref$time === void 0 ? 0 : _ref$time; | ||
@@ -41,3 +43,3 @@ return { | ||
u_windowColor: rgb2arr(windowColor), | ||
u_time: this.layer.getLayerAnimateTime() | ||
u_time: this.layer.getLayerAnimateTime() || time | ||
}; | ||
@@ -44,0 +46,0 @@ } |
@@ -50,2 +50,9 @@ "use strict"; | ||
}, { | ||
key: "setLight", | ||
value: function setLight(t) { | ||
this.updateLayerConfig({ | ||
time: t | ||
}); | ||
} | ||
}, { | ||
key: "getConfigSchema", | ||
@@ -52,0 +59,0 @@ value: function getConfigSchema() { |
@@ -50,3 +50,5 @@ "use strict"; | ||
_ref$windowColor = _ref.windowColor, | ||
windowColor = _ref$windowColor === void 0 ? 'rgb(30,60,89)' : _ref$windowColor; | ||
windowColor = _ref$windowColor === void 0 ? 'rgb(30,60,89)' : _ref$windowColor, | ||
_ref$time = _ref.time, | ||
time = _ref$time === void 0 ? 0 : _ref$time; | ||
@@ -58,3 +60,3 @@ return { | ||
u_windowColor: (0, _l7Utils.rgb2arr)(windowColor), | ||
u_time: this.layer.getLayerAnimateTime() | ||
u_time: this.layer.getLayerAnimateTime() || time | ||
}; | ||
@@ -61,0 +63,0 @@ } |
{ | ||
"name": "@antv/l7-layers", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"description": "L7's collection of built-in layers", | ||
@@ -25,5 +25,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@antv/l7-core": "^2.0.18", | ||
"@antv/l7-source": "^2.0.18", | ||
"@antv/l7-utils": "^2.0.18", | ||
"@antv/l7-core": "^2.0.19", | ||
"@antv/l7-source": "^2.0.19", | ||
"@antv/l7-utils": "^2.0.19", | ||
"@babel/runtime": "^7.7.7", | ||
@@ -53,3 +53,3 @@ "@mapbox/martini": "^0.1.0", | ||
}, | ||
"gitHead": "3d301ac08dba08d8d0ebc8043d1a72df78505cd1", | ||
"gitHead": "4174d5a421cc4bc127df7b8cc31b0c871adfe4fa", | ||
"publishConfig": { | ||
@@ -56,0 +56,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1448812
14483
Updated@antv/l7-core@^2.0.19
Updated@antv/l7-source@^2.0.19
Updated@antv/l7-utils@^2.0.19