@visactor/vchart 1.10.1 → 1.10.2-alpha.0

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.
@@ -32,12 +32,17 @@ const getLabelSpec = () => ({
32
32
  type: "rect",
33
33
  visible: !0,
34
34
  style: {
35
+ lineWidth: 0,
36
+ stroke: {
37
+ type: "palette",
38
+ key: "markLineStrokeColor"
39
+ },
35
40
  fill: {
36
41
  type: "palette",
37
42
  key: "axisGridColor"
38
43
  },
39
44
  opacity: .7,
40
- lineDash: []
45
+ lineDash: [ 2, 3 ]
41
46
  }
42
47
  },
43
48
  label: {
@@ -126,12 +131,17 @@ export const crosshair = {
126
131
  type: "rect",
127
132
  visible: !0,
128
133
  style: {
134
+ lineWidth: 0,
135
+ stroke: {
136
+ type: "palette",
137
+ key: "markLineStrokeColor"
138
+ },
129
139
  fill: {
130
140
  type: "palette",
131
141
  key: "axisGridColor"
132
142
  },
133
143
  opacity: .7,
134
- lineDash: []
144
+ lineDash: [ 2, 3 ]
135
145
  }
136
146
  },
137
147
  label: {
@@ -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,EAAE,GAAG,EAAE,2BAA2B,EAAE;YAC3D,YAAY,EAAE,CAAC;SAChB;KACF;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,GAAgC,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,EAAE;SACb;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,GAA6B,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,qBAAqB,EAAE;YACvD,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,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 lineDash: []\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: { type: 'palette', key: 'axisGridColor' },\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"]}
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,EAAE,GAAG,EAAE,2BAA2B,EAAE;YAC3D,YAAY,EAAE,CAAC;SAChB;KACF;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,GAAgC,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,qBAAqB,EAAE;YACvD,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,GAA6B,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,qBAAqB,EAAE;YACvD,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,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 lineWidth: 0,\n stroke: { type: 'palette', key: 'markLineStrokeColor' },\n fill: { type: 'palette', key: 'axisGridColor' },\n opacity: 0.7,\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: { type: 'palette', key: 'axisGridColor' },\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.1",
3
+ "version": "1.10.2-alpha.0",
4
4
  "description": "charts lib based @visactor/VGrammar",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -84,9 +84,9 @@
84
84
  "@size-limit/file": "9.0.0",
85
85
  "rimraf": "3.0.2",
86
86
  "@internal/typescript-json-schema": "0.0.1",
87
- "@internal/ts-config": "0.0.1",
88
87
  "@internal/bundler": "0.0.1",
89
- "@internal/eslint-config": "0.0.1"
88
+ "@internal/eslint-config": "0.0.1",
89
+ "@internal/ts-config": "0.0.1"
90
90
  },
91
91
  "dependencies": {
92
92
  "@visactor/vutils": "~0.18.1",
@@ -102,7 +102,7 @@
102
102
  "@visactor/vgrammar-hierarchy": "0.12.4",
103
103
  "@visactor/vgrammar-sankey": "0.12.4",
104
104
  "@visactor/vgrammar-util": "0.12.4",
105
- "@visactor/vutils-extension": "1.10.1"
105
+ "@visactor/vutils-extension": "1.10.2-alpha.0"
106
106
  },
107
107
  "publishConfig": {
108
108
  "access": "public",