@visactor/vrender-kits 1.1.0-alpha.26 → 1.1.0-alpha.28

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.
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const vrender_core_1 = require("@visactor/vrender-core");
8
8
 
9
- exports.GIFIMAGE_NUMBER_TYPE = vrender_core_1.Generator.GenAutoIncrementId(), exports.LOTTIE_NUMBER_TYPE = vrender_core_1.Generator.GenAutoIncrementId();
9
+ exports.GIFIMAGE_NUMBER_TYPE = (0, vrender_core_1.genNumberType)(), exports.LOTTIE_NUMBER_TYPE = (0,
10
+ vrender_core_1.genNumberType)();
10
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/constants.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AAEtC,QAAA,oBAAoB,GAAG,wBAAS,CAAC,kBAAkB,EAAE,CAAC;AACtD,QAAA,kBAAkB,GAAG,wBAAS,CAAC,kBAAkB,EAAE,CAAC","file":"constants.js","sourcesContent":["import { Generator } from '@visactor/vrender-core';\n\nexport const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();\nexport const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();\n"]}
1
+ {"version":3,"sources":["../src/graphic/constants.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAE1C,QAAA,oBAAoB,GAAG,IAAA,4BAAa,GAAE,CAAC;AACvC,QAAA,kBAAkB,GAAG,IAAA,4BAAa,GAAE,CAAC","file":"constants.js","sourcesContent":["import { genNumberType } from '@visactor/vrender-core';\n\nexport const GIFIMAGE_NUMBER_TYPE = genNumberType();\nexport const LOTTIE_NUMBER_TYPE = genNumberType();\n"]}
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CustomPath2D as CustomPath2D$1, ARC_NUMBER_TYPE as ARC_NUMBER_TYPE$1, drawArcPath as drawArcPath$2, DefaultCanvasAreaRender as DefaultCanvasAreaRender$1, drawAreaSegments as drawAreaSegments$1, CIRCLE_NUMBER_TYPE as CIRCLE_NUMBER_TYPE$1, LINE_NUMBER_TYPE as LINE_NUMBER_TYPE$1, PATH_NUMBER_TYPE as PATH_NUMBER_TYPE$1, RECT_NUMBER_TYPE as RECT_NUMBER_TYPE$1, SYMBOL_NUMBER_TYPE as SYMBOL_NUMBER_TYPE$1, DefaultCanvasCircleRender as DefaultCanvasCircleRender$1, GraphicRender as GraphicRender$1, DefaultCanvasRectRender as DefaultCanvasRectRender$1, DefaultCanvasPathRender as DefaultCanvasPathRender$1, DefaultCanvasSymbolRender as DefaultCanvasSymbolRender$1, DefaultCanvasLineRender as DefaultCanvasLineRender$1, AreaRenderContribution as AreaRenderContribution$1, DefaultCanvasArcRender as DefaultCanvasArcRender$1, DefaultFillStyle as DefaultFillStyle$1, DefaultStrokeStyle as DefaultStrokeStyle$1, DefaultTextStyle as DefaultTextStyle$1, matrixAllocate as matrixAllocate$1, transformMat4 as transformMat4$1, application as application$1, createColor as createColor$1, getScaledStroke as getScaledStroke$1, createConicalGradient, BaseCanvas, CanvasFactory, Context2dFactory, DefaultPickService, canvasAllocate as canvasAllocate$1, GROUP_NUMBER_TYPE as GROUP_NUMBER_TYPE$1, bindContributionProvider as bindContributionProvider$1, ArcRender as ArcRender$1, BaseRender as BaseRender$1, mat4Allocate as mat4Allocate$1, ARC3D_NUMBER_TYPE as ARC3D_NUMBER_TYPE$1, Arc3dRender as Arc3dRender$1, AREA_NUMBER_TYPE as AREA_NUMBER_TYPE$1, AreaRender as AreaRender$1, CircleRender as CircleRender$1, GLYPH_NUMBER_TYPE as GLYPH_NUMBER_TYPE$1, GlyphRender as GlyphRender$1, IMAGE_NUMBER_TYPE as IMAGE_NUMBER_TYPE$1, ImageRender as ImageRender$1, LineRender as LineRender$1, RectRender as RectRender$1, PathRender as PathRender$1, POLYGON_NUMBER_TYPE as POLYGON_NUMBER_TYPE$1, PolygonRender as PolygonRender$1, PYRAMID3D_NUMBER_TYPE as PYRAMID3D_NUMBER_TYPE$1, Pyramid3dRender as Pyramid3dRender$1, RECT3D_NUMBER_TYPE as RECT3D_NUMBER_TYPE$1, Rect3DRender as Rect3DRender$1, RICHTEXT_NUMBER_TYPE as RICHTEXT_NUMBER_TYPE$1, RichTextRender as RichTextRender$1, STAR_NUMBER_TYPE as STAR_NUMBER_TYPE$1, StarRender as StarRender$1, SymbolRender as SymbolRender$1, TEXT_NUMBER_TYPE as TEXT_NUMBER_TYPE$1, textLayoutOffsetY as textLayoutOffsetY$1, textDrawOffsetX as textDrawOffsetX$1, TextRender as TextRender$1, Generator as Generator$1, DrawContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, BaseWindowHandlerContribution, WindowHandlerContribution, BaseEnvContribution, EnvContribution, getLegacyBindingContext as getLegacyBindingContext$1, EmptyContext2d as EmptyContext2d$1, rafBasedSto, RafBasedSTO, Image as Image$2, ResourceLoader as ResourceLoader$1, DefaultRectRenderContribution as DefaultRectRenderContribution$1, BaseRenderContributionTime as BaseRenderContributionTime$1, DefaultCanvasImageRender as DefaultCanvasImageRender$1, getTheme as getTheme$1, ImageRenderContribution as ImageRenderContribution$1, graphicCreator as graphicCreator$1, configureRuntimeApplicationForApp, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, getRuntimeInstallerBindingContext, installRuntimePickersToApp, getRuntimeInstallerGlobal, refreshRuntimeInstallerContributions, registerArcGraphic as registerArcGraphic$1, arcModule as arcModule$1, registerArc3dGraphic as registerArc3dGraphic$1, arc3dModule as arc3dModule$1, registerAreaGraphic as registerAreaGraphic$1, areaModule as areaModule$1, registerCircleGraphic as registerCircleGraphic$1, circleModule as circleModule$1, registerGlyphGraphic as registerGlyphGraphic$1, glyphModule as glyphModule$1, registerGroupGraphic as registerGroupGraphic$1, registerImageGraphic as registerImageGraphic$1, imageModule as imageModule$1, registerLineGraphic as registerLineGraphic$1, lineModule as lineModule$1, registerPathGraphic as registerPathGraphic$1, pathModule as pathModule$1, registerPolygonGraphic as registerPolygonGraphic$1, polygonModule as polygonModule$1, registerPyramid3dGraphic as registerPyramid3dGraphic$1, pyramid3dModule as pyramid3dModule$1, registerRectGraphic as registerRectGraphic$1, rectModule as rectModule$1, registerRect3dGraphic as registerRect3dGraphic$1, rect3dModule as rect3dModule$1, registerRichtextGraphic as registerRichtextGraphic$1, richtextModule as richtextModule$1, registerShadowRootGraphic as registerShadowRootGraphic$1, registerStarGraphic as registerStarGraphic$1, starModule as starModule$1, registerSymbolGraphic as registerSymbolGraphic$1, symbolModule as symbolModule$1, registerTextGraphic as registerTextGraphic$1, textModule as textModule$1, registerWrapTextGraphic as registerWrapTextGraphic$1, Group as Group$1, clock, WILDCARD, vglobal, NOWORK_ANIMATE_ATTR as NOWORK_ANIMATE_ATTR$1, Rect as Rect$1, RectRenderContribution as RectRenderContribution$1 } from '@visactor/vrender-core';
1
+ import { CustomPath2D as CustomPath2D$1, ARC_NUMBER_TYPE as ARC_NUMBER_TYPE$1, drawArcPath as drawArcPath$2, DefaultCanvasAreaRender as DefaultCanvasAreaRender$1, drawAreaSegments as drawAreaSegments$1, CIRCLE_NUMBER_TYPE as CIRCLE_NUMBER_TYPE$1, LINE_NUMBER_TYPE as LINE_NUMBER_TYPE$1, PATH_NUMBER_TYPE as PATH_NUMBER_TYPE$1, RECT_NUMBER_TYPE as RECT_NUMBER_TYPE$1, SYMBOL_NUMBER_TYPE as SYMBOL_NUMBER_TYPE$1, DefaultCanvasCircleRender as DefaultCanvasCircleRender$1, GraphicRender as GraphicRender$1, DefaultCanvasRectRender as DefaultCanvasRectRender$1, DefaultCanvasPathRender as DefaultCanvasPathRender$1, DefaultCanvasSymbolRender as DefaultCanvasSymbolRender$1, DefaultCanvasLineRender as DefaultCanvasLineRender$1, AreaRenderContribution as AreaRenderContribution$1, DefaultCanvasArcRender as DefaultCanvasArcRender$1, DefaultFillStyle as DefaultFillStyle$1, DefaultStrokeStyle as DefaultStrokeStyle$1, DefaultTextStyle as DefaultTextStyle$1, matrixAllocate as matrixAllocate$1, transformMat4 as transformMat4$1, application as application$1, createColor as createColor$1, getScaledStroke as getScaledStroke$1, createConicalGradient, BaseCanvas, CanvasFactory, Context2dFactory, DefaultPickService, canvasAllocate as canvasAllocate$1, GROUP_NUMBER_TYPE as GROUP_NUMBER_TYPE$1, bindContributionProvider as bindContributionProvider$1, ArcRender as ArcRender$1, BaseRender as BaseRender$1, mat4Allocate as mat4Allocate$1, ARC3D_NUMBER_TYPE as ARC3D_NUMBER_TYPE$1, Arc3dRender as Arc3dRender$1, AREA_NUMBER_TYPE as AREA_NUMBER_TYPE$1, AreaRender as AreaRender$1, CircleRender as CircleRender$1, GLYPH_NUMBER_TYPE as GLYPH_NUMBER_TYPE$1, GlyphRender as GlyphRender$1, IMAGE_NUMBER_TYPE as IMAGE_NUMBER_TYPE$1, ImageRender as ImageRender$1, LineRender as LineRender$1, RectRender as RectRender$1, PathRender as PathRender$1, POLYGON_NUMBER_TYPE as POLYGON_NUMBER_TYPE$1, PolygonRender as PolygonRender$1, PYRAMID3D_NUMBER_TYPE as PYRAMID3D_NUMBER_TYPE$1, Pyramid3dRender as Pyramid3dRender$1, RECT3D_NUMBER_TYPE as RECT3D_NUMBER_TYPE$1, Rect3DRender as Rect3DRender$1, RICHTEXT_NUMBER_TYPE as RICHTEXT_NUMBER_TYPE$1, RichTextRender as RichTextRender$1, STAR_NUMBER_TYPE as STAR_NUMBER_TYPE$1, StarRender as StarRender$1, SymbolRender as SymbolRender$1, TEXT_NUMBER_TYPE as TEXT_NUMBER_TYPE$1, textLayoutOffsetY as textLayoutOffsetY$1, textDrawOffsetX as textDrawOffsetX$1, TextRender as TextRender$1, genNumberType as genNumberType$1, DrawContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, BaseWindowHandlerContribution, WindowHandlerContribution, BaseEnvContribution, Generator as Generator$1, EnvContribution, getLegacyBindingContext as getLegacyBindingContext$1, EmptyContext2d as EmptyContext2d$1, rafBasedSto, RafBasedSTO, Image as Image$2, ResourceLoader as ResourceLoader$1, DefaultRectRenderContribution as DefaultRectRenderContribution$1, BaseRenderContributionTime as BaseRenderContributionTime$1, DefaultCanvasImageRender as DefaultCanvasImageRender$1, getTheme as getTheme$1, ImageRenderContribution as ImageRenderContribution$1, graphicCreator as graphicCreator$1, configureRuntimeApplicationForApp, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, getRuntimeInstallerBindingContext, installRuntimePickersToApp, getRuntimeInstallerGlobal, refreshRuntimeInstallerContributions, registerArcGraphic as registerArcGraphic$1, arcModule as arcModule$1, registerArc3dGraphic as registerArc3dGraphic$1, arc3dModule as arc3dModule$1, registerAreaGraphic as registerAreaGraphic$1, areaModule as areaModule$1, registerCircleGraphic as registerCircleGraphic$1, circleModule as circleModule$1, registerGlyphGraphic as registerGlyphGraphic$1, glyphModule as glyphModule$1, registerGroupGraphic as registerGroupGraphic$1, registerImageGraphic as registerImageGraphic$1, imageModule as imageModule$1, registerLineGraphic as registerLineGraphic$1, lineModule as lineModule$1, registerPathGraphic as registerPathGraphic$1, pathModule as pathModule$1, registerPolygonGraphic as registerPolygonGraphic$1, polygonModule as polygonModule$1, registerPyramid3dGraphic as registerPyramid3dGraphic$1, pyramid3dModule as pyramid3dModule$1, registerRectGraphic as registerRectGraphic$1, rectModule as rectModule$1, registerRect3dGraphic as registerRect3dGraphic$1, rect3dModule as rect3dModule$1, registerRichtextGraphic as registerRichtextGraphic$1, richtextModule as richtextModule$1, registerShadowRootGraphic as registerShadowRootGraphic$1, registerStarGraphic as registerStarGraphic$1, starModule as starModule$1, registerSymbolGraphic as registerSymbolGraphic$1, symbolModule as symbolModule$1, registerTextGraphic as registerTextGraphic$1, textModule as textModule$1, registerWrapTextGraphic as registerWrapTextGraphic$1, Group as Group$1, clock, WILDCARD, vglobal, NOWORK_ANIMATE_ATTR as NOWORK_ANIMATE_ATTR$1, Rect as Rect$1, RectRenderContribution as RectRenderContribution$1 } from '@visactor/vrender-core';
2
2
  import { Matrix, Logger, getContextFont, pi2, pi, isFunction, AABBBounds, isNumber, isArray, isValidNumber, isString, EventEmitter, tau, halfPi as halfPi$1, degreeToRadian, Point, PointService, abs, max, min, atan2, epsilon, isPointInLine, isBoolean, isObject, cos, sin, pointAt, sqrt, Color, OBBBounds, isEqual, isNil, normalTransform, isValidUrl, isBase64, rotatePoint, transformBoundsWithMatrix, clampAngleByRadian, asin, arrayEqual, acos } from '@visactor/vutils';
3
3
 
4
4
  function resolveContainerBinding(container, serviceIdentifier) {
@@ -4613,8 +4613,8 @@ function bindTextCanvasPickerContribution(container) {
4613
4613
  container.bind(CanvasPickerContribution).toService(CanvasTextPicker);
4614
4614
  }
4615
4615
 
4616
- const GIFIMAGE_NUMBER_TYPE = Generator$1.GenAutoIncrementId();
4617
- const LOTTIE_NUMBER_TYPE = Generator$1.GenAutoIncrementId();
4616
+ const GIFIMAGE_NUMBER_TYPE = genNumberType$1();
4617
+ const LOTTIE_NUMBER_TYPE = genNumberType$1();
4618
4618
 
4619
4619
  class DefaultCanvasGifImagePicker {
4620
4620
  constructor() {
@@ -13525,10 +13525,198 @@ const builtInSymbolStrMap = {
13525
13525
  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"
13526
13526
  };
13527
13527
 
13528
+ function getAllMatches(string, regex) {
13529
+ const matches = [];
13530
+ let match = regex.exec(string);
13531
+ for (; match;) {
13532
+ const allmatches = [];
13533
+ allmatches.startIndex = regex.lastIndex - match[0].length;
13534
+ const len = match.length;
13535
+ for (let index = 0; index < len; index++) allmatches.push(match[index]);
13536
+ matches.push(allmatches), match = regex.exec(string);
13537
+ }
13538
+ return matches;
13539
+ }
13540
+
13541
+ class XmlNode {
13542
+ constructor(tagname) {
13543
+ this.tagname = tagname, this.child = [], this[":@"] = {};
13544
+ }
13545
+ add(key, val) {
13546
+ "__proto__" === key && (key = "#__proto__"), this.child.push({
13547
+ [key]: val
13548
+ });
13549
+ }
13550
+ addChild(node) {
13551
+ "__proto__" === node.tagname && (node.tagname = "#__proto__"), node[":@"] && Object.keys(node[":@"]).length > 0 ? this.child.push({
13552
+ [node.tagname]: node.child,
13553
+ ":@": node[":@"]
13554
+ }) : this.child.push({
13555
+ [node.tagname]: node.child
13556
+ });
13557
+ }
13558
+ }
13559
+ function findClosingIndex(xmlData, str, i, errMsg) {
13560
+ const closingIndex = xmlData.indexOf(str, i);
13561
+ if (-1 === closingIndex) throw new Error(errMsg);
13562
+ return closingIndex + str.length - 1;
13563
+ }
13564
+ function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
13565
+ let attrBoundary,
13566
+ tagExp = "";
13567
+ for (let index = i; index < xmlData.length; index++) {
13568
+ let ch = xmlData[index];
13569
+ if (attrBoundary) ch === attrBoundary && (attrBoundary = "");else if ('"' === ch || "'" === ch) attrBoundary = ch;else if (ch === closingChar[0]) {
13570
+ if (!closingChar[1]) return {
13571
+ data: tagExp,
13572
+ index: index
13573
+ };
13574
+ if (xmlData[index + 1] === closingChar[1]) return {
13575
+ data: tagExp,
13576
+ index: index
13577
+ };
13578
+ } else "\t" === ch && (ch = " ");
13579
+ tagExp += ch;
13580
+ }
13581
+ }
13582
+ function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
13583
+ const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
13584
+ if (!result) return;
13585
+ let tagExp = result.data;
13586
+ const closeIndex = result.index,
13587
+ separatorIndex = tagExp.search(/\s/);
13588
+ let tagName = tagExp,
13589
+ attrExpPresent = !0;
13590
+ -1 !== separatorIndex && (tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""), tagExp = tagExp.substr(separatorIndex + 1));
13591
+ const rawTagName = tagName;
13592
+ if (removeNSPrefix) {
13593
+ const colonIndex = tagName.indexOf(":");
13594
+ -1 !== colonIndex && (tagName = tagName.substr(colonIndex + 1), attrExpPresent = tagName !== result.data.substr(colonIndex + 1));
13595
+ }
13596
+ return {
13597
+ tagName: tagName,
13598
+ tagExp: tagExp,
13599
+ closeIndex: closeIndex,
13600
+ attrExpPresent: attrExpPresent,
13601
+ rawTagName: rawTagName
13602
+ };
13603
+ }
13604
+ const attrsRegx = new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
13605
+ class OrderedObjParser {
13606
+ constructor(options) {
13607
+ this.currentNode = null, this.options = options, this.tagsNodeStack = [], this.docTypeEntities = {};
13608
+ }
13609
+ addChild(currentNode, childNode, jPath) {
13610
+ const result = childNode.tagname;
13611
+ "string" == typeof result ? (childNode.tagname = result, currentNode.addChild(childNode)) : currentNode.addChild(childNode);
13612
+ }
13613
+ buildAttributesMap(attrStr, jPath, tagName) {
13614
+ const attrs = {};
13615
+ if (!attrStr) return;
13616
+ const matches = getAllMatches(attrStr, attrsRegx),
13617
+ len = matches.length;
13618
+ for (let i = 0; i < len; i++) {
13619
+ const attrName = matches[i][1],
13620
+ oldVal = matches[i][4],
13621
+ aName = attrName;
13622
+ attrName && (attrs[aName] = void 0 === oldVal || (isNaN(oldVal) ? oldVal : Number(oldVal)));
13623
+ }
13624
+ return attrs;
13625
+ }
13626
+ parseXml(xmlData) {
13627
+ xmlData = xmlData.replace(/\r\n?/g, "\n");
13628
+ const xmlObj = new XmlNode("!xml");
13629
+ let currentNode = xmlObj,
13630
+ textData = "",
13631
+ jPath = "";
13632
+ for (let i = 0; i < xmlData.length; i++) {
13633
+ if ("<" === xmlData[i]) {
13634
+ if ("/" === xmlData[i + 1]) {
13635
+ const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."),
13636
+ propIndex = jPath.lastIndexOf(".");
13637
+ jPath = jPath.substring(0, propIndex), currentNode = this.tagsNodeStack.pop(), currentNode && currentNode.child && textData && currentNode.child[currentNode.child.length - 1][":@"] && (currentNode.child[currentNode.child.length - 1][":@"].text = textData), textData = "", i = closeIndex;
13638
+ } else if ("?" === xmlData[i + 1]) {
13639
+ i = readTagExp(xmlData, i, !1, "?>").closeIndex + 1;
13640
+ } else if ("!--" === xmlData.substr(i + 1, 3)) {
13641
+ i = findClosingIndex(xmlData, "--\x3e", i + 4, "Comment is not closed.");
13642
+ } else {
13643
+ const result = readTagExp(xmlData, i, !1);
13644
+ let tagName = result.tagName,
13645
+ tagExp = result.tagExp;
13646
+ const attrExpPresent = result.attrExpPresent,
13647
+ closeIndex = result.closeIndex;
13648
+ if (tagName !== xmlObj.tagname && (jPath += jPath ? "." + tagName : tagName), tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
13649
+ "/" === tagName[tagName.length - 1] ? (tagName = tagName.substr(0, tagName.length - 1), jPath = jPath.substr(0, jPath.length - 1), tagExp = tagName) : tagExp = tagExp.substr(0, tagExp.length - 1);
13650
+ const childNode = new XmlNode(tagName);
13651
+ tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), jPath = jPath.substr(0, jPath.lastIndexOf("."));
13652
+ } else {
13653
+ const childNode = new XmlNode(tagName);
13654
+ this.tagsNodeStack.push(currentNode), tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), currentNode = childNode;
13655
+ }
13656
+ textData = "", i = closeIndex;
13657
+ }
13658
+ } else textData += xmlData[i];
13659
+ }
13660
+ return xmlObj.child;
13661
+ }
13662
+ }
13663
+
13664
+ function prettify(node, options) {
13665
+ return compress(node);
13666
+ }
13667
+ function compress(arr, jPath) {
13668
+ const compressedObj = {};
13669
+ for (let i = 0; i < arr.length; i++) {
13670
+ const tagObj = arr[i],
13671
+ property = propName(tagObj);
13672
+ if (void 0 !== property && tagObj[property]) {
13673
+ const val = compress(tagObj[property]);
13674
+ isLeafTag(val);
13675
+ tagObj[":@"] && assignAttributes(val, tagObj[":@"]), void 0 !== compressedObj[property] && compressedObj.hasOwnProperty(property) ? (Array.isArray(compressedObj[property]) || (compressedObj[property] = [compressedObj[property]]), compressedObj[property].push(val)) : compressedObj[property] = val;
13676
+ }
13677
+ }
13678
+ return compressedObj;
13679
+ }
13680
+ function propName(obj) {
13681
+ const keys = Object.keys(obj);
13682
+ for (let i = 0; i < keys.length; i++) {
13683
+ const key = keys[i];
13684
+ if (":@" !== key) return key;
13685
+ }
13686
+ }
13687
+ function assignAttributes(obj, attrMap, jpath) {
13688
+ if (attrMap) {
13689
+ const keys = Object.keys(attrMap),
13690
+ len = keys.length;
13691
+ for (let i = 0; i < len; i++) {
13692
+ const atrrName = keys[i];
13693
+ obj[atrrName] = attrMap[atrrName];
13694
+ }
13695
+ }
13696
+ }
13697
+ function isLeafTag(obj) {
13698
+ return 0 === Object.keys(obj).length;
13699
+ }
13700
+
13528
13701
  function isSvg(str) {
13529
13702
  return str.startsWith("<svg") || str.startsWith("<?xml");
13530
13703
  }
13531
13704
 
13705
+ class XMLParser {
13706
+ constructor(options) {
13707
+ this.options = Object.assign({}, XMLParser.defaultOptions, options);
13708
+ }
13709
+ valid(xml) {
13710
+ return xml.startsWith("<");
13711
+ }
13712
+ parse(xmlData) {
13713
+ if (!this.valid) return !1;
13714
+ const orderedResult = new OrderedObjParser(this.options).parseXml(xmlData);
13715
+ return prettify(orderedResult, this.options);
13716
+ }
13717
+ }
13718
+ XMLParser.defaultOptions = {};
13719
+
13532
13720
  undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
13533
13721
  return new (P || (P = Promise))(function (resolve, reject) {
13534
13722
  function fulfilled(value) {
@@ -15344,10 +15532,7 @@ class Graphic extends Node {
15344
15532
  if (path = Graphic.userSymbolMap[symbolType], path) return path;
15345
15533
  const _symbolType = builtInSymbolStrMap[symbolType];
15346
15534
  if (!0 === isSvg(symbolType = _symbolType || symbolType)) {
15347
- const {
15348
- XMLParser: XMLParser
15349
- } = require("../common/xml/parser"),
15350
- parser = new XMLParser(),
15535
+ const parser = new XMLParser(),
15351
15536
  {
15352
15537
  svg: svg
15353
15538
  } = parser.parse(symbolType);
@@ -21305,7 +21490,9 @@ const loadedArcModuleContexts = new WeakSet();
21305
21490
  function bindArcRenderModule({
21306
21491
  bind: bind
21307
21492
  }) {
21308
- isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
21493
+ isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toDynamicValue(({
21494
+ container: container
21495
+ }) => new DefaultCanvasArcRender(createContributionProvider(ArcRenderContribution, container))).inSingletonScope(), bind(ArcRender).toService(DefaultCanvasArcRender), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
21309
21496
  }
21310
21497
  const arcModule = bindArcRenderModule;
21311
21498
 
@@ -21434,7 +21621,7 @@ const loadedArc3dModuleContexts = new WeakSet();
21434
21621
  function bindArc3dRenderModule({
21435
21622
  bind: bind
21436
21623
  }) {
21437
- isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21624
+ isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(DefaultCanvasArc3DRender).toDynamicValue(() => new DefaultCanvasArc3DRender()).inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender));
21438
21625
  }
21439
21626
  const arc3dModule = bindArc3dRenderModule;
21440
21627
 
@@ -21588,39 +21775,6 @@ function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
21588
21775
  }
21589
21776
  }
21590
21777
  }
21591
- function drawIncrementalSegments(path, lastSeg, segments, params) {
21592
- const {
21593
- offsetX = 0,
21594
- offsetY = 0
21595
- } = params || {},
21596
- startP = lastSeg ? lastSeg.points[lastSeg.points.length - 1] : segments.points[0];
21597
- path.moveTo(startP.x + offsetX, startP.y + offsetY), segments.points.forEach(p => {
21598
- !1 !== p.defined ? path.lineTo(p.x + offsetX, p.y + offsetY) : path.moveTo(p.x + offsetX, p.y + offsetY);
21599
- });
21600
- }
21601
- function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
21602
- const {
21603
- offsetX = 0,
21604
- offsetY = 0
21605
- } = params || {},
21606
- {
21607
- points: points
21608
- } = segments,
21609
- definedPointsList = [];
21610
- for (let i = 0; i < points.length; i++) !1 === points[i].defined && (i);
21611
- definedPointsList.push(points), definedPointsList.forEach((points, i) => {
21612
- var _a, _b, _c, _d;
21613
- const startP = lastSeg && 0 === i ? lastSeg.points[lastSeg.points.length - 1] : points[0];
21614
- path.moveTo(startP.x + offsetX, startP.y + offsetY), points.forEach(p => {
21615
- !1 !== p.defined ? path.lineTo(p.x + offsetX, p.y + offsetY) : path.moveTo(p.x + offsetX, p.y + offsetY);
21616
- });
21617
- for (let i = points.length - 1; i >= 0; i--) {
21618
- const p = points[i];
21619
- path.lineTo(null !== (_a = p.x1) && void 0 !== _a ? _a : p.x, null !== (_b = p.y1) && void 0 !== _b ? _b : p.y);
21620
- }
21621
- path.lineTo(null !== (_c = startP.x1) && void 0 !== _c ? _c : startP.x, null !== (_d = startP.y1) && void 0 !== _d ? _d : startP.y), path.closePath();
21622
- });
21623
- }
21624
21778
 
21625
21779
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
21626
21780
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -21850,48 +22004,13 @@ class DefaultCanvasAreaRender extends BaseRender {
21850
22004
  }
21851
22005
  }
21852
22006
 
21853
- class DefaultIncrementalCanvasAreaRender extends DefaultCanvasAreaRender {
21854
- constructor() {
21855
- super(...arguments), this.numberType = AREA_NUMBER_TYPE;
21856
- }
21857
- drawShape(area, context, x, y, drawContext, params, fillCb) {
21858
- if (area.incremental && drawContext.multiGraphicOptions) {
21859
- const {
21860
- startAtIdx: startAtIdx,
21861
- length: length
21862
- } = drawContext.multiGraphicOptions,
21863
- {
21864
- segments = []
21865
- } = area.attribute;
21866
- if (startAtIdx > segments.length) return;
21867
- const areaAttribute = getTheme(area).area,
21868
- {
21869
- fill = areaAttribute.fill,
21870
- fillOpacity = areaAttribute.fillOpacity,
21871
- opacity = areaAttribute.opacity,
21872
- visible = areaAttribute.visible
21873
- } = area.attribute,
21874
- fVisible = fillVisible(opacity, fillOpacity, fill),
21875
- doFill = runFill(fill);
21876
- if (!area.valid || !visible) return;
21877
- if (!doFill) return;
21878
- if (!fVisible && !fillCb) return;
21879
- for (let i = startAtIdx; i < startAtIdx + length; i++) this.drawIncreaseSegment(area, context, segments[i - 1], segments[i], area.attribute.segments[i], [areaAttribute, area.attribute], x, y);
21880
- } else super.drawShape(area, context, x, y, drawContext, params, fillCb);
21881
- }
21882
- drawIncreaseSegment(area, context, lastSeg, seg, attribute, defaultAttribute, offsetX, offsetY) {
21883
- seg && (context.beginPath(), drawIncrementalAreaSegments(context.camera ? context : context.nativeContext, lastSeg, seg, {
21884
- offsetX: offsetX,
21885
- offsetY: offsetY
21886
- }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
21887
- }
21888
- }
21889
-
21890
22007
  const loadedAreaModuleContexts = new WeakSet();
21891
22008
  function bindAreaRenderModule({
21892
22009
  bind: bind
21893
22010
  }) {
21894
- isBindingContextLoaded(loadedAreaModuleContexts, bind) || (bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
22011
+ isBindingContextLoaded(loadedAreaModuleContexts, bind) || (bind(DefaultCanvasAreaRender).toDynamicValue(({
22012
+ container: container
22013
+ }) => new DefaultCanvasAreaRender(createContributionProvider(AreaRenderContribution, container))).inSingletonScope(), bind(AreaRender).toService(DefaultCanvasAreaRender), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution));
21895
22014
  }
21896
22015
  const areaModule = bindAreaRenderModule;
21897
22016
 
@@ -21936,7 +22055,9 @@ const loadedCircleModuleContexts = new WeakSet();
21936
22055
  function bindCircleRenderModule({
21937
22056
  bind: bind
21938
22057
  }) {
21939
- isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
22058
+ isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toDynamicValue(({
22059
+ container: container
22060
+ }) => new DefaultCanvasCircleRender(createContributionProvider(CircleRenderContribution, container))).inSingletonScope(), bind(CircleRender).toService(DefaultCanvasCircleRender), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
21940
22061
  }
21941
22062
  const circleModule = bindCircleRenderModule;
21942
22063
 
@@ -21971,7 +22092,7 @@ const loadedGlyphModuleContexts = new WeakSet();
21971
22092
  function bindGlyphRenderModule({
21972
22093
  bind: bind
21973
22094
  }) {
21974
- isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
22095
+ isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(DefaultCanvasGlyphRender).toDynamicValue(() => new DefaultCanvasGlyphRender()).inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender));
21975
22096
  }
21976
22097
  const glyphModule = bindGlyphRenderModule;
21977
22098
 
@@ -22145,7 +22266,9 @@ const loadedImageModuleContexts = new WeakSet();
22145
22266
  function bindImageRenderModule({
22146
22267
  bind: bind
22147
22268
  }) {
22148
- isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
22269
+ isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).toDynamicValue(({
22270
+ container: container
22271
+ }) => new DefaultCanvasImageRender(createContributionProvider(ImageRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
22149
22272
  }
22150
22273
  const imageModule = bindImageRenderModule;
22151
22274
 
@@ -22288,56 +22411,11 @@ class DefaultCanvasLineRender extends BaseRender {
22288
22411
  }
22289
22412
  }
22290
22413
 
22291
- class DefaultIncrementalCanvasLineRender extends DefaultCanvasLineRender {
22292
- constructor() {
22293
- super(...arguments), this.numberType = LINE_NUMBER_TYPE;
22294
- }
22295
- drawShape(line, context, x, y, drawContext, params, fillCb, strokeCb) {
22296
- if (line.incremental && drawContext.multiGraphicOptions) {
22297
- const {
22298
- startAtIdx: startAtIdx,
22299
- length: length
22300
- } = drawContext.multiGraphicOptions,
22301
- {
22302
- segments = []
22303
- } = line.attribute;
22304
- if (startAtIdx > segments.length) return;
22305
- const lineAttribute = getTheme(line).line,
22306
- {
22307
- fill = lineAttribute.fill,
22308
- stroke = lineAttribute.stroke,
22309
- opacity = lineAttribute.opacity,
22310
- fillOpacity = lineAttribute.fillOpacity,
22311
- strokeOpacity = lineAttribute.strokeOpacity,
22312
- lineWidth = lineAttribute.lineWidth,
22313
- visible = lineAttribute.visible
22314
- } = line.attribute,
22315
- fVisible = fillVisible(opacity, fillOpacity, fill),
22316
- sVisible = strokeVisible(opacity, strokeOpacity),
22317
- doFill = runFill(fill),
22318
- doStroke = runStroke(stroke, lineWidth);
22319
- if (!line.valid || !visible) return;
22320
- if (!doFill && !doStroke) return;
22321
- if (!(fVisible || sVisible || fillCb || strokeCb)) return;
22322
- const {
22323
- context: context
22324
- } = drawContext;
22325
- for (let i = startAtIdx; i < startAtIdx + length; i++) this.drawIncreaseSegment(line, context, segments[i - 1], segments[i], line.attribute.segments[i], [lineAttribute, line.attribute], x, y);
22326
- } else super.drawShape(line, context, x, y, drawContext, params, fillCb, strokeCb);
22327
- }
22328
- drawIncreaseSegment(line, context, lastSeg, seg, attribute, defaultAttribute, offsetX, offsetY) {
22329
- seg && (context.beginPath(), drawIncrementalSegments(context.nativeContext, lastSeg, seg, {
22330
- offsetX: offsetX,
22331
- offsetY: offsetY
22332
- }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
22333
- }
22334
- }
22335
-
22336
22414
  const loadedLineModuleContexts = new WeakSet();
22337
22415
  function bindLineRenderModule({
22338
22416
  bind: bind
22339
22417
  }) {
22340
- isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
22418
+ isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toDynamicValue(() => new DefaultCanvasLineRender()).inSingletonScope(), bind(LineRender).toService(DefaultCanvasLineRender), bind(GraphicRender).toService(LineRender));
22341
22419
  }
22342
22420
  const lineModule = bindLineRenderModule;
22343
22421
 
@@ -22388,7 +22466,9 @@ const loadedPathModuleContexts = new WeakSet();
22388
22466
  function bindPathRenderModule({
22389
22467
  bind: bind
22390
22468
  }) {
22391
- isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
22469
+ isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toDynamicValue(({
22470
+ container: container
22471
+ }) => new DefaultCanvasPathRender(createContributionProvider(PathRenderContribution, container))).inSingletonScope(), bind(PathRender).toService(DefaultCanvasPathRender), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
22392
22472
  }
22393
22473
  const pathModule = bindPathRenderModule;
22394
22474
 
@@ -22488,7 +22568,9 @@ const loadedPolygonModuleContexts = new WeakSet();
22488
22568
  function bindPolygonRenderModule({
22489
22569
  bind: bind
22490
22570
  }) {
22491
- isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
22571
+ isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).toDynamicValue(({
22572
+ container: container
22573
+ }) => new DefaultCanvasPolygonRender(createContributionProvider(PolygonRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
22492
22574
  }
22493
22575
  const polygonModule = bindPolygonRenderModule;
22494
22576
 
@@ -22599,7 +22681,7 @@ const loadedPyramid3dModuleContexts = new WeakSet();
22599
22681
  function bindPyramid3dRenderModule({
22600
22682
  bind: bind
22601
22683
  }) {
22602
- isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22684
+ isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(DefaultCanvasPyramid3dRender).toDynamicValue(() => new DefaultCanvasPyramid3dRender()).inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender));
22603
22685
  }
22604
22686
  const pyramid3dModule = bindPyramid3dRenderModule;
22605
22687
 
@@ -22723,7 +22805,7 @@ const loadedRect3dModuleContexts = new WeakSet();
22723
22805
  function bindRect3dRenderModule({
22724
22806
  bind: bind
22725
22807
  }) {
22726
- isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
22808
+ isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(DefaultCanvasRect3dRender).toDynamicValue(() => new DefaultCanvasRect3dRender()).inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender));
22727
22809
  }
22728
22810
  const rect3dModule = bindRect3dRenderModule;
22729
22811
 
@@ -22852,13 +22934,13 @@ const loadedRichtextModuleContexts = new WeakSet();
22852
22934
  function bindRichtextRenderModule({
22853
22935
  bind: bind
22854
22936
  }) {
22855
- isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
22937
+ isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(DefaultCanvasRichTextRender).toDynamicValue(() => new DefaultCanvasRichTextRender()).inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender));
22856
22938
  }
22857
22939
  const richtextModule = bindRichtextRenderModule;
22858
22940
 
22859
22941
  class DefaultCanvasStarRender extends BaseRender {
22860
- constructor(starRenderContribitions) {
22861
- super(), this.starRenderContribitions = starRenderContribitions, this.numberType = STAR_NUMBER_TYPE, this.builtinContributions = [defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution], this.init(starRenderContribitions);
22942
+ constructor(graphicRenderContributions) {
22943
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = STAR_NUMBER_TYPE, this.builtinContributions = [defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution], this.init(graphicRenderContributions);
22862
22944
  }
22863
22945
  drawShape(star, context, x, y, drawContext, params, fillCb, strokeCb) {
22864
22946
  const starAttribute = getTheme(star, null == params ? void 0 : params.theme).star,
@@ -22899,7 +22981,7 @@ function bindStarRenderModule({
22899
22981
  }) {
22900
22982
  isBindingContextLoaded(loadedStarModuleContexts, bind) || (bind(DefaultCanvasStarRender).toDynamicValue(({
22901
22983
  container: container
22902
- }) => new DefaultCanvasStarRender(createContributionProvider(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender));
22984
+ }) => new DefaultCanvasStarRender(createContributionProvider(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender), bindContributionProvider(bind, StarRenderContribution));
22903
22985
  }
22904
22986
  const starModule = bindStarRenderModule;
22905
22987
 
@@ -22973,7 +23055,9 @@ const loadedSymbolModuleContexts = new WeakSet();
22973
23055
  function bindSymbolRenderModule({
22974
23056
  bind: bind
22975
23057
  }) {
22976
- isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
23058
+ isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toDynamicValue(({
23059
+ container: container
23060
+ }) => new DefaultCanvasSymbolRender(createContributionProvider(SymbolRenderContribution, container))).inSingletonScope(), bind(SymbolRender).toService(DefaultCanvasSymbolRender), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
22977
23061
  }
22978
23062
  const symbolModule = bindSymbolRenderModule;
22979
23063
 
@@ -23116,7 +23200,9 @@ const loadedTextModuleContexts = new WeakSet();
23116
23200
  function bindTextRenderModule({
23117
23201
  bind: bind
23118
23202
  }) {
23119
- isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
23203
+ isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).toDynamicValue(({
23204
+ container: container
23205
+ }) => new DefaultCanvasTextRender(createContributionProvider(TextRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
23120
23206
  }
23121
23207
  const textModule = bindTextRenderModule;
23122
23208
 
@@ -1,6 +1,6 @@
1
- import { Generator } from "@visactor/vrender-core";
1
+ import { genNumberType } from "@visactor/vrender-core";
2
2
 
3
- export const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
3
+ export const GIFIMAGE_NUMBER_TYPE = genNumberType();
4
4
 
5
- export const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
5
+ export const LOTTIE_NUMBER_TYPE = genNumberType();
6
6
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphic/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC,kBAAkB,EAAE,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC,kBAAkB,EAAE,CAAC","file":"constants.js","sourcesContent":["import { Generator } from '@visactor/vrender-core';\n\nexport const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();\nexport const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();\n"]}
1
+ {"version":3,"sources":["../src/graphic/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,EAAE,CAAC;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC","file":"constants.js","sourcesContent":["import { genNumberType } from '@visactor/vrender-core';\n\nexport const GIFIMAGE_NUMBER_TYPE = genNumberType();\nexport const LOTTIE_NUMBER_TYPE = genNumberType();\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-kits",
3
- "version": "1.1.0-alpha.26",
3
+ "version": "1.1.0-alpha.28",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index-node.js",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@visactor/vutils": "~1.0.12",
47
- "@visactor/vrender-core": "1.1.0-alpha.26",
47
+ "@visactor/vrender-core": "1.1.0-alpha.28",
48
48
  "@resvg/resvg-js": "2.4.1",
49
49
  "roughjs": "4.6.6",
50
50
  "gifuct-js": "2.1.2",
@@ -70,8 +70,8 @@
70
70
  "typescript": "4.9.5",
71
71
  "cross-env": "^7.0.3",
72
72
  "@internal/bundler": "0.0.1",
73
- "@internal/eslint-config": "0.0.1",
74
- "@internal/ts-config": "0.0.1"
73
+ "@internal/ts-config": "0.0.1",
74
+ "@internal/eslint-config": "0.0.1"
75
75
  },
76
76
  "keywords": [
77
77
  "VisActor",