@visactor/vchart 1.10.2-alpha.3 → 1.10.2-alpha.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/build/es5/index.js +1 -1
- package/build/index.js +487 -214
- package/build/index.min.js +1 -1
- 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/theme/builtin/common/component/crosshair.js +2 -8
- package/cjs/theme/builtin/common/component/crosshair.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/theme/builtin/common/component/crosshair.js +2 -8
- package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
- package/package.json +15 -15
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 = "1.10.2-alpha.
|
|
4
|
+
export declare const version = "1.10.2-alpha.4";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
7
7
|
export * from '../typings/spec/common';
|
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 = "1.10.2-alpha.
|
|
38
|
+
}), exports.version = "1.10.2-alpha.4", __exportStar(require("../typings/spec/common"), exports),
|
|
39
39
|
__exportStar(require("../event/interface"), exports), __exportStar(require("../theme/interface"), exports),
|
|
40
40
|
__exportStar(require("../constant"), exports), __exportStar(require("./interface"), exports),
|
|
41
41
|
__exportStar(require("../typings/spec/index"), exports), __exportStar(require("../typings/tooltip"), 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,gBAAgB,CAAC;AAMxC,yDAAuC;AACvC,qDAAmC;AACnC,qDAAmC;AACnC,8CAA4B;AAC5B,8CAA4B;AAK5B,wDAAsC;AAGtC,qDAAmC;AAGnC,iDAA+B;AAG/B,uDAAiD;AAAxC,uGAAA,OAAO,OAAA;AAGhB,4CAA0B","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 = \"1.10.2-alpha.
|
|
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,gBAAgB,CAAC;AAMxC,yDAAuC;AACvC,qDAAmC;AACnC,qDAAmC;AACnC,8CAA4B;AAC5B,8CAA4B;AAK5B,wDAAsC;AAGtC,qDAAmC;AAGnC,iDAA+B;AAG/B,uDAAiD;AAAxC,uGAAA,OAAO,OAAA;AAGhB,4CAA0B","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 = \"1.10.2-alpha.4\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\n\nexport * from '../typings/spec/common';\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../constant';\nexport * from './interface';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '@visactor/vrender-core';\n\n// plugin\nexport * from '../plugin';\n"]}
|
|
@@ -90,10 +90,7 @@ const getLabelSpec = () => ({
|
|
|
90
90
|
type: "palette",
|
|
91
91
|
key: "markLineStrokeColor"
|
|
92
92
|
},
|
|
93
|
-
fill:
|
|
94
|
-
type: "palette",
|
|
95
|
-
key: "axisGridColor"
|
|
96
|
-
},
|
|
93
|
+
fill: "transparent",
|
|
97
94
|
opacity: .7,
|
|
98
95
|
lineDash: [ 2, 3 ]
|
|
99
96
|
}
|
|
@@ -190,10 +187,7 @@ exports.crosshair = {
|
|
|
190
187
|
type: "palette",
|
|
191
188
|
key: "markLineStrokeColor"
|
|
192
189
|
},
|
|
193
|
-
fill:
|
|
194
|
-
type: "palette",
|
|
195
|
-
key: "axisGridColor"
|
|
196
|
-
},
|
|
190
|
+
fill: "transparent",
|
|
197
191
|
opacity: .7,
|
|
198
192
|
lineDash: [ 2, 3 ]
|
|
199
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/component/crosshair.ts"],"names":[],"mappings":";;;AASA,MAAM,YAAY,GAAG,GAAwB,EAAE,CAAC,CAAC;IAC/C,OAAO,EAAE,KAAK;IACd,KAAK,EAAE;QACL,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,qBAAqB,EAAE;QACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE;KAE/C;IACD,eAAe,EAAE;QACf,OAAO,EAAE;YACP,MAAM,EAAE,CAAC;YACT,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;SACT;QACD,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,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CategoryFieldSpec,\n ICrosshairLabelSpec,\n ICrosshairTheme\n} from '../../../../component/crosshair/interface';\n\nconst getLabelSpec = (): ICrosshairLabelSpec => ({\n visible: false,\n style: {\n fontWeight: 'normal',\n fill: { type: 'palette', key: 'axisMarkerFontColor' },\n fontSize: { type: 'token', key: 'l5FontSize' }\n //lineHeight: { type: 'token', key: 'l5LineHeight' },\n },\n labelBackground: {\n padding: {\n bottom: 0,\n top: 0,\n left: 2,\n right: 2\n },\n style: {\n fill: { type: 'palette', key: 'axisMarkerBackgroundColor' },\n cornerRadius: 1\n }\n }\n});\n\nconst getBandField = (): ICrosshairCategoryFieldSpec => ({\n visible: false,\n line: {\n type: 'rect',\n visible: true,\n style: {\n fill: { type: 'palette', key: 'axisGridColor' },\n opacity: 0.7,\n lineWidth: 0, // 默认不显示边线\n // 此处设置 stroke 和 lineDash 是为了用户想要 line 形式的 crosshair 时,可以直接复用颜色和配置\n stroke: { type: 'palette', key: 'markLineStrokeColor' },\n lineDash: [2, 3]\n }\n } as ICrosshairRectSpec,\n label: getLabelSpec()\n});\n\nconst getLinearField = (): ICrosshairValueFieldSpec => ({\n visible: false,\n line: {\n type: 'line',\n visible: true,\n style: {\n stroke: { type: 'palette', key: 'markLineStrokeColor' },\n fill: 'transparent',\n opacity: 0.7,\n lineDash: [2, 3]\n }\n } as ICrosshairLineSpec,\n label: getLabelSpec()\n});\n\nexport const crosshair: ICrosshairTheme = {\n trigger: 'hover',\n bandField: getBandField(),\n linearField: getLinearField()\n};\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 = "1.10.2-alpha.
|
|
4
|
+
export declare const version = "1.10.2-alpha.4";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
7
7
|
export * from '../typings/spec/common';
|
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,gBAAgB,CAAC;AAMxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAK5B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,cAAc,WAAW,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 = \"1.10.2-alpha.
|
|
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,gBAAgB,CAAC;AAMxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAK5B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,cAAc,WAAW,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 = \"1.10.2-alpha.4\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\n\nexport * from '../typings/spec/common';\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../constant';\nexport * from './interface';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '@visactor/vrender-core';\n\n// plugin\nexport * from '../plugin';\n"]}
|
|
@@ -84,10 +84,7 @@ const getLabelSpec = () => ({
|
|
|
84
84
|
type: "palette",
|
|
85
85
|
key: "markLineStrokeColor"
|
|
86
86
|
},
|
|
87
|
-
fill:
|
|
88
|
-
type: "palette",
|
|
89
|
-
key: "axisGridColor"
|
|
90
|
-
},
|
|
87
|
+
fill: "transparent",
|
|
91
88
|
opacity: .7,
|
|
92
89
|
lineDash: [ 2, 3 ]
|
|
93
90
|
}
|
|
@@ -184,10 +181,7 @@ export const crosshair = {
|
|
|
184
181
|
type: "palette",
|
|
185
182
|
key: "markLineStrokeColor"
|
|
186
183
|
},
|
|
187
|
-
fill:
|
|
188
|
-
type: "palette",
|
|
189
|
-
key: "axisGridColor"
|
|
190
|
-
},
|
|
184
|
+
fill: "transparent",
|
|
191
185
|
opacity: .7,
|
|
192
186
|
lineDash: [ 2, 3 ]
|
|
193
187
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/component/crosshair.ts"],"names":[],"mappings":"AASA,MAAM,YAAY,GAAG,GAAwB,EAAE,CAAC,CAAC;IAC/C,OAAO,EAAE,KAAK;IACd,KA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AAE;YACvD,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,YAAY,EAAE;IACzB,WAAW,EAAE,cAAc,EAAE;CAC9B,CAAC","file":"crosshair.js","sourcesContent":["import type {\n ICrosshairLineSpec,\n ICrosshairRectSpec,\n ICrosshairValueFieldSpec,\n ICrosshairCategoryFieldSpec,\n ICrosshairLabelSpec,\n ICrosshairTheme\n} from '../../../../component/crosshair/interface';\n\nconst getLabelSpec = (): ICrosshairLabelSpec => ({\n visible: false,\n style: {\n fontWeight: 'normal',\n fill: { type: 'palette', key: 'axisMarkerFontColor' },\n fontSize: { type: 'token', key: 'l5FontSize' }\n //lineHeight: { type: 'token', key: 'l5LineHeight' },\n },\n labelBackground: {\n padding: {\n bottom: 0,\n top: 0,\n left: 2,\n right: 2\n },\n style: {\n fill: { type: 'palette', key: 'axisMarkerBackgroundColor' },\n cornerRadius: 1\n }\n }\n});\n\nconst getBandField = (): ICrosshairCategoryFieldSpec => ({\n visible: false,\n line: {\n type: 'rect',\n visible: true,\n style: {\n fill: { type: 'palette', key: 'axisGridColor' },\n opacity: 0.7,\n lineWidth: 0, // 默认不显示边线\n // 此处设置 stroke 和 lineDash 是为了用户想要 line 形式的 crosshair 时,可以直接复用颜色和配置\n stroke: { type: 'palette', key: 'markLineStrokeColor' },\n lineDash: [2, 3]\n }\n } as ICrosshairRectSpec,\n label: getLabelSpec()\n});\n\nconst getLinearField = (): ICrosshairValueFieldSpec => ({\n visible: false,\n line: {\n type: 'line',\n visible: true,\n style: {\n stroke: { type: 'palette', key: 'markLineStrokeColor' },\n fill: 'transparent',\n opacity: 0.7,\n lineDash: [2, 3]\n }\n } as ICrosshairLineSpec,\n label: getLabelSpec()\n});\n\nexport const crosshair: ICrosshairTheme = {\n trigger: 'hover',\n bandField: getBandField(),\n linearField: getLinearField()\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vchart",
|
|
3
|
-
"version": "1.10.2-alpha.
|
|
3
|
+
"version": "1.10.2-alpha.4",
|
|
4
4
|
"description": "charts lib based @visactor/VGrammar",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -83,26 +83,26 @@
|
|
|
83
83
|
"size-limit": "9.0.0",
|
|
84
84
|
"@size-limit/file": "9.0.0",
|
|
85
85
|
"rimraf": "3.0.2",
|
|
86
|
-
"@internal/ts-config": "0.0.1",
|
|
87
|
-
"@internal/bundler": "0.0.1",
|
|
88
86
|
"@internal/typescript-json-schema": "0.0.1",
|
|
89
|
-
"@internal/eslint-config": "0.0.1"
|
|
87
|
+
"@internal/eslint-config": "0.0.1",
|
|
88
|
+
"@internal/bundler": "0.0.1",
|
|
89
|
+
"@internal/ts-config": "0.0.1"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@visactor/vutils": "~0.18.1",
|
|
93
93
|
"@visactor/vdataset": "~0.18.1",
|
|
94
94
|
"@visactor/vscale": "~0.18.1",
|
|
95
|
-
"@visactor/vrender-core": "0.18.
|
|
96
|
-
"@visactor/vrender-kits": "0.18.
|
|
97
|
-
"@visactor/vrender-components": "0.18.
|
|
98
|
-
"@visactor/vgrammar-core": "0.12.
|
|
99
|
-
"@visactor/vgrammar-projection": "0.12.
|
|
100
|
-
"@visactor/vgrammar-wordcloud": "0.12.
|
|
101
|
-
"@visactor/vgrammar-wordcloud-shape": "0.12.
|
|
102
|
-
"@visactor/vgrammar-hierarchy": "0.12.
|
|
103
|
-
"@visactor/vgrammar-sankey": "0.12.
|
|
104
|
-
"@visactor/vgrammar-util": "0.12.
|
|
105
|
-
"@visactor/vutils-extension": "1.10.2-alpha.
|
|
95
|
+
"@visactor/vrender-core": "0.18.7",
|
|
96
|
+
"@visactor/vrender-kits": "0.18.7",
|
|
97
|
+
"@visactor/vrender-components": "0.18.7",
|
|
98
|
+
"@visactor/vgrammar-core": "0.12.6",
|
|
99
|
+
"@visactor/vgrammar-projection": "0.12.6",
|
|
100
|
+
"@visactor/vgrammar-wordcloud": "0.12.6",
|
|
101
|
+
"@visactor/vgrammar-wordcloud-shape": "0.12.6",
|
|
102
|
+
"@visactor/vgrammar-hierarchy": "0.12.6",
|
|
103
|
+
"@visactor/vgrammar-sankey": "0.12.6",
|
|
104
|
+
"@visactor/vgrammar-util": "0.12.6",
|
|
105
|
+
"@visactor/vutils-extension": "1.10.2-alpha.4"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public",
|