@visactor/vrender 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.
package/dist/index.js CHANGED
@@ -6100,6 +6100,179 @@
6100
6100
  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"
6101
6101
  };
6102
6102
 
6103
+ function getAllMatches(string, regex) {
6104
+ const matches = [];
6105
+ let match = regex.exec(string);
6106
+ for (; match;) {
6107
+ const allmatches = [];
6108
+ allmatches.startIndex = regex.lastIndex - match[0].length;
6109
+ const len = match.length;
6110
+ for (let index = 0; index < len; index++) allmatches.push(match[index]);
6111
+ matches.push(allmatches), match = regex.exec(string);
6112
+ }
6113
+ return matches;
6114
+ }
6115
+
6116
+ class XmlNode {
6117
+ constructor(tagname) {
6118
+ this.tagname = tagname, this.child = [], this[":@"] = {};
6119
+ }
6120
+ add(key, val) {
6121
+ "__proto__" === key && (key = "#__proto__"), this.child.push({
6122
+ [key]: val
6123
+ });
6124
+ }
6125
+ addChild(node) {
6126
+ "__proto__" === node.tagname && (node.tagname = "#__proto__"), node[":@"] && Object.keys(node[":@"]).length > 0 ? this.child.push({
6127
+ [node.tagname]: node.child,
6128
+ ":@": node[":@"]
6129
+ }) : this.child.push({
6130
+ [node.tagname]: node.child
6131
+ });
6132
+ }
6133
+ }
6134
+ function findClosingIndex(xmlData, str, i, errMsg) {
6135
+ const closingIndex = xmlData.indexOf(str, i);
6136
+ if (-1 === closingIndex) throw new Error(errMsg);
6137
+ return closingIndex + str.length - 1;
6138
+ }
6139
+ function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
6140
+ let attrBoundary,
6141
+ tagExp = "";
6142
+ for (let index = i; index < xmlData.length; index++) {
6143
+ let ch = xmlData[index];
6144
+ if (attrBoundary) ch === attrBoundary && (attrBoundary = "");else if ('"' === ch || "'" === ch) attrBoundary = ch;else if (ch === closingChar[0]) {
6145
+ if (!closingChar[1]) return {
6146
+ data: tagExp,
6147
+ index: index
6148
+ };
6149
+ if (xmlData[index + 1] === closingChar[1]) return {
6150
+ data: tagExp,
6151
+ index: index
6152
+ };
6153
+ } else "\t" === ch && (ch = " ");
6154
+ tagExp += ch;
6155
+ }
6156
+ }
6157
+ function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
6158
+ const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
6159
+ if (!result) return;
6160
+ let tagExp = result.data;
6161
+ const closeIndex = result.index,
6162
+ separatorIndex = tagExp.search(/\s/);
6163
+ let tagName = tagExp,
6164
+ attrExpPresent = !0;
6165
+ -1 !== separatorIndex && (tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""), tagExp = tagExp.substr(separatorIndex + 1));
6166
+ const rawTagName = tagName;
6167
+ if (removeNSPrefix) {
6168
+ const colonIndex = tagName.indexOf(":");
6169
+ -1 !== colonIndex && (tagName = tagName.substr(colonIndex + 1), attrExpPresent = tagName !== result.data.substr(colonIndex + 1));
6170
+ }
6171
+ return {
6172
+ tagName: tagName,
6173
+ tagExp: tagExp,
6174
+ closeIndex: closeIndex,
6175
+ attrExpPresent: attrExpPresent,
6176
+ rawTagName: rawTagName
6177
+ };
6178
+ }
6179
+ const attrsRegx = new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
6180
+ class OrderedObjParser {
6181
+ constructor(options) {
6182
+ this.currentNode = null, this.options = options, this.tagsNodeStack = [], this.docTypeEntities = {};
6183
+ }
6184
+ addChild(currentNode, childNode, jPath) {
6185
+ const result = childNode.tagname;
6186
+ "string" == typeof result ? (childNode.tagname = result, currentNode.addChild(childNode)) : currentNode.addChild(childNode);
6187
+ }
6188
+ buildAttributesMap(attrStr, jPath, tagName) {
6189
+ const attrs = {};
6190
+ if (!attrStr) return;
6191
+ const matches = getAllMatches(attrStr, attrsRegx),
6192
+ len = matches.length;
6193
+ for (let i = 0; i < len; i++) {
6194
+ const attrName = matches[i][1],
6195
+ oldVal = matches[i][4],
6196
+ aName = attrName;
6197
+ attrName && (attrs[aName] = void 0 === oldVal || (isNaN(oldVal) ? oldVal : Number(oldVal)));
6198
+ }
6199
+ return attrs;
6200
+ }
6201
+ parseXml(xmlData) {
6202
+ xmlData = xmlData.replace(/\r\n?/g, "\n");
6203
+ const xmlObj = new XmlNode("!xml");
6204
+ let currentNode = xmlObj,
6205
+ textData = "",
6206
+ jPath = "";
6207
+ for (let i = 0; i < xmlData.length; i++) {
6208
+ if ("<" === xmlData[i]) {
6209
+ if ("/" === xmlData[i + 1]) {
6210
+ const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."),
6211
+ propIndex = jPath.lastIndexOf(".");
6212
+ 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;
6213
+ } else if ("?" === xmlData[i + 1]) {
6214
+ i = readTagExp(xmlData, i, !1, "?>").closeIndex + 1;
6215
+ } else if ("!--" === xmlData.substr(i + 1, 3)) {
6216
+ i = findClosingIndex(xmlData, "--\x3e", i + 4, "Comment is not closed.");
6217
+ } else {
6218
+ const result = readTagExp(xmlData, i, !1);
6219
+ let tagName = result.tagName,
6220
+ tagExp = result.tagExp;
6221
+ const attrExpPresent = result.attrExpPresent,
6222
+ closeIndex = result.closeIndex;
6223
+ if (tagName !== xmlObj.tagname && (jPath += jPath ? "." + tagName : tagName), tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
6224
+ "/" === 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);
6225
+ const childNode = new XmlNode(tagName);
6226
+ tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), jPath = jPath.substr(0, jPath.lastIndexOf("."));
6227
+ } else {
6228
+ const childNode = new XmlNode(tagName);
6229
+ this.tagsNodeStack.push(currentNode), tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), currentNode = childNode;
6230
+ }
6231
+ textData = "", i = closeIndex;
6232
+ }
6233
+ } else textData += xmlData[i];
6234
+ }
6235
+ return xmlObj.child;
6236
+ }
6237
+ }
6238
+
6239
+ function prettify(node, options) {
6240
+ return compress(node);
6241
+ }
6242
+ function compress(arr, jPath) {
6243
+ const compressedObj = {};
6244
+ for (let i = 0; i < arr.length; i++) {
6245
+ const tagObj = arr[i],
6246
+ property = propName(tagObj);
6247
+ if (void 0 !== property && tagObj[property]) {
6248
+ const val = compress(tagObj[property]);
6249
+ isLeafTag(val);
6250
+ 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;
6251
+ }
6252
+ }
6253
+ return compressedObj;
6254
+ }
6255
+ function propName(obj) {
6256
+ const keys = Object.keys(obj);
6257
+ for (let i = 0; i < keys.length; i++) {
6258
+ const key = keys[i];
6259
+ if (":@" !== key) return key;
6260
+ }
6261
+ }
6262
+ function assignAttributes(obj, attrMap, jpath) {
6263
+ if (attrMap) {
6264
+ const keys = Object.keys(attrMap),
6265
+ len = keys.length;
6266
+ for (let i = 0; i < len; i++) {
6267
+ const atrrName = keys[i];
6268
+ obj[atrrName] = attrMap[atrrName];
6269
+ }
6270
+ }
6271
+ }
6272
+ function isLeafTag(obj) {
6273
+ return 0 === Object.keys(obj).length;
6274
+ }
6275
+
6103
6276
  function isSvg(str) {
6104
6277
  return str.startsWith("<svg") || str.startsWith("<?xml");
6105
6278
  }
@@ -6107,6 +6280,21 @@
6107
6280
  return str.startsWith("<");
6108
6281
  }
6109
6282
 
6283
+ class XMLParser {
6284
+ constructor(options) {
6285
+ this.options = Object.assign({}, XMLParser.defaultOptions, options);
6286
+ }
6287
+ valid(xml) {
6288
+ return xml.startsWith("<");
6289
+ }
6290
+ parse(xmlData) {
6291
+ if (!this.valid) return !1;
6292
+ const orderedResult = new OrderedObjParser(this.options).parseXml(xmlData);
6293
+ return prettify(orderedResult, this.options);
6294
+ }
6295
+ }
6296
+ XMLParser.defaultOptions = {};
6297
+
6110
6298
  var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
6111
6299
  return new (P || (P = Promise))(function (resolve, reject) {
6112
6300
  function fulfilled(value) {
@@ -6201,10 +6389,7 @@
6201
6389
  config = [];
6202
6390
  if (!xmlStr) return config;
6203
6391
  if (!0 === isXML(xmlStr)) {
6204
- const {
6205
- XMLParser: XMLParser
6206
- } = require("../common/xml/parser"),
6207
- data = new XMLParser().parse(xmlStr);
6392
+ const data = new XMLParser().parse(xmlStr);
6208
6393
  data.tc && Object.keys(data.tc).forEach(k => {
6209
6394
  "text" === k ? config.push(parseRTTextXML(data.tc[k])) : config.push(parseRTImageXML(data.tc[k]));
6210
6395
  });
@@ -8643,10 +8828,7 @@
8643
8828
  if (path = Graphic.userSymbolMap[symbolType], path) return path;
8644
8829
  const _symbolType = builtInSymbolStrMap[symbolType];
8645
8830
  if (!0 === isSvg(symbolType = _symbolType || symbolType)) {
8646
- const {
8647
- XMLParser: XMLParser
8648
- } = require("../common/xml/parser"),
8649
- parser = new XMLParser(),
8831
+ const parser = new XMLParser(),
8650
8832
  {
8651
8833
  svg: svg
8652
8834
  } = parser.parse(symbolType);
@@ -21295,194 +21477,6 @@
21295
21477
  }
21296
21478
  const defaultGraphicMemoryManager = new DefaultGraphicMemoryManager();
21297
21479
 
21298
- function getAllMatches(string, regex) {
21299
- const matches = [];
21300
- let match = regex.exec(string);
21301
- for (; match;) {
21302
- const allmatches = [];
21303
- allmatches.startIndex = regex.lastIndex - match[0].length;
21304
- const len = match.length;
21305
- for (let index = 0; index < len; index++) allmatches.push(match[index]);
21306
- matches.push(allmatches), match = regex.exec(string);
21307
- }
21308
- return matches;
21309
- }
21310
-
21311
- class XmlNode {
21312
- constructor(tagname) {
21313
- this.tagname = tagname, this.child = [], this[":@"] = {};
21314
- }
21315
- add(key, val) {
21316
- "__proto__" === key && (key = "#__proto__"), this.child.push({
21317
- [key]: val
21318
- });
21319
- }
21320
- addChild(node) {
21321
- "__proto__" === node.tagname && (node.tagname = "#__proto__"), node[":@"] && Object.keys(node[":@"]).length > 0 ? this.child.push({
21322
- [node.tagname]: node.child,
21323
- ":@": node[":@"]
21324
- }) : this.child.push({
21325
- [node.tagname]: node.child
21326
- });
21327
- }
21328
- }
21329
- function findClosingIndex(xmlData, str, i, errMsg) {
21330
- const closingIndex = xmlData.indexOf(str, i);
21331
- if (-1 === closingIndex) throw new Error(errMsg);
21332
- return closingIndex + str.length - 1;
21333
- }
21334
- function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
21335
- let attrBoundary,
21336
- tagExp = "";
21337
- for (let index = i; index < xmlData.length; index++) {
21338
- let ch = xmlData[index];
21339
- if (attrBoundary) ch === attrBoundary && (attrBoundary = "");else if ('"' === ch || "'" === ch) attrBoundary = ch;else if (ch === closingChar[0]) {
21340
- if (!closingChar[1]) return {
21341
- data: tagExp,
21342
- index: index
21343
- };
21344
- if (xmlData[index + 1] === closingChar[1]) return {
21345
- data: tagExp,
21346
- index: index
21347
- };
21348
- } else "\t" === ch && (ch = " ");
21349
- tagExp += ch;
21350
- }
21351
- }
21352
- function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
21353
- const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
21354
- if (!result) return;
21355
- let tagExp = result.data;
21356
- const closeIndex = result.index,
21357
- separatorIndex = tagExp.search(/\s/);
21358
- let tagName = tagExp,
21359
- attrExpPresent = !0;
21360
- -1 !== separatorIndex && (tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""), tagExp = tagExp.substr(separatorIndex + 1));
21361
- const rawTagName = tagName;
21362
- if (removeNSPrefix) {
21363
- const colonIndex = tagName.indexOf(":");
21364
- -1 !== colonIndex && (tagName = tagName.substr(colonIndex + 1), attrExpPresent = tagName !== result.data.substr(colonIndex + 1));
21365
- }
21366
- return {
21367
- tagName: tagName,
21368
- tagExp: tagExp,
21369
- closeIndex: closeIndex,
21370
- attrExpPresent: attrExpPresent,
21371
- rawTagName: rawTagName
21372
- };
21373
- }
21374
- const attrsRegx = new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
21375
- class OrderedObjParser {
21376
- constructor(options) {
21377
- this.currentNode = null, this.options = options, this.tagsNodeStack = [], this.docTypeEntities = {};
21378
- }
21379
- addChild(currentNode, childNode, jPath) {
21380
- const result = childNode.tagname;
21381
- "string" == typeof result ? (childNode.tagname = result, currentNode.addChild(childNode)) : currentNode.addChild(childNode);
21382
- }
21383
- buildAttributesMap(attrStr, jPath, tagName) {
21384
- const attrs = {};
21385
- if (!attrStr) return;
21386
- const matches = getAllMatches(attrStr, attrsRegx),
21387
- len = matches.length;
21388
- for (let i = 0; i < len; i++) {
21389
- const attrName = matches[i][1],
21390
- oldVal = matches[i][4],
21391
- aName = attrName;
21392
- attrName && (attrs[aName] = void 0 === oldVal || (isNaN(oldVal) ? oldVal : Number(oldVal)));
21393
- }
21394
- return attrs;
21395
- }
21396
- parseXml(xmlData) {
21397
- xmlData = xmlData.replace(/\r\n?/g, "\n");
21398
- const xmlObj = new XmlNode("!xml");
21399
- let currentNode = xmlObj,
21400
- textData = "",
21401
- jPath = "";
21402
- for (let i = 0; i < xmlData.length; i++) {
21403
- if ("<" === xmlData[i]) {
21404
- if ("/" === xmlData[i + 1]) {
21405
- const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."),
21406
- propIndex = jPath.lastIndexOf(".");
21407
- 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;
21408
- } else if ("?" === xmlData[i + 1]) {
21409
- i = readTagExp(xmlData, i, !1, "?>").closeIndex + 1;
21410
- } else if ("!--" === xmlData.substr(i + 1, 3)) {
21411
- i = findClosingIndex(xmlData, "--\x3e", i + 4, "Comment is not closed.");
21412
- } else {
21413
- const result = readTagExp(xmlData, i, !1);
21414
- let tagName = result.tagName,
21415
- tagExp = result.tagExp;
21416
- const attrExpPresent = result.attrExpPresent,
21417
- closeIndex = result.closeIndex;
21418
- if (tagName !== xmlObj.tagname && (jPath += jPath ? "." + tagName : tagName), tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
21419
- "/" === 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);
21420
- const childNode = new XmlNode(tagName);
21421
- tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), jPath = jPath.substr(0, jPath.lastIndexOf("."));
21422
- } else {
21423
- const childNode = new XmlNode(tagName);
21424
- this.tagsNodeStack.push(currentNode), tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), currentNode = childNode;
21425
- }
21426
- textData = "", i = closeIndex;
21427
- }
21428
- } else textData += xmlData[i];
21429
- }
21430
- return xmlObj.child;
21431
- }
21432
- }
21433
-
21434
- function prettify(node, options) {
21435
- return compress(node);
21436
- }
21437
- function compress(arr, jPath) {
21438
- const compressedObj = {};
21439
- for (let i = 0; i < arr.length; i++) {
21440
- const tagObj = arr[i],
21441
- property = propName(tagObj);
21442
- if (void 0 !== property && tagObj[property]) {
21443
- const val = compress(tagObj[property]);
21444
- isLeafTag(val);
21445
- 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;
21446
- }
21447
- }
21448
- return compressedObj;
21449
- }
21450
- function propName(obj) {
21451
- const keys = Object.keys(obj);
21452
- for (let i = 0; i < keys.length; i++) {
21453
- const key = keys[i];
21454
- if (":@" !== key) return key;
21455
- }
21456
- }
21457
- function assignAttributes(obj, attrMap, jpath) {
21458
- if (attrMap) {
21459
- const keys = Object.keys(attrMap),
21460
- len = keys.length;
21461
- for (let i = 0; i < len; i++) {
21462
- const atrrName = keys[i];
21463
- obj[atrrName] = attrMap[atrrName];
21464
- }
21465
- }
21466
- }
21467
- function isLeafTag(obj) {
21468
- return 0 === Object.keys(obj).length;
21469
- }
21470
-
21471
- class XMLParser {
21472
- constructor(options) {
21473
- this.options = Object.assign({}, XMLParser.defaultOptions, options);
21474
- }
21475
- valid(xml) {
21476
- return xml.startsWith("<");
21477
- }
21478
- parse(xmlData) {
21479
- if (!this.valid) return !1;
21480
- const orderedResult = new OrderedObjParser(this.options).parseXml(xmlData);
21481
- return prettify(orderedResult, this.options);
21482
- }
21483
- }
21484
- XMLParser.defaultOptions = {};
21485
-
21486
21480
  function describeServiceIdentifier(serviceIdentifier) {
21487
21481
  return "string" == typeof serviceIdentifier ? serviceIdentifier : "symbol" == typeof serviceIdentifier ? serviceIdentifier.toString() : "function" == typeof serviceIdentifier && serviceIdentifier.name ? serviceIdentifier.name : "unknown service identifier";
21488
21482
  }
@@ -21501,7 +21495,9 @@
21501
21495
  function bindArcRenderModule({
21502
21496
  bind: bind
21503
21497
  }) {
21504
- isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
21498
+ isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toDynamicValue(({
21499
+ container: container
21500
+ }) => new DefaultCanvasArcRender(createContributionProvider$1(ArcRenderContribution, container))).inSingletonScope(), bind(ArcRender).toService(DefaultCanvasArcRender), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
21505
21501
  }
21506
21502
  const arcModule = bindArcRenderModule;
21507
21503
 
@@ -21519,7 +21515,7 @@
21519
21515
  function bindLineRenderModule({
21520
21516
  bind: bind
21521
21517
  }) {
21522
- isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
21518
+ isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toDynamicValue(() => new DefaultCanvasLineRender()).inSingletonScope(), bind(LineRender).toService(DefaultCanvasLineRender), bind(GraphicRender).toService(LineRender));
21523
21519
  }
21524
21520
  const lineModule = bindLineRenderModule;
21525
21521
 
@@ -21527,7 +21523,9 @@
21527
21523
  function bindAreaRenderModule({
21528
21524
  bind: bind
21529
21525
  }) {
21530
- 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());
21526
+ isBindingContextLoaded(loadedAreaModuleContexts, bind) || (bind(DefaultCanvasAreaRender).toDynamicValue(({
21527
+ container: container
21528
+ }) => new DefaultCanvasAreaRender(createContributionProvider$1(AreaRenderContribution, container))).inSingletonScope(), bind(AreaRender).toService(DefaultCanvasAreaRender), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution));
21531
21529
  }
21532
21530
  const areaModule = bindAreaRenderModule;
21533
21531
 
@@ -21535,7 +21533,9 @@
21535
21533
  function bindSymbolRenderModule({
21536
21534
  bind: bind
21537
21535
  }) {
21538
- isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
21536
+ isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toDynamicValue(({
21537
+ container: container
21538
+ }) => new DefaultCanvasSymbolRender(createContributionProvider$1(SymbolRenderContribution, container))).inSingletonScope(), bind(SymbolRender).toService(DefaultCanvasSymbolRender), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
21539
21539
  }
21540
21540
  const symbolModule = bindSymbolRenderModule;
21541
21541
 
@@ -21543,7 +21543,9 @@
21543
21543
  function bindCircleRenderModule({
21544
21544
  bind: bind
21545
21545
  }) {
21546
- isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
21546
+ isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toDynamicValue(({
21547
+ container: container
21548
+ }) => new DefaultCanvasCircleRender(createContributionProvider$1(CircleRenderContribution, container))).inSingletonScope(), bind(CircleRender).toService(DefaultCanvasCircleRender), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
21547
21549
  }
21548
21550
  const circleModule = bindCircleRenderModule;
21549
21551
 
@@ -21551,7 +21553,9 @@
21551
21553
  function bindTextRenderModule({
21552
21554
  bind: bind
21553
21555
  }) {
21554
- isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
21556
+ isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).toDynamicValue(({
21557
+ container: container
21558
+ }) => new DefaultCanvasTextRender(createContributionProvider$1(TextRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
21555
21559
  }
21556
21560
  const textModule = bindTextRenderModule;
21557
21561
 
@@ -21559,7 +21563,9 @@
21559
21563
  function bindPathRenderModule({
21560
21564
  bind: bind
21561
21565
  }) {
21562
- isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
21566
+ isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toDynamicValue(({
21567
+ container: container
21568
+ }) => new DefaultCanvasPathRender(createContributionProvider$1(PathRenderContribution, container))).inSingletonScope(), bind(PathRender).toService(DefaultCanvasPathRender), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
21563
21569
  }
21564
21570
  const pathModule = bindPathRenderModule;
21565
21571
 
@@ -21567,13 +21573,15 @@
21567
21573
  function bindPolygonRenderModule({
21568
21574
  bind: bind
21569
21575
  }) {
21570
- isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21576
+ isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).toDynamicValue(({
21577
+ container: container
21578
+ }) => new DefaultCanvasPolygonRender(createContributionProvider$1(PolygonRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21571
21579
  }
21572
21580
  const polygonModule = bindPolygonRenderModule;
21573
21581
 
21574
21582
  class DefaultCanvasStarRender extends BaseRender {
21575
- constructor(starRenderContribitions) {
21576
- super(), this.starRenderContribitions = starRenderContribitions, this.numberType = STAR_NUMBER_TYPE, this.builtinContributions = [defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution], this.init(starRenderContribitions);
21583
+ constructor(graphicRenderContributions) {
21584
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = STAR_NUMBER_TYPE, this.builtinContributions = [defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution], this.init(graphicRenderContributions);
21577
21585
  }
21578
21586
  drawShape(star, context, x, y, drawContext, params, fillCb, strokeCb) {
21579
21587
  const starAttribute = getTheme(star, null == params ? void 0 : params.theme).star,
@@ -21614,7 +21622,7 @@
21614
21622
  }) {
21615
21623
  isBindingContextLoaded(loadedStarModuleContexts, bind) || (bind(DefaultCanvasStarRender).toDynamicValue(({
21616
21624
  container: container
21617
- }) => new DefaultCanvasStarRender(createContributionProvider$1(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender));
21625
+ }) => new DefaultCanvasStarRender(createContributionProvider$1(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender), bindContributionProvider(bind, StarRenderContribution));
21618
21626
  }
21619
21627
  const starModule = bindStarRenderModule;
21620
21628
 
@@ -21649,7 +21657,7 @@
21649
21657
  function bindGlyphRenderModule({
21650
21658
  bind: bind
21651
21659
  }) {
21652
- isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21660
+ isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(DefaultCanvasGlyphRender).toDynamicValue(() => new DefaultCanvasGlyphRender()).inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender));
21653
21661
  }
21654
21662
  const glyphModule = bindGlyphRenderModule;
21655
21663
 
@@ -21709,7 +21717,7 @@
21709
21717
  function bindRichtextRenderModule({
21710
21718
  bind: bind
21711
21719
  }) {
21712
- isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
21720
+ isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(DefaultCanvasRichTextRender).toDynamicValue(() => new DefaultCanvasRichTextRender()).inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender));
21713
21721
  }
21714
21722
  const richtextModule = bindRichtextRenderModule;
21715
21723
 
@@ -21717,7 +21725,9 @@
21717
21725
  function bindImageRenderModule({
21718
21726
  bind: bind
21719
21727
  }) {
21720
- isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
21728
+ isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).toDynamicValue(({
21729
+ container: container
21730
+ }) => new DefaultCanvasImageRender(createContributionProvider$1(ImageRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
21721
21731
  }
21722
21732
  const imageModule = bindImageRenderModule;
21723
21733
 
@@ -21848,7 +21858,7 @@
21848
21858
  function bindRect3dRenderModule({
21849
21859
  bind: bind
21850
21860
  }) {
21851
- isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21861
+ isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(DefaultCanvasRect3dRender).toDynamicValue(() => new DefaultCanvasRect3dRender()).inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender));
21852
21862
  }
21853
21863
  const rect3dModule = bindRect3dRenderModule;
21854
21864
 
@@ -21977,7 +21987,7 @@
21977
21987
  function bindArc3dRenderModule({
21978
21988
  bind: bind
21979
21989
  }) {
21980
- isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21990
+ isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(DefaultCanvasArc3DRender).toDynamicValue(() => new DefaultCanvasArc3DRender()).inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender));
21981
21991
  }
21982
21992
  const arc3dModule = bindArc3dRenderModule;
21983
21993
 
@@ -22016,7 +22026,7 @@
22016
22026
  function bindPyramid3dRenderModule({
22017
22027
  bind: bind
22018
22028
  }) {
22019
- isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22029
+ isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(DefaultCanvasPyramid3dRender).toDynamicValue(() => new DefaultCanvasPyramid3dRender()).inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender));
22020
22030
  }
22021
22031
  const pyramid3dModule = bindPyramid3dRenderModule;
22022
22032
 
@@ -27023,8 +27033,8 @@
27023
27033
  loadTextPick$1 || (loadTextPick$1 = !0, container.bind(CanvasTextPicker).toDynamicValue(() => new DefaultCanvasTextPicker(resolveContainerBinding(container, TextRender))).inSingletonScope(), container.bind(CanvasPickerContribution).toService(CanvasTextPicker));
27024
27034
  }
27025
27035
 
27026
- const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
27027
- const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
27036
+ const GIFIMAGE_NUMBER_TYPE = genNumberType();
27037
+ const LOTTIE_NUMBER_TYPE = genNumberType();
27028
27038
 
27029
27039
  class DefaultCanvasGifImagePicker {
27030
27040
  constructor() {
@@ -55265,7 +55275,7 @@
55265
55275
  return resolveLegacyApp().createStage(params);
55266
55276
  }
55267
55277
 
55268
- const version = "1.1.0-alpha.26";
55278
+ const version = "1.1.0-alpha.28";
55269
55279
 
55270
55280
  exports.AComponentAnimate = AComponentAnimate;
55271
55281
  exports.ACustomAnimate = ACustomAnimate;