@visactor/vrender-components 0.21.6 → 0.21.7
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/axis/base.js +1 -2
- package/cjs/axis/base.js.map +1 -1
- package/cjs/crosshair/index.d.ts +1 -0
- package/cjs/crosshair/index.js +2 -1
- package/cjs/crosshair/index.js.map +1 -1
- package/cjs/crosshair/polygon-sector.d.ts +16 -0
- package/cjs/crosshair/polygon-sector.js +42 -0
- package/cjs/crosshair/polygon-sector.js.map +1 -0
- package/cjs/crosshair/register.d.ts +1 -0
- package/cjs/crosshair/register.js +6 -2
- package/cjs/crosshair/register.js.map +1 -1
- package/cjs/crosshair/type.d.ts +7 -2
- package/cjs/crosshair/type.js +1 -2
- package/cjs/crosshair/type.js.map +1 -1
- package/cjs/data-zoom/config.js +2 -1
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/cjs/jsx/index.js +1 -2
- package/cjs/label/arc.js +2 -1
- package/cjs/label/rect.js +1 -1
- package/cjs/switch/index.d.ts +2 -0
- package/cjs/switch/index.js +21 -0
- package/cjs/switch/index.js.map +1 -0
- package/cjs/switch/register.d.ts +1 -0
- package/cjs/switch/register.js +15 -0
- package/cjs/switch/register.js.map +1 -0
- package/cjs/switch/switch.d.ts +21 -0
- package/cjs/switch/switch.js +105 -0
- package/cjs/switch/switch.js.map +1 -0
- package/cjs/switch/type.d.ts +22 -0
- package/cjs/switch/type.js +6 -0
- package/cjs/switch/type.js.map +1 -0
- package/dist/index.es.js +5112 -4911
- package/es/axis/base.js +1 -2
- package/es/axis/base.js.map +1 -1
- package/es/crosshair/index.d.ts +1 -0
- package/es/crosshair/index.js +2 -0
- package/es/crosshair/index.js.map +1 -1
- package/es/crosshair/polygon-sector.d.ts +16 -0
- package/es/crosshair/polygon-sector.js +41 -0
- package/es/crosshair/polygon-sector.js.map +1 -0
- package/es/crosshair/register.d.ts +1 -0
- package/es/crosshair/register.js +4 -0
- package/es/crosshair/register.js.map +1 -1
- package/es/crosshair/type.d.ts +7 -2
- package/es/crosshair/type.js +1 -2
- package/es/crosshair/type.js.map +1 -1
- package/es/data-zoom/config.js +2 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -1
- package/es/index.js.map +1 -1
- package/es/jsx/index.js +1 -2
- package/es/label/arc.js +2 -1
- package/es/label/rect.js +1 -1
- package/es/switch/index.d.ts +2 -0
- package/es/switch/index.js +4 -0
- package/es/switch/index.js.map +1 -0
- package/es/switch/register.d.ts +1 -0
- package/es/switch/register.js +6 -0
- package/es/switch/register.js.map +1 -0
- package/es/switch/switch.d.ts +21 -0
- package/es/switch/switch.js +104 -0
- package/es/switch/switch.js.map +1 -0
- package/es/switch/type.d.ts +22 -0
- package/es/switch/type.js +2 -0
- package/es/switch/type.js.map +1 -0
- package/package.json +6 -6
|
@@ -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 @@
|
|
|
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.
|
|
3
|
+
"version": "0.21.7",
|
|
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.
|
|
16
|
-
"@visactor/vscale": "~0.19.
|
|
17
|
-
"@visactor/vrender-core": "0.21.
|
|
18
|
-
"@visactor/vrender-kits": "0.21.
|
|
15
|
+
"@visactor/vutils": "~0.19.3",
|
|
16
|
+
"@visactor/vscale": "~0.19.3",
|
|
17
|
+
"@visactor/vrender-core": "0.21.7",
|
|
18
|
+
"@visactor/vrender-kits": "0.21.7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
22
|
-
"@visactor/vscale": "~0.19.
|
|
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",
|