@visactor/vrender-core 0.16.15 → 0.16.17-alpha.1
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/common/Reflect-metadata.js +1 -1
- package/cjs/common/bezier-utils.js +1 -2
- package/cjs/common/bounds-context.js +1 -1
- package/cjs/common/canvas-utils.js +1 -1
- package/cjs/common/contribution-provider.js +1 -1
- package/cjs/common/custom-path2d.js +1 -1
- package/cjs/common/enums.js +1 -1
- package/cjs/common/generator.js +1 -1
- package/cjs/common/matrix.js +1 -1
- package/cjs/common/morphing-utils.js +1 -1
- package/cjs/common/path-svg.js +1 -1
- package/cjs/common/polygon.js +2 -2
- package/cjs/common/render-area.js +1 -1
- package/cjs/common/render-command-list.js +1 -1
- package/cjs/common/render-curve.js +2 -2
- package/cjs/common/seg-context.js +1 -1
- package/cjs/common/sort.js +1 -1
- package/cjs/common/split-path.js +1 -2
- package/cjs/common/store.js +1 -1
- package/cjs/common/text.js +1 -1
- package/cjs/common/utils.js +1 -1
- package/cjs/core/camera.js +2 -1
- package/cjs/core/global-module.js +2 -0
- package/cjs/core/global.js +1 -1
- package/cjs/core/graphic-utils.js +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/layer-service.js +1 -1
- package/cjs/core/layer.js +1 -1
- package/cjs/core/light.js +1 -1
- package/cjs/core/stage.js +1 -1
- package/cjs/core/window.js +1 -1
- package/cjs/event/constant.js +1 -1
- package/cjs/event/event-manager.js +1 -1
- package/cjs/event/event-system.js +1 -1
- package/cjs/event/event-target.js +1 -1
- package/cjs/event/index.js +2 -1
- package/cjs/event/util.js +1 -1
- package/cjs/graphic/builtin-symbol/index.js +0 -1
- package/cjs/graphic/builtin-symbol/index.js.map +1 -1
- package/cjs/graphic/builtin-symbol/rect.d.ts +2 -1
- package/cjs/graphic/builtin-symbol/rect.js +11 -6
- package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
- package/cjs/graphic/graphic-service/graphic-service.d.ts +3 -2
- package/cjs/graphic/graphic-service/graphic-service.js +19 -2
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
- package/cjs/graphic/graphic.js +1 -1
- package/cjs/graphic/graphic.js.map +1 -1
- package/cjs/interface/allocator.js +1 -1
- package/cjs/interface/animate.js +1 -1
- package/cjs/interface/camera.js +1 -1
- package/cjs/interface/canvas.js +1 -1
- package/cjs/interface/color.js +1 -1
- package/cjs/interface/common.js +1 -1
- package/dist/index.js +71 -15
- package/dist/index.min.js +1 -1
- package/es/common/Reflect-metadata.js +1 -1
- package/es/common/bezier-utils.js +1 -2
- package/es/common/bounds-context.js +1 -1
- package/es/common/canvas-utils.js +1 -1
- package/es/common/contribution-provider.js +1 -1
- package/es/common/custom-path2d.js +1 -1
- package/es/common/enums.js +1 -1
- package/es/common/generator.js +1 -1
- package/es/common/matrix.js +1 -1
- package/es/common/morphing-utils.js +1 -1
- package/es/common/path-svg.js +1 -1
- package/es/common/polygon.js +1 -1
- package/es/common/render-area.js +1 -1
- package/es/common/render-command-list.js +1 -1
- package/es/common/render-curve.js +1 -1
- package/es/common/seg-context.js +1 -1
- package/es/common/sort.js +1 -1
- package/es/common/split-path.js +1 -2
- package/es/common/store.js +1 -1
- package/es/common/text.js +1 -1
- package/es/common/utils.js +1 -1
- package/es/core/camera.js +2 -1
- package/es/core/global-module.js +2 -0
- package/es/core/global.js +1 -1
- package/es/core/graphic-utils.js +1 -1
- package/es/core/index.js +1 -1
- package/es/core/layer-service.js +1 -1
- package/es/core/layer.js +1 -1
- package/es/core/light.js +1 -1
- package/es/core/stage.js +1 -1
- package/es/core/window.js +1 -1
- package/es/event/constant.js +1 -1
- package/es/event/event-manager.js +1 -1
- package/es/event/event-system.js +1 -1
- package/es/event/event-target.js +1 -1
- package/es/event/index.js +2 -1
- package/es/event/util.js +1 -1
- package/es/graphic/builtin-symbol/index.js +0 -1
- package/es/graphic/builtin-symbol/index.js.map +1 -1
- package/es/graphic/builtin-symbol/rect.d.ts +2 -1
- package/es/graphic/builtin-symbol/rect.js +9 -4
- package/es/graphic/builtin-symbol/rect.js.map +1 -1
- package/es/graphic/graphic-service/graphic-service.d.ts +3 -2
- package/es/graphic/graphic-service/graphic-service.js +19 -2
- package/es/graphic/graphic-service/graphic-service.js.map +1 -1
- package/es/graphic/graphic.js +1 -1
- package/es/graphic/graphic.js.map +1 -1
- package/es/interface/allocator.js +1 -1
- package/es/interface/animate.js +1 -1
- package/es/interface/camera.js +1 -1
- package/es/interface/canvas.js +1 -1
- package/es/interface/color.js +1 -1
- package/es/interface/common.js +1 -1
- package/package.json +4 -4
|
@@ -31,5 +31,4 @@ function cubicPointAt(p0, p1, p2, p3, t) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
exports.snapLength = snapLength, exports.cubicLength = cubicLength, exports.cubicCalc = cubicCalc,
|
|
34
|
-
exports.cubicPointAt = cubicPointAt;
|
|
35
|
-
//# sourceMappingURL=bezier-utils.js.map
|
|
34
|
+
exports.cubicPointAt = cubicPointAt;
|
|
@@ -69,5 +69,5 @@ function createConicGradient(context, color, params, offsetX = 0, offsetY = 0) {
|
|
|
69
69
|
})), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
exports.getScaledStroke = getScaledStroke, exports.createColor = createColor;
|
|
73
72
|
//# sourceMappingURL=canvas-utils.js.map
|
|
73
|
+
exports.getScaledStroke = getScaledStroke, exports.createColor = createColor;
|
|
@@ -24,4 +24,4 @@ function bindContributionProviderNoSingletonScope(bind, id) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
exports.bindContributionProvider = bindContributionProvider, exports.bindContributionProviderNoSingletonScope = bindContributionProviderNoSingletonScope;
|
|
27
|
-
//# sourceMappingURL=contribution-provider.js.map
|
|
27
|
+
//# sourceMappingURL=contribution-provider.js.map
|
|
@@ -330,4 +330,4 @@ function scale(current, sX, sY) {
|
|
|
330
330
|
temp[7] = sY * current[7]; else if ("h" === c || "H" === c) temp[1] = sX * current[1]; else if ("v" === c || "V" === c) temp[1] = sY * current[1]; else for (let i = 1, n = current.length; i < n; ++i) temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
|
|
331
331
|
return temp;
|
|
332
332
|
}
|
|
333
|
-
//# sourceMappingURL=custom-path2d.js.map
|
|
333
|
+
//# sourceMappingURL=custom-path2d.js.map
|
package/cjs/common/enums.js
CHANGED
|
@@ -46,4 +46,4 @@ function(Direction) {
|
|
|
46
46
|
BaseRenderContributionTime[BaseRenderContributionTime.beforeFillStroke = 0] = "beforeFillStroke",
|
|
47
47
|
BaseRenderContributionTime[BaseRenderContributionTime.afterFillStroke = 1] = "afterFillStroke";
|
|
48
48
|
}(BaseRenderContributionTime = exports.BaseRenderContributionTime || (exports.BaseRenderContributionTime = {}));
|
|
49
|
-
//# sourceMappingURL=enums.js.map
|
|
49
|
+
//# sourceMappingURL=enums.js.map
|
package/cjs/common/generator.js
CHANGED
package/cjs/common/matrix.js
CHANGED
|
@@ -292,4 +292,4 @@ function bezierCurversToPath(bezierCurves) {
|
|
|
292
292
|
|
|
293
293
|
exports.pathToBezierCurves = pathToBezierCurves, exports.applyTransformOnBezierCurves = applyTransformOnBezierCurves,
|
|
294
294
|
exports.bezierCurversToPath = bezierCurversToPath;
|
|
295
|
-
//# sourceMappingURL=morphing-utils.js.map
|
|
295
|
+
//# sourceMappingURL=morphing-utils.js.map
|
package/cjs/common/path-svg.js
CHANGED
package/cjs/common/polygon.js
CHANGED
|
@@ -39,8 +39,8 @@ function getProportionPoint(point, segment, length, dx, dy) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
//# sourceMappingURL=polygon.js.map
|
|
42
43
|
Object.defineProperty(exports, "__esModule", {
|
|
43
44
|
value: !0
|
|
44
45
|
}), exports.drawRoundedPolygon = exports.drawPolygon = void 0, exports.drawPolygon = drawPolygon,
|
|
45
|
-
exports.drawRoundedPolygon = drawRoundedPolygon;
|
|
46
|
-
//# sourceMappingURL=polygon.js.map
|
|
46
|
+
exports.drawRoundedPolygon = drawRoundedPolygon;
|
|
@@ -118,6 +118,6 @@ function drawSegItem(ctx, curve, endPercent, params) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
exports.drawSegments = drawSegments, exports.drawIncrementalSegments = drawIncrementalSegments,
|
|
122
|
-
exports.drawIncrementalAreaSegments = drawIncrementalAreaSegments;
|
|
123
121
|
//# sourceMappingURL=render-curve.js.map
|
|
122
|
+
exports.drawSegments = drawSegments, exports.drawIncrementalSegments = drawIncrementalSegments,
|
|
123
|
+
exports.drawIncrementalAreaSegments = drawIncrementalAreaSegments;
|
package/cjs/common/sort.js
CHANGED
|
@@ -98,4 +98,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
98
98
|
value: !0
|
|
99
99
|
}), exports.findNextGraphic = exports.foreachAsync = exports.foreach = void 0, exports.foreach = foreach,
|
|
100
100
|
exports.foreachAsync = foreachAsync, exports.findNextGraphic = findNextGraphic;
|
|
101
|
-
//# sourceMappingURL=sort.js.map
|
|
101
|
+
//# sourceMappingURL=sort.js.map
|
package/cjs/common/split-path.js
CHANGED
package/cjs/common/store.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
class StageStore {}
|
|
2
|
-
//# sourceMappingURL=store.js.map
|
|
2
|
+
//# sourceMappingURL=store.js.map
|
package/cjs/common/text.js
CHANGED
|
@@ -24,4 +24,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
24
24
|
}), exports.textLayoutOffsetY = exports.textDrawOffsetX = exports.textDrawOffsetY = exports.getContextFont = void 0,
|
|
25
25
|
exports.getContextFont = getContextFont, exports.textDrawOffsetY = textDrawOffsetY,
|
|
26
26
|
exports.textDrawOffsetX = textDrawOffsetX, exports.textLayoutOffsetY = textLayoutOffsetY;
|
|
27
|
-
//# sourceMappingURL=text.js.map
|
|
27
|
+
//# sourceMappingURL=text.js.map
|
package/cjs/common/utils.js
CHANGED
package/cjs/core/camera.js
CHANGED
package/cjs/core/global.js
CHANGED
|
@@ -173,4 +173,4 @@ DefaultGlobal = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
|
|
|
173
173
|
inversify_lite_1.inject)(contribution_provider_1.ContributionProvider)), __param(0, (0,
|
|
174
174
|
inversify_lite_1.named)(constants_1.EnvContribution)), __metadata("design:paramtypes", [ Object ]) ], DefaultGlobal),
|
|
175
175
|
exports.DefaultGlobal = DefaultGlobal;
|
|
176
|
-
//# sourceMappingURL=global.js.map
|
|
176
|
+
//# sourceMappingURL=global.js.map
|
|
@@ -136,4 +136,4 @@ let DefaultTransformUtil = class {
|
|
|
136
136
|
|
|
137
137
|
DefaultTransformUtil = __decorate([ (0, inversify_lite_1.injectable)(), __metadata("design:paramtypes", []) ], DefaultTransformUtil),
|
|
138
138
|
exports.DefaultTransformUtil = DefaultTransformUtil;
|
|
139
|
-
//# sourceMappingURL=graphic-utils.js.map
|
|
139
|
+
//# sourceMappingURL=graphic-utils.js.map
|
package/cjs/core/index.js
CHANGED
|
@@ -22,4 +22,4 @@ __exportStar(require("./layer"), exports), __exportStar(require("./stage"), expo
|
|
|
22
22
|
__exportStar(require("./graphic-utils"), exports), __exportStar(require("./contributions"), exports),
|
|
23
23
|
__exportStar(require("./layer-service"), exports), __exportStar(require("./constants"), exports),
|
|
24
24
|
__exportStar(require("../interface/core"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -77,4 +77,4 @@ let DefaultLayerService = class {
|
|
|
77
77
|
DefaultLayerService = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
|
|
78
78
|
inversify_lite_1.inject)(constants_1.VGlobal)), __metadata("design:paramtypes", [ Object ]) ], DefaultLayerService),
|
|
79
79
|
exports.DefaultLayerService = DefaultLayerService;
|
|
80
|
-
//# sourceMappingURL=layer-service.js.map
|
|
80
|
+
//# sourceMappingURL=layer-service.js.map
|
package/cjs/core/layer.js
CHANGED
package/cjs/core/light.js
CHANGED
package/cjs/core/stage.js
CHANGED
package/cjs/core/window.js
CHANGED
|
@@ -123,4 +123,4 @@ __decorate([ (0, inversify_lite_1.postConstruct)(), __metadata("design:type", Fu
|
|
|
123
123
|
DefaultWindow = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
|
|
124
124
|
inversify_lite_1.inject)(constants_1.VGlobal)), __metadata("design:paramtypes", [ Object ]) ], DefaultWindow),
|
|
125
125
|
exports.DefaultWindow = DefaultWindow;
|
|
126
|
-
//# sourceMappingURL=window.js.map
|
|
126
|
+
//# sourceMappingURL=window.js.map
|
package/cjs/event/constant.js
CHANGED
package/cjs/event/index.js
CHANGED
|
@@ -20,4 +20,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
20
|
}), __exportStar(require("./federated-event"), exports), __exportStar(require("./event-manager"), exports),
|
|
21
21
|
__exportStar(require("./event-target"), exports), __exportStar(require("./event-system"), exports),
|
|
22
22
|
__exportStar(require("../interface/event"), exports), __exportStar(require("./util"), exports),
|
|
23
|
-
__exportStar(require("./constant"), exports);
|
|
23
|
+
__exportStar(require("./constant"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
package/cjs/event/util.js
CHANGED
|
@@ -31,7 +31,6 @@ exports.builtinSymbolsMap = {}, exports.builtinSymbols.forEach((symbol => {
|
|
|
31
31
|
})), exports.builtInSymbolStrMap = {
|
|
32
32
|
arrowLeft: "M 0.25 -0.5 L -0.25 0 l 0.5 0.5",
|
|
33
33
|
arrowRight: "M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5",
|
|
34
|
-
rect: "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z",
|
|
35
34
|
rectRound: "M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",
|
|
36
35
|
roundLine: "M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z"
|
|
37
36
|
}, __exportStar(require("./utils"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,0DAAkC;AAClC,kDAA0B;AAC1B,oDAA4B;AAC5B,oDAA4B;AAC5B,sDAA8B;AAC9B,gDAAwB;AACxB,oEAA2C;AAC3C,sEAA6C;AAC7C,gEAAuC;AACvC,oEAA2C;AAC3C,oEAA2C;AAC3C,gEAAuC;AACvC,kEAAyC;AACzC,4DAAmC;AACnC,gEAAuC;AACvC,sDAA6B;AAC7B,sDAA6B;AAC7B,oDAA4B;AAC5B,kDAA0B;AAGb,QAAA,cAAc,GAAG;IAC5B,gBAAM;IACN,eAAK;IACL,iBAAO;IACP,gBAAM;IACN,uBAAY;IACZ,kBAAQ;IACR,cAAI;IACJ,eAAK;IACL,eAAK;IACL,gBAAM;IACN,aAAG;IACH,uBAAY;IACZ,wBAAa;IACb,qBAAU;IACV,uBAAY;IACZ,qBAAU;IACV,sBAAW;IACX,mBAAQ;IACR,qBAAU;IACV,cAAI;IACJ,gBAAK;IACL,gBAAK;IACL,eAAK;CACN,CAAC;AACW,QAAA,iBAAiB,GAAiC,EAAE,CAAC;AAElE,sBAAc,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;IAC9B,yBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAA2B;IACzD,SAAS,EAAE,iCAAiC;IAC5C,UAAU,EAAE,mCAAmC;
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,0DAAkC;AAClC,kDAA0B;AAC1B,oDAA4B;AAC5B,oDAA4B;AAC5B,sDAA8B;AAC9B,gDAAwB;AACxB,oEAA2C;AAC3C,sEAA6C;AAC7C,gEAAuC;AACvC,oEAA2C;AAC3C,oEAA2C;AAC3C,gEAAuC;AACvC,kEAAyC;AACzC,4DAAmC;AACnC,gEAAuC;AACvC,sDAA6B;AAC7B,sDAA6B;AAC7B,oDAA4B;AAC5B,kDAA0B;AAGb,QAAA,cAAc,GAAG;IAC5B,gBAAM;IACN,eAAK;IACL,iBAAO;IACP,gBAAM;IACN,uBAAY;IACZ,kBAAQ;IACR,cAAI;IACJ,eAAK;IACL,eAAK;IACL,gBAAM;IACN,aAAG;IACH,uBAAY;IACZ,wBAAa;IACb,qBAAU;IACV,uBAAY;IACZ,qBAAU;IACV,sBAAW;IACX,mBAAQ;IACR,qBAAU;IACV,cAAI;IACJ,gBAAK;IACL,gBAAK;IACL,eAAK;CACN,CAAC;AACW,QAAA,iBAAiB,GAAiC,EAAE,CAAC;AAElE,sBAAc,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;IAC9B,yBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAA2B;IACzD,SAAS,EAAE,iCAAiC;IAC5C,UAAU,EAAE,mCAAmC;IAE/C,SAAS,EAEP,8PAA8P;IAChQ,SAAS,EACP,sNAAsN;CACzN,CAAC;AAEF,0CAAwB","file":"index.js","sourcesContent":["import circle from './circle';\nimport cross from './cross';\nimport diamond from './diamond';\nimport square from './square';\nimport triangle from './triangle';\nimport star from './star';\nimport arrow from './arrow';\nimport wedge from './wedge';\nimport stroke from './stroke';\nimport wye from './wye';\nimport triangleLeft from './triangle-left';\nimport triangleRight from './triangle-right';\nimport triangleUp from './triangle-up';\nimport triangleDown from './triangle-down';\nimport thinTriangle from './thin-triangle';\nimport arrow2Left from './arrow2-left';\nimport arrow2Right from './arrow2-right';\nimport arrow2Up from './arrow2-up';\nimport arrow2Down from './arrow2-down';\nimport lineV from './line-v';\nimport lineH from './line-h';\nimport close from './close';\nimport rect from './rect';\nimport type { ISymbolClass } from '../../interface';\n\nexport const builtinSymbols = [\n circle,\n cross,\n diamond,\n square,\n thinTriangle,\n triangle,\n star,\n arrow,\n wedge,\n stroke,\n wye,\n triangleLeft,\n triangleRight,\n triangleUp,\n triangleDown,\n arrow2Left,\n arrow2Right,\n arrow2Up,\n arrow2Down,\n rect,\n lineV,\n lineH,\n close\n];\nexport const builtinSymbolsMap: Record<string, ISymbolClass> = {};\n\nbuiltinSymbols.forEach(symbol => {\n builtinSymbolsMap[symbol.type] = symbol;\n});\n\nexport const builtInSymbolStrMap: Record<string, string> = {\n arrowLeft: 'M 0.25 -0.5 L -0.25 0 l 0.5 0.5',\n arrowRight: 'M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5',\n // rect: 'M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z',\n rectRound:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n roundLine:\n 'M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z'\n};\n\nexport * from './utils';\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
2
|
import { BaseSymbol } from './base';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function rectSizeArray(ctx: IContext2d, size: [number, number], x: number, y: number): boolean;
|
|
4
|
+
export declare function rectSize(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
4
5
|
export declare class RectSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
6
|
type: SymbolType;
|
|
6
7
|
pathStr: string;
|
|
@@ -2,25 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.RectSymbol = exports.
|
|
5
|
+
}), exports.RectSymbol = exports.rectSize = exports.rectSizeArray = void 0;
|
|
6
6
|
|
|
7
7
|
const vutils_1 = require("@visactor/vutils"), base_1 = require("./base");
|
|
8
8
|
|
|
9
|
-
function
|
|
9
|
+
function rectSizeArray(ctx, size, x, y) {
|
|
10
10
|
return ctx.rect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]), !1;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
function rectSize(ctx, size, x, y) {
|
|
14
|
+
const w = size, h = size / 2;
|
|
15
|
+
return ctx.rect(x - w / 2, y - h / 2, w, h), !1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.rectSizeArray = rectSizeArray, exports.rectSize = rectSize;
|
|
14
19
|
|
|
15
20
|
class RectSymbol extends base_1.BaseSymbol {
|
|
16
21
|
constructor() {
|
|
17
|
-
super(...arguments), this.type = "rect", this.pathStr = "M-0.5,-0.
|
|
22
|
+
super(...arguments), this.type = "rect", this.pathStr = "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z";
|
|
18
23
|
}
|
|
19
24
|
draw(ctx, size, x, y) {
|
|
20
|
-
return
|
|
25
|
+
return (0, vutils_1.isNumber)(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
21
26
|
}
|
|
22
27
|
drawOffset(ctx, size, x, y, offset) {
|
|
23
|
-
return
|
|
28
|
+
return (0, vutils_1.isNumber)(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [ size[0] + 2 * offset, size[1] + 2 * offset ], x, y);
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/rect.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iCAAoC;AAiCpC,SAAgB,
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/rect.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,iCAAoC;AAiCpC,SAAgB,aAAa,CAAC,GAAe,EAAE,IAAsB,EAAE,CAAS,EAAE,CAAS;IACzF,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,OAAO,KAAK,CAAC;AACf,CAAC;AAHD,sCAGC;AAED,SAAgB,QAAQ,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;IAC1E,MAAM,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IACnB,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC;AACf,CAAC;AALD,4BAKC;AAGD,MAAa,UAAW,SAAQ,iBAAU;IAA1C;;QACE,SAAI,GAAe,MAAM,CAAC;QAC1B,YAAO,GAAW,mDAAmD,CAAC;IAiBxE,CAAC;IAfC,IAAI,CAAC,GAAe,EAAE,IAA+B,EAAE,CAAS,EAAE,CAAS;QACzE,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,EAAE;YAClB,OAAO,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAClC;QACD,OAAO,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAGxC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAA+B,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC/F,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,EAAE;YAClB,OAAO,QAAQ,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAC/C;QACD,OAAO,aAAa,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChF,CAAC;CACF;AAnBD,gCAmBC;AAED,kBAAe,IAAI,UAAU,EAAE,CAAC","file":"rect.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { isNumber } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * 部分源码参考 https://github.com/vega/vega/blob/main/packages/vega-scenegraph/src/path/symbols.js\n * Copyright (c) 2015-2023, University of Washington Interactive Data Lab\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n 3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nexport function rectSizeArray(ctx: IContext2d, size: [number, number], x: number, y: number) {\n ctx.rect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]);\n return false;\n}\n\nexport function rectSize(ctx: IContext2d, size: number, x: number, y: number) {\n const w = size;\n const h = size / 2;\n ctx.rect(x - w / 2, y - h / 2, w, h);\n return false;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class RectSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'rect';\n pathStr: string = 'M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z';\n\n draw(ctx: IContext2d, size: number | [number, number], x: number, y: number) {\n if (isNumber(size)) {\n return rectSize(ctx, size, x, y);\n }\n return rectSizeArray(ctx, size, x, y);\n // const rectSize: [number, number] = ? [size, size] : size;\n // return rect(ctx, rectSize, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number | [number, number], x: number, y: number, offset: number) {\n if (isNumber(size)) {\n return rectSize(ctx, size + 2 * offset, x, y);\n }\n return rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);\n }\n}\n\nexport default new RectSymbol();\n"]}
|
|
@@ -72,9 +72,10 @@ export declare class DefaultGraphicService implements IGraphicService {
|
|
|
72
72
|
protected updateArcAABBBoundsImprecise(attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
|
|
73
73
|
protected updateArcAABBBoundsAccurate(attribute: IArcGraphicAttribute, arcTheme: Required<IArcGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
|
|
74
74
|
updateSymbolAABBBounds(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, full?: boolean, graphic?: ISymbol): IBounds;
|
|
75
|
-
updateSymbolAABBBoundsImprecise(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
|
|
76
|
-
updateSymbolAABBBoundsAccurate(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ISymbol): IAABBBounds;
|
|
75
|
+
protected updateSymbolAABBBoundsImprecise(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IAABBBounds;
|
|
76
|
+
protected updateSymbolAABBBoundsAccurate(attribute: ISymbolGraphicAttribute, symbolTheme: Required<ISymbolGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: ISymbol): IAABBBounds;
|
|
77
77
|
updateImageAABBBounds(attribute: IImageGraphicAttribute, imageTheme: Required<IImageGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): IBounds;
|
|
78
78
|
combindShadowAABBBounds(bounds: IAABBBounds, graphic?: IGraphic): void;
|
|
79
79
|
transformAABBBounds(attribute: Partial<IGraphicAttribute>, aabbBounds: IAABBBounds, theme: Required<IGraphicAttribute>, miter: boolean, graphic?: IGraphic): void;
|
|
80
|
+
protected _validCheck(attribute: Partial<IGraphicAttribute>, theme: Required<IGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IGraphic): boolean;
|
|
80
81
|
}
|
|
@@ -224,6 +224,7 @@ let DefaultGraphicService = class {
|
|
|
224
224
|
!0;
|
|
225
225
|
}
|
|
226
226
|
updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
|
|
227
|
+
if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
|
|
227
228
|
if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
|
|
228
229
|
const {width: width = rectTheme.width, height: height = rectTheme.height} = attribute;
|
|
229
230
|
aabbBounds.set(0, 0, width, height);
|
|
@@ -248,11 +249,12 @@ let DefaultGraphicService = class {
|
|
|
248
249
|
aabbBounds;
|
|
249
250
|
}
|
|
250
251
|
updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
|
|
251
|
-
return graphic.getSubGraphic().forEach((node => {
|
|
252
|
+
return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach((node => {
|
|
252
253
|
aabbBounds.union(node.AABBBounds);
|
|
253
|
-
})), aabbBounds;
|
|
254
|
+
})), aabbBounds) : aabbBounds;
|
|
254
255
|
}
|
|
255
256
|
updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
|
|
257
|
+
if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
|
|
256
258
|
if (!graphic) return aabbBounds;
|
|
257
259
|
const {width: width = richtextTheme.width, height: height = richtextTheme.height, maxWidth: maxWidth = richtextTheme.maxWidth, maxHeight: maxHeight = richtextTheme.maxHeight, textAlign: textAlign = richtextTheme.textAlign, textBaseline: textBaseline = richtextTheme.textBaseline} = attribute;
|
|
258
260
|
if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height); else {
|
|
@@ -295,6 +297,7 @@ let DefaultGraphicService = class {
|
|
|
295
297
|
aabbBounds;
|
|
296
298
|
}
|
|
297
299
|
updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
|
|
300
|
+
if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
|
|
298
301
|
if (!graphic) return aabbBounds;
|
|
299
302
|
const {text: text = textTheme.text} = graphic.attribute;
|
|
300
303
|
Array.isArray(text) ? graphic.updateMultilineAABBBounds(text) : graphic.updateSingallineAABBBounds(text);
|
|
@@ -309,6 +312,7 @@ let DefaultGraphicService = class {
|
|
|
309
312
|
aabbBounds;
|
|
310
313
|
}
|
|
311
314
|
updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
|
|
315
|
+
if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
|
|
312
316
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
|
|
313
317
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
314
318
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
|
|
@@ -350,6 +354,7 @@ let DefaultGraphicService = class {
|
|
|
350
354
|
aabbBounds;
|
|
351
355
|
}
|
|
352
356
|
updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
|
|
357
|
+
if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
|
|
353
358
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
|
|
354
359
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
355
360
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
|
|
@@ -364,6 +369,7 @@ let DefaultGraphicService = class {
|
|
|
364
369
|
})), aabbBounds;
|
|
365
370
|
}
|
|
366
371
|
updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
|
|
372
|
+
if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
|
|
367
373
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
|
|
368
374
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
369
375
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
|
|
@@ -386,6 +392,7 @@ let DefaultGraphicService = class {
|
|
|
386
392
|
})), b;
|
|
387
393
|
}
|
|
388
394
|
updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
|
|
395
|
+
if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
|
|
389
396
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
|
|
390
397
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
391
398
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2);
|
|
@@ -410,6 +417,7 @@ let DefaultGraphicService = class {
|
|
|
410
417
|
})), b;
|
|
411
418
|
}
|
|
412
419
|
updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
|
|
420
|
+
if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
|
|
413
421
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
|
|
414
422
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
415
423
|
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
|
|
@@ -429,6 +437,7 @@ let DefaultGraphicService = class {
|
|
|
429
437
|
utils_1.circleBounds)(startAngle, endAngle, radius, aabbBounds), aabbBounds;
|
|
430
438
|
}
|
|
431
439
|
updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
|
|
440
|
+
if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
|
|
432
441
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
|
|
433
442
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
434
443
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
|
|
@@ -460,6 +469,7 @@ let DefaultGraphicService = class {
|
|
|
460
469
|
aabbBounds;
|
|
461
470
|
}
|
|
462
471
|
updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
|
|
472
|
+
if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
|
|
463
473
|
this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
|
|
464
474
|
const tb1 = this.tempAABBBounds1, tb2 = this.tempAABBBounds2;
|
|
465
475
|
tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2),
|
|
@@ -485,6 +495,7 @@ let DefaultGraphicService = class {
|
|
|
485
495
|
return graphic.getParsedPath().bounds(size, aabbBounds), aabbBounds;
|
|
486
496
|
}
|
|
487
497
|
updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
|
|
498
|
+
if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
|
|
488
499
|
if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
|
|
489
500
|
const {width: width = imageTheme.width, height: height = imageTheme.height} = attribute;
|
|
490
501
|
aabbBounds.set(0, 0, width, height);
|
|
@@ -513,6 +524,12 @@ let DefaultGraphicService = class {
|
|
|
513
524
|
}
|
|
514
525
|
this.combindShadowAABBBounds(aabbBounds, graphic), (0, vutils_1.transformBoundsWithMatrix)(aabbBounds, aabbBounds, graphic.transMatrix);
|
|
515
526
|
}
|
|
527
|
+
_validCheck(attribute, theme, aabbBounds, graphic) {
|
|
528
|
+
if (!graphic) return !0;
|
|
529
|
+
if (!graphic.valid) return aabbBounds.clear(), !1;
|
|
530
|
+
const {visible: visible = theme.visible} = attribute;
|
|
531
|
+
return !!visible || (aabbBounds.clear(), !1);
|
|
532
|
+
}
|
|
516
533
|
};
|
|
517
534
|
|
|
518
535
|
DefaultGraphicService = __decorate([ (0, inversify_lite_1.injectable)(), __param(0, (0,
|