@visactor/vrender 0.20.2 → 0.20.3
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 +15 -20
- package/dist/index.js +15 -20
- 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,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.20.
|
|
24
|
+
exports.version = "0.20.3", (0, vrender_core_1.preLoadAllModule)(), (0, vrender_core_1.isBrowserEnv)() ? (0,
|
|
25
25
|
vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0, vrender_core_1.isNodeEnv)() && (0,
|
|
26
26
|
vrender_kits_1.loadNodeEnv)(vrender_core_1.container), (0, vrender_kits_2.registerArc)(),
|
|
27
27
|
(0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(), (0, vrender_kits_2.registerCircle)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,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;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} 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.20.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,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;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} 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.20.3\";\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();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -8780,7 +8780,9 @@ const parseShadowChildAttrs = graphicAttrs => {
|
|
|
8780
8780
|
if (children.length) shadowRoot.setTheme({
|
|
8781
8781
|
[children[0].type]: childAttrs
|
|
8782
8782
|
}), children.forEach(element => {
|
|
8783
|
-
|
|
8783
|
+
element.setAttributes({
|
|
8784
|
+
pickable: !1
|
|
8785
|
+
}), shadowRoot.appendChild(element);
|
|
8784
8786
|
});else {
|
|
8785
8787
|
const box = graphic.AABBBounds,
|
|
8786
8788
|
width = box.width(),
|
|
@@ -8792,7 +8794,8 @@ const parseShadowChildAttrs = graphicAttrs => {
|
|
|
8792
8794
|
x: 0,
|
|
8793
8795
|
y: 0,
|
|
8794
8796
|
width: width,
|
|
8795
|
-
height: height
|
|
8797
|
+
height: height,
|
|
8798
|
+
pickable: !1
|
|
8796
8799
|
});
|
|
8797
8800
|
shadowRoot.appendChild(child), children.push(child);
|
|
8798
8801
|
});
|
|
@@ -9180,7 +9183,7 @@ class Graphic extends Node {
|
|
|
9180
9183
|
return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
|
|
9181
9184
|
}
|
|
9182
9185
|
shouldUpdateAABBBounds() {
|
|
9183
|
-
return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
|
|
9186
|
+
return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
|
|
9184
9187
|
}
|
|
9185
9188
|
shouldSelfChangeUpdateAABBBounds() {
|
|
9186
9189
|
return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
|
|
@@ -14225,7 +14228,6 @@ class Circle extends Graphic {
|
|
|
14225
14228
|
return getTheme(this).circle;
|
|
14226
14229
|
}
|
|
14227
14230
|
updateAABBBounds(attribute, circleTheme, aabbBounds, full) {
|
|
14228
|
-
if (!application.graphicService.validCheck(attribute, circleTheme, aabbBounds, this)) return aabbBounds;
|
|
14229
14231
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds));
|
|
14230
14232
|
const {
|
|
14231
14233
|
tb1: tb1,
|
|
@@ -14418,7 +14420,6 @@ class Text extends Graphic {
|
|
|
14418
14420
|
return getTheme(this).text;
|
|
14419
14421
|
}
|
|
14420
14422
|
updateAABBBounds(attribute, textTheme, aabbBounds) {
|
|
14421
|
-
if (!application.graphicService.validCheck(attribute, textTheme, aabbBounds, this)) return aabbBounds;
|
|
14422
14423
|
const {
|
|
14423
14424
|
text = textTheme.text
|
|
14424
14425
|
} = this.attribute;
|
|
@@ -15527,7 +15528,6 @@ let Symbol$1 = class Symbol extends Graphic {
|
|
|
15527
15528
|
return getTheme(this).symbol;
|
|
15528
15529
|
}
|
|
15529
15530
|
updateAABBBounds(attribute, symbolTheme, aabbBounds, full) {
|
|
15530
|
-
if (!application.graphicService.validCheck(attribute, symbolTheme, aabbBounds, this)) return aabbBounds;
|
|
15531
15531
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds));
|
|
15532
15532
|
const {
|
|
15533
15533
|
tb1: tb1,
|
|
@@ -15605,7 +15605,6 @@ let Line$1 = class Line extends Graphic {
|
|
|
15605
15605
|
return getTheme(this).line;
|
|
15606
15606
|
}
|
|
15607
15607
|
updateAABBBounds(attribute, lineTheme, aabbBounds) {
|
|
15608
|
-
if (!application.graphicService.validCheck(attribute, lineTheme, aabbBounds, this)) return aabbBounds;
|
|
15609
15608
|
this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
15610
15609
|
const {
|
|
15611
15610
|
lineJoin = lineTheme.lineJoin
|
|
@@ -15686,7 +15685,6 @@ class Rect extends Graphic {
|
|
|
15686
15685
|
return getTheme(this).rect;
|
|
15687
15686
|
}
|
|
15688
15687
|
updateAABBBounds(attribute, rectTheme, aabbBounds) {
|
|
15689
|
-
if (!application.graphicService.validCheck(attribute, rectTheme, aabbBounds, this)) return aabbBounds;
|
|
15690
15688
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
15691
15689
|
let {
|
|
15692
15690
|
width: width,
|
|
@@ -15864,9 +15862,9 @@ class Glyph extends Graphic {
|
|
|
15864
15862
|
return getTheme(this).glyph;
|
|
15865
15863
|
}
|
|
15866
15864
|
updateAABBBounds(attribute, theme, aabbBounds) {
|
|
15867
|
-
return
|
|
15865
|
+
return this.getSubGraphic().forEach(node => {
|
|
15868
15866
|
aabbBounds.union(node.AABBBounds);
|
|
15869
|
-
}), aabbBounds
|
|
15867
|
+
}), aabbBounds;
|
|
15870
15868
|
}
|
|
15871
15869
|
doUpdateAABBBounds() {
|
|
15872
15870
|
this._AABBBounds.clear();
|
|
@@ -16190,7 +16188,6 @@ class Image extends Graphic {
|
|
|
16190
16188
|
return getTheme(this).image;
|
|
16191
16189
|
}
|
|
16192
16190
|
updateAABBBounds(attribute, imageTheme, aabbBounds) {
|
|
16193
|
-
if (!application.graphicService.validCheck(attribute, imageTheme, aabbBounds, this)) return aabbBounds;
|
|
16194
16191
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
16195
16192
|
const {
|
|
16196
16193
|
width = imageTheme.width,
|
|
@@ -16464,7 +16461,6 @@ class RichText extends Graphic {
|
|
|
16464
16461
|
return getTheme(this).richtext;
|
|
16465
16462
|
}
|
|
16466
16463
|
updateAABBBounds(attribute, richtextTheme, aabbBounds) {
|
|
16467
|
-
if (!application.graphicService.validCheck(attribute, richtextTheme, aabbBounds, this)) return aabbBounds;
|
|
16468
16464
|
const {
|
|
16469
16465
|
width = richtextTheme.width,
|
|
16470
16466
|
height = richtextTheme.height,
|
|
@@ -16681,7 +16677,6 @@ class Path extends Graphic {
|
|
|
16681
16677
|
return getTheme(this).path;
|
|
16682
16678
|
}
|
|
16683
16679
|
updateAABBBounds(attribute, pathTheme, aabbBounds) {
|
|
16684
|
-
if (!application.graphicService.validCheck(attribute, pathTheme, aabbBounds, this)) return aabbBounds;
|
|
16685
16680
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
16686
16681
|
const pathShape = this.getParsedPathShape();
|
|
16687
16682
|
aabbBounds.union(pathShape.getBounds());
|
|
@@ -16747,7 +16742,6 @@ class Area extends Graphic {
|
|
|
16747
16742
|
return getTheme(this).area;
|
|
16748
16743
|
}
|
|
16749
16744
|
updateAABBBounds(attribute, areaTheme, aabbBounds) {
|
|
16750
|
-
if (!application.graphicService.validCheck(attribute, areaTheme, aabbBounds, this)) return aabbBounds;
|
|
16751
16745
|
this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
16752
16746
|
const {
|
|
16753
16747
|
lineJoin = areaTheme.lineJoin
|
|
@@ -16948,7 +16942,6 @@ class Arc extends Graphic {
|
|
|
16948
16942
|
return getTheme(this).arc;
|
|
16949
16943
|
}
|
|
16950
16944
|
updateAABBBounds(attribute, arcTheme, aabbBounds, full) {
|
|
16951
|
-
if (!application.graphicService.validCheck(attribute, arcTheme, aabbBounds, this)) return aabbBounds;
|
|
16952
16945
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds));
|
|
16953
16946
|
const {
|
|
16954
16947
|
tb1: tb1,
|
|
@@ -17081,7 +17074,6 @@ class Polygon extends Graphic {
|
|
|
17081
17074
|
return getTheme(this).polygon;
|
|
17082
17075
|
}
|
|
17083
17076
|
updateAABBBounds(attribute, polygonTheme, aabbBounds) {
|
|
17084
|
-
if (!application.graphicService.validCheck(attribute, polygonTheme, aabbBounds, this)) return aabbBounds;
|
|
17085
17077
|
this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
17086
17078
|
const {
|
|
17087
17079
|
lineJoin = polygonTheme.lineJoin
|
|
@@ -17222,6 +17214,9 @@ class ShadowRoot extends Group {
|
|
|
17222
17214
|
y: 0
|
|
17223
17215
|
}), this.type = "shadowroot", this.shadowHost = graphic;
|
|
17224
17216
|
}
|
|
17217
|
+
clearUpdateBoundTag() {
|
|
17218
|
+
super.clearUpdateBoundTag(), this.shadowHost && this.shadowHost.clearUpdateBoundTag();
|
|
17219
|
+
}
|
|
17225
17220
|
addUpdateBoundTag() {
|
|
17226
17221
|
super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
17227
17222
|
}
|
|
@@ -18533,7 +18528,7 @@ class Stage extends Group {
|
|
|
18533
18528
|
"virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
|
|
18534
18529
|
}
|
|
18535
18530
|
list.forEach(layer => {
|
|
18536
|
-
layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer.render({
|
|
18531
|
+
layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer === this.interactiveLayer && this.dirtyBounds && this.dirtyBounds.clear(), layer.render({
|
|
18537
18532
|
renderService: this.renderService,
|
|
18538
18533
|
background: layer === this.defaultLayer ? this.background : void 0,
|
|
18539
18534
|
updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
|
|
@@ -18542,14 +18537,14 @@ class Stage extends Group {
|
|
|
18542
18537
|
}, Object.assign({
|
|
18543
18538
|
renderStyle: this.renderStyle
|
|
18544
18539
|
}, params)));
|
|
18545
|
-
}), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && this.interactiveLayer.render({
|
|
18540
|
+
}), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && (this.dirtyBounds && this.dirtyBounds.clear(), this.interactiveLayer.render({
|
|
18546
18541
|
renderService: this.renderService,
|
|
18547
18542
|
updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
|
|
18548
18543
|
viewBox: this.window.getViewBox(),
|
|
18549
18544
|
transMatrix: this.window.getViewBoxTransform()
|
|
18550
18545
|
}, Object.assign({
|
|
18551
18546
|
renderStyle: this.renderStyle
|
|
18552
|
-
}, params));
|
|
18547
|
+
}, params)));
|
|
18553
18548
|
}
|
|
18554
18549
|
resizeWindow(w, h) {
|
|
18555
18550
|
let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
@@ -28278,7 +28273,7 @@ const registerWrapText = _registerWrapText;
|
|
|
28278
28273
|
|
|
28279
28274
|
const roughModule = _roughModule;
|
|
28280
28275
|
|
|
28281
|
-
const version = "0.20.
|
|
28276
|
+
const version = "0.20.3";
|
|
28282
28277
|
preLoadAllModule();
|
|
28283
28278
|
if (isBrowserEnv()) {
|
|
28284
28279
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -8786,7 +8786,9 @@
|
|
|
8786
8786
|
if (children.length) shadowRoot.setTheme({
|
|
8787
8787
|
[children[0].type]: childAttrs
|
|
8788
8788
|
}), children.forEach(element => {
|
|
8789
|
-
|
|
8789
|
+
element.setAttributes({
|
|
8790
|
+
pickable: !1
|
|
8791
|
+
}), shadowRoot.appendChild(element);
|
|
8790
8792
|
});else {
|
|
8791
8793
|
const box = graphic.AABBBounds,
|
|
8792
8794
|
width = box.width(),
|
|
@@ -8798,7 +8800,8 @@
|
|
|
8798
8800
|
x: 0,
|
|
8799
8801
|
y: 0,
|
|
8800
8802
|
width: width,
|
|
8801
|
-
height: height
|
|
8803
|
+
height: height,
|
|
8804
|
+
pickable: !1
|
|
8802
8805
|
});
|
|
8803
8806
|
shadowRoot.appendChild(child), children.push(child);
|
|
8804
8807
|
});
|
|
@@ -9186,7 +9189,7 @@
|
|
|
9186
9189
|
return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
|
|
9187
9190
|
}
|
|
9188
9191
|
shouldUpdateAABBBounds() {
|
|
9189
|
-
return this.shadowRoot ? !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS);
|
|
9192
|
+
return this.shadowRoot ? (!!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
|
|
9190
9193
|
}
|
|
9191
9194
|
shouldSelfChangeUpdateAABBBounds() {
|
|
9192
9195
|
return this.shadowRoot ? !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS);
|
|
@@ -14231,7 +14234,6 @@
|
|
|
14231
14234
|
return getTheme(this).circle;
|
|
14232
14235
|
}
|
|
14233
14236
|
updateAABBBounds(attribute, circleTheme, aabbBounds, full) {
|
|
14234
|
-
if (!application.graphicService.validCheck(attribute, circleTheme, aabbBounds, this)) return aabbBounds;
|
|
14235
14237
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds));
|
|
14236
14238
|
const {
|
|
14237
14239
|
tb1: tb1,
|
|
@@ -14424,7 +14426,6 @@
|
|
|
14424
14426
|
return getTheme(this).text;
|
|
14425
14427
|
}
|
|
14426
14428
|
updateAABBBounds(attribute, textTheme, aabbBounds) {
|
|
14427
|
-
if (!application.graphicService.validCheck(attribute, textTheme, aabbBounds, this)) return aabbBounds;
|
|
14428
14429
|
const {
|
|
14429
14430
|
text = textTheme.text
|
|
14430
14431
|
} = this.attribute;
|
|
@@ -15533,7 +15534,6 @@
|
|
|
15533
15534
|
return getTheme(this).symbol;
|
|
15534
15535
|
}
|
|
15535
15536
|
updateAABBBounds(attribute, symbolTheme, aabbBounds, full) {
|
|
15536
|
-
if (!application.graphicService.validCheck(attribute, symbolTheme, aabbBounds, this)) return aabbBounds;
|
|
15537
15537
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds));
|
|
15538
15538
|
const {
|
|
15539
15539
|
tb1: tb1,
|
|
@@ -15611,7 +15611,6 @@
|
|
|
15611
15611
|
return getTheme(this).line;
|
|
15612
15612
|
}
|
|
15613
15613
|
updateAABBBounds(attribute, lineTheme, aabbBounds) {
|
|
15614
|
-
if (!application.graphicService.validCheck(attribute, lineTheme, aabbBounds, this)) return aabbBounds;
|
|
15615
15614
|
this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
15616
15615
|
const {
|
|
15617
15616
|
lineJoin = lineTheme.lineJoin
|
|
@@ -15692,7 +15691,6 @@
|
|
|
15692
15691
|
return getTheme(this).rect;
|
|
15693
15692
|
}
|
|
15694
15693
|
updateAABBBounds(attribute, rectTheme, aabbBounds) {
|
|
15695
|
-
if (!application.graphicService.validCheck(attribute, rectTheme, aabbBounds, this)) return aabbBounds;
|
|
15696
15694
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
15697
15695
|
let {
|
|
15698
15696
|
width: width,
|
|
@@ -15870,9 +15868,9 @@
|
|
|
15870
15868
|
return getTheme(this).glyph;
|
|
15871
15869
|
}
|
|
15872
15870
|
updateAABBBounds(attribute, theme, aabbBounds) {
|
|
15873
|
-
return
|
|
15871
|
+
return this.getSubGraphic().forEach(node => {
|
|
15874
15872
|
aabbBounds.union(node.AABBBounds);
|
|
15875
|
-
}), aabbBounds
|
|
15873
|
+
}), aabbBounds;
|
|
15876
15874
|
}
|
|
15877
15875
|
doUpdateAABBBounds() {
|
|
15878
15876
|
this._AABBBounds.clear();
|
|
@@ -16196,7 +16194,6 @@
|
|
|
16196
16194
|
return getTheme(this).image;
|
|
16197
16195
|
}
|
|
16198
16196
|
updateAABBBounds(attribute, imageTheme, aabbBounds) {
|
|
16199
|
-
if (!application.graphicService.validCheck(attribute, imageTheme, aabbBounds, this)) return aabbBounds;
|
|
16200
16197
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
16201
16198
|
const {
|
|
16202
16199
|
width = imageTheme.width,
|
|
@@ -16470,7 +16467,6 @@
|
|
|
16470
16467
|
return getTheme(this).richtext;
|
|
16471
16468
|
}
|
|
16472
16469
|
updateAABBBounds(attribute, richtextTheme, aabbBounds) {
|
|
16473
|
-
if (!application.graphicService.validCheck(attribute, richtextTheme, aabbBounds, this)) return aabbBounds;
|
|
16474
16470
|
const {
|
|
16475
16471
|
width = richtextTheme.width,
|
|
16476
16472
|
height = richtextTheme.height,
|
|
@@ -16687,7 +16683,6 @@
|
|
|
16687
16683
|
return getTheme(this).path;
|
|
16688
16684
|
}
|
|
16689
16685
|
updateAABBBounds(attribute, pathTheme, aabbBounds) {
|
|
16690
|
-
if (!application.graphicService.validCheck(attribute, pathTheme, aabbBounds, this)) return aabbBounds;
|
|
16691
16686
|
if (!this.updatePathProxyAABBBounds(aabbBounds)) {
|
|
16692
16687
|
const pathShape = this.getParsedPathShape();
|
|
16693
16688
|
aabbBounds.union(pathShape.getBounds());
|
|
@@ -16753,7 +16748,6 @@
|
|
|
16753
16748
|
return getTheme(this).area;
|
|
16754
16749
|
}
|
|
16755
16750
|
updateAABBBounds(attribute, areaTheme, aabbBounds) {
|
|
16756
|
-
if (!application.graphicService.validCheck(attribute, areaTheme, aabbBounds, this)) return aabbBounds;
|
|
16757
16751
|
this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
16758
16752
|
const {
|
|
16759
16753
|
lineJoin = areaTheme.lineJoin
|
|
@@ -16954,7 +16948,6 @@
|
|
|
16954
16948
|
return getTheme(this).arc;
|
|
16955
16949
|
}
|
|
16956
16950
|
updateAABBBounds(attribute, arcTheme, aabbBounds, full) {
|
|
16957
|
-
if (!application.graphicService.validCheck(attribute, arcTheme, aabbBounds, this)) return aabbBounds;
|
|
16958
16951
|
this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds));
|
|
16959
16952
|
const {
|
|
16960
16953
|
tb1: tb1,
|
|
@@ -17087,7 +17080,6 @@
|
|
|
17087
17080
|
return getTheme(this).polygon;
|
|
17088
17081
|
}
|
|
17089
17082
|
updateAABBBounds(attribute, polygonTheme, aabbBounds) {
|
|
17090
|
-
if (!application.graphicService.validCheck(attribute, polygonTheme, aabbBounds, this)) return aabbBounds;
|
|
17091
17083
|
this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
17092
17084
|
const {
|
|
17093
17085
|
lineJoin = polygonTheme.lineJoin
|
|
@@ -17228,6 +17220,9 @@
|
|
|
17228
17220
|
y: 0
|
|
17229
17221
|
}), this.type = "shadowroot", this.shadowHost = graphic;
|
|
17230
17222
|
}
|
|
17223
|
+
clearUpdateBoundTag() {
|
|
17224
|
+
super.clearUpdateBoundTag(), this.shadowHost && this.shadowHost.clearUpdateBoundTag();
|
|
17225
|
+
}
|
|
17231
17226
|
addUpdateBoundTag() {
|
|
17232
17227
|
super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
17233
17228
|
}
|
|
@@ -18539,7 +18534,7 @@
|
|
|
18539
18534
|
"virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
|
|
18540
18535
|
}
|
|
18541
18536
|
list.forEach(layer => {
|
|
18542
|
-
layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer.render({
|
|
18537
|
+
layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer === this.interactiveLayer && this.dirtyBounds && this.dirtyBounds.clear(), layer.render({
|
|
18543
18538
|
renderService: this.renderService,
|
|
18544
18539
|
background: layer === this.defaultLayer ? this.background : void 0,
|
|
18545
18540
|
updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
|
|
@@ -18548,14 +18543,14 @@
|
|
|
18548
18543
|
}, Object.assign({
|
|
18549
18544
|
renderStyle: this.renderStyle
|
|
18550
18545
|
}, params)));
|
|
18551
|
-
}), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && this.interactiveLayer.render({
|
|
18546
|
+
}), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && (this.dirtyBounds && this.dirtyBounds.clear(), this.interactiveLayer.render({
|
|
18552
18547
|
renderService: this.renderService,
|
|
18553
18548
|
updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
|
|
18554
18549
|
viewBox: this.window.getViewBox(),
|
|
18555
18550
|
transMatrix: this.window.getViewBoxTransform()
|
|
18556
18551
|
}, Object.assign({
|
|
18557
18552
|
renderStyle: this.renderStyle
|
|
18558
|
-
}, params));
|
|
18553
|
+
}, params)));
|
|
18559
18554
|
}
|
|
18560
18555
|
resizeWindow(w, h) {
|
|
18561
18556
|
let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
@@ -28284,7 +28279,7 @@
|
|
|
28284
28279
|
|
|
28285
28280
|
const roughModule = _roughModule;
|
|
28286
28281
|
|
|
28287
|
-
const version = "0.20.
|
|
28282
|
+
const version = "0.20.3";
|
|
28288
28283
|
preLoadAllModule();
|
|
28289
28284
|
if (isBrowserEnv()) {
|
|
28290
28285
|
loadBrowserEnv(container);
|