@visactor/vrender 1.0.36 → 1.0.37-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/index.d.ts +1 -1
- package/cjs/index.js +11 -10
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +16 -5
- package/dist/index.js +16 -5
- 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 +7 -7
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,16 +21,17 @@ 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"), vrender_animate_1 = require("@visactor/vrender-animate");
|
|
23
23
|
|
|
24
|
-
exports.version = "1.0.
|
|
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
|
-
(0,
|
|
24
|
+
exports.version = "1.0.37-alpha.1", (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)(), (0,
|
|
34
|
+
vrender_kits_1.registerStar)(), (0, vrender_core_1.registerFlexLayoutPlugin)(),
|
|
34
35
|
(0, vrender_core_1.registerViewTransform3dPlugin)(), (0, vrender_core_1.registerHtmlAttributePlugin)(),
|
|
35
36
|
(0, vrender_core_1.registerReactAttributePlugin)(), (0, vrender_core_1.registerDirectionalLight)(),
|
|
36
37
|
(0, vrender_core_1.registerOrthoCamera)(), (0, vrender_animate_1.registerCustomAnimate)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,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,IAAA,2BAAY,GAAE,CAAC;AAEf,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;AAEtB,IAAA,uCAAqB,GAAE,CAAC;AACxB,IAAA,iCAAe,GAAE,CAAC;AAElB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAG7C,6DAAkD;AAAzC,wGAAA,KAAK,OAAA;AACd,uDAAmD;AAA1C,yGAAA,SAAS,OAAA","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, registerStar } 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';\nimport { registerCustomAnimate, registerAnimate } from '@visactor/vrender-animate';\n// 导出版本号\nexport const version = \"1.0.37-alpha.1\";\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();\nregisterStar();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\n\nregisterCustomAnimate();\nregisterAnimate();\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\nexport * from '@visactor/vrender-components';\n\n// avoid naming conflicts with 'State' & 'Direction' in '@visactor/vrender-components'\nexport { State } from '@visactor/vrender-animate';\nexport { Direction } from '@visactor/vrender-core';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -50684,6 +50684,8 @@ loadBrushComponent();
|
|
|
50684
50684
|
class Brush extends AbstractComponent {
|
|
50685
50685
|
constructor(attributes, options) {
|
|
50686
50686
|
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, Brush.defaultAttributes, attributes)), this.name = "brush", this._activeBrushState = !1, this._activeDrawState = !1, this._cacheDrawPoints = [], this._activeMoveState = !1, this._operatingMaskMoveDx = 0, this._operatingMaskMoveDy = 0, this._operatingMaskMoveRangeX = [-1 / 0, 1 / 0], this._operatingMaskMoveRangeY = [-1 / 0, 1 / 0], this._brushMaskAABBBoundsDict = {}, this._firstUpdate = !0, this._onBrushStart = e => {
|
|
50687
|
+
if (!1 === this.attribute.interactive) return;
|
|
50688
|
+
if (!1 === this._beforeBrushEvent(e)) return;
|
|
50687
50689
|
const {
|
|
50688
50690
|
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES.updateTrigger,
|
|
50689
50691
|
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
@@ -50691,11 +50693,11 @@ class Brush extends AbstractComponent {
|
|
|
50691
50693
|
} = this.attribute;
|
|
50692
50694
|
array(updateTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushingWithDelay)), array(endTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushEnd)), e.stopPropagation(), this._firstUpdate = !0, this._activeMoveState = brushMoved && this._isPosInBrushMask(e), this._activeDrawState = !this._activeMoveState, this._startPos = this.eventPosToStagePos(e), this._cacheDrawPoints = [this._startPos];
|
|
50693
50695
|
}, this._onBrushing = e => {
|
|
50694
|
-
this._outOfInteractiveRange(e) || (e.stopPropagation(), this._firstUpdate ? (this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e), this._firstUpdate = !1) : (this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e)));
|
|
50696
|
+
!1 !== this.attribute.interactive && !1 !== this._beforeBrushEvent(e) && (this._outOfInteractiveRange(e) || (e.stopPropagation(), this._firstUpdate ? (this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e), this._firstUpdate = !1) : (this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e))));
|
|
50695
50697
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
50696
|
-
this._releaseBrushUpdateEvents(), e.preventDefault(), this._activeDrawState && this._drawEnd(e), this._activeMoveState && this._moveEnd(e), this._activeDrawState = !1, this._activeMoveState = !1;
|
|
50698
|
+
!1 !== this.attribute.interactive && (this._releaseBrushUpdateEvents(), e.preventDefault(), this._activeDrawState && this._drawEnd(e), this._activeMoveState && this._moveEnd(e), this._activeDrawState = !1, this._activeMoveState = !1);
|
|
50697
50699
|
}, this._onBrushClear = e => {
|
|
50698
|
-
e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1;
|
|
50700
|
+
!1 !== this.attribute.interactive && !1 !== this._beforeBrushEvent(e) && (e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1);
|
|
50699
50701
|
};
|
|
50700
50702
|
}
|
|
50701
50703
|
_bindBrushEvents() {
|
|
@@ -50707,6 +50709,7 @@ class Brush extends AbstractComponent {
|
|
|
50707
50709
|
array(trigger).forEach(t => this.stage.addEventListener(t, this._onBrushStart)), array(resetTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushClear));
|
|
50708
50710
|
}
|
|
50709
50711
|
_initDraw(e) {
|
|
50712
|
+
if (!1 === this.attribute.interactive) return;
|
|
50710
50713
|
const {
|
|
50711
50714
|
brushMode: brushMode
|
|
50712
50715
|
} = this.attribute,
|
|
@@ -50715,6 +50718,7 @@ class Brush extends AbstractComponent {
|
|
|
50715
50718
|
}
|
|
50716
50719
|
_initMove(e) {
|
|
50717
50720
|
var _a, _b;
|
|
50721
|
+
if (!1 === this.attribute.interactive) return;
|
|
50718
50722
|
this._cacheMovePoint = this.eventPosToStagePos(e), this._operatingMaskMoveDx = null !== (_a = this._operatingMask.attribute.dx) && void 0 !== _a ? _a : 0, this._operatingMaskMoveDy = null !== (_b = this._operatingMask.attribute.dy) && void 0 !== _b ? _b : 0;
|
|
50719
50723
|
const {
|
|
50720
50724
|
interactiveRange: interactiveRange
|
|
@@ -50739,6 +50743,7 @@ class Brush extends AbstractComponent {
|
|
|
50739
50743
|
}
|
|
50740
50744
|
_drawing(e) {
|
|
50741
50745
|
var _a;
|
|
50746
|
+
if (!1 === this.attribute.interactive) return;
|
|
50742
50747
|
const pos = this.eventPosToStagePos(e),
|
|
50743
50748
|
{
|
|
50744
50749
|
brushType: brushType,
|
|
@@ -50763,6 +50768,7 @@ class Brush extends AbstractComponent {
|
|
|
50763
50768
|
(Math.abs(x2 - x1) > sizeThreshold || Math.abs(y1 - y2) > sizeThreshold) && (1 !== Object.keys(this._brushMaskAABBBoundsDict).length || this._activeBrushState ? this._dispatchBrushEvent(IOperateType.drawing, e) : (this._activeBrushState = !0, this._dispatchBrushEvent(IOperateType.brushActive, e)));
|
|
50764
50769
|
}
|
|
50765
50770
|
_moving(e) {
|
|
50771
|
+
if (!1 === this.attribute.interactive) return;
|
|
50766
50772
|
const startPos = this._cacheMovePoint,
|
|
50767
50773
|
pos = this.eventPosToStagePos(e);
|
|
50768
50774
|
if (pos.x === (null == startPos ? void 0 : startPos.x) && pos.y === (null == startPos ? void 0 : startPos.y)) return;
|
|
@@ -50776,6 +50782,7 @@ class Brush extends AbstractComponent {
|
|
|
50776
50782
|
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this._dispatchBrushEvent(IOperateType.moving, e);
|
|
50777
50783
|
}
|
|
50778
50784
|
_drawEnd(e) {
|
|
50785
|
+
if (!1 === this.attribute.interactive) return;
|
|
50779
50786
|
const {
|
|
50780
50787
|
removeOnClick = !0,
|
|
50781
50788
|
sizeThreshold = DEFAULT_SIZE_THRESHOLD
|
|
@@ -50793,7 +50800,7 @@ class Brush extends AbstractComponent {
|
|
|
50793
50800
|
}
|
|
50794
50801
|
}
|
|
50795
50802
|
_moveEnd(e) {
|
|
50796
|
-
this._operatingMask && this._operatingMask.setAttribute("pickable", !1), this._dispatchBrushEvent(IOperateType.moveEnd, e);
|
|
50803
|
+
!1 !== this.attribute.interactive && (this._operatingMask && this._operatingMask.setAttribute("pickable", !1), this._dispatchBrushEvent(IOperateType.moveEnd, e));
|
|
50797
50804
|
}
|
|
50798
50805
|
render() {
|
|
50799
50806
|
this._bindBrushEvents();
|
|
@@ -50900,6 +50907,10 @@ class Brush extends AbstractComponent {
|
|
|
50900
50907
|
pos = this.eventPosToStagePos(e);
|
|
50901
50908
|
return pos.x > maxX || pos.x < minX || pos.y > maxY || pos.y < minY;
|
|
50902
50909
|
}
|
|
50910
|
+
_beforeBrushEvent(e) {
|
|
50911
|
+
var _a, _b;
|
|
50912
|
+
return null === (_b = (_a = this.attribute).beforeBrushChange) || void 0 === _b ? void 0 : _b.call(_a, e);
|
|
50913
|
+
}
|
|
50903
50914
|
_dispatchBrushEvent(operateType, e) {
|
|
50904
50915
|
this._dispatchEvent(operateType, {
|
|
50905
50916
|
operateMask: this._operatingMask,
|
|
@@ -53017,7 +53028,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
53017
53028
|
select: !0
|
|
53018
53029
|
};
|
|
53019
53030
|
|
|
53020
|
-
const version = "1.0.
|
|
53031
|
+
const version = "1.0.37-alpha.1";
|
|
53021
53032
|
preLoadAllModule();
|
|
53022
53033
|
if (isBrowserEnv()) {
|
|
53023
53034
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -50690,6 +50690,8 @@
|
|
|
50690
50690
|
class Brush extends AbstractComponent {
|
|
50691
50691
|
constructor(attributes, options) {
|
|
50692
50692
|
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, Brush.defaultAttributes, attributes)), this.name = "brush", this._activeBrushState = !1, this._activeDrawState = !1, this._cacheDrawPoints = [], this._activeMoveState = !1, this._operatingMaskMoveDx = 0, this._operatingMaskMoveDy = 0, this._operatingMaskMoveRangeX = [-1 / 0, 1 / 0], this._operatingMaskMoveRangeY = [-1 / 0, 1 / 0], this._brushMaskAABBBoundsDict = {}, this._firstUpdate = !0, this._onBrushStart = e => {
|
|
50693
|
+
if (!1 === this.attribute.interactive) return;
|
|
50694
|
+
if (!1 === this._beforeBrushEvent(e)) return;
|
|
50693
50695
|
const {
|
|
50694
50696
|
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES.updateTrigger,
|
|
50695
50697
|
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
@@ -50697,11 +50699,11 @@
|
|
|
50697
50699
|
} = this.attribute;
|
|
50698
50700
|
array(updateTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushingWithDelay)), array(endTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushEnd)), e.stopPropagation(), this._firstUpdate = !0, this._activeMoveState = brushMoved && this._isPosInBrushMask(e), this._activeDrawState = !this._activeMoveState, this._startPos = this.eventPosToStagePos(e), this._cacheDrawPoints = [this._startPos];
|
|
50699
50701
|
}, this._onBrushing = e => {
|
|
50700
|
-
this._outOfInteractiveRange(e) || (e.stopPropagation(), this._firstUpdate ? (this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e), this._firstUpdate = !1) : (this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e)));
|
|
50702
|
+
!1 !== this.attribute.interactive && !1 !== this._beforeBrushEvent(e) && (this._outOfInteractiveRange(e) || (e.stopPropagation(), this._firstUpdate ? (this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e), this._firstUpdate = !1) : (this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e))));
|
|
50701
50703
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
50702
|
-
this._releaseBrushUpdateEvents(), e.preventDefault(), this._activeDrawState && this._drawEnd(e), this._activeMoveState && this._moveEnd(e), this._activeDrawState = !1, this._activeMoveState = !1;
|
|
50704
|
+
!1 !== this.attribute.interactive && (this._releaseBrushUpdateEvents(), e.preventDefault(), this._activeDrawState && this._drawEnd(e), this._activeMoveState && this._moveEnd(e), this._activeDrawState = !1, this._activeMoveState = !1);
|
|
50703
50705
|
}, this._onBrushClear = e => {
|
|
50704
|
-
e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(exports.IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1;
|
|
50706
|
+
!1 !== this.attribute.interactive && !1 !== this._beforeBrushEvent(e) && (e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(exports.IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1);
|
|
50705
50707
|
};
|
|
50706
50708
|
}
|
|
50707
50709
|
_bindBrushEvents() {
|
|
@@ -50713,6 +50715,7 @@
|
|
|
50713
50715
|
array(trigger).forEach(t => this.stage.addEventListener(t, this._onBrushStart)), array(resetTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushClear));
|
|
50714
50716
|
}
|
|
50715
50717
|
_initDraw(e) {
|
|
50718
|
+
if (!1 === this.attribute.interactive) return;
|
|
50716
50719
|
const {
|
|
50717
50720
|
brushMode: brushMode
|
|
50718
50721
|
} = this.attribute,
|
|
@@ -50721,6 +50724,7 @@
|
|
|
50721
50724
|
}
|
|
50722
50725
|
_initMove(e) {
|
|
50723
50726
|
var _a, _b;
|
|
50727
|
+
if (!1 === this.attribute.interactive) return;
|
|
50724
50728
|
this._cacheMovePoint = this.eventPosToStagePos(e), this._operatingMaskMoveDx = null !== (_a = this._operatingMask.attribute.dx) && void 0 !== _a ? _a : 0, this._operatingMaskMoveDy = null !== (_b = this._operatingMask.attribute.dy) && void 0 !== _b ? _b : 0;
|
|
50725
50729
|
const {
|
|
50726
50730
|
interactiveRange: interactiveRange
|
|
@@ -50745,6 +50749,7 @@
|
|
|
50745
50749
|
}
|
|
50746
50750
|
_drawing(e) {
|
|
50747
50751
|
var _a;
|
|
50752
|
+
if (!1 === this.attribute.interactive) return;
|
|
50748
50753
|
const pos = this.eventPosToStagePos(e),
|
|
50749
50754
|
{
|
|
50750
50755
|
brushType: brushType,
|
|
@@ -50769,6 +50774,7 @@
|
|
|
50769
50774
|
(Math.abs(x2 - x1) > sizeThreshold || Math.abs(y1 - y2) > sizeThreshold) && (1 !== Object.keys(this._brushMaskAABBBoundsDict).length || this._activeBrushState ? this._dispatchBrushEvent(exports.IOperateType.drawing, e) : (this._activeBrushState = !0, this._dispatchBrushEvent(exports.IOperateType.brushActive, e)));
|
|
50770
50775
|
}
|
|
50771
50776
|
_moving(e) {
|
|
50777
|
+
if (!1 === this.attribute.interactive) return;
|
|
50772
50778
|
const startPos = this._cacheMovePoint,
|
|
50773
50779
|
pos = this.eventPosToStagePos(e);
|
|
50774
50780
|
if (pos.x === (null == startPos ? void 0 : startPos.x) && pos.y === (null == startPos ? void 0 : startPos.y)) return;
|
|
@@ -50782,6 +50788,7 @@
|
|
|
50782
50788
|
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this._dispatchBrushEvent(exports.IOperateType.moving, e);
|
|
50783
50789
|
}
|
|
50784
50790
|
_drawEnd(e) {
|
|
50791
|
+
if (!1 === this.attribute.interactive) return;
|
|
50785
50792
|
const {
|
|
50786
50793
|
removeOnClick = !0,
|
|
50787
50794
|
sizeThreshold = DEFAULT_SIZE_THRESHOLD
|
|
@@ -50799,7 +50806,7 @@
|
|
|
50799
50806
|
}
|
|
50800
50807
|
}
|
|
50801
50808
|
_moveEnd(e) {
|
|
50802
|
-
this._operatingMask && this._operatingMask.setAttribute("pickable", !1), this._dispatchBrushEvent(exports.IOperateType.moveEnd, e);
|
|
50809
|
+
!1 !== this.attribute.interactive && (this._operatingMask && this._operatingMask.setAttribute("pickable", !1), this._dispatchBrushEvent(exports.IOperateType.moveEnd, e));
|
|
50803
50810
|
}
|
|
50804
50811
|
render() {
|
|
50805
50812
|
this._bindBrushEvents();
|
|
@@ -50906,6 +50913,10 @@
|
|
|
50906
50913
|
pos = this.eventPosToStagePos(e);
|
|
50907
50914
|
return pos.x > maxX || pos.x < minX || pos.y > maxY || pos.y < minY;
|
|
50908
50915
|
}
|
|
50916
|
+
_beforeBrushEvent(e) {
|
|
50917
|
+
var _a, _b;
|
|
50918
|
+
return null === (_b = (_a = this.attribute).beforeBrushChange) || void 0 === _b ? void 0 : _b.call(_a, e);
|
|
50919
|
+
}
|
|
50909
50920
|
_dispatchBrushEvent(operateType, e) {
|
|
50910
50921
|
this._dispatchEvent(operateType, {
|
|
50911
50922
|
operateMask: this._operatingMask,
|
|
@@ -53023,7 +53034,7 @@
|
|
|
53023
53034
|
select: !0
|
|
53024
53035
|
};
|
|
53025
53036
|
|
|
53026
|
-
const version = "1.0.
|
|
53037
|
+
const version = "1.0.37-alpha.1";
|
|
53027
53038
|
preLoadAllModule();
|
|
53028
53039
|
if (isBrowserEnv()) {
|
|
53029
53040
|
loadBrowserEnv(container);
|