@visactor/vrender-components 1.1.0-alpha.25 → 1.1.0-alpha.27
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/README.md +9 -1
- package/cjs/crosshair/polygon-sector.js +1 -2
- package/cjs/crosshair/rect.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +5 -195
- package/es/crosshair/polygon-sector.js +1 -2
- package/es/crosshair/rect.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +272 -6
package/README.md
CHANGED
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```typescript
|
|
8
|
-
import {
|
|
8
|
+
import { Tooltip } from '@visactor/vrender-components';
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
For bundle-size-sensitive profiles, prefer public component subpaths instead of the package root:
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DataZoom } from '@visactor/vrender-components/data-zoom';
|
|
15
|
+
import { MarkLine } from '@visactor/vrender-components/marker/line';
|
|
16
|
+
import { ScrollBar } from '@visactor/vrender-components/scrollbar';
|
|
9
17
|
```
|
|
10
18
|
|
|
11
19
|
## Develop
|
package/cjs/crosshair/rect.js
CHANGED
package/cjs/index.d.ts
CHANGED
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.
|
|
20
|
+
}), exports.version = void 0, exports.version = "1.1.0-alpha.27", __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.
|
|
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.27\";\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,193 +2864,6 @@ 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
|
-
|
|
3040
|
-
class XMLParser {
|
|
3041
|
-
constructor(options) {
|
|
3042
|
-
this.options = Object.assign({}, XMLParser.defaultOptions, options);
|
|
3043
|
-
}
|
|
3044
|
-
valid(xml) {
|
|
3045
|
-
return xml.startsWith("<");
|
|
3046
|
-
}
|
|
3047
|
-
parse(xmlData) {
|
|
3048
|
-
if (!this.valid) return !1;
|
|
3049
|
-
const orderedResult = new OrderedObjParser(this.options).parseXml(xmlData);
|
|
3050
|
-
return prettify(orderedResult, this.options);
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
XMLParser.defaultOptions = {};
|
|
3054
2867
|
function isSvg(str) {
|
|
3055
2868
|
return str.startsWith("<svg") || str.startsWith("<?xml");
|
|
3056
2869
|
}
|
|
@@ -5215,7 +5028,10 @@ class Graphic extends Node {
|
|
|
5215
5028
|
if (path = Graphic.userSymbolMap[symbolType], path) return path;
|
|
5216
5029
|
const _symbolType = builtInSymbolStrMap[symbolType];
|
|
5217
5030
|
if (!0 === isSvg(symbolType = _symbolType || symbolType)) {
|
|
5218
|
-
const
|
|
5031
|
+
const {
|
|
5032
|
+
XMLParser: XMLParser
|
|
5033
|
+
} = require("../common/xml/parser"),
|
|
5034
|
+
parser = new XMLParser(),
|
|
5219
5035
|
{
|
|
5220
5036
|
svg: svg
|
|
5221
5037
|
} = parser.parse(symbolType);
|
|
@@ -9631,12 +9447,6 @@ class DefaultGraphicService {
|
|
|
9631
9447
|
clearAABBBounds(graphic, stage, b) {
|
|
9632
9448
|
this.hooks.clearAABBBounds.taps.length && this.hooks.clearAABBBounds.call(graphic, stage, b);
|
|
9633
9449
|
}
|
|
9634
|
-
updatePathProxyAABBBounds(aabbBounds, graphic) {
|
|
9635
|
-
const path = "function" == typeof graphic.pathProxy ? graphic.pathProxy(graphic.attribute) : graphic.pathProxy;
|
|
9636
|
-
if (!path) return !1;
|
|
9637
|
-
const boundsContext = new BoundsContext(aabbBounds);
|
|
9638
|
-
return renderCommandList(path.commandList, boundsContext, 0, 0), !0;
|
|
9639
|
-
}
|
|
9640
9450
|
updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
|
|
9641
9451
|
const {
|
|
9642
9452
|
textAlign: textAlign,
|
|
@@ -36408,6 +36218,6 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
36408
36218
|
select: true
|
|
36409
36219
|
};
|
|
36410
36220
|
|
|
36411
|
-
const version = "1.1.0-alpha.
|
|
36221
|
+
const version = "1.1.0-alpha.27";
|
|
36412
36222
|
|
|
36413
36223
|
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 };
|
package/es/crosshair/rect.js
CHANGED
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
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.
|
|
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.27\";\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.
|
|
3
|
+
"version": "1.1.0-alpha.27",
|
|
4
4
|
"description": "components library for dp visualization",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -14,12 +14,30 @@
|
|
|
14
14
|
"axis/*": [
|
|
15
15
|
"es/axis/*"
|
|
16
16
|
],
|
|
17
|
+
"brush": [
|
|
18
|
+
"es/brush/index.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"brush/*": [
|
|
21
|
+
"es/brush/*"
|
|
22
|
+
],
|
|
23
|
+
"checkbox": [
|
|
24
|
+
"es/checkbox/index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"checkbox/*": [
|
|
27
|
+
"es/checkbox/*"
|
|
28
|
+
],
|
|
17
29
|
"crosshair": [
|
|
18
30
|
"es/crosshair/index.d.ts"
|
|
19
31
|
],
|
|
20
32
|
"crosshair/*": [
|
|
21
33
|
"es/crosshair/*"
|
|
22
34
|
],
|
|
35
|
+
"data-zoom": [
|
|
36
|
+
"es/data-zoom/index.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"data-zoom/*": [
|
|
39
|
+
"es/data-zoom/*"
|
|
40
|
+
],
|
|
23
41
|
"label": [
|
|
24
42
|
"es/label/index.d.ts"
|
|
25
43
|
],
|
|
@@ -29,18 +47,66 @@
|
|
|
29
47
|
"legend/*": [
|
|
30
48
|
"es/legend/*"
|
|
31
49
|
],
|
|
50
|
+
"marker": [
|
|
51
|
+
"es/marker/index.d.ts"
|
|
52
|
+
],
|
|
53
|
+
"marker/*": [
|
|
54
|
+
"es/marker/*"
|
|
55
|
+
],
|
|
56
|
+
"player": [
|
|
57
|
+
"es/player/index.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"player/*": [
|
|
60
|
+
"es/player/*"
|
|
61
|
+
],
|
|
32
62
|
"poptip": [
|
|
33
63
|
"es/poptip/index.d.ts"
|
|
34
64
|
],
|
|
35
65
|
"poptip/*": [
|
|
36
66
|
"es/poptip/*"
|
|
37
67
|
],
|
|
68
|
+
"radio": [
|
|
69
|
+
"es/radio/index.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"radio/*": [
|
|
72
|
+
"es/radio/*"
|
|
73
|
+
],
|
|
74
|
+
"scrollbar": [
|
|
75
|
+
"es/scrollbar/index.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"scrollbar/*": [
|
|
78
|
+
"es/scrollbar/*"
|
|
79
|
+
],
|
|
80
|
+
"slider": [
|
|
81
|
+
"es/slider/index.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"slider/*": [
|
|
84
|
+
"es/slider/*"
|
|
85
|
+
],
|
|
86
|
+
"table-series-number": [
|
|
87
|
+
"es/table-series-number/index.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"table-series-number/*": [
|
|
90
|
+
"es/table-series-number/*"
|
|
91
|
+
],
|
|
38
92
|
"tag": [
|
|
39
93
|
"es/tag/index.d.ts"
|
|
40
94
|
],
|
|
41
95
|
"tag/*": [
|
|
42
96
|
"es/tag/*"
|
|
43
97
|
],
|
|
98
|
+
"timeline": [
|
|
99
|
+
"es/timeline/index.d.ts"
|
|
100
|
+
],
|
|
101
|
+
"timeline/*": [
|
|
102
|
+
"es/timeline/*"
|
|
103
|
+
],
|
|
104
|
+
"title": [
|
|
105
|
+
"es/title/index.d.ts"
|
|
106
|
+
],
|
|
107
|
+
"title/*": [
|
|
108
|
+
"es/title/*"
|
|
109
|
+
],
|
|
44
110
|
"tooltip": [
|
|
45
111
|
"es/tooltip/index.d.ts"
|
|
46
112
|
],
|
|
@@ -63,9 +129,9 @@
|
|
|
63
129
|
"dependencies": {
|
|
64
130
|
"@visactor/vutils": "~1.0.12",
|
|
65
131
|
"@visactor/vscale": "~1.0.12",
|
|
66
|
-
"@visactor/vrender-core": "1.1.0-alpha.
|
|
67
|
-
"@visactor/vrender-kits": "1.1.0-alpha.
|
|
68
|
-
"@visactor/vrender-animate": "1.1.0-alpha.
|
|
132
|
+
"@visactor/vrender-core": "1.1.0-alpha.27",
|
|
133
|
+
"@visactor/vrender-kits": "1.1.0-alpha.27",
|
|
134
|
+
"@visactor/vrender-animate": "1.1.0-alpha.27"
|
|
69
135
|
},
|
|
70
136
|
"devDependencies": {
|
|
71
137
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
@@ -80,8 +146,8 @@
|
|
|
80
146
|
"typescript": "4.9.5",
|
|
81
147
|
"cross-env": "^7.0.3",
|
|
82
148
|
"@internal/bundler": "0.0.1",
|
|
83
|
-
"@internal/
|
|
84
|
-
"@internal/
|
|
149
|
+
"@internal/eslint-config": "0.0.1",
|
|
150
|
+
"@internal/ts-config": "0.0.1"
|
|
85
151
|
},
|
|
86
152
|
"keywords": [
|
|
87
153
|
"VisActor",
|
|
@@ -110,6 +176,21 @@
|
|
|
110
176
|
"import": "./es/index.js",
|
|
111
177
|
"require": "./cjs/index.js"
|
|
112
178
|
},
|
|
179
|
+
"./brush": {
|
|
180
|
+
"types": "./es/brush/index.d.ts",
|
|
181
|
+
"import": "./es/brush/index.js",
|
|
182
|
+
"require": "./cjs/brush/index.js"
|
|
183
|
+
},
|
|
184
|
+
"./brush/register": {
|
|
185
|
+
"types": "./es/brush/register.d.ts",
|
|
186
|
+
"import": "./es/brush/register.js",
|
|
187
|
+
"require": "./cjs/brush/register.js"
|
|
188
|
+
},
|
|
189
|
+
"./brush/type": {
|
|
190
|
+
"types": "./es/brush/type.d.ts",
|
|
191
|
+
"import": "./es/brush/type.js",
|
|
192
|
+
"require": "./cjs/brush/type.js"
|
|
193
|
+
},
|
|
113
194
|
"./axis": {
|
|
114
195
|
"types": "./es/axis/index.d.ts",
|
|
115
196
|
"import": "./es/axis/index.js",
|
|
@@ -165,6 +246,21 @@
|
|
|
165
246
|
"import": "./es/axis/util.js",
|
|
166
247
|
"require": "./cjs/axis/util.js"
|
|
167
248
|
},
|
|
249
|
+
"./checkbox": {
|
|
250
|
+
"types": "./es/checkbox/index.d.ts",
|
|
251
|
+
"import": "./es/checkbox/index.js",
|
|
252
|
+
"require": "./cjs/checkbox/index.js"
|
|
253
|
+
},
|
|
254
|
+
"./checkbox/register": {
|
|
255
|
+
"types": "./es/checkbox/register.d.ts",
|
|
256
|
+
"import": "./es/checkbox/register.js",
|
|
257
|
+
"require": "./cjs/checkbox/register.js"
|
|
258
|
+
},
|
|
259
|
+
"./checkbox/type": {
|
|
260
|
+
"types": "./es/checkbox/type.d.ts",
|
|
261
|
+
"import": "./es/checkbox/type.js",
|
|
262
|
+
"require": "./cjs/checkbox/type.js"
|
|
263
|
+
},
|
|
168
264
|
"./crosshair": {
|
|
169
265
|
"types": "./es/crosshair/index.d.ts",
|
|
170
266
|
"import": "./es/crosshair/index.js",
|
|
@@ -185,6 +281,21 @@
|
|
|
185
281
|
"import": "./es/crosshair/type.js",
|
|
186
282
|
"require": "./cjs/crosshair/type.js"
|
|
187
283
|
},
|
|
284
|
+
"./data-zoom": {
|
|
285
|
+
"types": "./es/data-zoom/index.d.ts",
|
|
286
|
+
"import": "./es/data-zoom/index.js",
|
|
287
|
+
"require": "./cjs/data-zoom/index.js"
|
|
288
|
+
},
|
|
289
|
+
"./data-zoom/register": {
|
|
290
|
+
"types": "./es/data-zoom/register.d.ts",
|
|
291
|
+
"import": "./es/data-zoom/register.js",
|
|
292
|
+
"require": "./cjs/data-zoom/register.js"
|
|
293
|
+
},
|
|
294
|
+
"./data-zoom/type": {
|
|
295
|
+
"types": "./es/data-zoom/type.d.ts",
|
|
296
|
+
"import": "./es/data-zoom/type.js",
|
|
297
|
+
"require": "./cjs/data-zoom/type.js"
|
|
298
|
+
},
|
|
188
299
|
"./label": {
|
|
189
300
|
"types": "./es/label/index.d.ts",
|
|
190
301
|
"import": "./es/label/index.js",
|
|
@@ -230,6 +341,61 @@
|
|
|
230
341
|
"import": "./es/legend/constant.js",
|
|
231
342
|
"require": "./cjs/legend/constant.js"
|
|
232
343
|
},
|
|
344
|
+
"./marker": {
|
|
345
|
+
"types": "./es/marker/index.d.ts",
|
|
346
|
+
"import": "./es/marker/index.js",
|
|
347
|
+
"require": "./cjs/marker/index.js"
|
|
348
|
+
},
|
|
349
|
+
"./marker/arc-area": {
|
|
350
|
+
"types": "./es/marker/arc-area.d.ts",
|
|
351
|
+
"import": "./es/marker/arc-area.js",
|
|
352
|
+
"require": "./cjs/marker/arc-area.js"
|
|
353
|
+
},
|
|
354
|
+
"./marker/arc-line": {
|
|
355
|
+
"types": "./es/marker/arc-line.d.ts",
|
|
356
|
+
"import": "./es/marker/arc-line.js",
|
|
357
|
+
"require": "./cjs/marker/arc-line.js"
|
|
358
|
+
},
|
|
359
|
+
"./marker/area": {
|
|
360
|
+
"types": "./es/marker/area.d.ts",
|
|
361
|
+
"import": "./es/marker/area.js",
|
|
362
|
+
"require": "./cjs/marker/area.js"
|
|
363
|
+
},
|
|
364
|
+
"./marker/line": {
|
|
365
|
+
"types": "./es/marker/line.d.ts",
|
|
366
|
+
"import": "./es/marker/line.js",
|
|
367
|
+
"require": "./cjs/marker/line.js"
|
|
368
|
+
},
|
|
369
|
+
"./marker/point": {
|
|
370
|
+
"types": "./es/marker/point.d.ts",
|
|
371
|
+
"import": "./es/marker/point.js",
|
|
372
|
+
"require": "./cjs/marker/point.js"
|
|
373
|
+
},
|
|
374
|
+
"./marker/register": {
|
|
375
|
+
"types": "./es/marker/register.d.ts",
|
|
376
|
+
"import": "./es/marker/register.js",
|
|
377
|
+
"require": "./cjs/marker/register.js"
|
|
378
|
+
},
|
|
379
|
+
"./marker/type": {
|
|
380
|
+
"types": "./es/marker/type.d.ts",
|
|
381
|
+
"import": "./es/marker/type.js",
|
|
382
|
+
"require": "./cjs/marker/type.js"
|
|
383
|
+
},
|
|
384
|
+
"./player": {
|
|
385
|
+
"types": "./es/player/index.d.ts",
|
|
386
|
+
"import": "./es/player/index.js",
|
|
387
|
+
"require": "./cjs/player/index.js"
|
|
388
|
+
},
|
|
389
|
+
"./player/register": {
|
|
390
|
+
"types": "./es/player/register.d.ts",
|
|
391
|
+
"import": "./es/player/register.js",
|
|
392
|
+
"require": "./cjs/player/register.js"
|
|
393
|
+
},
|
|
394
|
+
"./player/type": {
|
|
395
|
+
"types": "./es/player/type/index.d.ts",
|
|
396
|
+
"import": "./es/player/type/index.js",
|
|
397
|
+
"require": "./cjs/player/type/index.js"
|
|
398
|
+
},
|
|
233
399
|
"./poptip": {
|
|
234
400
|
"types": "./es/poptip/index.d.ts",
|
|
235
401
|
"import": "./es/poptip/index.js",
|
|
@@ -245,6 +411,76 @@
|
|
|
245
411
|
"import": "./es/poptip/type.js",
|
|
246
412
|
"require": "./cjs/poptip/type.js"
|
|
247
413
|
},
|
|
414
|
+
"./radio": {
|
|
415
|
+
"types": "./es/radio/index.d.ts",
|
|
416
|
+
"import": "./es/radio/index.js",
|
|
417
|
+
"require": "./cjs/radio/index.js"
|
|
418
|
+
},
|
|
419
|
+
"./radio/register": {
|
|
420
|
+
"types": "./es/radio/register.d.ts",
|
|
421
|
+
"import": "./es/radio/register.js",
|
|
422
|
+
"require": "./cjs/radio/register.js"
|
|
423
|
+
},
|
|
424
|
+
"./radio/type": {
|
|
425
|
+
"types": "./es/radio/type.d.ts",
|
|
426
|
+
"import": "./es/radio/type.js",
|
|
427
|
+
"require": "./cjs/radio/type.js"
|
|
428
|
+
},
|
|
429
|
+
"./scrollbar": {
|
|
430
|
+
"types": "./es/scrollbar/index.d.ts",
|
|
431
|
+
"import": "./es/scrollbar/index.js",
|
|
432
|
+
"require": "./cjs/scrollbar/index.js"
|
|
433
|
+
},
|
|
434
|
+
"./scrollbar/module": {
|
|
435
|
+
"types": "./es/scrollbar/module.d.ts",
|
|
436
|
+
"import": "./es/scrollbar/module.js",
|
|
437
|
+
"require": "./cjs/scrollbar/module.js"
|
|
438
|
+
},
|
|
439
|
+
"./scrollbar/register": {
|
|
440
|
+
"types": "./es/scrollbar/register.d.ts",
|
|
441
|
+
"import": "./es/scrollbar/register.js",
|
|
442
|
+
"require": "./cjs/scrollbar/register.js"
|
|
443
|
+
},
|
|
444
|
+
"./scrollbar/type": {
|
|
445
|
+
"types": "./es/scrollbar/type.d.ts",
|
|
446
|
+
"import": "./es/scrollbar/type.js",
|
|
447
|
+
"require": "./cjs/scrollbar/type.js"
|
|
448
|
+
},
|
|
449
|
+
"./slider": {
|
|
450
|
+
"types": "./es/slider/index.d.ts",
|
|
451
|
+
"import": "./es/slider/index.js",
|
|
452
|
+
"require": "./cjs/slider/index.js"
|
|
453
|
+
},
|
|
454
|
+
"./slider/constant": {
|
|
455
|
+
"types": "./es/slider/constant.d.ts",
|
|
456
|
+
"import": "./es/slider/constant.js",
|
|
457
|
+
"require": "./cjs/slider/constant.js"
|
|
458
|
+
},
|
|
459
|
+
"./slider/register": {
|
|
460
|
+
"types": "./es/slider/register.d.ts",
|
|
461
|
+
"import": "./es/slider/register.js",
|
|
462
|
+
"require": "./cjs/slider/register.js"
|
|
463
|
+
},
|
|
464
|
+
"./slider/type": {
|
|
465
|
+
"types": "./es/slider/type.d.ts",
|
|
466
|
+
"import": "./es/slider/type.js",
|
|
467
|
+
"require": "./cjs/slider/type.js"
|
|
468
|
+
},
|
|
469
|
+
"./table-series-number": {
|
|
470
|
+
"types": "./es/table-series-number/index.d.ts",
|
|
471
|
+
"import": "./es/table-series-number/index.js",
|
|
472
|
+
"require": "./cjs/table-series-number/index.js"
|
|
473
|
+
},
|
|
474
|
+
"./table-series-number/register": {
|
|
475
|
+
"types": "./es/table-series-number/register.d.ts",
|
|
476
|
+
"import": "./es/table-series-number/register.js",
|
|
477
|
+
"require": "./cjs/table-series-number/register.js"
|
|
478
|
+
},
|
|
479
|
+
"./table-series-number/type": {
|
|
480
|
+
"types": "./es/table-series-number/type.d.ts",
|
|
481
|
+
"import": "./es/table-series-number/type.js",
|
|
482
|
+
"require": "./cjs/table-series-number/type.js"
|
|
483
|
+
},
|
|
248
484
|
"./tag": {
|
|
249
485
|
"types": "./es/tag/index.d.ts",
|
|
250
486
|
"import": "./es/tag/index.js",
|
|
@@ -255,6 +491,36 @@
|
|
|
255
491
|
"import": "./es/tag/type.js",
|
|
256
492
|
"require": "./cjs/tag/type.js"
|
|
257
493
|
},
|
|
494
|
+
"./timeline": {
|
|
495
|
+
"types": "./es/timeline/index.d.ts",
|
|
496
|
+
"import": "./es/timeline/index.js",
|
|
497
|
+
"require": "./cjs/timeline/index.js"
|
|
498
|
+
},
|
|
499
|
+
"./timeline/register": {
|
|
500
|
+
"types": "./es/timeline/register.d.ts",
|
|
501
|
+
"import": "./es/timeline/register.js",
|
|
502
|
+
"require": "./cjs/timeline/register.js"
|
|
503
|
+
},
|
|
504
|
+
"./timeline/type": {
|
|
505
|
+
"types": "./es/timeline/type.d.ts",
|
|
506
|
+
"import": "./es/timeline/type.js",
|
|
507
|
+
"require": "./cjs/timeline/type.js"
|
|
508
|
+
},
|
|
509
|
+
"./title": {
|
|
510
|
+
"types": "./es/title/index.d.ts",
|
|
511
|
+
"import": "./es/title/index.js",
|
|
512
|
+
"require": "./cjs/title/index.js"
|
|
513
|
+
},
|
|
514
|
+
"./title/register": {
|
|
515
|
+
"types": "./es/title/register.d.ts",
|
|
516
|
+
"import": "./es/title/register.js",
|
|
517
|
+
"require": "./cjs/title/register.js"
|
|
518
|
+
},
|
|
519
|
+
"./title/type": {
|
|
520
|
+
"types": "./es/title/type.d.ts",
|
|
521
|
+
"import": "./es/title/type.js",
|
|
522
|
+
"require": "./cjs/title/type.js"
|
|
523
|
+
},
|
|
258
524
|
"./tooltip": {
|
|
259
525
|
"types": "./es/tooltip/index.d.ts",
|
|
260
526
|
"import": "./es/tooltip/index.js",
|