@visactor/vrender-components 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.
@@ -24,5 +24,4 @@ function(AxisStateValue) {
24
24
  [AxisStateValue.selected]: {},
25
25
  [AxisStateValue.hover]: {},
26
26
  [AxisStateValue.hoverReverse]: {}
27
- }, exports.TopZIndex = 999;
28
- //# sourceMappingURL=constant.js.map
27
+ }, exports.TopZIndex = 999;
package/cjs/axis/util.js CHANGED
@@ -104,4 +104,5 @@ exports.getAxisBreakSymbolAttrs = getAxisBreakSymbolAttrs, exports.getElMap = ge
104
104
  exports.getVerticalCoord = getVerticalCoord, exports.getCircleVerticalVector = getCircleVerticalVector,
105
105
  exports.angleLabelOrientAttribute = angleLabelOrientAttribute, exports.getPolarAngleLabelPosition = getPolarAngleLabelPosition,
106
106
  exports.getCirclePoints = getCirclePoints, exports.getPolygonPath = getPolygonPath,
107
- exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
107
+ exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
108
+ //# sourceMappingURL=util.js.map
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.26";
1
+ export declare const version = "1.1.0-alpha.28";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "1.1.0-alpha.26", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "1.1.0-alpha.28", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./core/type"), exports), __exportStar(require("./scrollbar"), exports),
22
22
  __exportStar(require("./tag"), exports), __exportStar(require("./poptip"), exports),
23
23
  __exportStar(require("./crosshair"), exports), __exportStar(require("./label"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.26\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.28\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/dist/index.es.js CHANGED
@@ -2864,10 +2864,198 @@ const builtInSymbolStrMap = {
2864
2864
  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"
2865
2865
  };
2866
2866
 
2867
+ function getAllMatches(string, regex) {
2868
+ const matches = [];
2869
+ let match = regex.exec(string);
2870
+ for (; match;) {
2871
+ const allmatches = [];
2872
+ allmatches.startIndex = regex.lastIndex - match[0].length;
2873
+ const len = match.length;
2874
+ for (let index = 0; index < len; index++) allmatches.push(match[index]);
2875
+ matches.push(allmatches), match = regex.exec(string);
2876
+ }
2877
+ return matches;
2878
+ }
2879
+
2880
+ class XmlNode {
2881
+ constructor(tagname) {
2882
+ this.tagname = tagname, this.child = [], this[":@"] = {};
2883
+ }
2884
+ add(key, val) {
2885
+ "__proto__" === key && (key = "#__proto__"), this.child.push({
2886
+ [key]: val
2887
+ });
2888
+ }
2889
+ addChild(node) {
2890
+ "__proto__" === node.tagname && (node.tagname = "#__proto__"), node[":@"] && Object.keys(node[":@"]).length > 0 ? this.child.push({
2891
+ [node.tagname]: node.child,
2892
+ ":@": node[":@"]
2893
+ }) : this.child.push({
2894
+ [node.tagname]: node.child
2895
+ });
2896
+ }
2897
+ }
2898
+ function findClosingIndex(xmlData, str, i, errMsg) {
2899
+ const closingIndex = xmlData.indexOf(str, i);
2900
+ if (-1 === closingIndex) throw new Error(errMsg);
2901
+ return closingIndex + str.length - 1;
2902
+ }
2903
+ function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
2904
+ let attrBoundary,
2905
+ tagExp = "";
2906
+ for (let index = i; index < xmlData.length; index++) {
2907
+ let ch = xmlData[index];
2908
+ if (attrBoundary) ch === attrBoundary && (attrBoundary = "");else if ('"' === ch || "'" === ch) attrBoundary = ch;else if (ch === closingChar[0]) {
2909
+ if (!closingChar[1]) return {
2910
+ data: tagExp,
2911
+ index: index
2912
+ };
2913
+ if (xmlData[index + 1] === closingChar[1]) return {
2914
+ data: tagExp,
2915
+ index: index
2916
+ };
2917
+ } else "\t" === ch && (ch = " ");
2918
+ tagExp += ch;
2919
+ }
2920
+ }
2921
+ function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
2922
+ const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
2923
+ if (!result) return;
2924
+ let tagExp = result.data;
2925
+ const closeIndex = result.index,
2926
+ separatorIndex = tagExp.search(/\s/);
2927
+ let tagName = tagExp,
2928
+ attrExpPresent = !0;
2929
+ -1 !== separatorIndex && (tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""), tagExp = tagExp.substr(separatorIndex + 1));
2930
+ const rawTagName = tagName;
2931
+ if (removeNSPrefix) {
2932
+ const colonIndex = tagName.indexOf(":");
2933
+ -1 !== colonIndex && (tagName = tagName.substr(colonIndex + 1), attrExpPresent = tagName !== result.data.substr(colonIndex + 1));
2934
+ }
2935
+ return {
2936
+ tagName: tagName,
2937
+ tagExp: tagExp,
2938
+ closeIndex: closeIndex,
2939
+ attrExpPresent: attrExpPresent,
2940
+ rawTagName: rawTagName
2941
+ };
2942
+ }
2943
+ const attrsRegx = new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2944
+ class OrderedObjParser {
2945
+ constructor(options) {
2946
+ this.currentNode = null, this.options = options, this.tagsNodeStack = [], this.docTypeEntities = {};
2947
+ }
2948
+ addChild(currentNode, childNode, jPath) {
2949
+ const result = childNode.tagname;
2950
+ "string" == typeof result ? (childNode.tagname = result, currentNode.addChild(childNode)) : currentNode.addChild(childNode);
2951
+ }
2952
+ buildAttributesMap(attrStr, jPath, tagName) {
2953
+ const attrs = {};
2954
+ if (!attrStr) return;
2955
+ const matches = getAllMatches(attrStr, attrsRegx),
2956
+ len = matches.length;
2957
+ for (let i = 0; i < len; i++) {
2958
+ const attrName = matches[i][1],
2959
+ oldVal = matches[i][4],
2960
+ aName = attrName;
2961
+ attrName && (attrs[aName] = void 0 === oldVal || (isNaN(oldVal) ? oldVal : Number(oldVal)));
2962
+ }
2963
+ return attrs;
2964
+ }
2965
+ parseXml(xmlData) {
2966
+ xmlData = xmlData.replace(/\r\n?/g, "\n");
2967
+ const xmlObj = new XmlNode("!xml");
2968
+ let currentNode = xmlObj,
2969
+ textData = "",
2970
+ jPath = "";
2971
+ for (let i = 0; i < xmlData.length; i++) {
2972
+ if ("<" === xmlData[i]) {
2973
+ if ("/" === xmlData[i + 1]) {
2974
+ const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."),
2975
+ propIndex = jPath.lastIndexOf(".");
2976
+ 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;
2977
+ } else if ("?" === xmlData[i + 1]) {
2978
+ i = readTagExp(xmlData, i, !1, "?>").closeIndex + 1;
2979
+ } else if ("!--" === xmlData.substr(i + 1, 3)) {
2980
+ i = findClosingIndex(xmlData, "--\x3e", i + 4, "Comment is not closed.");
2981
+ } else {
2982
+ const result = readTagExp(xmlData, i, !1);
2983
+ let tagName = result.tagName,
2984
+ tagExp = result.tagExp;
2985
+ const attrExpPresent = result.attrExpPresent,
2986
+ closeIndex = result.closeIndex;
2987
+ if (tagName !== xmlObj.tagname && (jPath += jPath ? "." + tagName : tagName), tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
2988
+ "/" === 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);
2989
+ const childNode = new XmlNode(tagName);
2990
+ tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), jPath = jPath.substr(0, jPath.lastIndexOf("."));
2991
+ } else {
2992
+ const childNode = new XmlNode(tagName);
2993
+ this.tagsNodeStack.push(currentNode), tagName !== tagExp && attrExpPresent && (childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName)), this.addChild(currentNode, childNode, jPath), currentNode = childNode;
2994
+ }
2995
+ textData = "", i = closeIndex;
2996
+ }
2997
+ } else textData += xmlData[i];
2998
+ }
2999
+ return xmlObj.child;
3000
+ }
3001
+ }
3002
+
3003
+ function prettify(node, options) {
3004
+ return compress(node);
3005
+ }
3006
+ function compress(arr, jPath) {
3007
+ const compressedObj = {};
3008
+ for (let i = 0; i < arr.length; i++) {
3009
+ const tagObj = arr[i],
3010
+ property = propName(tagObj);
3011
+ if (void 0 !== property && tagObj[property]) {
3012
+ const val = compress(tagObj[property]);
3013
+ isLeafTag(val);
3014
+ 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;
3015
+ }
3016
+ }
3017
+ return compressedObj;
3018
+ }
3019
+ function propName(obj) {
3020
+ const keys = Object.keys(obj);
3021
+ for (let i = 0; i < keys.length; i++) {
3022
+ const key = keys[i];
3023
+ if (":@" !== key) return key;
3024
+ }
3025
+ }
3026
+ function assignAttributes(obj, attrMap, jpath) {
3027
+ if (attrMap) {
3028
+ const keys = Object.keys(attrMap),
3029
+ len = keys.length;
3030
+ for (let i = 0; i < len; i++) {
3031
+ const atrrName = keys[i];
3032
+ obj[atrrName] = attrMap[atrrName];
3033
+ }
3034
+ }
3035
+ }
3036
+ function isLeafTag(obj) {
3037
+ return 0 === Object.keys(obj).length;
3038
+ }
3039
+
2867
3040
  function isSvg(str) {
2868
3041
  return str.startsWith("<svg") || str.startsWith("<?xml");
2869
3042
  }
2870
3043
 
3044
+ class XMLParser {
3045
+ constructor(options) {
3046
+ this.options = Object.assign({}, XMLParser.defaultOptions, options);
3047
+ }
3048
+ valid(xml) {
3049
+ return xml.startsWith("<");
3050
+ }
3051
+ parse(xmlData) {
3052
+ if (!this.valid) return !1;
3053
+ const orderedResult = new OrderedObjParser(this.options).parseXml(xmlData);
3054
+ return prettify(orderedResult, this.options);
3055
+ }
3056
+ }
3057
+ XMLParser.defaultOptions = {};
3058
+
2871
3059
  undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
2872
3060
  return new (P || (P = Promise))(function (resolve, reject) {
2873
3061
  function fulfilled(value) {
@@ -5028,10 +5216,7 @@ class Graphic extends Node {
5028
5216
  if (path = Graphic.userSymbolMap[symbolType], path) return path;
5029
5217
  const _symbolType = builtInSymbolStrMap[symbolType];
5030
5218
  if (!0 === isSvg(symbolType = _symbolType || symbolType)) {
5031
- const {
5032
- XMLParser: XMLParser
5033
- } = require("../common/xml/parser"),
5034
- parser = new XMLParser(),
5219
+ const parser = new XMLParser(),
5035
5220
  {
5036
5221
  svg: svg
5037
5222
  } = parser.parse(symbolType);
@@ -14608,7 +14793,9 @@ const loadedArcModuleContexts = new WeakSet();
14608
14793
  function bindArcRenderModule({
14609
14794
  bind: bind
14610
14795
  }) {
14611
- isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
14796
+ isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toDynamicValue(({
14797
+ container: container
14798
+ }) => new DefaultCanvasArcRender(createContributionProvider(ArcRenderContribution, container))).inSingletonScope(), bind(ArcRender).toService(DefaultCanvasArcRender), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
14612
14799
  }
14613
14800
  const arcModule = bindArcRenderModule;
14614
14801
 
@@ -14626,7 +14813,7 @@ const loadedLineModuleContexts = new WeakSet();
14626
14813
  function bindLineRenderModule({
14627
14814
  bind: bind
14628
14815
  }) {
14629
- isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
14816
+ isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toDynamicValue(() => new DefaultCanvasLineRender()).inSingletonScope(), bind(LineRender).toService(DefaultCanvasLineRender), bind(GraphicRender).toService(LineRender));
14630
14817
  }
14631
14818
  const lineModule = bindLineRenderModule;
14632
14819
 
@@ -14634,7 +14821,9 @@ const loadedAreaModuleContexts = new WeakSet();
14634
14821
  function bindAreaRenderModule({
14635
14822
  bind: bind
14636
14823
  }) {
14637
- 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());
14824
+ isBindingContextLoaded(loadedAreaModuleContexts, bind) || (bind(DefaultCanvasAreaRender).toDynamicValue(({
14825
+ container: container
14826
+ }) => new DefaultCanvasAreaRender(createContributionProvider(AreaRenderContribution, container))).inSingletonScope(), bind(AreaRender).toService(DefaultCanvasAreaRender), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution));
14638
14827
  }
14639
14828
  const areaModule = bindAreaRenderModule;
14640
14829
 
@@ -14642,7 +14831,9 @@ const loadedSymbolModuleContexts = new WeakSet();
14642
14831
  function bindSymbolRenderModule({
14643
14832
  bind: bind
14644
14833
  }) {
14645
- isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
14834
+ isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toDynamicValue(({
14835
+ container: container
14836
+ }) => new DefaultCanvasSymbolRender(createContributionProvider(SymbolRenderContribution, container))).inSingletonScope(), bind(SymbolRender).toService(DefaultCanvasSymbolRender), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
14646
14837
  }
14647
14838
  const symbolModule = bindSymbolRenderModule;
14648
14839
 
@@ -14650,7 +14841,9 @@ const loadedCircleModuleContexts = new WeakSet();
14650
14841
  function bindCircleRenderModule({
14651
14842
  bind: bind
14652
14843
  }) {
14653
- isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
14844
+ isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toDynamicValue(({
14845
+ container: container
14846
+ }) => new DefaultCanvasCircleRender(createContributionProvider(CircleRenderContribution, container))).inSingletonScope(), bind(CircleRender).toService(DefaultCanvasCircleRender), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
14654
14847
  }
14655
14848
  const circleModule = bindCircleRenderModule;
14656
14849
 
@@ -14658,7 +14851,9 @@ const loadedTextModuleContexts = new WeakSet();
14658
14851
  function bindTextRenderModule({
14659
14852
  bind: bind
14660
14853
  }) {
14661
- isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
14854
+ isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).toDynamicValue(({
14855
+ container: container
14856
+ }) => new DefaultCanvasTextRender(createContributionProvider(TextRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
14662
14857
  }
14663
14858
  const textModule = bindTextRenderModule;
14664
14859
 
@@ -14666,7 +14861,9 @@ const loadedPathModuleContexts = new WeakSet();
14666
14861
  function bindPathRenderModule({
14667
14862
  bind: bind
14668
14863
  }) {
14669
- isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
14864
+ isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toDynamicValue(({
14865
+ container: container
14866
+ }) => new DefaultCanvasPathRender(createContributionProvider(PathRenderContribution, container))).inSingletonScope(), bind(PathRender).toService(DefaultCanvasPathRender), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
14670
14867
  }
14671
14868
  const pathModule = bindPathRenderModule;
14672
14869
 
@@ -14674,7 +14871,9 @@ const loadedPolygonModuleContexts = new WeakSet();
14674
14871
  function bindPolygonRenderModule({
14675
14872
  bind: bind
14676
14873
  }) {
14677
- isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
14874
+ isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).toDynamicValue(({
14875
+ container: container
14876
+ }) => new DefaultCanvasPolygonRender(createContributionProvider(PolygonRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
14678
14877
  }
14679
14878
  const polygonModule = bindPolygonRenderModule;
14680
14879
 
@@ -14734,7 +14933,7 @@ const loadedRichtextModuleContexts = new WeakSet();
14734
14933
  function bindRichtextRenderModule({
14735
14934
  bind: bind
14736
14935
  }) {
14737
- isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
14936
+ isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(DefaultCanvasRichTextRender).toDynamicValue(() => new DefaultCanvasRichTextRender()).inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender));
14738
14937
  }
14739
14938
  const richtextModule = bindRichtextRenderModule;
14740
14939
 
@@ -14742,7 +14941,9 @@ const loadedImageModuleContexts = new WeakSet();
14742
14941
  function bindImageRenderModule({
14743
14942
  bind: bind
14744
14943
  }) {
14745
- isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
14944
+ isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).toDynamicValue(({
14945
+ container: container
14946
+ }) => new DefaultCanvasImageRender(createContributionProvider(ImageRenderContribution, container))).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
14746
14947
  }
14747
14948
  const imageModule = bindImageRenderModule;
14748
14949
 
@@ -36218,6 +36419,6 @@ TableSeriesNumber.defaultAttributes = {
36218
36419
  select: true
36219
36420
  };
36220
36421
 
36221
- const version = "1.1.0-alpha.26";
36422
+ const version = "1.1.0-alpha.28";
36222
36423
 
36223
36424
  export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IDataZoomEvent, IDataZoomInteractiveEvent, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, TableSeriesNumber, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, installPoptipToApp, installScrollbarToApp, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
@@ -26,5 +26,4 @@ export const DEFAULT_STATES = {
26
26
  [AxisStateValue.hoverReverse]: {}
27
27
  };
28
28
 
29
- export const TopZIndex = 999;
30
- //# sourceMappingURL=constant.js.map
29
+ export const TopZIndex = 999;
package/es/axis/util.js CHANGED
@@ -98,4 +98,5 @@ export function hasOverlap(items, pad) {
98
98
  for (let b, i = 1, n = items.length, a = items[0]; i < n; a = b, ++i) if (b = items[i],
99
99
  textIntersect(a, b, pad)) return !0;
100
100
  return !1;
101
- }
101
+ }
102
+ //# sourceMappingURL=util.js.map
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.26";
1
+ export declare const version = "1.1.0-alpha.28";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "1.1.0-alpha.26";
1
+ export const version = "1.1.0-alpha.28";
2
2
 
3
3
  export * from "./core/base";
4
4
 
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.26\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.28\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.1.0-alpha.26",
3
+ "version": "1.1.0-alpha.28",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -129,9 +129,9 @@
129
129
  "dependencies": {
130
130
  "@visactor/vutils": "~1.0.12",
131
131
  "@visactor/vscale": "~1.0.12",
132
- "@visactor/vrender-core": "1.1.0-alpha.26",
133
- "@visactor/vrender-kits": "1.1.0-alpha.26",
134
- "@visactor/vrender-animate": "1.1.0-alpha.26"
132
+ "@visactor/vrender-core": "1.1.0-alpha.28",
133
+ "@visactor/vrender-kits": "1.1.0-alpha.28",
134
+ "@visactor/vrender-animate": "1.1.0-alpha.28"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@rushstack/eslint-patch": "~1.1.4",
@@ -146,8 +146,8 @@
146
146
  "typescript": "4.9.5",
147
147
  "cross-env": "^7.0.3",
148
148
  "@internal/bundler": "0.0.1",
149
- "@internal/ts-config": "0.0.1",
150
- "@internal/eslint-config": "0.0.1"
149
+ "@internal/eslint-config": "0.0.1",
150
+ "@internal/ts-config": "0.0.1"
151
151
  },
152
152
  "keywords": [
153
153
  "VisActor",