@visactor/vrender 0.19.6-alpha.0 → 0.19.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +17 -10
- package/dist/index.js +17 -10
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.19.6-alpha.
|
|
24
|
+
exports.version = "0.19.6-alpha.2", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
25
|
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
26
|
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
27
|
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.19.6-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.19.6-alpha.2\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -778,7 +778,7 @@ class Hook {
|
|
|
778
778
|
}
|
|
779
779
|
unTap(options, fn) {
|
|
780
780
|
const name = "string" == typeof options ? options.trim() : options.name;
|
|
781
|
-
name && (this.taps = this.taps.filter(tap => tap.name
|
|
781
|
+
name && (this.taps = this.taps.filter(tap => !(tap.name === name && (!fn || tap.fn === fn))));
|
|
782
782
|
}
|
|
783
783
|
_parseOptions(type, options, fn) {
|
|
784
784
|
let _options;
|
|
@@ -5524,7 +5524,7 @@ class Node extends EventEmitter {
|
|
|
5524
5524
|
if (!this._idMap.has(child._uid)) return null;
|
|
5525
5525
|
if (this._idMap.delete(child._uid), this._nodeList) {
|
|
5526
5526
|
const idx = this._nodeList.findIndex(n => n === child);
|
|
5527
|
-
idx
|
|
5527
|
+
idx >= 0 && this._nodeList.splice(idx, 1);
|
|
5528
5528
|
}
|
|
5529
5529
|
return child._prev ? child._prev._next = child._next : this._firstChild = child._next, child._next ? child._next._prev = child._prev : this._lastChild = child._prev, child.parent = null, child._prev = null, child._next = null, this._structEdit = !0, this.setCount(-child.count), child;
|
|
5530
5530
|
}
|
|
@@ -5533,6 +5533,7 @@ class Node extends EventEmitter {
|
|
|
5533
5533
|
}
|
|
5534
5534
|
removeAllChild(deep) {
|
|
5535
5535
|
if (!this._idMap) return;
|
|
5536
|
+
this._nodeList && (this._nodeList.length = 0);
|
|
5536
5537
|
let child = this._firstChild;
|
|
5537
5538
|
for (; child;) {
|
|
5538
5539
|
const next = child._next;
|
|
@@ -5799,7 +5800,7 @@ class FederatedEvent {
|
|
|
5799
5800
|
return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.composedDetailPath(), this.path;
|
|
5800
5801
|
}
|
|
5801
5802
|
composedDetailPath() {
|
|
5802
|
-
this.pickParams && this.pickParams.graphic
|
|
5803
|
+
return this.pickParams && this.pickParams.graphic ? (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams)) : this.detailPath = this.path.slice(), this.detailPath;
|
|
5803
5804
|
}
|
|
5804
5805
|
_composedDetailPath(params) {
|
|
5805
5806
|
if (params && params.graphic) {
|
|
@@ -5917,7 +5918,9 @@ class FederatedPointerEvent extends FederatedMouseEvent {
|
|
|
5917
5918
|
}
|
|
5918
5919
|
clone() {
|
|
5919
5920
|
const event = new FederatedPointerEvent(this.manager);
|
|
5920
|
-
|
|
5921
|
+
event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event.nativeEvent = this.nativeEvent, event.originalEvent = this.originalEvent, this.manager?.copyPointerData(this, event), this.manager?.copyMouseData(this, event), this.manager?.copyData(this, event), event.target = this.target, event.path = this.composedPath().slice();
|
|
5922
|
+
const p = this.composedDetailPath();
|
|
5923
|
+
return event.detailPath = p && p.slice(), event.type = this.type, event;
|
|
5921
5924
|
}
|
|
5922
5925
|
}
|
|
5923
5926
|
|
|
@@ -5934,7 +5937,9 @@ class FederatedWheelEvent extends FederatedMouseEvent {
|
|
|
5934
5937
|
}
|
|
5935
5938
|
clone() {
|
|
5936
5939
|
const event = new FederatedWheelEvent(this.manager);
|
|
5937
|
-
|
|
5940
|
+
event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event.nativeEvent = this.nativeEvent, event.originalEvent = this.originalEvent, this.manager?.copyWheelData(this, event), this.manager?.copyMouseData(this, event), this.manager?.copyData(this, event), event.target = this.target, event.path = this.composedPath().slice();
|
|
5941
|
+
const p = this.composedDetailPath();
|
|
5942
|
+
return event.detailPath = p && p.slice(), event.type = this.type, event;
|
|
5938
5943
|
}
|
|
5939
5944
|
}
|
|
5940
5945
|
_defineProperty(FederatedWheelEvent, "DOM_DELTA_PIXEL", 0);
|
|
@@ -6061,7 +6066,7 @@ class EventManager {
|
|
|
6061
6066
|
}
|
|
6062
6067
|
if (clickTarget) {
|
|
6063
6068
|
const clickEvent = this.clonePointerEvent(e, "click");
|
|
6064
|
-
clickEvent.target = clickTarget, clickEvent.path = [], trackingData.clicksByButton[from.button] || (trackingData.clicksByButton[from.button] = {
|
|
6069
|
+
clickEvent.target = clickTarget, clickEvent.path = [], clickEvent.detailPath = [], trackingData.clicksByButton[from.button] || (trackingData.clicksByButton[from.button] = {
|
|
6065
6070
|
clickCount: 0,
|
|
6066
6071
|
target: clickEvent.target,
|
|
6067
6072
|
timeStamp: now
|
|
@@ -6152,7 +6157,9 @@ class EventManager {
|
|
|
6152
6157
|
}
|
|
6153
6158
|
clonePointerEvent(from, type) {
|
|
6154
6159
|
const event = this.allocateEvent(FederatedPointerEvent);
|
|
6155
|
-
|
|
6160
|
+
event.nativeEvent = from.nativeEvent, event.originalEvent = from.originalEvent, this.copyPointerData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.target = from.target, event.path = from.composedPath().slice();
|
|
6161
|
+
const p = from.composedDetailPath();
|
|
6162
|
+
return event.detailPath = p && p.slice(), event.type = type ?? event.type, event;
|
|
6156
6163
|
}
|
|
6157
6164
|
copyWheelData(from, to) {
|
|
6158
6165
|
to.deltaMode = from.deltaMode, to.deltaX = from.deltaX, to.deltaY = from.deltaY, to.deltaZ = from.deltaZ;
|
|
@@ -6178,7 +6185,7 @@ class EventManager {
|
|
|
6178
6185
|
allocateEvent(constructor) {
|
|
6179
6186
|
this.eventPool.has(constructor) || this.eventPool.set(constructor, []);
|
|
6180
6187
|
const event = this.eventPool.get(constructor)?.pop() || new constructor(this);
|
|
6181
|
-
return event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.target = null, event;
|
|
6188
|
+
return event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event;
|
|
6182
6189
|
}
|
|
6183
6190
|
freeEvent(event) {
|
|
6184
6191
|
if (event.manager !== this) throw new Error("It is illegal to free an event not managed by this EventManager!");
|
|
@@ -8716,7 +8723,7 @@ _defineProperty(ColorStore, "store1", {});
|
|
|
8716
8723
|
|
|
8717
8724
|
function colorArrayToString(color) {
|
|
8718
8725
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
8719
|
-
return Array.isArray(color) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
8726
|
+
return Array.isArray(color) && isNumber$1(color[0]) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
8720
8727
|
}
|
|
8721
8728
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
8722
8729
|
if (!from || !to) return from && colorArrayToString(from) || to && colorArrayToString(to) || !1;
|
|
@@ -29010,7 +29017,7 @@ const registerWrapText = _registerWrapText;
|
|
|
29010
29017
|
|
|
29011
29018
|
const roughModule = _roughModule;
|
|
29012
29019
|
|
|
29013
|
-
const version = "0.19.6-alpha.
|
|
29020
|
+
const version = "0.19.6-alpha.2";
|
|
29014
29021
|
preLoadAllModule();
|
|
29015
29022
|
if (isBrowserEnv()) {
|
|
29016
29023
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
}
|
|
785
785
|
unTap(options, fn) {
|
|
786
786
|
const name = "string" == typeof options ? options.trim() : options.name;
|
|
787
|
-
name && (this.taps = this.taps.filter(tap => tap.name
|
|
787
|
+
name && (this.taps = this.taps.filter(tap => !(tap.name === name && (!fn || tap.fn === fn))));
|
|
788
788
|
}
|
|
789
789
|
_parseOptions(type, options, fn) {
|
|
790
790
|
let _options;
|
|
@@ -5530,7 +5530,7 @@
|
|
|
5530
5530
|
if (!this._idMap.has(child._uid)) return null;
|
|
5531
5531
|
if (this._idMap.delete(child._uid), this._nodeList) {
|
|
5532
5532
|
const idx = this._nodeList.findIndex(n => n === child);
|
|
5533
|
-
idx
|
|
5533
|
+
idx >= 0 && this._nodeList.splice(idx, 1);
|
|
5534
5534
|
}
|
|
5535
5535
|
return child._prev ? child._prev._next = child._next : this._firstChild = child._next, child._next ? child._next._prev = child._prev : this._lastChild = child._prev, child.parent = null, child._prev = null, child._next = null, this._structEdit = !0, this.setCount(-child.count), child;
|
|
5536
5536
|
}
|
|
@@ -5539,6 +5539,7 @@
|
|
|
5539
5539
|
}
|
|
5540
5540
|
removeAllChild(deep) {
|
|
5541
5541
|
if (!this._idMap) return;
|
|
5542
|
+
this._nodeList && (this._nodeList.length = 0);
|
|
5542
5543
|
let child = this._firstChild;
|
|
5543
5544
|
for (; child;) {
|
|
5544
5545
|
const next = child._next;
|
|
@@ -5805,7 +5806,7 @@
|
|
|
5805
5806
|
return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.composedDetailPath(), this.path;
|
|
5806
5807
|
}
|
|
5807
5808
|
composedDetailPath() {
|
|
5808
|
-
this.pickParams && this.pickParams.graphic
|
|
5809
|
+
return this.pickParams && this.pickParams.graphic ? (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams)) : this.detailPath = this.path.slice(), this.detailPath;
|
|
5809
5810
|
}
|
|
5810
5811
|
_composedDetailPath(params) {
|
|
5811
5812
|
if (params && params.graphic) {
|
|
@@ -5923,7 +5924,9 @@
|
|
|
5923
5924
|
}
|
|
5924
5925
|
clone() {
|
|
5925
5926
|
const event = new FederatedPointerEvent(this.manager);
|
|
5926
|
-
|
|
5927
|
+
event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event.nativeEvent = this.nativeEvent, event.originalEvent = this.originalEvent, this.manager?.copyPointerData(this, event), this.manager?.copyMouseData(this, event), this.manager?.copyData(this, event), event.target = this.target, event.path = this.composedPath().slice();
|
|
5928
|
+
const p = this.composedDetailPath();
|
|
5929
|
+
return event.detailPath = p && p.slice(), event.type = this.type, event;
|
|
5927
5930
|
}
|
|
5928
5931
|
}
|
|
5929
5932
|
|
|
@@ -5940,7 +5943,9 @@
|
|
|
5940
5943
|
}
|
|
5941
5944
|
clone() {
|
|
5942
5945
|
const event = new FederatedWheelEvent(this.manager);
|
|
5943
|
-
|
|
5946
|
+
event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event.nativeEvent = this.nativeEvent, event.originalEvent = this.originalEvent, this.manager?.copyWheelData(this, event), this.manager?.copyMouseData(this, event), this.manager?.copyData(this, event), event.target = this.target, event.path = this.composedPath().slice();
|
|
5947
|
+
const p = this.composedDetailPath();
|
|
5948
|
+
return event.detailPath = p && p.slice(), event.type = this.type, event;
|
|
5944
5949
|
}
|
|
5945
5950
|
}
|
|
5946
5951
|
_defineProperty(FederatedWheelEvent, "DOM_DELTA_PIXEL", 0);
|
|
@@ -6067,7 +6072,7 @@
|
|
|
6067
6072
|
}
|
|
6068
6073
|
if (clickTarget) {
|
|
6069
6074
|
const clickEvent = this.clonePointerEvent(e, "click");
|
|
6070
|
-
clickEvent.target = clickTarget, clickEvent.path = [], trackingData.clicksByButton[from.button] || (trackingData.clicksByButton[from.button] = {
|
|
6075
|
+
clickEvent.target = clickTarget, clickEvent.path = [], clickEvent.detailPath = [], trackingData.clicksByButton[from.button] || (trackingData.clicksByButton[from.button] = {
|
|
6071
6076
|
clickCount: 0,
|
|
6072
6077
|
target: clickEvent.target,
|
|
6073
6078
|
timeStamp: now
|
|
@@ -6158,7 +6163,9 @@
|
|
|
6158
6163
|
}
|
|
6159
6164
|
clonePointerEvent(from, type) {
|
|
6160
6165
|
const event = this.allocateEvent(FederatedPointerEvent);
|
|
6161
|
-
|
|
6166
|
+
event.nativeEvent = from.nativeEvent, event.originalEvent = from.originalEvent, this.copyPointerData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.target = from.target, event.path = from.composedPath().slice();
|
|
6167
|
+
const p = from.composedDetailPath();
|
|
6168
|
+
return event.detailPath = p && p.slice(), event.type = type ?? event.type, event;
|
|
6162
6169
|
}
|
|
6163
6170
|
copyWheelData(from, to) {
|
|
6164
6171
|
to.deltaMode = from.deltaMode, to.deltaX = from.deltaX, to.deltaY = from.deltaY, to.deltaZ = from.deltaZ;
|
|
@@ -6184,7 +6191,7 @@
|
|
|
6184
6191
|
allocateEvent(constructor) {
|
|
6185
6192
|
this.eventPool.has(constructor) || this.eventPool.set(constructor, []);
|
|
6186
6193
|
const event = this.eventPool.get(constructor)?.pop() || new constructor(this);
|
|
6187
|
-
return event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.target = null, event;
|
|
6194
|
+
return event.eventPhase = event.NONE, event.currentTarget = null, event.path = [], event.detailPath = [], event.target = null, event;
|
|
6188
6195
|
}
|
|
6189
6196
|
freeEvent(event) {
|
|
6190
6197
|
if (event.manager !== this) throw new Error("It is illegal to free an event not managed by this EventManager!");
|
|
@@ -8722,7 +8729,7 @@
|
|
|
8722
8729
|
|
|
8723
8730
|
function colorArrayToString(color) {
|
|
8724
8731
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
8725
|
-
return Array.isArray(color) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
8732
|
+
return Array.isArray(color) && isNumber$1(color[0]) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
8726
8733
|
}
|
|
8727
8734
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
8728
8735
|
if (!from || !to) return from && colorArrayToString(from) || to && colorArrayToString(to) || !1;
|
|
@@ -29016,7 +29023,7 @@
|
|
|
29016
29023
|
|
|
29017
29024
|
const roughModule = _roughModule;
|
|
29018
29025
|
|
|
29019
|
-
const version = "0.19.6-alpha.
|
|
29026
|
+
const version = "0.19.6-alpha.2";
|
|
29020
29027
|
preLoadAllModule();
|
|
29021
29028
|
if (isBrowserEnv()) {
|
|
29022
29029
|
loadBrowserEnv(container);
|