@visactor/vrender 0.19.13-alpha.1 → 0.19.13-beta.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 CHANGED
@@ -1,4 +1,4 @@
1
1
  import '@visactor/vrender-core';
2
- export declare const version = "0.19.13-alpha.1";
2
+ export declare const version = "0.19.13-beta.1";
3
3
  export * from '@visactor/vrender-core';
4
4
  export * from '@visactor/vrender-kits';
package/cjs/index.js CHANGED
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
21
21
 
22
22
  const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
23
23
 
24
- exports.version = "0.19.13-alpha.1", (0, vrender_core_1.preLoadAllModule)(), (0,
24
+ exports.version = "0.19.13-beta.1", (0, vrender_core_1.preLoadAllModule)(), (0,
25
25
  vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
26
26
  vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
27
27
  (0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.19.13-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();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.19.13-beta.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();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
package/dist/index.es.js CHANGED
@@ -12914,10 +12914,10 @@ class RichText extends Graphic {
12914
12914
  strokeOpacity: strokeOpacity
12915
12915
  }, config);
12916
12916
  }
12917
- doUpdateFrameCache(tc) {
12917
+ doUpdateFrameCache() {
12918
12918
  var _a;
12919
12919
  const {
12920
- textConfig: _tc = [],
12920
+ textConfig = [],
12921
12921
  maxWidth: maxWidth,
12922
12922
  maxHeight: maxHeight,
12923
12923
  width: width,
@@ -12931,8 +12931,7 @@ class RichText extends Graphic {
12931
12931
  singleLine: singleLine,
12932
12932
  disableAutoWrapLine: disableAutoWrapLine
12933
12933
  } = this.attribute,
12934
- paragraphs = [],
12935
- textConfig = null != tc ? tc : _tc;
12934
+ paragraphs = [];
12936
12935
  for (let i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
12937
12936
  const config = this.combinedStyleToCharacter(textConfig[i]),
12938
12937
  iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
@@ -17065,10 +17064,10 @@ class ShadowRootDrawItemInterceptorContribution {
17065
17064
  this.order = 1;
17066
17065
  }
17067
17066
  afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
17068
- return null == graphic.attribute.shadowRootIdx && graphic.shadowRoot && graphic.shadowRoot.attribute.shadowRootIdx < 0 || (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx || graphic.shadowRoot && graphic.shadowRoot.attribute.shadowRootIdx > 0) && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
17067
+ return (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
17069
17068
  }
17070
17069
  beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
17071
- return null == graphic.attribute.shadowRootIdx && graphic.shadowRoot && graphic.shadowRoot.attribute.shadowRootIdx > 0 || (graphic.attribute.shadowRootIdx < 0 || graphic.shadowRoot && graphic.shadowRoot.attribute.shadowRootIdx < 0) && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
17070
+ return graphic.attribute.shadowRootIdx < 0 && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
17072
17071
  }
17073
17072
  drawItem(graphic, renderService, drawContext, drawContribution, params) {
17074
17073
  if (!graphic.shadowRoot) return !1;
@@ -19400,6 +19399,7 @@ class Stage extends Group {
19400
19399
  throw new Error("暂不支持");
19401
19400
  }
19402
19401
  createLayer(canvasId, layerMode) {
19402
+ if ("released" === this.releaseStatus) return;
19403
19403
  const layer = this.layerService.createLayer(this, {
19404
19404
  main: !1,
19405
19405
  layerMode: layerMode,
@@ -19417,12 +19417,13 @@ class Stage extends Group {
19417
19417
  return this.removeChild(this.findChildByUid(ILayerId));
19418
19418
  }
19419
19419
  tryInitInteractiveLayer() {
19420
- this.supportInteractiveLayer && !this.interactiveLayer && (this.interactiveLayer = this.createLayer(), this.interactiveLayer.name = "_builtin_interactive", this.interactiveLayer.attribute.pickable = !1, this.nextFrameRenderLayerSet.add(this.interactiveLayer));
19420
+ "released" !== this.releaseStatus && this.supportInteractiveLayer && !this.interactiveLayer && (this.interactiveLayer = this.createLayer(), this.interactiveLayer.name = "_builtin_interactive", this.interactiveLayer.attribute.pickable = !1, this.nextFrameRenderLayerSet.add(this.interactiveLayer));
19421
19421
  }
19422
19422
  clearViewBox(color) {
19423
19423
  this.window.clearViewBox(color);
19424
19424
  }
19425
19425
  render(layers, params) {
19426
+ if ("released" === this.releaseStatus) return;
19426
19427
  this.ticker.start(), this.timeline.resume();
19427
19428
  const state = this.state;
19428
19429
  this.state = "rendering", this.layerService.prepareStageLayer(this), this._skipRender || (this.lastRenderparams = params, this.hooks.beforeRender.call(this), this._skipRender || (this.renderLayerList(this.children), this.combineLayersToWindow(), this.nextFrameRenderLayerSet.clear()), this.hooks.afterRender.call(this)), this.state = state, this._skipRender && this._skipRender++;
@@ -19446,6 +19447,7 @@ class Stage extends Group {
19446
19447
  }));
19447
19448
  }
19448
19449
  _doRenderInThisFrame() {
19450
+ if ("released" === this.releaseStatus) return;
19449
19451
  this.timeline.resume(), this.ticker.start();
19450
19452
  const state = this.state;
19451
19453
  this.state = "rendering", this.layerService.prepareStageLayer(this), this.nextFrameRenderLayerSet.size && !this._skipRender && (this.hooks.beforeRender.call(this), this._skipRender || (this.renderLayerList(Array.from(this.nextFrameRenderLayerSet.values()), this.lastRenderparams || {}), this.combineLayersToWindow(), this.nextFrameRenderLayerSet.clear()), this.hooks.afterRender.call(this)), this.state = state, this._skipRender && this._skipRender++;
@@ -19481,18 +19483,18 @@ class Stage extends Group {
19481
19483
  }
19482
19484
  resize(w, h) {
19483
19485
  let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19484
- this.window.hasSubView() || this.viewBox.setValue(this.viewBox.x1, this.viewBox.y1, this.viewBox.x1 + w, this.viewBox.y1 + h), this.window.resize(w, h), this.forEachChildren(c => {
19486
+ "released" !== this.releaseStatus && (this.window.hasSubView() || this.viewBox.setValue(this.viewBox.x1, this.viewBox.y1, this.viewBox.x1 + w, this.viewBox.y1 + h), this.window.resize(w, h), this.forEachChildren(c => {
19485
19487
  c.resize(w, h);
19486
- }), this.camera && this.option3d && this.set3dOptions(this.option3d), rerender && this.render();
19488
+ }), this.camera && this.option3d && this.set3dOptions(this.option3d), rerender && this.render());
19487
19489
  }
19488
19490
  resizeView(w, h) {
19489
19491
  let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
19490
- this.viewBox.setValue(this.viewBox.x1, this.viewBox.y1, this.viewBox.x1 + w, this.viewBox.y1 + h), this.forEachChildren(c => {
19492
+ "released" !== this.releaseStatus && (this.viewBox.setValue(this.viewBox.x1, this.viewBox.y1, this.viewBox.x1 + w, this.viewBox.y1 + h), this.forEachChildren(c => {
19491
19493
  c.resizeView(w, h);
19492
19494
  }), this.camera && (this.camera.params = Object.assign(Object.assign({}, this.camera.params), {
19493
19495
  right: this.width,
19494
19496
  bottom: this.height
19495
- })), rerender && this.render();
19497
+ })), rerender && this.render());
19496
19498
  }
19497
19499
  setViewBox(x, y, w, h, rerender) {
19498
19500
  let isRerender = !0;
@@ -19513,6 +19515,7 @@ class Stage extends Group {
19513
19515
  throw new Error("暂不支持");
19514
19516
  }
19515
19517
  pick(x, y) {
19518
+ if ("released" === this.releaseStatus) return;
19516
19519
  this.pickerService || (this.pickerService = container.get(PickerService));
19517
19520
  const result = this.pickerService.pick(this.children, new Point(x, y), {
19518
19521
  bounds: this.AABBBounds
@@ -19532,13 +19535,13 @@ class Stage extends Group {
19532
19535
  }
19533
19536
  setStage(stage) {}
19534
19537
  dirty(b, matrix) {
19535
- matrix && b.transformWithMatrix(matrix), this.dirtyBounds.empty() && this.dirtyBounds.setValue(b.x1, b.y1, b.x2, b.y2), this.dirtyBounds.union(b);
19538
+ "released" !== this.releaseStatus && (matrix && b.transformWithMatrix(matrix), this.dirtyBounds.empty() && this.dirtyBounds.setValue(b.x1, b.y1, b.x2, b.y2), this.dirtyBounds.union(b));
19536
19539
  }
19537
19540
  getLayer(name) {
19538
19541
  return this.children.filter(layer => layer.name === name)[0];
19539
19542
  }
19540
19543
  renderTo(window) {
19541
- this.forEachChildren((layer, i) => {
19544
+ "released" !== this.releaseStatus && this.forEachChildren((layer, i) => {
19542
19545
  layer.drawTo(window, {
19543
19546
  renderService: this.renderService,
19544
19547
  viewBox: window.getViewBox(),
@@ -19551,6 +19554,7 @@ class Stage extends Group {
19551
19554
  }
19552
19555
  renderToNewWindow() {
19553
19556
  let viewBox = arguments.length > 1 ? arguments[1] : undefined;
19557
+ if ("released" === this.releaseStatus) return;
19554
19558
  const window = container.get(VWindow),
19555
19559
  x1 = viewBox ? -viewBox.x1 : 0,
19556
19560
  y1 = viewBox ? -viewBox.y1 : 0,
@@ -19576,6 +19580,7 @@ class Stage extends Group {
19576
19580
  toCanvas() {
19577
19581
  let fullImage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
19578
19582
  let viewBox = arguments.length > 1 ? arguments[1] : undefined;
19583
+ if ("released" === this.releaseStatus) return;
19579
19584
  const c = this.renderToNewWindow(fullImage, viewBox).getNativeHandler();
19580
19585
  return c.nativeCanvas ? c.nativeCanvas : null;
19581
19586
  }
@@ -20279,356 +20284,6 @@ function flatten_simplify(points, tolerance, highestQuality) {
20279
20284
  return points = simplifyDouglasPeucker(points = highestQuality ? points : simplifyRadialDist(points, sqTolerance), sqTolerance);
20280
20285
  }
20281
20286
 
20282
- class EditModule {
20283
- constructor(container) {
20284
- this.handleKeyDown = e => {
20285
- "Delete" !== e.key && "Backspace" !== e.key || this.handleInput({
20286
- data: null,
20287
- type: "Backspace"
20288
- });
20289
- }, this.handleCompositionStart = () => {
20290
- const {
20291
- textConfig = []
20292
- } = this.currRt.attribute,
20293
- lastConfig = textConfig[this.cursorIndex];
20294
- textConfig.splice(this.cursorIndex + 1, 0, Object.assign(Object.assign({}, lastConfig), {
20295
- text: ""
20296
- })), this.isComposing = !0;
20297
- }, this.handleCompositionEnd = () => {
20298
- this.isComposing = !1;
20299
- const curIdx = this.cursorIndex + 1,
20300
- {
20301
- textConfig = []
20302
- } = this.currRt.attribute,
20303
- lastConfig = textConfig[curIdx];
20304
- textConfig.splice(curIdx, 1);
20305
- const text = lastConfig.text,
20306
- textList = Array.from(text.toString());
20307
- for (let i = 0; i < textList.length; i++) textConfig.splice(i + curIdx, 0, Object.assign(Object.assign({}, lastConfig), {
20308
- text: textList[i]
20309
- }));
20310
- this.currRt.setAttributes({
20311
- textConfig: textConfig
20312
- }), this.onChangeCbList.forEach(cb => {
20313
- cb(text, this.isComposing, this.cursorIndex + textList.length, this.currRt);
20314
- });
20315
- }, this.handleInput = ev => {
20316
- if (!this.currRt) return;
20317
- const str = ev.data || "\n",
20318
- {
20319
- textConfig = []
20320
- } = this.currRt.attribute;
20321
- let startIdx = this.selectionStartCursorIdx,
20322
- endIdx = this.cursorIndex;
20323
- startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), this.selectionStartCursorIdx = startIdx, this.cursorIndex = startIdx;
20324
- const lastConfig = textConfig[startIdx + (this.isComposing ? 1 : 0)];
20325
- let currConfig = lastConfig;
20326
- "Backspace" !== ev.type || this.isComposing ? (startIdx !== endIdx && textConfig.splice(startIdx + 1, endIdx - startIdx), this.isComposing || (currConfig = Object.assign(Object.assign({}, lastConfig), {
20327
- text: ""
20328
- }), startIdx += 1, textConfig.splice(startIdx, 0, currConfig)), currConfig.text = str) : startIdx !== endIdx ? textConfig.splice(startIdx + 1, endIdx - startIdx) : (textConfig.splice(startIdx, 1), startIdx -= 1), this.currRt.setAttributes({
20329
- textConfig: textConfig
20330
- }), this.isComposing ? this.onInputCbList.forEach(cb => {
20331
- cb(str, this.isComposing, startIdx, this.currRt);
20332
- }) : this.onChangeCbList.forEach(cb => {
20333
- cb(str, this.isComposing, startIdx, this.currRt);
20334
- });
20335
- }, this.container = null != container ? container : document.body;
20336
- const textAreaDom = document.createElement("textarea");
20337
- textAreaDom.autocomplete = "off", textAreaDom.innerText = "", this.applyStyle(textAreaDom), this.container.append(textAreaDom), this.textAreaDom = textAreaDom, this.isComposing = !1, this.onInputCbList = [], this.onChangeCbList = [];
20338
- }
20339
- onInput(cb) {
20340
- this.onInputCbList.push(cb);
20341
- }
20342
- onChange(cb) {
20343
- this.onChangeCbList.push(cb);
20344
- }
20345
- applyStyle(textAreaDom) {
20346
- textAreaDom.setAttribute("style", "width: 100px; height: 30px; left: 0; position: absolute; z-index: -1; outline: none; resize: none; border: none; overflow: hidden; color: transparent; user-select: none; caret-color: transparent;background-color: transparent;"), textAreaDom.addEventListener("input", this.handleInput), textAreaDom.addEventListener("compositionstart", this.handleCompositionStart), textAreaDom.addEventListener("compositionend", this.handleCompositionEnd), window.addEventListener("keydown", this.handleKeyDown);
20347
- }
20348
- moveTo(x, y, rt, cursorIndex, selectionStartCursorIdx) {
20349
- this.textAreaDom.style.left = `${x}px`, this.textAreaDom.style.top = `${y}px`, setTimeout(() => {
20350
- this.textAreaDom.focus(), this.textAreaDom.setSelectionRange(0, 0);
20351
- }), this.currRt = rt, this.cursorIndex = cursorIndex, this.selectionStartCursorIdx = selectionStartCursorIdx;
20352
- }
20353
- release() {
20354
- this.textAreaDom.removeEventListener("input", this.handleInput), this.textAreaDom.removeEventListener("compositionstart", this.handleCompositionStart), this.textAreaDom.removeEventListener("compositionend", this.handleCompositionEnd), window.removeEventListener("keydown", this.handleKeyDown);
20355
- }
20356
- }
20357
-
20358
- class RichTextEditPlugin {
20359
- constructor() {
20360
- this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.pointerDown = !1, this.handleInput = (text, isComposing, cursorIdx, rt) => {
20361
- const p = this.getPointByColumnIdx(cursorIdx, rt);
20362
- this.hideSelection(), this.setCursor(p.x, p.y1, p.y2);
20363
- }, this.handleChange = (text, isComposing, cursorIdx, rt) => {
20364
- const p = this.getPointByColumnIdx(cursorIdx, rt);
20365
- this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx, this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection();
20366
- }, this.handleMove = e => {
20367
- this.isRichtext(e) && (this.handleEnter(e), e.target.once("pointerleave", this.handleLeave), this.showSelection(e));
20368
- }, this.handlePointerDown = e => {
20369
- this.editing ? this.onFocus(e) : this.deFocus(e), this.applyUpdate(), this.pointerDown = !0;
20370
- }, this.handlePointerUp = e => {
20371
- this.pointerDown = !1;
20372
- }, this.handleEnter = e => {
20373
- this.editing = !0, this.pluginService.stage.setCursor("text");
20374
- }, this.handleLeave = e => {
20375
- this.editing = !1, this.pluginService.stage.setCursor("default");
20376
- };
20377
- }
20378
- activate(context) {
20379
- this.pluginService = context, this.editModule = new EditModule(), context.stage.on("pointermove", this.handleMove), context.stage.on("pointerdown", this.handlePointerDown), context.stage.on("pointerup", this.handlePointerUp), context.stage.on("pointerleave", this.handlePointerUp), this.editModule.onInput(this.handleInput), this.editModule.onChange(this.handleChange);
20380
- }
20381
- showSelection(e) {
20382
- const cache = e.target.getFrameCache();
20383
- if (cache && this.editBg) {
20384
- if (this.pointerDown) {
20385
- let p0 = this.lastPoint,
20386
- p1 = this.getEventPosition(e),
20387
- line1Info = this.getLineByPoint(cache, p1);
20388
- const column1 = this.getColumnByLinePoint(line1Info, p1),
20389
- y1 = line1Info.top,
20390
- y2 = line1Info.top + line1Info.height;
20391
- let x = column1.left + column1.width,
20392
- cursorIndex = this.getColumnIndex(cache, column1);
20393
- p1.x < column1.left + column1.width / 2 && (x = column1.left, cursorIndex -= 1), p1.x = x, p1.y = (y1 + y2) / 2;
20394
- let line0Info = this.getLineByPoint(cache, p0);
20395
- if ((p0.y > p1.y || p0.y === p1.y && p0.x > p1.x) && ([p0, p1] = [p1, p0], [line1Info, line0Info] = [line0Info, line1Info]), this.editBg.removeAllChild(), line0Info === line1Info) {
20396
- const column0 = this.getColumnByLinePoint(line0Info, p0);
20397
- this.editBg.setAttributes({
20398
- x: p0.x,
20399
- y: line0Info.top,
20400
- width: p1.x - p0.x,
20401
- height: column0.height,
20402
- fill: "#336df4",
20403
- fillOpacity: .2
20404
- });
20405
- } else {
20406
- this.editBg.setAttributes({
20407
- x: 0,
20408
- y: line0Info.top,
20409
- width: 0,
20410
- height: 0
20411
- });
20412
- const startIdx = cache.lines.findIndex(item => item === line0Info),
20413
- endIdx = cache.lines.findIndex(item => item === line1Info);
20414
- let y = 0;
20415
- for (let i = startIdx; i <= endIdx; i++) {
20416
- const line = cache.lines[i];
20417
- if (i === startIdx) {
20418
- const p = line.paragraphs[line.paragraphs.length - 1];
20419
- this.editBg.add(createRect({
20420
- x: p0.x,
20421
- y: y,
20422
- width: p.left + p.width - p0.x,
20423
- height: line.height,
20424
- fill: "#336df4",
20425
- fillOpacity: .2
20426
- }));
20427
- } else if (i === endIdx) {
20428
- const p = line.paragraphs[0];
20429
- this.editBg.add(createRect({
20430
- x: p.left,
20431
- y: y,
20432
- width: p1.x - p.left,
20433
- height: line.height,
20434
- fill: "#336df4",
20435
- fillOpacity: .2
20436
- }));
20437
- } else {
20438
- const p0 = line.paragraphs[0],
20439
- p1 = line.paragraphs[line.paragraphs.length - 1];
20440
- this.editBg.add(createRect({
20441
- x: p0.left,
20442
- y: y,
20443
- width: p1.left + p1.width - p0.left,
20444
- height: line.height,
20445
- fill: "#336df4",
20446
- fillOpacity: .2
20447
- }));
20448
- }
20449
- y += line.height;
20450
- }
20451
- }
20452
- this.curCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1 + 2, y2 - 2, e.target);
20453
- }
20454
- this.applyUpdate();
20455
- }
20456
- }
20457
- hideSelection() {
20458
- this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
20459
- fill: "transparent"
20460
- }));
20461
- }
20462
- isRichtext(e) {
20463
- return !(!e.target || "richtext" !== e.target.type);
20464
- }
20465
- getEventPosition(e) {
20466
- const p = this.pluginService.stage.eventPointTransform(e),
20467
- p1 = {
20468
- x: 0,
20469
- y: 0
20470
- };
20471
- return e.target.globalTransMatrix.transformPoint(p, p1), p1;
20472
- }
20473
- getLineByPoint(cache, p1) {
20474
- let lineInfo = cache.lines[0];
20475
- for (let i = 0; i < cache.lines.length && !(lineInfo.top <= p1.y && lineInfo.top + lineInfo.height >= p1.y); i++) lineInfo = cache.lines[i + 1];
20476
- return lineInfo;
20477
- }
20478
- getColumnByLinePoint(lineInfo, p1) {
20479
- let columnInfo = lineInfo.paragraphs[0];
20480
- for (let i = 0; i < lineInfo.paragraphs.length && !(columnInfo.left <= p1.x && columnInfo.left + columnInfo.width >= p1.x); i++) columnInfo = lineInfo.paragraphs[i];
20481
- return columnInfo;
20482
- }
20483
- onFocus(e) {
20484
- this.deFocus(e);
20485
- const target = e.target;
20486
- this.tryUpdateRichtext(target);
20487
- const shadowRoot = target.attachShadow();
20488
- shadowRoot.setAttributes({
20489
- shadowRootIdx: -1
20490
- });
20491
- const cache = target.getFrameCache();
20492
- if (!cache) return;
20493
- if (!this.editLine) {
20494
- const line = createLine({
20495
- x: 0,
20496
- y: 0,
20497
- lineWidth: 1,
20498
- stroke: "black"
20499
- });
20500
- line.animate().to({
20501
- opacity: 1
20502
- }, 10, "linear").wait(700).to({
20503
- opacity: 0
20504
- }, 10, "linear").wait(700).loop(1 / 0), this.editLine = line;
20505
- const g = createGroup({
20506
- x: 0,
20507
- y: 0,
20508
- width: 0,
20509
- height: 0
20510
- });
20511
- this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
20512
- }
20513
- const p1 = this.getEventPosition(e),
20514
- lineInfo = this.getLineByPoint(cache, p1);
20515
- if (lineInfo) {
20516
- const columnInfo = this.getColumnByLinePoint(lineInfo, p1);
20517
- if (!columnInfo) return;
20518
- let y1 = lineInfo.top,
20519
- y2 = lineInfo.top + lineInfo.height,
20520
- x = columnInfo.left + columnInfo.width;
20521
- y1 += 2, y2 -= 2;
20522
- let cursorIndex = this.getColumnIndex(cache, columnInfo);
20523
- p1.x < columnInfo.left + columnInfo.width / 2 && (x = columnInfo.left, cursorIndex -= 1), this.lastPoint = {
20524
- x: x,
20525
- y: (y1 + y2) / 2
20526
- }, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
20527
- }
20528
- }
20529
- getPointByColumnIdx(idx, rt) {
20530
- const cache = rt.getFrameCache(),
20531
- {
20532
- lineInfo: lineInfo,
20533
- columnInfo: columnInfo
20534
- } = this.getColumnByIndex(cache, idx);
20535
- let y1 = lineInfo.top,
20536
- y2 = lineInfo.top + lineInfo.height;
20537
- return y1 += 2, y2 -= 2, {
20538
- x: columnInfo.left + columnInfo.width,
20539
- y1: y1,
20540
- y2: y2
20541
- };
20542
- }
20543
- getColumnIndex(cache, cInfo) {
20544
- let inputIndex = -1;
20545
- for (let i = 0; i < cache.lines.length; i++) {
20546
- const line = cache.lines[i];
20547
- for (let j = 0; j < line.paragraphs.length; j++) if (inputIndex++, cInfo === line.paragraphs[j]) return inputIndex;
20548
- }
20549
- return -1;
20550
- }
20551
- getColumnByIndex(cache, index) {
20552
- let inputIndex = -1;
20553
- for (let i = 0; i < cache.lines.length; i++) {
20554
- const lineInfo = cache.lines[i];
20555
- for (let j = 0; j < lineInfo.paragraphs.length; j++) {
20556
- const columnInfo = lineInfo.paragraphs[j];
20557
- if (inputIndex++, inputIndex === index) return {
20558
- lineInfo: lineInfo,
20559
- columnInfo: columnInfo
20560
- };
20561
- }
20562
- }
20563
- return null;
20564
- }
20565
- setCursorAndTextArea(x, y1, y2, rt) {
20566
- this.editLine.setAttributes({
20567
- points: [{
20568
- x: x,
20569
- y: y1
20570
- }, {
20571
- x: x,
20572
- y: y2
20573
- }]
20574
- });
20575
- const out = {
20576
- x: 0,
20577
- y: 0
20578
- };
20579
- rt.globalTransMatrix.getInverse().transformPoint({
20580
- x: x,
20581
- y: y1
20582
- }, out);
20583
- const {
20584
- left: left,
20585
- top: top
20586
- } = this.pluginService.stage.window.getBoundingClientRect();
20587
- out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
20588
- }
20589
- setCursor(x, y1, y2) {
20590
- this.editLine.setAttributes({
20591
- points: [{
20592
- x: x,
20593
- y: y1
20594
- }, {
20595
- x: x,
20596
- y: y2
20597
- }]
20598
- });
20599
- }
20600
- applyUpdate() {
20601
- this.pluginService.stage.renderNextFrame();
20602
- }
20603
- deFocus(e) {
20604
- e.target.detachShadow(), this.editLine && (this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null);
20605
- }
20606
- splitText(text) {
20607
- return Array.from(text);
20608
- }
20609
- tryUpdateRichtext(richtext) {
20610
- if (!richtext.getFrameCache().lines.every(line => line.paragraphs.every(item => !(item.text && isString$1(item.text) && this.splitText(item.text).length > 1)))) {
20611
- const tc = [];
20612
- richtext.attribute.textConfig.forEach(item => {
20613
- const textList = this.splitText(item.text.toString());
20614
- if (isString$1(item.text) && textList.length > 1) for (let i = 0; i < textList.length; i++) {
20615
- const t = textList[i];
20616
- tc.push(Object.assign(Object.assign({}, item), {
20617
- text: t
20618
- }));
20619
- } else tc.push(item);
20620
- }), richtext.doUpdateFrameCache(tc);
20621
- }
20622
- }
20623
- onSelect() {}
20624
- deactivate(context) {
20625
- context.stage.off("pointermove", this.handleMove), context.stage.off("pointerdown", this.handlePointerDown), context.stage.off("pointerup", this.handlePointerUp), context.stage.off("pointerleave", this.handlePointerUp);
20626
- }
20627
- release() {
20628
- this.editModule.release();
20629
- }
20630
- }
20631
-
20632
20287
  class DefaultGraphicAllocate {
20633
20288
  constructor() {
20634
20289
  this.pools = [];
@@ -26266,20 +25921,13 @@ try {
26266
25921
  } catch (err) {}
26267
25922
  function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
26268
25923
  const dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
26269
- if (canvasIdLists.forEach((id, i) => {
25924
+ canvasIdLists.forEach((id, i) => {
26270
25925
  let _canvas;
26271
25926
  offscreen ? _canvas = lynx.createOffscreenCanvas() : (_canvas = ng ? lynx.createCanvasNG(id) : lynx.createCanvas(id), ng && _canvas.attachToCanvasView(id)), _canvas.width = domref.width * dpr, _canvas.height = domref.height * dpr;
26272
25927
  const ctx = _canvas.getContext("2d"),
26273
25928
  canvas = new CanvasWrapEnableWH(_canvas, ctx, dpr, domref.width, domref.height, id);
26274
- canvasMap.set(id, canvas), i > freeCanvasIdx && freeCanvasList.push(canvas);
26275
- }), !freeCanvasList.length && lynx.createOffscreenCanvas) {
26276
- const _canvas = lynx.createOffscreenCanvas();
26277
- _canvas.width = domref.width * dpr, _canvas.height = domref.height * dpr;
26278
- const ctx = _canvas.getContext("2d"),
26279
- id = Math.random().toString(),
26280
- canvas = new CanvasWrapEnableWH(_canvas, ctx, dpr, domref.width, domref.height, id);
26281
- canvasMap.set(id, canvas), freeCanvasList.push(canvas);
26282
- }
25929
+ canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
25930
+ });
26283
25931
  }
26284
25932
  function createImageElement(src) {
26285
25933
  let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
@@ -28946,7 +28594,7 @@ const registerWrapText = _registerWrapText;
28946
28594
 
28947
28595
  const roughModule = _roughModule;
28948
28596
 
28949
- const version = "0.19.13-alpha.1";
28597
+ const version = "0.19.13-beta.1";
28950
28598
  preLoadAllModule();
28951
28599
  if (isBrowserEnv()) {
28952
28600
  loadBrowserEnv(container);
@@ -28973,4 +28621,4 @@ registerSymbol();
28973
28621
  registerText();
28974
28622
  registerWrapText();
28975
28623
 
28976
- export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageBackgroundRenderContribution, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache$1 as calcLineCache, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawPathProxy, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, getAttributeFromDefaultAttrList, getConicGradientAt, getContextFont, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiply, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$2 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, roughModule, runFill, runStroke, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
28624
+ export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageBackgroundRenderContribution, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache$1 as calcLineCache, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawPathProxy, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, getAttributeFromDefaultAttrList, getConicGradientAt, getContextFont, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiply, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$2 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, roughModule, runFill, runStroke, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };