@visactor/vchart 2.0.7 → 2.0.8-alpha.1
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/build/es5/index.js +1 -1
- package/build/index.es.js +3975 -358
- package/build/index.js +4377 -376
- package/build/index.min.js +2 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/index.d.ts +8 -0
- package/cjs/index.js +141 -1
- package/cjs/index.js.map +1 -1
- package/cjs/plugin/chart/resize-zoom/zoom.d.ts +1 -0
- package/cjs/plugin/chart/resize-zoom/zoom.js +3 -1
- package/cjs/plugin/chart/resize-zoom/zoom.js.map +1 -1
- package/cjs/vchart-all.d.ts +0 -8
- package/cjs/vchart-all.js +1 -156
- package/cjs/vchart-all.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/index.d.ts +8 -0
- package/esm/index.js +14 -0
- package/esm/index.js.map +1 -1
- package/esm/plugin/chart/resize-zoom/zoom.d.ts +1 -0
- package/esm/plugin/chart/resize-zoom/zoom.js +2 -1
- package/esm/plugin/chart/resize-zoom/zoom.js.map +1 -1
- package/esm/vchart-all.d.ts +0 -8
- package/esm/vchart-all.js +0 -14
- package/esm/vchart-all.js.map +1 -1
- package/package.json +9 -9
package/cjs/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VChart } from './vchart';
|
|
2
2
|
import { Factory } from './factory';
|
|
3
3
|
export { VChart, Factory };
|
|
4
|
-
export declare const version = "2.0.
|
|
4
|
+
export declare const version = "2.0.8-alpha.1";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
7
7
|
export type { IRegion } from '../region/interface';
|
package/cjs/core/index.js
CHANGED
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "Factory", {
|
|
|
35
35
|
get: function() {
|
|
36
36
|
return factory_1.Factory;
|
|
37
37
|
}
|
|
38
|
-
}), exports.version = "2.0.
|
|
38
|
+
}), exports.version = "2.0.8-alpha.1", __exportStar(require("../event/interface"), exports),
|
|
39
39
|
__exportStar(require("../theme/interface"), exports), __exportStar(require("../model/interface"), exports),
|
|
40
40
|
__exportStar(require("./interface"), exports), __exportStar(require("../typings"), exports),
|
|
41
41
|
__exportStar(require("../constant/base"), exports), __exportStar(require("../constant/data"), exports),
|
package/cjs/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,eAAe,CAAC;AAOvC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AAEnC,8CAA4B;AAC5B,6CAA2B;AAI3B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,mDAAuD;AAA9C,2GAAA,cAAc,OAAA;AACvB,iDAAoD;AAA3C,4GAAA,cAAc,OAAA;AACvB,uDAA6D;AAApD,6GAAA,gBAAgB,OAAA;AACzB,2CAA+C;AAAtC,mGAAA,UAAU,OAAA;AAKnB,wDAAsC;AACtC,oDAAkC;AAGlC,qDAAmC;AAGnC,iDAA+B;AAG/B,uDAUgC;AAT9B,uGAAA,OAAO,OAAA;AACP,2GAAA,WAAW,OAAA;AACX,8GAAA,cAAc,OAAA;AACd,0GAAA,UAAU,OAAA;AACV,yGAAA,SAAS,OAAA;AACT,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,4GAAA,YAAY,OAAA;AAEd,6DAAsE;AAA7D,+GAAA,YAAY,OAAA;AAAE,8GAAA,WAAW,OAAA;AAGlC,gDAA8B;AAC9B,uCAAmD;AAA1C,2GAAA,kBAAkB,OAAA;AAC3B,0CAAgD;AAAvC,mGAAA,WAAW,OAAA;AACpB,6CAAmG;AAA1F,yHAAA,6BAA6B,OAAA;AAAE,4HAAA,gCAAgC,OAAA;AACxE,oDAAmD;AAA1C,gGAAA,MAAM,OAAA;AACf,uCAAqC;AAA5B,6FAAA,IAAI,OAAA;AACb,qCAA2C;AAAlC,mGAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.0.8-alpha.1\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport {\n vglobal,\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '@visactor/vrender-core';\nexport { ManualTicker, StreamLight } from '@visactor/vrender-animate';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
|
package/cjs/index.d.ts
CHANGED
|
@@ -27,3 +27,11 @@ export * from './component/base';
|
|
|
27
27
|
export * from './compile/data/compilable-data';
|
|
28
28
|
export * from './animation';
|
|
29
29
|
export * from './interaction';
|
|
30
|
+
export { createImage, createPath, createArc3d, createPyramid3d, createRect3d, registerDirectionalLight, registerOrthoCamera, registerViewTransform3dPlugin, graphicCreator, type IGraphic, type IGlyph, type IGroup, type IText, type ILine, type IArea, type IRect, type INode, type IStage, type EasingType, type ILineGraphicAttribute, type ITextGraphicAttribute, type IRectGraphicAttribute, type IGroupGraphicAttribute, type TextAlignType, type TextBaselineType, type GraphicEventType, type IAreaGraphicAttribute, type ISymbolGraphicAttribute } from '@visactor/vrender-core';
|
|
31
|
+
export { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';
|
|
32
|
+
export { AbstractComponent, Segment, MarkPoint, type SegmentAttributes, type Point } from '@visactor/vrender-components';
|
|
33
|
+
export { registerLine, registerRect, registerArc3d, registerPyramid3d, registerRect3d, registerShadowRoot } from '@visactor/vrender-kits';
|
|
34
|
+
export * from '@visactor/vlayouts';
|
|
35
|
+
export { DataView, DataSet, svgParser } from '@visactor/vdataset';
|
|
36
|
+
export type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';
|
|
37
|
+
export * from '@visactor/vutils';
|
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
|
-
});
|
|
20
|
+
}), exports.svgParser = exports.DataSet = exports.DataView = exports.registerShadowRoot = exports.registerRect3d = exports.registerPyramid3d = exports.registerArc3d = exports.registerRect = exports.registerLine = exports.MarkPoint = exports.Segment = exports.AbstractComponent = exports.RotateBySphereAnimate = exports.AnimateExecutor = exports.ACustomAnimate = exports.graphicCreator = exports.registerViewTransform3dPlugin = exports.registerOrthoCamera = exports.registerDirectionalLight = exports.createRect3d = exports.createPyramid3d = exports.createArc3d = exports.createPath = exports.createImage = void 0;
|
|
21
21
|
|
|
22
22
|
const vchart_all_1 = require("./vchart-all");
|
|
23
23
|
|
|
@@ -35,4 +35,144 @@ __exportStar(require("./util/spec/transform"), exports), __exportStar(require(".
|
|
|
35
35
|
__exportStar(require("./util/region"), exports), __exportStar(require("./util/scale"), exports),
|
|
36
36
|
__exportStar(require("./component/base"), exports), __exportStar(require("./compile/data/compilable-data"), exports),
|
|
37
37
|
__exportStar(require("./animation"), exports), __exportStar(require("./interaction"), exports);
|
|
38
|
+
|
|
39
|
+
var vrender_core_1 = require("@visactor/vrender-core");
|
|
40
|
+
|
|
41
|
+
Object.defineProperty(exports, "createImage", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
get: function() {
|
|
44
|
+
return vrender_core_1.createImage;
|
|
45
|
+
}
|
|
46
|
+
}), Object.defineProperty(exports, "createPath", {
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
get: function() {
|
|
49
|
+
return vrender_core_1.createPath;
|
|
50
|
+
}
|
|
51
|
+
}), Object.defineProperty(exports, "createArc3d", {
|
|
52
|
+
enumerable: !0,
|
|
53
|
+
get: function() {
|
|
54
|
+
return vrender_core_1.createArc3d;
|
|
55
|
+
}
|
|
56
|
+
}), Object.defineProperty(exports, "createPyramid3d", {
|
|
57
|
+
enumerable: !0,
|
|
58
|
+
get: function() {
|
|
59
|
+
return vrender_core_1.createPyramid3d;
|
|
60
|
+
}
|
|
61
|
+
}), Object.defineProperty(exports, "createRect3d", {
|
|
62
|
+
enumerable: !0,
|
|
63
|
+
get: function() {
|
|
64
|
+
return vrender_core_1.createRect3d;
|
|
65
|
+
}
|
|
66
|
+
}), Object.defineProperty(exports, "registerDirectionalLight", {
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
get: function() {
|
|
69
|
+
return vrender_core_1.registerDirectionalLight;
|
|
70
|
+
}
|
|
71
|
+
}), Object.defineProperty(exports, "registerOrthoCamera", {
|
|
72
|
+
enumerable: !0,
|
|
73
|
+
get: function() {
|
|
74
|
+
return vrender_core_1.registerOrthoCamera;
|
|
75
|
+
}
|
|
76
|
+
}), Object.defineProperty(exports, "registerViewTransform3dPlugin", {
|
|
77
|
+
enumerable: !0,
|
|
78
|
+
get: function() {
|
|
79
|
+
return vrender_core_1.registerViewTransform3dPlugin;
|
|
80
|
+
}
|
|
81
|
+
}), Object.defineProperty(exports, "graphicCreator", {
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
get: function() {
|
|
84
|
+
return vrender_core_1.graphicCreator;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
var vrender_animate_1 = require("@visactor/vrender-animate");
|
|
89
|
+
|
|
90
|
+
Object.defineProperty(exports, "ACustomAnimate", {
|
|
91
|
+
enumerable: !0,
|
|
92
|
+
get: function() {
|
|
93
|
+
return vrender_animate_1.ACustomAnimate;
|
|
94
|
+
}
|
|
95
|
+
}), Object.defineProperty(exports, "AnimateExecutor", {
|
|
96
|
+
enumerable: !0,
|
|
97
|
+
get: function() {
|
|
98
|
+
return vrender_animate_1.AnimateExecutor;
|
|
99
|
+
}
|
|
100
|
+
}), Object.defineProperty(exports, "RotateBySphereAnimate", {
|
|
101
|
+
enumerable: !0,
|
|
102
|
+
get: function() {
|
|
103
|
+
return vrender_animate_1.RotateBySphereAnimate;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
var vrender_components_1 = require("@visactor/vrender-components");
|
|
108
|
+
|
|
109
|
+
Object.defineProperty(exports, "AbstractComponent", {
|
|
110
|
+
enumerable: !0,
|
|
111
|
+
get: function() {
|
|
112
|
+
return vrender_components_1.AbstractComponent;
|
|
113
|
+
}
|
|
114
|
+
}), Object.defineProperty(exports, "Segment", {
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
get: function() {
|
|
117
|
+
return vrender_components_1.Segment;
|
|
118
|
+
}
|
|
119
|
+
}), Object.defineProperty(exports, "MarkPoint", {
|
|
120
|
+
enumerable: !0,
|
|
121
|
+
get: function() {
|
|
122
|
+
return vrender_components_1.MarkPoint;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
var vrender_kits_1 = require("@visactor/vrender-kits");
|
|
127
|
+
|
|
128
|
+
Object.defineProperty(exports, "registerLine", {
|
|
129
|
+
enumerable: !0,
|
|
130
|
+
get: function() {
|
|
131
|
+
return vrender_kits_1.registerLine;
|
|
132
|
+
}
|
|
133
|
+
}), Object.defineProperty(exports, "registerRect", {
|
|
134
|
+
enumerable: !0,
|
|
135
|
+
get: function() {
|
|
136
|
+
return vrender_kits_1.registerRect;
|
|
137
|
+
}
|
|
138
|
+
}), Object.defineProperty(exports, "registerArc3d", {
|
|
139
|
+
enumerable: !0,
|
|
140
|
+
get: function() {
|
|
141
|
+
return vrender_kits_1.registerArc3d;
|
|
142
|
+
}
|
|
143
|
+
}), Object.defineProperty(exports, "registerPyramid3d", {
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
get: function() {
|
|
146
|
+
return vrender_kits_1.registerPyramid3d;
|
|
147
|
+
}
|
|
148
|
+
}), Object.defineProperty(exports, "registerRect3d", {
|
|
149
|
+
enumerable: !0,
|
|
150
|
+
get: function() {
|
|
151
|
+
return vrender_kits_1.registerRect3d;
|
|
152
|
+
}
|
|
153
|
+
}), Object.defineProperty(exports, "registerShadowRoot", {
|
|
154
|
+
enumerable: !0,
|
|
155
|
+
get: function() {
|
|
156
|
+
return vrender_kits_1.registerShadowRoot;
|
|
157
|
+
}
|
|
158
|
+
}), __exportStar(require("@visactor/vlayouts"), exports);
|
|
159
|
+
|
|
160
|
+
var vdataset_1 = require("@visactor/vdataset");
|
|
161
|
+
|
|
162
|
+
Object.defineProperty(exports, "DataView", {
|
|
163
|
+
enumerable: !0,
|
|
164
|
+
get: function() {
|
|
165
|
+
return vdataset_1.DataView;
|
|
166
|
+
}
|
|
167
|
+
}), Object.defineProperty(exports, "DataSet", {
|
|
168
|
+
enumerable: !0,
|
|
169
|
+
get: function() {
|
|
170
|
+
return vdataset_1.DataSet;
|
|
171
|
+
}
|
|
172
|
+
}), Object.defineProperty(exports, "svgParser", {
|
|
173
|
+
enumerable: !0,
|
|
174
|
+
get: function() {
|
|
175
|
+
return vdataset_1.svgParser;
|
|
176
|
+
}
|
|
177
|
+
}), __exportStar(require("@visactor/vutils"), exports);
|
|
38
178
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAAsC;AAEtC,kBAAe,mBAAM,CAAC;AAEtB,yCAAuB;AAGvB,0CAAwB;AACxB,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,2CAAyB;AACzB,wCAAsB;AACtB,0CAAwB;AAExB,iDAA+B;AAC/B,sEAAoD;AACpD,gEAA8C;AAC9C,iDAA+B;AAC/B,4DAA0C;AAC1C,kDAAgC;AAEhC,8CAA4B;AAC5B,wDAAsC;AACtC,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAG7B,mDAAiC;AACjC,iEAA+C;AAC/C,8CAA4B;AAC5B,gDAA8B;AAE9B,uDA6BgC;AA5B9B,2GAAA,WAAW,OAAA;AACX,0GAAA,UAAU,OAAA;AACV,2GAAA,WAAW,OAAA;AACX,+GAAA,eAAe,OAAA;AACf,4GAAA,YAAY,OAAA;AACZ,wHAAA,wBAAwB,OAAA;AACxB,mHAAA,mBAAmB,OAAA;AACnB,6HAAA,6BAA6B,OAAA;AAC7B,8GAAA,cAAc,OAAA;AAsBhB,6DAAmG;AAA1F,iHAAA,cAAc,OAAA;AAAE,kHAAA,eAAe,OAAA;AAAE,wHAAA,qBAAqB,OAAA;AAG/D,mEAMsC;AALpC,uHAAA,iBAAiB,OAAA;AACjB,6GAAA,OAAO,OAAA;AACP,+GAAA,SAAS,OAAA;AAMX,uDAOgC;AAN9B,4GAAA,YAAY,OAAA;AACZ,4GAAA,YAAY,OAAA;AACZ,6GAAA,aAAa,OAAA;AACb,iHAAA,iBAAiB,OAAA;AACjB,8GAAA,cAAc,OAAA;AACd,kHAAA,kBAAkB,OAAA;AAIpB,qDAAmC;AAGnC,+CAAkE;AAAzD,oGAAA,QAAQ,OAAA;AAAE,mGAAA,OAAO,OAAA;AAAE,qGAAA,SAAS,OAAA;AAKrC,mDAAiC","file":"index.js","sourcesContent":["import { VChart } from './vchart-all';\n\nexport default VChart;\n\nexport * from './core';\n\n// chart model for extension\nexport * from './chart';\nexport * from './chart/base';\nexport * from './chart/cartesian';\nexport * from './chart/common';\nexport * from './chart/stack';\nexport * from './series';\nexport * from './mark';\nexport * from './component';\nexport * from './layout';\nexport * from './env';\nexport * from './event';\n// plugin路径太深,如果直接引用,会导致tree-shaking失效\nexport * from './plugin/chart';\nexport * from './plugin/components/tooltip-handler';\nexport * from './plugin/components/axis-sync';\nexport * from './plugin/other';\nexport * from './plugin/base/base-plugin';\nexport * from './vrender-tools';\n// util\nexport * from './util/data';\nexport * from './util/spec/transform';\nexport * from './util/mark';\nexport * from './util/region';\nexport * from './util/scale';\n\n// base component model for extension\nexport * from './component/base';\nexport * from './compile/data/compilable-data';\nexport * from './animation';\nexport * from './interaction';\n\nexport {\n createImage,\n createPath,\n createArc3d,\n createPyramid3d,\n createRect3d,\n registerDirectionalLight,\n registerOrthoCamera,\n registerViewTransform3dPlugin,\n graphicCreator,\n type IGraphic,\n type IGlyph,\n type IGroup,\n type IText,\n type ILine,\n type IArea,\n type IRect,\n type INode,\n type IStage,\n type EasingType,\n type ILineGraphicAttribute,\n type ITextGraphicAttribute,\n type IRectGraphicAttribute,\n type IGroupGraphicAttribute,\n type TextAlignType,\n type TextBaselineType,\n type GraphicEventType,\n type IAreaGraphicAttribute,\n type ISymbolGraphicAttribute\n} from '@visactor/vrender-core';\n\nexport { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';\n\n// vrender-components\nexport {\n AbstractComponent,\n Segment,\n MarkPoint,\n type SegmentAttributes,\n type Point\n} from '@visactor/vrender-components';\n\n// vrender-kits\nexport {\n registerLine,\n registerRect,\n registerArc3d,\n registerPyramid3d,\n registerRect3d,\n registerShadowRoot\n} from '@visactor/vrender-kits';\n\n// vlayouts\nexport * from '@visactor/vlayouts';\n\n// vdataset\nexport { DataView, DataSet, svgParser } from '@visactor/vdataset';\nexport type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';\n\n// vutils\n// @ts-ignore\nexport * from '@visactor/vutils';\n"]}
|
|
@@ -12,6 +12,7 @@ export declare class ChartResizeZoomPlugin extends BasePlugin<IChartPluginServic
|
|
|
12
12
|
protected _maxZoom?: number;
|
|
13
13
|
protected _zoom: number;
|
|
14
14
|
protected _rate?: number;
|
|
15
|
+
protected _beforeWheel?: (e: WheelEvent) => boolean;
|
|
15
16
|
constructor();
|
|
16
17
|
onAfterInitChart(service: IChartPluginService, chartSpec: any): void;
|
|
17
18
|
protected _onWheel: (e: WheelEvent) => void;
|
|
@@ -10,6 +10,7 @@ class ChartResizeZoomPlugin extends base_plugin_1.BasePlugin {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super(ChartResizeZoomPlugin.type), this.type = "ChartResizeZoomPlugin", this._zoom = 1,
|
|
12
12
|
this._onWheel = e => {
|
|
13
|
+
if (this._beforeWheel && !1 == !this._beforeWheel(e)) return;
|
|
13
14
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
14
15
|
const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * .2 * this._rate), center = {
|
|
15
16
|
x: e.offsetX,
|
|
@@ -25,7 +26,8 @@ class ChartResizeZoomPlugin extends base_plugin_1.BasePlugin {
|
|
|
25
26
|
};
|
|
26
27
|
!0 === spec.enabled && (this._minZoom = null !== (_c = spec.min) && void 0 !== _c ? _c : .1,
|
|
27
28
|
this._maxZoom = null !== (_d = spec.max) && void 0 !== _d ? _d : 10, this._rate = null !== (_e = spec.rate) && void 0 !== _e ? _e : .1,
|
|
28
|
-
this._container = chart.getContainer(), this._triggerEvent = (0,
|
|
29
|
+
this._beforeWheel = spec.beforeWheel, this._container = chart.getContainer(), this._triggerEvent = (0,
|
|
30
|
+
config_1.getDefaultTriggerEventByMode)(service.globalInstance.getChart().getOption().mode).zoom,
|
|
29
31
|
this._container && this._triggerEvent && this._container.addEventListener(this._triggerEvent, this._onWheel));
|
|
30
32
|
}
|
|
31
33
|
zoom(zoom, pointerPos) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/plugin/chart/resize-zoom/zoom.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,0CAAkD;AAElD,qEAAwF;AAExF,MAAM,QAAQ,GAAG,GAAG,CAAC;AACrB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAa,qBAAsB,SAAQ,wBAA+B;
|
|
1
|
+
{"version":3,"sources":["../src/plugin/chart/resize-zoom/zoom.ts"],"names":[],"mappings":"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","file":"zoom.js","sourcesContent":["import type { IChartPlugin, IChartPluginService } from '../interface';\nimport { BasePlugin } from '../../base/base-plugin';\nimport { registerChartPlugin } from '../register';\nimport type { IPoint } from '../../../typings';\nimport { getDefaultTriggerEventByMode } from '../../../component/common/trigger/config';\n\nconst MIN_ZOOM = 0.1;\nconst MAX_ZOOM = 10;\n\nexport class ChartResizeZoomPlugin extends BasePlugin<IChartPluginService> implements IChartPlugin {\n static readonly pluginType: 'chart';\n static readonly specKey = 'resizeZoom';\n static readonly type: string = 'ChartResizeZoomPlugin';\n readonly type: string = 'ChartResizeZoomPlugin';\n\n protected _container?: HTMLElement;\n protected _triggerEvent?: string;\n protected _minZoom?: number;\n protected _maxZoom?: number;\n protected _zoom: number = 1;\n protected _rate?: number;\n protected _beforeWheel?: (e: WheelEvent) => boolean;\n\n constructor() {\n super(ChartResizeZoomPlugin.type);\n }\n\n onAfterInitChart(service: IChartPluginService, chartSpec: any) {\n const chart = service.globalInstance;\n const spec = chart.getSpec()?.[ChartResizeZoomPlugin.specKey] ?? { enabled: false };\n if (spec.enabled !== true) {\n return;\n }\n this._minZoom = spec.min ?? MIN_ZOOM;\n this._maxZoom = spec.max ?? MAX_ZOOM;\n this._rate = spec.rate ?? 0.1;\n this._beforeWheel = spec.beforeWheel;\n this._container = chart.getContainer();\n this._triggerEvent = getDefaultTriggerEventByMode(service.globalInstance.getChart().getOption().mode).zoom;\n if (this._container && this._triggerEvent) {\n this._container.addEventListener(this._triggerEvent as keyof HTMLElementEventMap, this._onWheel as EventListener);\n }\n }\n\n protected _onWheel = (e: WheelEvent) => {\n // 先执行 beforeWheel 回调函数\n if (this._beforeWheel) {\n // 如果 beforeWheel 回调函数返回 false,则阻止默认行为\n if (!this._beforeWheel(e) === false) {\n return;\n }\n }\n e.preventDefault();\n e.stopImmediatePropagation();\n\n const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * 0.2 * this._rate);\n const center = { x: e.offsetX, y: e.offsetY };\n this.zoom(zoom, center);\n };\n\n /**\n * 缩放图表\n * @param zoom 缩放比例\n * @param pointerPos 缩放中心,即鼠标位置\n */\n zoom(zoom: number, pointerPos?: IPoint) {\n const vchart = this.service.globalInstance;\n if (!vchart) {\n return;\n }\n const oldZoom = this._zoom;\n let tempZoom = this._zoom * zoom;\n if ((tempZoom <= this._minZoom && zoom < 1) || (tempZoom >= this._maxZoom && zoom > 1)) {\n if (tempZoom <= this._minZoom && this._zoom > this._minZoom) {\n tempZoom = this._minZoom;\n } else if (tempZoom >= this._maxZoom && this._zoom < this._maxZoom) {\n tempZoom = this._maxZoom;\n } else {\n return;\n }\n }\n\n if (tempZoom === oldZoom) {\n return;\n }\n\n const actualZoomRatio = tempZoom / oldZoom;\n this._zoom = tempZoom;\n\n vchart.resize(vchart.getCurrentSize().width * this._zoom, vchart.getCurrentSize().height * this._zoom);\n // 滚动容器滚动, 保持当前鼠标位置在缩放后不变\n if (pointerPos && this._container) {\n const { scrollLeft, scrollTop } = this._container;\n this._container.scrollLeft = scrollLeft + pointerPos.x * (actualZoomRatio - 1);\n this._container.scrollTop = scrollTop + pointerPos.y * (actualZoomRatio - 1);\n }\n }\n\n release(): void {\n if (this._container && this._triggerEvent) {\n this._container.removeEventListener(\n this._triggerEvent as keyof HTMLElementEventMap,\n this._onWheel as EventListener\n );\n }\n }\n}\n\nexport const registerChartResizeZoomPlugin = () => {\n registerChartPlugin(ChartResizeZoomPlugin);\n};\n"]}
|
package/cjs/vchart-all.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import { VChart } from './core';
|
|
2
2
|
export { VChart };
|
|
3
|
-
export { createImage, createPath, createArc3d, createPyramid3d, createRect3d, registerDirectionalLight, registerOrthoCamera, registerViewTransform3dPlugin, graphicCreator, type IGraphic, type IGlyph, type IGroup, type IText, type ILine, type IArea, type IRect, type INode, type IStage, type EasingType, type ILineGraphicAttribute, type ITextGraphicAttribute, type IRectGraphicAttribute, type IGroupGraphicAttribute, type TextAlignType, type TextBaselineType, type GraphicEventType, type IAreaGraphicAttribute, type ISymbolGraphicAttribute } from '@visactor/vrender-core';
|
|
4
|
-
export { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';
|
|
5
|
-
export { AbstractComponent, Segment, MarkPoint, type SegmentAttributes, type Point } from '@visactor/vrender-components';
|
|
6
|
-
export { registerLine, registerRect, registerArc3d, registerPyramid3d, registerRect3d, registerShadowRoot } from '@visactor/vrender-kits';
|
|
7
|
-
export * from '@visactor/vlayouts';
|
|
8
|
-
export { DataView, DataSet, svgParser } from '@visactor/vdataset';
|
|
9
|
-
export type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';
|
|
10
|
-
export * from '@visactor/vutils';
|
package/cjs/vchart-all.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4
|
-
void 0 === k2 && (k2 = k);
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
|
|
7
|
-
enumerable: !0,
|
|
8
|
-
get: function() {
|
|
9
|
-
return m[k];
|
|
10
|
-
}
|
|
11
|
-
}), Object.defineProperty(o, k2, desc);
|
|
12
|
-
} : function(o, m, k, k2) {
|
|
13
|
-
void 0 === k2 && (k2 = k), o[k2] = m[k];
|
|
14
|
-
}), __exportStar = this && this.__exportStar || function(m, exports) {
|
|
15
|
-
for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
3
|
Object.defineProperty(exports, "__esModule", {
|
|
19
4
|
value: !0
|
|
20
|
-
}), exports.
|
|
5
|
+
}), exports.VChart = void 0;
|
|
21
6
|
|
|
22
7
|
const core_1 = require("./core");
|
|
23
8
|
|
|
@@ -31,144 +16,4 @@ Object.defineProperty(exports, "VChart", {
|
|
|
31
16
|
const line_1 = require("./chart/line"), area_1 = require("./chart/area"), bar_1 = require("./chart/bar"), scatter_1 = require("./chart/scatter"), map_1 = require("./chart/map"), pie_1 = require("./chart/pie"), rose_1 = require("./chart/rose"), radar_1 = require("./chart/radar"), common_1 = require("./chart/common"), sequence_1 = require("./chart/sequence"), histogram_1 = require("./chart/histogram"), circular_1 = require("./chart/progress/circular"), gauge_1 = require("./chart/gauge"), word_cloud_1 = require("./chart/word-cloud"), funnel_1 = require("./chart/funnel"), linear_1 = require("./chart/progress/linear"), range_column_1 = require("./chart/range-column"), sunburst_1 = require("./chart/sunburst"), circle_packing_1 = require("./chart/circle-packing"), treemap_1 = require("./chart/treemap"), waterfall_1 = require("./chart/waterfall"), box_plot_1 = require("./chart/box-plot"), sankey_1 = require("./chart/sankey"), range_area_1 = require("./chart/range-area"), heatmap_1 = require("./chart/heatmap"), correlation_1 = require("./chart/correlation"), cartesian_1 = require("./component/axis/cartesian"), polar_1 = require("./component/axis/polar"), legend_1 = require("./component/legend"), tooltip_1 = require("./component/tooltip"), crosshair_1 = require("./component/crosshair"), data_zoom_1 = require("./component/data-zoom"), indicator_1 = require("./component/indicator"), geo_1 = require("./component/geo"), mark_line_1 = require("./component/marker/mark-line"), title_1 = require("./component/title"), mark_area_1 = require("./component/marker/mark-area"), player_1 = require("./component/player"), label_1 = require("./component/label"), total_label_1 = require("./component/label/total-label"), mark_point_1 = require("./component/marker/mark-point"), brush_1 = require("./component/brush"), custom_mark_1 = require("./component/custom-mark"), grid_layout_1 = require("./layout/grid-layout/grid-layout"), poptip_1 = require("./component/poptip"), tooltip_handler_1 = require("./plugin/components/tooltip-handler"), formatter_1 = require("./plugin/chart/formatter"), interaction_1 = require("./interaction"), mark_1 = require("./mark"), other_1 = require("./plugin/other");
|
|
32
17
|
|
|
33
18
|
core_1.VChart.useRegisters([ line_1.registerLineChart, area_1.registerAreaChart, bar_1.registerBarChart, scatter_1.registerScatterChart, pie_1.registerPieChart, rose_1.registerRoseChart, radar_1.registerRadarChart, histogram_1.registerHistogramChart, map_1.registerMapChart, gauge_1.registerGaugeChart, word_cloud_1.registerWordCloudChart, word_cloud_1.registerWordCloudShapeChart, funnel_1.registerFunnelChart, waterfall_1.registerWaterfallChart, box_plot_1.registerBoxplotChart, circular_1.registerCircularProgressChart, linear_1.registerLinearProgressChart, range_column_1.registerRangeColumnChart, range_area_1.registerRangeAreaChart, sunburst_1.registerSunburstChart, circle_packing_1.registerCirclePackingChart, treemap_1.registerTreemapChart, sankey_1.registerSankeyChart, heatmap_1.registerHeatmapChart, sequence_1.registerSequenceChart, correlation_1.registerCorrelationChart, common_1.registerCommonChart, cartesian_1.registerCartesianLinearAxis, cartesian_1.registerCartesianBandAxis, cartesian_1.registerCartesianTimeAxis, cartesian_1.registerCartesianLogAxis, cartesian_1.registerCartesianSymlogAxis, polar_1.registerPolarBandAxis, polar_1.registerPolarLinearAxis, legend_1.registerDiscreteLegend, legend_1.registerContinuousLegend, tooltip_1.registerTooltip, crosshair_1.registerCartesianCrossHair, crosshair_1.registerPolarCrossHair, data_zoom_1.registerDataZoom, data_zoom_1.registerScrollBar, indicator_1.registerIndicator, geo_1.registerGeoCoordinate, mark_line_1.registerMarkLine, mark_area_1.registerMarkArea, mark_point_1.registerMarkPoint, mark_line_1.registerPolarMarkLine, mark_area_1.registerPolarMarkArea, mark_point_1.registerPolarMarkPoint, mark_point_1.registerGeoMarkPoint, title_1.registerTitle, player_1.registerPlayer, label_1.registerLabel, total_label_1.registerTotalLabel, brush_1.registerBrush, custom_mark_1.registerCustomMark, poptip_1.registerPoptip, grid_layout_1.registerGridLayout, mark_1.registerAllMarks, tooltip_handler_1.registerDomTooltipHandler, tooltip_handler_1.registerCanvasTooltipHandler, formatter_1.registerFormatPlugin, interaction_1.registerElementActive, interaction_1.registerElementActiveByLegend, interaction_1.registerElementHighlightByLegend, interaction_1.registerElementHighlightByName, interaction_1.registerElementHighlightByGroup, interaction_1.registerElementHighlightByKey, other_1.registerAnimate, other_1.registerReactAttributePlugin, other_1.registerHtmlAttributePlugin ]);
|
|
34
|
-
|
|
35
|
-
var vrender_core_1 = require("@visactor/vrender-core");
|
|
36
|
-
|
|
37
|
-
Object.defineProperty(exports, "createImage", {
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
get: function() {
|
|
40
|
-
return vrender_core_1.createImage;
|
|
41
|
-
}
|
|
42
|
-
}), Object.defineProperty(exports, "createPath", {
|
|
43
|
-
enumerable: !0,
|
|
44
|
-
get: function() {
|
|
45
|
-
return vrender_core_1.createPath;
|
|
46
|
-
}
|
|
47
|
-
}), Object.defineProperty(exports, "createArc3d", {
|
|
48
|
-
enumerable: !0,
|
|
49
|
-
get: function() {
|
|
50
|
-
return vrender_core_1.createArc3d;
|
|
51
|
-
}
|
|
52
|
-
}), Object.defineProperty(exports, "createPyramid3d", {
|
|
53
|
-
enumerable: !0,
|
|
54
|
-
get: function() {
|
|
55
|
-
return vrender_core_1.createPyramid3d;
|
|
56
|
-
}
|
|
57
|
-
}), Object.defineProperty(exports, "createRect3d", {
|
|
58
|
-
enumerable: !0,
|
|
59
|
-
get: function() {
|
|
60
|
-
return vrender_core_1.createRect3d;
|
|
61
|
-
}
|
|
62
|
-
}), Object.defineProperty(exports, "registerDirectionalLight", {
|
|
63
|
-
enumerable: !0,
|
|
64
|
-
get: function() {
|
|
65
|
-
return vrender_core_1.registerDirectionalLight;
|
|
66
|
-
}
|
|
67
|
-
}), Object.defineProperty(exports, "registerOrthoCamera", {
|
|
68
|
-
enumerable: !0,
|
|
69
|
-
get: function() {
|
|
70
|
-
return vrender_core_1.registerOrthoCamera;
|
|
71
|
-
}
|
|
72
|
-
}), Object.defineProperty(exports, "registerViewTransform3dPlugin", {
|
|
73
|
-
enumerable: !0,
|
|
74
|
-
get: function() {
|
|
75
|
-
return vrender_core_1.registerViewTransform3dPlugin;
|
|
76
|
-
}
|
|
77
|
-
}), Object.defineProperty(exports, "graphicCreator", {
|
|
78
|
-
enumerable: !0,
|
|
79
|
-
get: function() {
|
|
80
|
-
return vrender_core_1.graphicCreator;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
var vrender_animate_1 = require("@visactor/vrender-animate");
|
|
85
|
-
|
|
86
|
-
Object.defineProperty(exports, "ACustomAnimate", {
|
|
87
|
-
enumerable: !0,
|
|
88
|
-
get: function() {
|
|
89
|
-
return vrender_animate_1.ACustomAnimate;
|
|
90
|
-
}
|
|
91
|
-
}), Object.defineProperty(exports, "AnimateExecutor", {
|
|
92
|
-
enumerable: !0,
|
|
93
|
-
get: function() {
|
|
94
|
-
return vrender_animate_1.AnimateExecutor;
|
|
95
|
-
}
|
|
96
|
-
}), Object.defineProperty(exports, "RotateBySphereAnimate", {
|
|
97
|
-
enumerable: !0,
|
|
98
|
-
get: function() {
|
|
99
|
-
return vrender_animate_1.RotateBySphereAnimate;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
var vrender_components_1 = require("@visactor/vrender-components");
|
|
104
|
-
|
|
105
|
-
Object.defineProperty(exports, "AbstractComponent", {
|
|
106
|
-
enumerable: !0,
|
|
107
|
-
get: function() {
|
|
108
|
-
return vrender_components_1.AbstractComponent;
|
|
109
|
-
}
|
|
110
|
-
}), Object.defineProperty(exports, "Segment", {
|
|
111
|
-
enumerable: !0,
|
|
112
|
-
get: function() {
|
|
113
|
-
return vrender_components_1.Segment;
|
|
114
|
-
}
|
|
115
|
-
}), Object.defineProperty(exports, "MarkPoint", {
|
|
116
|
-
enumerable: !0,
|
|
117
|
-
get: function() {
|
|
118
|
-
return vrender_components_1.MarkPoint;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
var vrender_kits_1 = require("@visactor/vrender-kits");
|
|
123
|
-
|
|
124
|
-
Object.defineProperty(exports, "registerLine", {
|
|
125
|
-
enumerable: !0,
|
|
126
|
-
get: function() {
|
|
127
|
-
return vrender_kits_1.registerLine;
|
|
128
|
-
}
|
|
129
|
-
}), Object.defineProperty(exports, "registerRect", {
|
|
130
|
-
enumerable: !0,
|
|
131
|
-
get: function() {
|
|
132
|
-
return vrender_kits_1.registerRect;
|
|
133
|
-
}
|
|
134
|
-
}), Object.defineProperty(exports, "registerArc3d", {
|
|
135
|
-
enumerable: !0,
|
|
136
|
-
get: function() {
|
|
137
|
-
return vrender_kits_1.registerArc3d;
|
|
138
|
-
}
|
|
139
|
-
}), Object.defineProperty(exports, "registerPyramid3d", {
|
|
140
|
-
enumerable: !0,
|
|
141
|
-
get: function() {
|
|
142
|
-
return vrender_kits_1.registerPyramid3d;
|
|
143
|
-
}
|
|
144
|
-
}), Object.defineProperty(exports, "registerRect3d", {
|
|
145
|
-
enumerable: !0,
|
|
146
|
-
get: function() {
|
|
147
|
-
return vrender_kits_1.registerRect3d;
|
|
148
|
-
}
|
|
149
|
-
}), Object.defineProperty(exports, "registerShadowRoot", {
|
|
150
|
-
enumerable: !0,
|
|
151
|
-
get: function() {
|
|
152
|
-
return vrender_kits_1.registerShadowRoot;
|
|
153
|
-
}
|
|
154
|
-
}), __exportStar(require("@visactor/vlayouts"), exports);
|
|
155
|
-
|
|
156
|
-
var vdataset_1 = require("@visactor/vdataset");
|
|
157
|
-
|
|
158
|
-
Object.defineProperty(exports, "DataView", {
|
|
159
|
-
enumerable: !0,
|
|
160
|
-
get: function() {
|
|
161
|
-
return vdataset_1.DataView;
|
|
162
|
-
}
|
|
163
|
-
}), Object.defineProperty(exports, "DataSet", {
|
|
164
|
-
enumerable: !0,
|
|
165
|
-
get: function() {
|
|
166
|
-
return vdataset_1.DataSet;
|
|
167
|
-
}
|
|
168
|
-
}), Object.defineProperty(exports, "svgParser", {
|
|
169
|
-
enumerable: !0,
|
|
170
|
-
get: function() {
|
|
171
|
-
return vdataset_1.svgParser;
|
|
172
|
-
}
|
|
173
|
-
}), __exportStar(require("@visactor/vutils"), exports);
|
|
174
19
|
//# sourceMappingURL=vchart-all.js.map
|
package/cjs/vchart-all.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vchart-all.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/vchart-all.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAmKvB,uFAnKA,aAAM,OAmKA;AAjKf,uCAAiD;AACjD,uCAAiD;AACjD,qCAA+C;AAC/C,6CAAuD;AACvD,qCAA+C;AAC/C,qCAA+C;AAC/C,uCAAiD;AACjD,yCAAmD;AACnD,2CAAqD;AACrD,+CAAyD;AACzD,iDAA2D;AAC3D,wDAA0E;AAC1E,yCAAmD;AACnD,mDAAyF;AACzF,2CAAqD;AACrD,oDAAsE;AACtE,uDAAgE;AAChE,+CAAyD;AACzD,2DAAoE;AACpE,6CAAuD;AACvD,iDAA2D;AAC3D,+CAAwD;AACxD,2CAAqD;AACrD,mDAA4D;AAC5D,6CAAuD;AACvD,qDAA+D;AAC/D,0DAMoC;AACpC,kDAAwF;AACxF,+CAAsF;AACtF,iDAAsD;AACtD,qDAA2F;AAC3F,qDAA4E;AAC5E,qDAA0D;AAC1D,yCAAwD;AACxD,4DAAuF;AACvF,6CAAkD;AAClD,4DAAuF;AACvF,+CAAoD;AACpD,6CAAkD;AAClD,+DAAmE;AACnE,8DAAgH;AAChH,6CAAkD;AAClD,yDAA6D;AAC7D,kEAAsE;AACtE,+CAAoD;AACpD,yEAA8G;AAC9G,wDAAgE;AAEhE,+CAOuB;AACvB,iCAA0C;AAC1C,0CAA4G;AAE5G,aAAM,CAAC,YAAY,CAAC;IAElB,wBAAiB;IACjB,wBAAiB;IACjB,sBAAgB;IAChB,8BAAoB;IACpB,sBAAgB;IAChB,wBAAiB;IACjB,0BAAkB;IAClB,kCAAsB;IACtB,sBAAgB;IAChB,0BAAkB;IAClB,mCAAsB;IACtB,wCAA2B;IAC3B,4BAAmB;IACnB,kCAAsB;IACtB,+BAAoB;IACpB,wCAA6B;IAC7B,oCAA2B;IAC3B,uCAAwB;IACxB,mCAAsB;IACtB,gCAAqB;IACrB,2CAA0B;IAC1B,8BAAoB;IACpB,4BAAmB;IACnB,8BAAoB;IACpB,gCAAqB;IACrB,sCAAwB;IAIxB,4BAAmB;IAGnB,uCAA2B;IAC3B,qCAAyB;IACzB,qCAAyB;IACzB,oCAAwB;IACxB,uCAA2B;IAC3B,6BAAqB;IACrB,+BAAuB;IAEvB,+BAAsB;IACtB,iCAAwB;IAExB,yBAAe;IACf,sCAA0B;IAC1B,kCAAsB;IAEtB,4BAAgB;IAChB,6BAAiB;IACjB,6BAAiB;IACjB,2BAAqB;IAErB,4BAAgB;IAChB,4BAAgB;IAChB,8BAAiB;IACjB,iCAAqB;IACrB,iCAAqB;IACrB,mCAAsB;IACtB,iCAAoB;IAEpB,qBAAa;IACb,uBAAc;IACd,qBAAa;IACb,gCAAkB;IAClB,qBAAa;IACb,gCAAkB;IAClB,uBAAc;IAGd,gCAAkB;IAGlB,uBAAgB;IAGhB,2CAAyB;IACzB,8CAA4B;IAC5B,gCAAoB;IAGpB,mCAAqB;IAErB,2CAA6B;IAC7B,8CAAgC;IAEhC,4CAA8B;IAC9B,6CAA+B;IAC/B,2CAA6B;IAE7B,uBAAe;IACf,oCAA4B;IAC5B,mCAA2B;CAC5B,CAAC,CAAC","file":"vchart-all.js","sourcesContent":["import { VChart } from './core';\n\nimport { registerLineChart } from './chart/line';\nimport { registerAreaChart } from './chart/area';\nimport { registerBarChart } from './chart/bar';\nimport { registerScatterChart } from './chart/scatter';\nimport { registerMapChart } from './chart/map';\nimport { registerPieChart } from './chart/pie';\nimport { registerRoseChart } from './chart/rose';\nimport { registerRadarChart } from './chart/radar';\nimport { registerCommonChart } from './chart/common';\nimport { registerSequenceChart } from './chart/sequence';\nimport { registerHistogramChart } from './chart/histogram';\nimport { registerCircularProgressChart } from './chart/progress/circular';\nimport { registerGaugeChart } from './chart/gauge';\nimport { registerWordCloudChart, registerWordCloudShapeChart } from './chart/word-cloud';\nimport { registerFunnelChart } from './chart/funnel';\nimport { registerLinearProgressChart } from './chart/progress/linear';\nimport { registerRangeColumnChart } from './chart/range-column';\nimport { registerSunburstChart } from './chart/sunburst';\nimport { registerCirclePackingChart } from './chart/circle-packing';\nimport { registerTreemapChart } from './chart/treemap';\nimport { registerWaterfallChart } from './chart/waterfall';\nimport { registerBoxplotChart } from './chart/box-plot';\nimport { registerSankeyChart } from './chart/sankey';\nimport { registerRangeAreaChart } from './chart/range-area';\nimport { registerHeatmapChart } from './chart/heatmap';\nimport { registerCorrelationChart } from './chart/correlation';\nimport {\n registerCartesianBandAxis,\n registerCartesianLinearAxis,\n registerCartesianLogAxis,\n registerCartesianSymlogAxis,\n registerCartesianTimeAxis\n} from './component/axis/cartesian';\nimport { registerPolarBandAxis, registerPolarLinearAxis } from './component/axis/polar';\nimport { registerContinuousLegend, registerDiscreteLegend } from './component/legend';\nimport { registerTooltip } from './component/tooltip';\nimport { registerCartesianCrossHair, registerPolarCrossHair } from './component/crosshair';\nimport { registerDataZoom, registerScrollBar } from './component/data-zoom';\nimport { registerIndicator } from './component/indicator';\nimport { registerGeoCoordinate } from './component/geo';\nimport { registerMarkLine, registerPolarMarkLine } from './component/marker/mark-line';\nimport { registerTitle } from './component/title';\nimport { registerMarkArea, registerPolarMarkArea } from './component/marker/mark-area';\nimport { registerPlayer } from './component/player';\nimport { registerLabel } from './component/label';\nimport { registerTotalLabel } from './component/label/total-label';\nimport { registerMarkPoint, registerPolarMarkPoint, registerGeoMarkPoint } from './component/marker/mark-point';\nimport { registerBrush } from './component/brush';\nimport { registerCustomMark } from './component/custom-mark';\nimport { registerGridLayout } from './layout/grid-layout/grid-layout';\nimport { registerPoptip } from './component/poptip';\nimport { registerCanvasTooltipHandler, registerDomTooltipHandler } from './plugin/components/tooltip-handler';\nimport { registerFormatPlugin } from './plugin/chart/formatter';\n\nimport {\n registerElementActive,\n registerElementActiveByLegend,\n registerElementHighlightByLegend,\n registerElementHighlightByName,\n registerElementHighlightByGroup,\n registerElementHighlightByKey\n} from './interaction';\nimport { registerAllMarks } from './mark';\nimport { registerAnimate, registerHtmlAttributePlugin, registerReactAttributePlugin } from './plugin/other';\n\nVChart.useRegisters([\n // charts\n registerLineChart,\n registerAreaChart,\n registerBarChart,\n registerScatterChart,\n registerPieChart,\n registerRoseChart,\n registerRadarChart,\n registerHistogramChart,\n registerMapChart,\n registerGaugeChart,\n registerWordCloudChart,\n registerWordCloudShapeChart,\n registerFunnelChart,\n registerWaterfallChart,\n registerBoxplotChart,\n registerCircularProgressChart,\n registerLinearProgressChart,\n registerRangeColumnChart,\n registerRangeAreaChart,\n registerSunburstChart,\n registerCirclePackingChart,\n registerTreemapChart,\n registerSankeyChart,\n registerHeatmapChart,\n registerSequenceChart,\n registerCorrelationChart,\n // 优化vchart-all体积, 默认不注册\n // registerLiquidChart,\n // registerVennChart,\n registerCommonChart,\n\n // components\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis,\n registerCartesianLogAxis,\n registerCartesianSymlogAxis,\n registerPolarBandAxis,\n registerPolarLinearAxis,\n\n registerDiscreteLegend,\n registerContinuousLegend,\n\n registerTooltip,\n registerCartesianCrossHair,\n registerPolarCrossHair,\n\n registerDataZoom,\n registerScrollBar,\n registerIndicator,\n registerGeoCoordinate,\n\n registerMarkLine,\n registerMarkArea,\n registerMarkPoint,\n registerPolarMarkLine,\n registerPolarMarkArea,\n registerPolarMarkPoint,\n registerGeoMarkPoint,\n\n registerTitle,\n registerPlayer,\n registerLabel,\n registerTotalLabel,\n registerBrush,\n registerCustomMark,\n registerPoptip,\n\n // layout\n registerGridLayout,\n\n // mark\n registerAllMarks,\n\n // plugin\n registerDomTooltipHandler,\n registerCanvasTooltipHandler,\n registerFormatPlugin,\n\n // interactions,\n registerElementActive,\n\n registerElementActiveByLegend,\n registerElementHighlightByLegend,\n\n registerElementHighlightByName,\n registerElementHighlightByGroup,\n registerElementHighlightByKey,\n\n registerAnimate,\n registerReactAttributePlugin,\n registerHtmlAttributePlugin\n]);\n\nexport { VChart };\n"]}
|
package/esm/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VChart } from './vchart';
|
|
2
2
|
import { Factory } from './factory';
|
|
3
3
|
export { VChart, Factory };
|
|
4
|
-
export declare const version = "2.0.
|
|
4
|
+
export declare const version = "2.0.8-alpha.1";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
7
7
|
export type { IRegion } from '../region/interface';
|
package/esm/core/index.js
CHANGED
package/esm/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAOvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAI3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EACL,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGtE,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.0.8-alpha.1\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport {\n vglobal,\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '@visactor/vrender-core';\nexport { ManualTicker, StreamLight } from '@visactor/vrender-animate';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
|
package/esm/index.d.ts
CHANGED
|
@@ -27,3 +27,11 @@ export * from './component/base';
|
|
|
27
27
|
export * from './compile/data/compilable-data';
|
|
28
28
|
export * from './animation';
|
|
29
29
|
export * from './interaction';
|
|
30
|
+
export { createImage, createPath, createArc3d, createPyramid3d, createRect3d, registerDirectionalLight, registerOrthoCamera, registerViewTransform3dPlugin, graphicCreator, type IGraphic, type IGlyph, type IGroup, type IText, type ILine, type IArea, type IRect, type INode, type IStage, type EasingType, type ILineGraphicAttribute, type ITextGraphicAttribute, type IRectGraphicAttribute, type IGroupGraphicAttribute, type TextAlignType, type TextBaselineType, type GraphicEventType, type IAreaGraphicAttribute, type ISymbolGraphicAttribute } from '@visactor/vrender-core';
|
|
31
|
+
export { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';
|
|
32
|
+
export { AbstractComponent, Segment, MarkPoint, type SegmentAttributes, type Point } from '@visactor/vrender-components';
|
|
33
|
+
export { registerLine, registerRect, registerArc3d, registerPyramid3d, registerRect3d, registerShadowRoot } from '@visactor/vrender-kits';
|
|
34
|
+
export * from '@visactor/vlayouts';
|
|
35
|
+
export { DataView, DataSet, svgParser } from '@visactor/vdataset';
|
|
36
|
+
export type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';
|
|
37
|
+
export * from '@visactor/vutils';
|
package/esm/index.js
CHANGED
|
@@ -55,4 +55,18 @@ export * from "./compile/data/compilable-data";
|
|
|
55
55
|
export * from "./animation";
|
|
56
56
|
|
|
57
57
|
export * from "./interaction";
|
|
58
|
+
|
|
59
|
+
export { createImage, createPath, createArc3d, createPyramid3d, createRect3d, registerDirectionalLight, registerOrthoCamera, registerViewTransform3dPlugin, graphicCreator } from "@visactor/vrender-core";
|
|
60
|
+
|
|
61
|
+
export { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from "@visactor/vrender-animate";
|
|
62
|
+
|
|
63
|
+
export { AbstractComponent, Segment, MarkPoint } from "@visactor/vrender-components";
|
|
64
|
+
|
|
65
|
+
export { registerLine, registerRect, registerArc3d, registerPyramid3d, registerRect3d, registerShadowRoot } from "@visactor/vrender-kits";
|
|
66
|
+
|
|
67
|
+
export * from "@visactor/vlayouts";
|
|
68
|
+
|
|
69
|
+
export { DataView, DataSet, svgParser } from "@visactor/vdataset";
|
|
70
|
+
|
|
71
|
+
export * from "@visactor/vutils";
|
|
58
72
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,eAAe,MAAM,CAAC;AAEtB,cAAc,QAAQ,CAAC;AAGvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC","file":"index.js","sourcesContent":["import { VChart } from './vchart-all';\n\nexport default VChart;\n\nexport * from './core';\n\n// chart model for extension\nexport * from './chart';\nexport * from './chart/base';\nexport * from './chart/cartesian';\nexport * from './chart/common';\nexport * from './chart/stack';\nexport * from './series';\nexport * from './mark';\nexport * from './component';\nexport * from './layout';\nexport * from './env';\nexport * from './event';\n// plugin路径太深,如果直接引用,会导致tree-shaking失效\nexport * from './plugin/chart';\nexport * from './plugin/components/tooltip-handler';\nexport * from './plugin/components/axis-sync';\nexport * from './plugin/other';\nexport * from './plugin/base/base-plugin';\nexport * from './vrender-tools';\n// util\nexport * from './util/data';\nexport * from './util/spec/transform';\nexport * from './util/mark';\nexport * from './util/region';\nexport * from './util/scale';\n\n// base component model for extension\nexport * from './component/base';\nexport * from './compile/data/compilable-data';\nexport * from './animation';\nexport * from './interaction';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,eAAe,MAAM,CAAC;AAEtB,cAAc,QAAQ,CAAC;AAGvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,eAAe,EACf,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,6BAA6B,EAC7B,cAAc,EAoBf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGnG,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,SAAS,EAGV,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAGhC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKlE,cAAc,kBAAkB,CAAC","file":"index.js","sourcesContent":["import { VChart } from './vchart-all';\n\nexport default VChart;\n\nexport * from './core';\n\n// chart model for extension\nexport * from './chart';\nexport * from './chart/base';\nexport * from './chart/cartesian';\nexport * from './chart/common';\nexport * from './chart/stack';\nexport * from './series';\nexport * from './mark';\nexport * from './component';\nexport * from './layout';\nexport * from './env';\nexport * from './event';\n// plugin路径太深,如果直接引用,会导致tree-shaking失效\nexport * from './plugin/chart';\nexport * from './plugin/components/tooltip-handler';\nexport * from './plugin/components/axis-sync';\nexport * from './plugin/other';\nexport * from './plugin/base/base-plugin';\nexport * from './vrender-tools';\n// util\nexport * from './util/data';\nexport * from './util/spec/transform';\nexport * from './util/mark';\nexport * from './util/region';\nexport * from './util/scale';\n\n// base component model for extension\nexport * from './component/base';\nexport * from './compile/data/compilable-data';\nexport * from './animation';\nexport * from './interaction';\n\nexport {\n createImage,\n createPath,\n createArc3d,\n createPyramid3d,\n createRect3d,\n registerDirectionalLight,\n registerOrthoCamera,\n registerViewTransform3dPlugin,\n graphicCreator,\n type IGraphic,\n type IGlyph,\n type IGroup,\n type IText,\n type ILine,\n type IArea,\n type IRect,\n type INode,\n type IStage,\n type EasingType,\n type ILineGraphicAttribute,\n type ITextGraphicAttribute,\n type IRectGraphicAttribute,\n type IGroupGraphicAttribute,\n type TextAlignType,\n type TextBaselineType,\n type GraphicEventType,\n type IAreaGraphicAttribute,\n type ISymbolGraphicAttribute\n} from '@visactor/vrender-core';\n\nexport { ACustomAnimate, AnimateExecutor, RotateBySphereAnimate } from '@visactor/vrender-animate';\n\n// vrender-components\nexport {\n AbstractComponent,\n Segment,\n MarkPoint,\n type SegmentAttributes,\n type Point\n} from '@visactor/vrender-components';\n\n// vrender-kits\nexport {\n registerLine,\n registerRect,\n registerArc3d,\n registerPyramid3d,\n registerRect3d,\n registerShadowRoot\n} from '@visactor/vrender-kits';\n\n// vlayouts\nexport * from '@visactor/vlayouts';\n\n// vdataset\nexport { DataView, DataSet, svgParser } from '@visactor/vdataset';\nexport type { SVGParsedElement, SVGParserResult, ISVGSourceOption } from '@visactor/vdataset';\n\n// vutils\n// @ts-ignore\nexport * from '@visactor/vutils';\n"]}
|
|
@@ -12,6 +12,7 @@ export declare class ChartResizeZoomPlugin extends BasePlugin<IChartPluginServic
|
|
|
12
12
|
protected _maxZoom?: number;
|
|
13
13
|
protected _zoom: number;
|
|
14
14
|
protected _rate?: number;
|
|
15
|
+
protected _beforeWheel?: (e: WheelEvent) => boolean;
|
|
15
16
|
constructor();
|
|
16
17
|
onAfterInitChart(service: IChartPluginService, chartSpec: any): void;
|
|
17
18
|
protected _onWheel: (e: WheelEvent) => void;
|