@visactor/vrender-components 0.21.6-alpha.1 → 0.21.7-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.
Files changed (68) hide show
  1. package/cjs/axis/base.js +1 -2
  2. package/cjs/axis/base.js.map +1 -1
  3. package/cjs/crosshair/index.d.ts +1 -0
  4. package/cjs/crosshair/index.js +2 -1
  5. package/cjs/crosshair/index.js.map +1 -1
  6. package/cjs/crosshair/polygon-sector.d.ts +16 -0
  7. package/cjs/crosshair/polygon-sector.js +42 -0
  8. package/cjs/crosshair/polygon-sector.js.map +1 -0
  9. package/cjs/crosshair/register.d.ts +1 -0
  10. package/cjs/crosshair/register.js +6 -2
  11. package/cjs/crosshair/register.js.map +1 -1
  12. package/cjs/crosshair/type.d.ts +7 -2
  13. package/cjs/crosshair/type.js +1 -2
  14. package/cjs/crosshair/type.js.map +1 -1
  15. package/cjs/data-zoom/config.js +2 -1
  16. package/cjs/index.d.ts +2 -1
  17. package/cjs/index.js +2 -2
  18. package/cjs/index.js.map +1 -1
  19. package/cjs/jsx/index.js +1 -2
  20. package/cjs/label/arc.js +2 -1
  21. package/cjs/label/rect.js +1 -1
  22. package/cjs/switch/index.d.ts +2 -0
  23. package/cjs/switch/index.js +21 -0
  24. package/cjs/switch/index.js.map +1 -0
  25. package/cjs/switch/register.d.ts +1 -0
  26. package/cjs/switch/register.js +15 -0
  27. package/cjs/switch/register.js.map +1 -0
  28. package/cjs/switch/switch.d.ts +21 -0
  29. package/cjs/switch/switch.js +105 -0
  30. package/cjs/switch/switch.js.map +1 -0
  31. package/cjs/switch/type.d.ts +22 -0
  32. package/cjs/switch/type.js +6 -0
  33. package/cjs/switch/type.js.map +1 -0
  34. package/dist/index.es.js +5112 -4911
  35. package/es/axis/base.js +1 -2
  36. package/es/axis/base.js.map +1 -1
  37. package/es/crosshair/index.d.ts +1 -0
  38. package/es/crosshair/index.js +2 -0
  39. package/es/crosshair/index.js.map +1 -1
  40. package/es/crosshair/polygon-sector.d.ts +16 -0
  41. package/es/crosshair/polygon-sector.js +41 -0
  42. package/es/crosshair/polygon-sector.js.map +1 -0
  43. package/es/crosshair/register.d.ts +1 -0
  44. package/es/crosshair/register.js +4 -0
  45. package/es/crosshair/register.js.map +1 -1
  46. package/es/crosshair/type.d.ts +7 -2
  47. package/es/crosshair/type.js +1 -2
  48. package/es/crosshair/type.js.map +1 -1
  49. package/es/data-zoom/config.js +2 -1
  50. package/es/index.d.ts +2 -1
  51. package/es/index.js +3 -1
  52. package/es/index.js.map +1 -1
  53. package/es/jsx/index.js +1 -2
  54. package/es/label/arc.js +2 -1
  55. package/es/label/rect.js +1 -1
  56. package/es/switch/index.d.ts +2 -0
  57. package/es/switch/index.js +4 -0
  58. package/es/switch/index.js.map +1 -0
  59. package/es/switch/register.d.ts +1 -0
  60. package/es/switch/register.js +6 -0
  61. package/es/switch/register.js.map +1 -0
  62. package/es/switch/switch.d.ts +21 -0
  63. package/es/switch/switch.js +104 -0
  64. package/es/switch/switch.js.map +1 -0
  65. package/es/switch/type.d.ts +22 -0
  66. package/es/switch/type.js +2 -0
  67. package/es/switch/type.js.map +1 -0
  68. package/package.json +8 -8
@@ -0,0 +1,22 @@
1
+ import type { Cursor, ICircleGraphicAttribute, IColor, IGroupGraphicAttribute, IRectGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
2
+ export type SwitchRect = {
3
+ checkedFill?: IColor;
4
+ uncheckedFill?: IColor;
5
+ disableCheckedFill?: IColor;
6
+ disableUncheckedFill?: IColor;
7
+ } & IRectGraphicAttribute;
8
+ export type SwitchCircle = ICircleGraphicAttribute;
9
+ export type SwitchText = {
10
+ checkedText?: string;
11
+ uncheckedText?: string;
12
+ } & ITextGraphicAttribute;
13
+ export type SwitchAttributes = IGroupGraphicAttribute & {
14
+ interactive?: boolean;
15
+ disabled?: boolean;
16
+ checked?: boolean;
17
+ text?: SwitchText;
18
+ circle?: SwitchCircle;
19
+ box?: SwitchRect;
20
+ disableCursor?: Cursor;
21
+ spaceBetweenTextAndCircle?: number;
22
+ };
@@ -0,0 +1,2 @@
1
+ export { };
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/switch/type.ts"],"names":[],"mappings":"","file":"type.js","sourcesContent":["import type {\n Cursor,\n ICircleGraphicAttribute,\n IColor,\n IGroupGraphicAttribute,\n IRectGraphicAttribute,\n ITextGraphicAttribute\n} from '@visactor/vrender-core';\n\nexport type SwitchRect = {\n checkedFill?: IColor;\n uncheckedFill?: IColor;\n disableCheckedFill?: IColor;\n disableUncheckedFill?: IColor;\n} & IRectGraphicAttribute;\n\nexport type SwitchCircle = ICircleGraphicAttribute;\n\nexport type SwitchText = {\n checkedText?: string;\n uncheckedText?: string;\n} & ITextGraphicAttribute;\n\nexport type SwitchAttributes = IGroupGraphicAttribute & {\n interactive?: boolean;\n disabled?: boolean;\n checked?: boolean;\n\n text?: SwitchText;\n circle?: SwitchCircle;\n box?: SwitchRect;\n disableCursor?: Cursor;\n\n spaceBetweenTextAndCircle?: number;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "0.21.6-alpha.1",
3
+ "version": "0.21.7-alpha.1",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -12,14 +12,14 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@visactor/vutils": "~0.19.2",
16
- "@visactor/vscale": "~0.19.2",
17
- "@visactor/vrender-core": "0.21.6-alpha.1",
18
- "@visactor/vrender-kits": "0.21.6-alpha.1"
15
+ "@visactor/vutils": "~0.19.3",
16
+ "@visactor/vscale": "~0.19.3",
17
+ "@visactor/vrender-core": "0.21.7-alpha.1",
18
+ "@visactor/vrender-kits": "0.21.7-alpha.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@rushstack/eslint-patch": "~1.1.4",
22
- "@visactor/vscale": "~0.19.2",
22
+ "@visactor/vscale": "~0.19.3",
23
23
  "@types/jest": "^26.0.0",
24
24
  "jest": "^26.0.0",
25
25
  "jest-electron": "^0.1.12",
@@ -29,9 +29,9 @@
29
29
  "vite": "3.2.6",
30
30
  "typescript": "4.9.5",
31
31
  "cross-env": "^7.0.3",
32
- "@internal/eslint-config": "0.0.1",
32
+ "@internal/bundler": "0.0.1",
33
33
  "@internal/ts-config": "0.0.1",
34
- "@internal/bundler": "0.0.1"
34
+ "@internal/eslint-config": "0.0.1"
35
35
  },
36
36
  "keywords": [
37
37
  "VisActor",