@visactor/vgrammar-core 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/graph/mark/graphic.js +31 -22
- package/cjs/graph/mark/graphic.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/es/graph/mark/graphic.js +23 -23
- package/es/graph/mark/graphic.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/interactions/brush-filter.js +2 -1
- package/es/interactions/element-highlight-by-group.js +1 -2
- package/es/interactions/index.js +2 -1
- package/es/interactions/legend-filter.js +1 -1
- package/es/interactions/player-filter.js +1 -1
- package/es/interactions/roll-up.js +1 -1
- package/es/interactions/scrollbar-filter.js +1 -1
- package/es/interactions/slider-filter.js +1 -1
- package/es/interactions/tooltip.js +1 -1
- package/es/interactions/utils.js +1 -1
- package/es/parse/coordinate.js +1 -1
- package/es/parse/event.js +1 -1
- package/es/parse/mark.js +1 -1
- package/es/parse/option.js +1 -1
- package/es/parse/scale.js +1 -2
- package/es/parse/transform.js +1 -1
- package/es/parse/util.js +1 -1
- package/es/parse/view.js +1 -1
- package/package.json +6 -6
|
@@ -5,133 +5,142 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
}), exports.registerLargeSymbolsGraphic = exports.registerLargeRectsGraphic = exports.registerGlyphGraphic = exports.registerIntervalGraphic = exports.registerCellGraphic = exports.registerRichTextGraphic = exports.registerPolygonGraphic = exports.registerTextGraphic = exports.registerSymbolGraphic = exports.registerShapeGraphic = exports.registerRuleGraphic = exports.registerRect3dGraphic = exports.registerRectGraphic = exports.registerPathGraphic = exports.registerLineGraphic = exports.registerImageGraphic = exports.registerGroupGraphic = exports.registerAreaGraphic = exports.registerPyramid3dGraphic = exports.registerArc3dGraphic = exports.registerArcGraphic = exports.registerCircleGraphic = void 0;
|
|
6
6
|
|
|
7
7
|
const factory_1 = require("../../core/factory"), enums_1 = require("../enums"), large_rects_1 = require("./large-rects"), large_symbols_1 = require("./large-symbols"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_core_1 = require("@visactor/vrender-core"), registerCircleGraphic = () => {
|
|
8
|
-
(0, vrender_kits_1.
|
|
8
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerCircle)(),
|
|
9
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.circle, vrender_core_1.createCircle);
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
exports.registerCircleGraphic = registerCircleGraphic;
|
|
12
13
|
|
|
13
14
|
const registerArcGraphic = () => {
|
|
14
|
-
(0, vrender_kits_1.registerArc)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.arc, vrender_core_1.createArc);
|
|
15
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerArc)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.arc, vrender_core_1.createArc);
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
exports.registerArcGraphic = registerArcGraphic;
|
|
18
19
|
|
|
19
20
|
const registerArc3dGraphic = () => {
|
|
20
|
-
(0, vrender_kits_1.registerArc3d)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.arc3d, vrender_core_1.createArc3d);
|
|
21
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerArc3d)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.arc3d, vrender_core_1.createArc3d);
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
exports.registerArc3dGraphic = registerArc3dGraphic;
|
|
24
25
|
|
|
25
26
|
const registerPyramid3dGraphic = () => {
|
|
26
|
-
(0, vrender_kits_1.
|
|
27
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPyramid3d)(),
|
|
28
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.pyramid3d, vrender_core_1.createPyramid3d);
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
exports.registerPyramid3dGraphic = registerPyramid3dGraphic;
|
|
30
32
|
|
|
31
33
|
const registerAreaGraphic = () => {
|
|
32
|
-
(0, vrender_kits_1.registerArea)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.area, vrender_core_1.createArea);
|
|
34
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerArea)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.area, vrender_core_1.createArea);
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
exports.registerAreaGraphic = registerAreaGraphic;
|
|
36
38
|
|
|
37
39
|
const registerGroupGraphic = () => {
|
|
38
|
-
(0, vrender_kits_1.registerGroup)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.group, vrender_core_1.createGroup);
|
|
40
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerGroup)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.group, vrender_core_1.createGroup);
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
exports.registerGroupGraphic = registerGroupGraphic;
|
|
42
44
|
|
|
43
45
|
const registerImageGraphic = () => {
|
|
44
|
-
(0, vrender_kits_1.registerImage)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.image, vrender_core_1.createImage);
|
|
46
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerImage)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.image, vrender_core_1.createImage);
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
exports.registerImageGraphic = registerImageGraphic;
|
|
48
50
|
|
|
49
51
|
const registerLineGraphic = () => {
|
|
50
|
-
(0, vrender_kits_1.registerLine)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.line, vrender_core_1.createLine);
|
|
52
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerLine)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.line, vrender_core_1.createLine);
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
exports.registerLineGraphic = registerLineGraphic;
|
|
54
56
|
|
|
55
57
|
const registerPathGraphic = () => {
|
|
56
|
-
(0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.path, vrender_core_1.createPath);
|
|
58
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.path, vrender_core_1.createPath);
|
|
57
59
|
};
|
|
58
60
|
|
|
59
61
|
exports.registerPathGraphic = registerPathGraphic;
|
|
60
62
|
|
|
61
63
|
const registerRectGraphic = () => {
|
|
62
|
-
(0, vrender_kits_1.registerRect)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.rect, vrender_core_1.createRect);
|
|
64
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerRect)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.rect, vrender_core_1.createRect);
|
|
63
65
|
};
|
|
64
66
|
|
|
65
67
|
exports.registerRectGraphic = registerRectGraphic;
|
|
66
68
|
|
|
67
69
|
const registerRect3dGraphic = () => {
|
|
68
|
-
(0, vrender_kits_1.
|
|
70
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerRect3d)(),
|
|
71
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.rect3d, vrender_core_1.createRect3d);
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
exports.registerRect3dGraphic = registerRect3dGraphic;
|
|
72
75
|
|
|
73
76
|
const registerRuleGraphic = () => {
|
|
74
|
-
(0, vrender_kits_1.registerLine)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.rule, vrender_core_1.createLine);
|
|
77
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerLine)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.rule, vrender_core_1.createLine);
|
|
75
78
|
};
|
|
76
79
|
|
|
77
80
|
exports.registerRuleGraphic = registerRuleGraphic;
|
|
78
81
|
|
|
79
82
|
const registerShapeGraphic = () => {
|
|
80
|
-
(0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.shape, vrender_core_1.createPath);
|
|
83
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.shape, vrender_core_1.createPath);
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
exports.registerShapeGraphic = registerShapeGraphic;
|
|
84
87
|
|
|
85
88
|
const registerSymbolGraphic = () => {
|
|
86
|
-
(0, vrender_kits_1.
|
|
89
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerSymbol)(),
|
|
90
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.symbol, vrender_core_1.createSymbol);
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
exports.registerSymbolGraphic = registerSymbolGraphic;
|
|
90
94
|
|
|
91
95
|
const registerTextGraphic = () => {
|
|
92
|
-
(0, vrender_kits_1.
|
|
96
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerText)(), (0,
|
|
97
|
+
vrender_kits_1.registerRichtext)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.text, vrender_core_1.createText);
|
|
93
98
|
};
|
|
94
99
|
|
|
95
100
|
exports.registerTextGraphic = registerTextGraphic;
|
|
96
101
|
|
|
97
102
|
const registerPolygonGraphic = () => {
|
|
98
|
-
(0, vrender_kits_1.
|
|
103
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPolygon)(),
|
|
104
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.polygon, vrender_core_1.createPolygon);
|
|
99
105
|
};
|
|
100
106
|
|
|
101
107
|
exports.registerPolygonGraphic = registerPolygonGraphic;
|
|
102
108
|
|
|
103
109
|
const registerRichTextGraphic = () => {
|
|
104
|
-
(0, vrender_kits_1.
|
|
110
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerRichtext)(),
|
|
111
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.richtext, vrender_core_1.createRichText);
|
|
105
112
|
};
|
|
106
113
|
|
|
107
114
|
exports.registerRichTextGraphic = registerRichTextGraphic;
|
|
108
115
|
|
|
109
116
|
const registerCellGraphic = () => {
|
|
110
|
-
(0, vrender_kits_1.
|
|
117
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerSymbol)(),
|
|
118
|
+
factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.cell, vrender_core_1.createSymbol);
|
|
111
119
|
};
|
|
112
120
|
|
|
113
121
|
exports.registerCellGraphic = registerCellGraphic;
|
|
114
122
|
|
|
115
123
|
const registerIntervalGraphic = () => {
|
|
116
|
-
(0, vrender_kits_1.
|
|
124
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerRect)(), (0,
|
|
125
|
+
vrender_kits_1.registerArc)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.interval, vrender_core_1.createRect);
|
|
117
126
|
};
|
|
118
127
|
|
|
119
128
|
exports.registerIntervalGraphic = registerIntervalGraphic;
|
|
120
129
|
|
|
121
130
|
const registerGlyphGraphic = () => {
|
|
122
|
-
(0, vrender_kits_1.registerGlyph)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.glyph, vrender_core_1.createGlyph);
|
|
131
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerGlyph)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.glyph, vrender_core_1.createGlyph);
|
|
123
132
|
};
|
|
124
133
|
|
|
125
134
|
exports.registerGlyphGraphic = registerGlyphGraphic;
|
|
126
135
|
|
|
127
136
|
const registerLargeRectsGraphic = () => {
|
|
128
|
-
(0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.largeRects, (attrs => new large_rects_1.LargeRects(attrs)));
|
|
137
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.largeRects, (attrs => new large_rects_1.LargeRects(attrs)));
|
|
129
138
|
};
|
|
130
139
|
|
|
131
140
|
exports.registerLargeRectsGraphic = registerLargeRectsGraphic;
|
|
132
141
|
|
|
133
142
|
const registerLargeSymbolsGraphic = () => {
|
|
134
|
-
(0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.largeSymbols, (attrs => new large_symbols_1.LargeSymbols(attrs)));
|
|
143
|
+
(0, vrender_kits_1.registerShadowRoot)(), (0, vrender_kits_1.registerPath)(), factory_1.Factory.registerGraphic(enums_1.GrammarMarkType.largeSymbols, (attrs => new large_symbols_1.LargeSymbols(attrs)));
|
|
135
144
|
};
|
|
136
145
|
|
|
137
146
|
exports.registerLargeSymbolsGraphic = registerLargeSymbolsGraphic;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graph/mark/graphic.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAC7C,oCAA2C;AAC3C,+CAA2C;AAC3C,mDAA+C;AAE/C,
|
|
1
|
+
{"version":3,"sources":["../src/graph/mark/graphic.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAC7C,oCAA2C;AAC3C,+CAA2C;AAC3C,mDAA+C;AAE/C,yDAkBgC;AAChC,yDAiBgC;AAEzB,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,iBAAO,CAAC,eAAe,CAAC,uBAAe,CAAC,MAAM,EAAE,2BAAY,CAAC,CAAC;AAChE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D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AANW,QAAA,2BAA2B,+BAMtC","file":"graphic.js","sourcesContent":["import { Factory } from '../../core/factory';\nimport { GrammarMarkType } from '../enums';\nimport { LargeRects } from './large-rects';\nimport { LargeSymbols } from './large-symbols';\nimport type { IGraphic } from '@visactor/vrender-core';\nimport {\n registerCircle,\n registerArc,\n registerArc3d,\n registerPyramid3d,\n registerArea,\n registerGroup,\n registerImage,\n registerRect3d,\n registerLine,\n registerPath,\n registerRect,\n registerSymbol,\n registerText,\n registerPolygon,\n registerRichtext,\n registerGlyph,\n registerShadowRoot\n} from '@visactor/vrender-kits';\nimport {\n createArc,\n createCircle,\n createArc3d,\n createPyramid3d,\n createArea,\n createGroup,\n createImage,\n createRect3d,\n createLine,\n createPath,\n createRect,\n createSymbol,\n createText,\n createPolygon,\n createRichText,\n createGlyph\n} from '@visactor/vrender-core';\n\nexport const registerCircleGraphic = () => {\n registerShadowRoot();\n registerCircle();\n Factory.registerGraphic(GrammarMarkType.circle, createCircle);\n};\n\nexport const registerArcGraphic = () => {\n registerShadowRoot();\n registerArc();\n Factory.registerGraphic(GrammarMarkType.arc, createArc);\n};\n\nexport const registerArc3dGraphic = () => {\n registerShadowRoot();\n registerArc3d();\n Factory.registerGraphic(GrammarMarkType.arc3d, createArc3d);\n};\n\nexport const registerPyramid3dGraphic = () => {\n registerShadowRoot();\n registerPyramid3d();\n Factory.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);\n};\n\nexport const registerAreaGraphic = () => {\n registerShadowRoot();\n registerArea();\n Factory.registerGraphic(GrammarMarkType.area, createArea);\n};\n\nexport const registerGroupGraphic = () => {\n registerShadowRoot();\n registerGroup();\n Factory.registerGraphic(GrammarMarkType.group, createGroup);\n};\n\nexport const registerImageGraphic = () => {\n registerShadowRoot();\n registerImage();\n Factory.registerGraphic(GrammarMarkType.image, createImage);\n};\n\nexport const registerLineGraphic = () => {\n registerShadowRoot();\n registerLine();\n Factory.registerGraphic(GrammarMarkType.line, createLine);\n};\n\nexport const registerPathGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.path, createPath);\n};\n\nexport const registerRectGraphic = () => {\n registerShadowRoot();\n registerRect();\n Factory.registerGraphic(GrammarMarkType.rect, createRect);\n};\n\nexport const registerRect3dGraphic = () => {\n registerShadowRoot();\n registerRect3d();\n Factory.registerGraphic(GrammarMarkType.rect3d, createRect3d);\n};\n\nexport const registerRuleGraphic = () => {\n registerShadowRoot();\n registerLine();\n Factory.registerGraphic(GrammarMarkType.rule, createLine);\n};\n\nexport const registerShapeGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.shape, createPath);\n};\n\nexport const registerSymbolGraphic = () => {\n registerShadowRoot();\n registerSymbol();\n Factory.registerGraphic(GrammarMarkType.symbol, createSymbol);\n};\n\nexport const registerTextGraphic = () => {\n registerShadowRoot();\n registerText();\n registerRichtext();\n Factory.registerGraphic(GrammarMarkType.text, createText);\n};\n\nexport const registerPolygonGraphic = () => {\n registerShadowRoot();\n registerPolygon();\n Factory.registerGraphic(GrammarMarkType.polygon, createPolygon);\n};\n\nexport const registerRichTextGraphic = () => {\n registerShadowRoot();\n registerRichtext();\n Factory.registerGraphic(GrammarMarkType.richtext, createRichText);\n};\n\nexport const registerCellGraphic = () => {\n registerShadowRoot();\n registerSymbol();\n Factory.registerGraphic(GrammarMarkType.cell, createSymbol);\n};\n\nexport const registerIntervalGraphic = () => {\n registerShadowRoot();\n registerRect();\n registerArc();\n Factory.registerGraphic(GrammarMarkType.interval, createRect);\n};\n\nexport const registerGlyphGraphic = () => {\n registerShadowRoot();\n registerGlyph();\n Factory.registerGraphic(GrammarMarkType.glyph, createGlyph);\n};\n\nexport const registerLargeRectsGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.largeRects, (attrs: any) => {\n return new LargeRects(attrs) as unknown as IGraphic;\n });\n};\n\nexport const registerLargeSymbolsGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.largeSymbols, (attrs: any) => {\n return new LargeSymbols(attrs) as unknown as IGraphic;\n });\n};\n"]}
|
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), exports.vglobal = exports.ThemeManager = exports.SIGNAL_VIEW_BOX = exports.SIGNAL_WIDTH = exports.SIGNAL_VIEW_WIDTH = exports.SIGNAL_VIEW_HEIGHT = exports.SIGNAL_PADDING = exports.SIGNAL_HEIGHT = exports.SIGNAL_AUTOFIT = exports.Factory = exports.GrammarBase = exports.invokeFunctionType = exports.parseFunctionType = exports.registerCoordinate = exports.Coordinate = exports.registerScale = exports.Scale = exports.View = exports.version = void 0,
|
|
21
|
-
exports.version = "0.10.
|
|
21
|
+
exports.version = "0.10.4", __exportStar(require("./graph"), exports), __exportStar(require("./interactions"), exports);
|
|
22
22
|
|
|
23
23
|
var view_1 = require("./view");
|
|
24
24
|
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,0CAAwB;AAExB,iDAA+B;AAE/B,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAAoD;AAA3C,8FAAA,KAAK,OAAA;AAAE,sGAAA,aAAa,OAAA;AAC7B,gDAAmE;AAA1D,wGAAA,UAAU,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AACvC,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C;AAE5C,uDAAiD;AAAxC,uGAAA,OAAO,OAAA;AAChB,wCAAsB;AACtB,iDAA+B;AAC/B,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.10.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,0CAAwB;AAExB,iDAA+B;AAE/B,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAAoD;AAA3C,8FAAA,KAAK,OAAA;AAAE,sGAAA,aAAa,OAAA;AAC7B,gDAAmE;AAA1D,wGAAA,UAAU,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AACvC,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C;AAE5C,uDAAiD;AAAxC,uGAAA,OAAO,OAAA;AAChB,wCAAsB;AACtB,iDAA+B;AAC/B,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.10.4\";\n\nexport * from './graph';\n\nexport * from './interactions';\n\nexport { View } from './view';\nexport { Scale, registerScale } from './view/scale';\nexport { Coordinate, registerCoordinate } from './view/coordinate';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n\nexport { vglobal } from '@visactor/vrender-core';\nexport * from './env';\nexport * from './interactions';\nexport * from './semantic-marks/cell';\nexport * from './semantic-marks/interval';\nexport * from './graph/mark/graphic';\n"]}
|
package/es/graph/mark/graphic.js
CHANGED
|
@@ -6,95 +6,95 @@ import { LargeRects } from "./large-rects";
|
|
|
6
6
|
|
|
7
7
|
import { LargeSymbols } from "./large-symbols";
|
|
8
8
|
|
|
9
|
-
import { registerCircle, registerArc, registerArc3d, registerPyramid3d, registerArea, registerGroup, registerImage, registerRect3d, registerLine, registerPath, registerRect, registerSymbol, registerText, registerPolygon, registerRichtext, registerGlyph } from "@visactor/vrender-kits";
|
|
9
|
+
import { registerCircle, registerArc, registerArc3d, registerPyramid3d, registerArea, registerGroup, registerImage, registerRect3d, registerLine, registerPath, registerRect, registerSymbol, registerText, registerPolygon, registerRichtext, registerGlyph, registerShadowRoot } from "@visactor/vrender-kits";
|
|
10
10
|
|
|
11
11
|
import { createArc, createCircle, createArc3d, createPyramid3d, createArea, createGroup, createImage, createRect3d, createLine, createPath, createRect, createSymbol, createText, createPolygon, createRichText, createGlyph } from "@visactor/vrender-core";
|
|
12
12
|
|
|
13
13
|
export const registerCircleGraphic = () => {
|
|
14
|
-
registerCircle(), Factory.registerGraphic(GrammarMarkType.circle, createCircle);
|
|
14
|
+
registerShadowRoot(), registerCircle(), Factory.registerGraphic(GrammarMarkType.circle, createCircle);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const registerArcGraphic = () => {
|
|
18
|
-
registerArc(), Factory.registerGraphic(GrammarMarkType.arc, createArc);
|
|
18
|
+
registerShadowRoot(), registerArc(), Factory.registerGraphic(GrammarMarkType.arc, createArc);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export const registerArc3dGraphic = () => {
|
|
22
|
-
registerArc3d(), Factory.registerGraphic(GrammarMarkType.arc3d, createArc3d);
|
|
22
|
+
registerShadowRoot(), registerArc3d(), Factory.registerGraphic(GrammarMarkType.arc3d, createArc3d);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export const registerPyramid3dGraphic = () => {
|
|
26
|
-
registerPyramid3d(), Factory.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);
|
|
26
|
+
registerShadowRoot(), registerPyramid3d(), Factory.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const registerAreaGraphic = () => {
|
|
30
|
-
registerArea(), Factory.registerGraphic(GrammarMarkType.area, createArea);
|
|
30
|
+
registerShadowRoot(), registerArea(), Factory.registerGraphic(GrammarMarkType.area, createArea);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const registerGroupGraphic = () => {
|
|
34
|
-
registerGroup(), Factory.registerGraphic(GrammarMarkType.group, createGroup);
|
|
34
|
+
registerShadowRoot(), registerGroup(), Factory.registerGraphic(GrammarMarkType.group, createGroup);
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export const registerImageGraphic = () => {
|
|
38
|
-
registerImage(), Factory.registerGraphic(GrammarMarkType.image, createImage);
|
|
38
|
+
registerShadowRoot(), registerImage(), Factory.registerGraphic(GrammarMarkType.image, createImage);
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const registerLineGraphic = () => {
|
|
42
|
-
registerLine(), Factory.registerGraphic(GrammarMarkType.line, createLine);
|
|
42
|
+
registerShadowRoot(), registerLine(), Factory.registerGraphic(GrammarMarkType.line, createLine);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export const registerPathGraphic = () => {
|
|
46
|
-
registerPath(), Factory.registerGraphic(GrammarMarkType.path, createPath);
|
|
46
|
+
registerShadowRoot(), registerPath(), Factory.registerGraphic(GrammarMarkType.path, createPath);
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export const registerRectGraphic = () => {
|
|
50
|
-
registerRect(), Factory.registerGraphic(GrammarMarkType.rect, createRect);
|
|
50
|
+
registerShadowRoot(), registerRect(), Factory.registerGraphic(GrammarMarkType.rect, createRect);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export const registerRect3dGraphic = () => {
|
|
54
|
-
registerRect3d(), Factory.registerGraphic(GrammarMarkType.rect3d, createRect3d);
|
|
54
|
+
registerShadowRoot(), registerRect3d(), Factory.registerGraphic(GrammarMarkType.rect3d, createRect3d);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const registerRuleGraphic = () => {
|
|
58
|
-
registerLine(), Factory.registerGraphic(GrammarMarkType.rule, createLine);
|
|
58
|
+
registerShadowRoot(), registerLine(), Factory.registerGraphic(GrammarMarkType.rule, createLine);
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export const registerShapeGraphic = () => {
|
|
62
|
-
registerPath(), Factory.registerGraphic(GrammarMarkType.shape, createPath);
|
|
62
|
+
registerShadowRoot(), registerPath(), Factory.registerGraphic(GrammarMarkType.shape, createPath);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const registerSymbolGraphic = () => {
|
|
66
|
-
registerSymbol(), Factory.registerGraphic(GrammarMarkType.symbol, createSymbol);
|
|
66
|
+
registerShadowRoot(), registerSymbol(), Factory.registerGraphic(GrammarMarkType.symbol, createSymbol);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export const registerTextGraphic = () => {
|
|
70
|
-
registerText(), registerRichtext(), Factory.registerGraphic(GrammarMarkType.text, createText);
|
|
70
|
+
registerShadowRoot(), registerText(), registerRichtext(), Factory.registerGraphic(GrammarMarkType.text, createText);
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const registerPolygonGraphic = () => {
|
|
74
|
-
registerPolygon(), Factory.registerGraphic(GrammarMarkType.polygon, createPolygon);
|
|
74
|
+
registerShadowRoot(), registerPolygon(), Factory.registerGraphic(GrammarMarkType.polygon, createPolygon);
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
export const registerRichTextGraphic = () => {
|
|
78
|
-
registerRichtext(), Factory.registerGraphic(GrammarMarkType.richtext, createRichText);
|
|
78
|
+
registerShadowRoot(), registerRichtext(), Factory.registerGraphic(GrammarMarkType.richtext, createRichText);
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
export const registerCellGraphic = () => {
|
|
82
|
-
registerSymbol(), Factory.registerGraphic(GrammarMarkType.cell, createSymbol);
|
|
82
|
+
registerShadowRoot(), registerSymbol(), Factory.registerGraphic(GrammarMarkType.cell, createSymbol);
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
export const registerIntervalGraphic = () => {
|
|
86
|
-
registerRect(), registerArc(), Factory.registerGraphic(GrammarMarkType.interval, createRect);
|
|
86
|
+
registerShadowRoot(), registerRect(), registerArc(), Factory.registerGraphic(GrammarMarkType.interval, createRect);
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
export const registerGlyphGraphic = () => {
|
|
90
|
-
registerGlyph(), Factory.registerGraphic(GrammarMarkType.glyph, createGlyph);
|
|
90
|
+
registerShadowRoot(), registerGlyph(), Factory.registerGraphic(GrammarMarkType.glyph, createGlyph);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export const registerLargeRectsGraphic = () => {
|
|
94
|
-
registerPath(), Factory.registerGraphic(GrammarMarkType.largeRects, (attrs => new LargeRects(attrs)));
|
|
94
|
+
registerShadowRoot(), registerPath(), Factory.registerGraphic(GrammarMarkType.largeRects, (attrs => new LargeRects(attrs)));
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
export const registerLargeSymbolsGraphic = () => {
|
|
98
|
-
registerPath(), Factory.registerGraphic(GrammarMarkType.largeSymbols, (attrs => new LargeSymbols(attrs)));
|
|
98
|
+
registerShadowRoot(), registerPath(), Factory.registerGraphic(GrammarMarkType.largeSymbols, (attrs => new LargeSymbols(attrs)));
|
|
99
99
|
};
|
|
100
100
|
//# sourceMappingURL=graphic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graph/mark/graphic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,
|
|
1
|
+
{"version":3,"sources":["../src/graph/mark/graphic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAA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,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","file":"graphic.js","sourcesContent":["import { Factory } from '../../core/factory';\nimport { GrammarMarkType } from '../enums';\nimport { LargeRects } from './large-rects';\nimport { LargeSymbols } from './large-symbols';\nimport type { IGraphic } from '@visactor/vrender-core';\nimport {\n registerCircle,\n registerArc,\n registerArc3d,\n registerPyramid3d,\n registerArea,\n registerGroup,\n registerImage,\n registerRect3d,\n registerLine,\n registerPath,\n registerRect,\n registerSymbol,\n registerText,\n registerPolygon,\n registerRichtext,\n registerGlyph,\n registerShadowRoot\n} from '@visactor/vrender-kits';\nimport {\n createArc,\n createCircle,\n createArc3d,\n createPyramid3d,\n createArea,\n createGroup,\n createImage,\n createRect3d,\n createLine,\n createPath,\n createRect,\n createSymbol,\n createText,\n createPolygon,\n createRichText,\n createGlyph\n} from '@visactor/vrender-core';\n\nexport const registerCircleGraphic = () => {\n registerShadowRoot();\n registerCircle();\n Factory.registerGraphic(GrammarMarkType.circle, createCircle);\n};\n\nexport const registerArcGraphic = () => {\n registerShadowRoot();\n registerArc();\n Factory.registerGraphic(GrammarMarkType.arc, createArc);\n};\n\nexport const registerArc3dGraphic = () => {\n registerShadowRoot();\n registerArc3d();\n Factory.registerGraphic(GrammarMarkType.arc3d, createArc3d);\n};\n\nexport const registerPyramid3dGraphic = () => {\n registerShadowRoot();\n registerPyramid3d();\n Factory.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);\n};\n\nexport const registerAreaGraphic = () => {\n registerShadowRoot();\n registerArea();\n Factory.registerGraphic(GrammarMarkType.area, createArea);\n};\n\nexport const registerGroupGraphic = () => {\n registerShadowRoot();\n registerGroup();\n Factory.registerGraphic(GrammarMarkType.group, createGroup);\n};\n\nexport const registerImageGraphic = () => {\n registerShadowRoot();\n registerImage();\n Factory.registerGraphic(GrammarMarkType.image, createImage);\n};\n\nexport const registerLineGraphic = () => {\n registerShadowRoot();\n registerLine();\n Factory.registerGraphic(GrammarMarkType.line, createLine);\n};\n\nexport const registerPathGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.path, createPath);\n};\n\nexport const registerRectGraphic = () => {\n registerShadowRoot();\n registerRect();\n Factory.registerGraphic(GrammarMarkType.rect, createRect);\n};\n\nexport const registerRect3dGraphic = () => {\n registerShadowRoot();\n registerRect3d();\n Factory.registerGraphic(GrammarMarkType.rect3d, createRect3d);\n};\n\nexport const registerRuleGraphic = () => {\n registerShadowRoot();\n registerLine();\n Factory.registerGraphic(GrammarMarkType.rule, createLine);\n};\n\nexport const registerShapeGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.shape, createPath);\n};\n\nexport const registerSymbolGraphic = () => {\n registerShadowRoot();\n registerSymbol();\n Factory.registerGraphic(GrammarMarkType.symbol, createSymbol);\n};\n\nexport const registerTextGraphic = () => {\n registerShadowRoot();\n registerText();\n registerRichtext();\n Factory.registerGraphic(GrammarMarkType.text, createText);\n};\n\nexport const registerPolygonGraphic = () => {\n registerShadowRoot();\n registerPolygon();\n Factory.registerGraphic(GrammarMarkType.polygon, createPolygon);\n};\n\nexport const registerRichTextGraphic = () => {\n registerShadowRoot();\n registerRichtext();\n Factory.registerGraphic(GrammarMarkType.richtext, createRichText);\n};\n\nexport const registerCellGraphic = () => {\n registerShadowRoot();\n registerSymbol();\n Factory.registerGraphic(GrammarMarkType.cell, createSymbol);\n};\n\nexport const registerIntervalGraphic = () => {\n registerShadowRoot();\n registerRect();\n registerArc();\n Factory.registerGraphic(GrammarMarkType.interval, createRect);\n};\n\nexport const registerGlyphGraphic = () => {\n registerShadowRoot();\n registerGlyph();\n Factory.registerGraphic(GrammarMarkType.glyph, createGlyph);\n};\n\nexport const registerLargeRectsGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.largeRects, (attrs: any) => {\n return new LargeRects(attrs) as unknown as IGraphic;\n });\n};\n\nexport const registerLargeSymbolsGraphic = () => {\n registerShadowRoot();\n registerPath();\n Factory.registerGraphic(GrammarMarkType.largeSymbols, (attrs: any) => {\n return new LargeSymbols(attrs) as unknown as IGraphic;\n });\n};\n"]}
|
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,QAAQ,CAAC;AAEhC,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.10.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.10.4\";\n\nexport * from './graph';\n\nexport * from './interactions';\n\nexport { View } from './view';\nexport { Scale, registerScale } from './view/scale';\nexport { Coordinate, registerCoordinate } from './view/coordinate';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n\nexport { vglobal } from '@visactor/vrender-core';\nexport * from './env';\nexport * from './interactions';\nexport * from './semantic-marks/cell';\nexport * from './semantic-marks/interval';\nexport * from './graph/mark/graphic';\n"]}
|
package/es/interactions/index.js
CHANGED
package/es/interactions/utils.js
CHANGED
|
@@ -2,4 +2,4 @@ export const generateFilterValue = options => options.filterField ? el => {
|
|
|
2
2
|
var _a;
|
|
3
3
|
return null === (_a = el.getDatum()) || void 0 === _a ? void 0 : _a[options.filterField];
|
|
4
4
|
} : el => el[options.filterType];
|
|
5
|
-
//# sourceMappingURL=utils.js.map
|
|
5
|
+
//# sourceMappingURL=utils.js.map
|
package/es/parse/coordinate.js
CHANGED
package/es/parse/event.js
CHANGED
package/es/parse/mark.js
CHANGED
|
@@ -16,4 +16,4 @@ export function parseEncodeType(encoder, view) {
|
|
|
16
16
|
return encoder.scale && (dependencies = isGrammar(encoder.scale) ? [ encoder.scale ] : array(view.getScaleById(encoder.scale))),
|
|
17
17
|
dependencies.concat(parseFunctionType(encoder, view));
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=mark.js.map
|
|
19
|
+
//# sourceMappingURL=mark.js.map
|
package/es/parse/option.js
CHANGED
|
@@ -8,4 +8,4 @@ export const parseOptions = (options, params) => options ? isObject(options) ? O
|
|
|
8
8
|
const option = options[key];
|
|
9
9
|
return res[key] = parseOptionValue(option, params), res;
|
|
10
10
|
}), {}) : options.map((option => parseOptionValue(option, params))) : options;
|
|
11
|
-
//# sourceMappingURL=option.js.map
|
|
11
|
+
//# sourceMappingURL=option.js.map
|
package/es/parse/scale.js
CHANGED
package/es/parse/transform.js
CHANGED
package/es/parse/util.js
CHANGED
|
@@ -62,4 +62,4 @@ export const isGrammar = el => el && !isNil(el.grammarType);
|
|
|
62
62
|
export const parseField = field => isFunction(field) ? field : datum => datum[field];
|
|
63
63
|
|
|
64
64
|
export const parseColor = color => isString(color) && Color.parseColorString(color) ? color : null;
|
|
65
|
-
//# sourceMappingURL=util.js.map
|
|
65
|
+
//# sourceMappingURL=util.js.map
|
package/es/parse/view.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vgrammar-core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "VGrammar is a visual grammar library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"grammar",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@visactor/vgrammar-coordinate": "0.10.
|
|
28
|
-
"@visactor/vgrammar-util": "0.10.
|
|
27
|
+
"@visactor/vgrammar-coordinate": "0.10.4",
|
|
28
|
+
"@visactor/vgrammar-util": "0.10.4",
|
|
29
29
|
"@visactor/vscale": "~0.17.1",
|
|
30
|
-
"@visactor/vrender-core": "~0.17.
|
|
31
|
-
"@visactor/vrender-kits": "~0.17.
|
|
32
|
-
"@visactor/vrender-components": "~0.17.
|
|
30
|
+
"@visactor/vrender-core": "~0.17.6",
|
|
31
|
+
"@visactor/vrender-kits": "~0.17.6",
|
|
32
|
+
"@visactor/vrender-components": "~0.17.6",
|
|
33
33
|
"@visactor/vutils": "~0.17.1",
|
|
34
34
|
"@visactor/vdataset": "~0.17.1"
|
|
35
35
|
},
|