@visactor/vrender 0.18.15 → 0.18.16-beta.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 +11 -10
- package/cjs/index.js.map +1 -1
- package/dist/index.js +7 -29
- 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 +3 -3
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,13 +21,14 @@ 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.18.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, vrender_kits_2.
|
|
28
|
-
(0, vrender_kits_2.
|
|
29
|
-
(0, vrender_kits_2.
|
|
30
|
-
(0, vrender_kits_2.
|
|
31
|
-
vrender_kits_2.
|
|
32
|
-
(0, vrender_kits_2.
|
|
33
|
-
|
|
24
|
+
exports.version = "0.18.16-beta.2", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
|
+
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
|
+
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
|
+
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
|
28
|
+
(0, vrender_kits_2.registerCircle)(), (0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(),
|
|
29
|
+
(0, vrender_kits_2.registerImage)(), (0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(),
|
|
30
|
+
(0, vrender_kits_2.registerPolygon)(), (0, vrender_kits_2.registerPyramid3d)(),
|
|
31
|
+
(0, vrender_kits_2.registerRect)(), (0, vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(),
|
|
32
|
+
(0, vrender_kits_2.registerShadowRoot)(), (0, vrender_kits_2.registerSymbol)(),
|
|
33
|
+
(0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(), __exportStar(require("@visactor/vrender-core"), exports),
|
|
34
|
+
__exportStar(require("@visactor/vrender-kits"), exports);
|
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,
|
|
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.18.16-beta.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.js
CHANGED
|
@@ -5100,8 +5100,6 @@
|
|
|
5100
5100
|
pickStrokeBuffer: 0
|
|
5101
5101
|
};
|
|
5102
5102
|
var DefaultStyle = Object.assign(Object.assign(Object.assign(Object.assign({
|
|
5103
|
-
forceBoundsWidth: void 0,
|
|
5104
|
-
forceBoundsHeight: void 0,
|
|
5105
5103
|
opacity: 1,
|
|
5106
5104
|
background: null,
|
|
5107
5105
|
backgroundOpacity: 1,
|
|
@@ -5128,7 +5126,6 @@
|
|
|
5128
5126
|
};
|
|
5129
5127
|
var DefaultAttribute = Object.assign(Object.assign(Object.assign({
|
|
5130
5128
|
strokeSeg: null,
|
|
5131
|
-
renderable: !0,
|
|
5132
5129
|
pickable: !0,
|
|
5133
5130
|
childrenPickable: !0,
|
|
5134
5131
|
fillPickable: !0,
|
|
@@ -7822,7 +7819,7 @@
|
|
|
7822
7819
|
federatedEvent = _this.bootstrapEvent(_this.rootPointerEvent, _nativeEvent);
|
|
7823
7820
|
_this.manager.mapEvent(federatedEvent);
|
|
7824
7821
|
}
|
|
7825
|
-
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget);
|
|
7822
|
+
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget), _this.rootPointerEvent.nativeEvent = null;
|
|
7826
7823
|
}, this.onPointerMove = function (nativeEvent) {
|
|
7827
7824
|
if (_this.supportsTouchEvents && "touch" === nativeEvent.pointerType) return;
|
|
7828
7825
|
if (_this.isEventOutsideOfTargetElement(nativeEvent)) return;
|
|
@@ -7831,7 +7828,7 @@
|
|
|
7831
7828
|
var event = _this.bootstrapEvent(_this.rootPointerEvent, normalizedEvents[i]);
|
|
7832
7829
|
_this.manager.mapEvent(event);
|
|
7833
7830
|
}
|
|
7834
|
-
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget);
|
|
7831
|
+
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget), _this.rootPointerEvent.nativeEvent = null;
|
|
7835
7832
|
}, this.onPointerUp = function (nativeEvent) {
|
|
7836
7833
|
if (_this.supportsTouchEvents && "touch" === nativeEvent.pointerType) return;
|
|
7837
7834
|
var outside = _this.isEventOutsideOfTargetViewPort(nativeEvent) ? "outside" : "",
|
|
@@ -7840,7 +7837,7 @@
|
|
|
7840
7837
|
var event = _this.bootstrapEvent(_this.rootPointerEvent, normalizedEvents[i]);
|
|
7841
7838
|
event.type += outside, _this.manager.mapEvent(event);
|
|
7842
7839
|
}
|
|
7843
|
-
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget);
|
|
7840
|
+
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget), _this.rootPointerEvent.nativeEvent = null;
|
|
7844
7841
|
}, this.onPointerOverOut = function (nativeEvent) {
|
|
7845
7842
|
if (_this.supportsTouchEvents && "touch" === nativeEvent.pointerType) return;
|
|
7846
7843
|
var normalizedEvents = _this.normalizeToPointerData(nativeEvent);
|
|
@@ -7848,7 +7845,7 @@
|
|
|
7848
7845
|
var event = _this.bootstrapEvent(_this.rootPointerEvent, normalizedEvents[i]);
|
|
7849
7846
|
_this.manager.mapEvent(event);
|
|
7850
7847
|
}
|
|
7851
|
-
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget);
|
|
7848
|
+
_this.setCursor(_this.manager.cursor, _this.manager.cursorTarget), _this.rootPointerEvent.nativeEvent = null;
|
|
7852
7849
|
}, this.onWheel = function (nativeEvent) {
|
|
7853
7850
|
var wheelEvent = _this.normalizeWheelEvent(nativeEvent);
|
|
7854
7851
|
_this.manager.mapEvent(wheelEvent);
|
|
@@ -17723,22 +17720,6 @@
|
|
|
17723
17720
|
aabbBounds.union(node.AABBBounds);
|
|
17724
17721
|
}), aabbBounds) : aabbBounds;
|
|
17725
17722
|
}
|
|
17726
|
-
}, {
|
|
17727
|
-
key: "updateHTMLTextAABBBounds",
|
|
17728
|
-
value: function updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
|
|
17729
|
-
var textAlign = attribute.textAlign,
|
|
17730
|
-
textBaseline = attribute.textBaseline;
|
|
17731
|
-
if (null != attribute.forceBoundsHeight) {
|
|
17732
|
-
var h = isNumber$1(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
17733
|
-
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
17734
|
-
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
17735
|
-
}
|
|
17736
|
-
if (null != attribute.forceBoundsWidth) {
|
|
17737
|
-
var w = isNumber$1(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
17738
|
-
dx = textDrawOffsetX(textAlign, w);
|
|
17739
|
-
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
17740
|
-
}
|
|
17741
|
-
}
|
|
17742
17723
|
}, {
|
|
17743
17724
|
key: "updateRichTextAABBBounds",
|
|
17744
17725
|
value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
|
|
@@ -17790,7 +17771,7 @@
|
|
|
17790
17771
|
aabbBounds.translate(deltaX, deltaY);
|
|
17791
17772
|
var tb1 = this.tempAABBBounds1,
|
|
17792
17773
|
tb2 = this.tempAABBBounds2;
|
|
17793
|
-
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
|
|
17774
|
+
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, graphic), aabbBounds;
|
|
17794
17775
|
}
|
|
17795
17776
|
}, {
|
|
17796
17777
|
key: "updateTextAABBBounds",
|
|
@@ -17815,7 +17796,7 @@
|
|
|
17815
17796
|
var shadowBlurHalfWidth = shadowBlur / Math.abs(scaleX + scaleY);
|
|
17816
17797
|
boundStroke(tb1, shadowBlurHalfWidth, !0, strokeBoundsBuffer), aabbBounds.union(tb1);
|
|
17817
17798
|
}
|
|
17818
|
-
return this.combindShadowAABBBounds(aabbBounds, graphic),
|
|
17799
|
+
return this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix), aabbBounds;
|
|
17819
17800
|
}
|
|
17820
17801
|
}, {
|
|
17821
17802
|
key: "updatePathAABBBounds",
|
|
@@ -18139,7 +18120,6 @@
|
|
|
18139
18120
|
key: "_validCheck",
|
|
18140
18121
|
value: function _validCheck(attribute, theme, aabbBounds, graphic) {
|
|
18141
18122
|
if (!graphic) return !0;
|
|
18142
|
-
if (null != attribute.forceBoundsHeight || null != attribute.forceBoundsWidth) return !0;
|
|
18143
18123
|
if (!graphic.valid) return aabbBounds.clear(), !1;
|
|
18144
18124
|
var _attribute$visible = attribute.visible,
|
|
18145
18125
|
visible = _attribute$visible === void 0 ? theme.visible : _attribute$visible;
|
|
@@ -18332,8 +18312,6 @@
|
|
|
18332
18312
|
value: function _draw(graphic, defaultAttr, computed3dMatrix, drawContext, params) {
|
|
18333
18313
|
var context = drawContext.context;
|
|
18334
18314
|
if (!context) return;
|
|
18335
|
-
var renderable = graphic.attribute.renderable;
|
|
18336
|
-
if (!1 === renderable) return;
|
|
18337
18315
|
context.highPerformanceSave();
|
|
18338
18316
|
var data = this.transform(graphic, defaultAttr, context, computed3dMatrix),
|
|
18339
18317
|
x = data.x,
|
|
@@ -34952,7 +34930,7 @@
|
|
|
34952
34930
|
|
|
34953
34931
|
var roughModule = _roughModule;
|
|
34954
34932
|
|
|
34955
|
-
const version = "0.18.
|
|
34933
|
+
const version = "0.18.16-beta.2";
|
|
34956
34934
|
preLoadAllModule();
|
|
34957
34935
|
if (isBrowserEnv()) {
|
|
34958
34936
|
loadBrowserEnv(container);
|