@visactor/vrender-components 0.13.2 → 0.13.3-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/cjs/axis/base.js +31 -23
- package/cjs/axis/base.js.map +1 -1
- package/cjs/axis/overlap/auto-limit.js +1 -1
- package/cjs/axis/overlap/auto-limit.js.map +1 -1
- package/cjs/axis/type.d.ts +3 -3
- package/cjs/axis/type.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/legend/discrete/discrete.d.ts +1 -0
- package/cjs/legend/discrete/discrete.js +17 -7
- package/cjs/legend/discrete/discrete.js.map +1 -1
- package/cjs/legend/discrete/type.d.ts +9 -8
- package/cjs/legend/discrete/type.js.map +1 -1
- package/cjs/poptip/poptip.d.ts +1 -0
- package/cjs/poptip/poptip.js +40 -31
- package/cjs/poptip/poptip.js.map +1 -1
- package/cjs/poptip/register.d.ts +2 -1
- package/cjs/poptip/register.js +8 -4
- package/cjs/poptip/register.js.map +1 -1
- package/cjs/poptip/theme.d.ts +1 -0
- package/cjs/poptip/theme.js +24 -18
- package/cjs/poptip/theme.js.map +1 -1
- package/cjs/poptip/type.d.ts +4 -2
- package/cjs/poptip/type.js.map +1 -1
- package/dist/index.js +148 -73
- package/dist/index.min.js +1 -1
- package/es/axis/base.js +29 -20
- package/es/axis/base.js.map +1 -1
- package/es/axis/overlap/auto-limit.js +1 -1
- package/es/axis/overlap/auto-limit.js.map +1 -1
- package/es/axis/type.d.ts +3 -3
- package/es/axis/type.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/legend/discrete/discrete.d.ts +1 -0
- package/es/legend/discrete/discrete.js +18 -7
- package/es/legend/discrete/discrete.js.map +1 -1
- package/es/legend/discrete/type.d.ts +9 -8
- package/es/legend/discrete/type.js.map +1 -1
- package/es/poptip/poptip.d.ts +1 -0
- package/es/poptip/poptip.js +38 -31
- package/es/poptip/poptip.js.map +1 -1
- package/es/poptip/register.d.ts +2 -1
- package/es/poptip/register.js +7 -3
- package/es/poptip/register.js.map +1 -1
- package/es/poptip/theme.d.ts +1 -0
- package/es/poptip/theme.js +24 -18
- package/es/poptip/theme.js.map +1 -1
- package/es/poptip/type.d.ts +4 -2
- package/es/poptip/type.js.map +1 -1
- package/package.json +4 -4
package/es/poptip/theme.js
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { merge } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_THEME = {
|
|
4
|
+
visible: !0,
|
|
5
|
+
position: "auto",
|
|
6
|
+
titleStyle: {
|
|
7
|
+
fontSize: 16,
|
|
8
|
+
fill: "#08979c"
|
|
9
|
+
},
|
|
10
|
+
contentStyle: {
|
|
11
|
+
fontSize: 12,
|
|
12
|
+
fill: "green"
|
|
13
|
+
},
|
|
14
|
+
panel: {
|
|
3
15
|
visible: !0,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fontSize: 12,
|
|
11
|
-
fill: "green"
|
|
12
|
-
},
|
|
13
|
-
panel: {
|
|
14
|
-
visible: !0,
|
|
15
|
-
fill: "#e6fffb",
|
|
16
|
-
stroke: "#87e8de",
|
|
17
|
-
lineWidth: 1,
|
|
18
|
-
cornerRadius: 4
|
|
19
|
-
}
|
|
16
|
+
fill: "#e6fffb",
|
|
17
|
+
size: 12,
|
|
18
|
+
space: 0,
|
|
19
|
+
stroke: "#87e8de",
|
|
20
|
+
lineWidth: 1,
|
|
21
|
+
cornerRadius: 4
|
|
20
22
|
}
|
|
21
23
|
};
|
|
24
|
+
|
|
25
|
+
export const theme = {
|
|
26
|
+
poptip: merge({}, DEFAULT_THEME)
|
|
27
|
+
};
|
|
22
28
|
//# sourceMappingURL=theme.js.map
|
package/es/poptip/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["poptip/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["poptip/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGzC,MAAM,CAAC,MAAM,aAAa,GAAqB;IAC7C,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,SAAS;KAChB;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;KACd;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QAEb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAiC;IACjD,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,CAAC;CACjC,CAAC","file":"theme.js","sourcesContent":["import { merge } from '@visactor/vutils';\nimport type { PopTipAttributes } from './type';\n\nexport const DEFAULT_THEME: PopTipAttributes = {\n visible: true,\n position: 'auto',\n titleStyle: {\n fontSize: 16,\n fill: '#08979c'\n },\n contentStyle: {\n fontSize: 12,\n fill: 'green'\n },\n panel: {\n visible: true,\n\n fill: '#e6fffb',\n size: 12,\n space: 0,\n stroke: '#87e8de',\n lineWidth: 1,\n cornerRadius: 4\n }\n};\n\nexport const theme: { poptip: PopTipAttributes } = {\n poptip: merge({}, DEFAULT_THEME)\n};\n"]}
|
package/es/poptip/type.d.ts
CHANGED
|
@@ -7,14 +7,16 @@ type StateStyle = {
|
|
|
7
7
|
panel?: State<Partial<IRectGraphicAttribute>>;
|
|
8
8
|
};
|
|
9
9
|
export type PopTipAttributes = {
|
|
10
|
-
position?: 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
|
|
10
|
+
position?: 'auto' | 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
|
|
11
11
|
title?: string | string[] | number | number[];
|
|
12
12
|
titleStyle?: Partial<ITextGraphicAttribute>;
|
|
13
13
|
content?: string | string[] | number | number[];
|
|
14
14
|
contentStyle?: Partial<ITextGraphicAttribute>;
|
|
15
15
|
space?: number;
|
|
16
16
|
padding?: Padding;
|
|
17
|
-
panel?: BackgroundAttributes & ISymbolGraphicAttribute
|
|
17
|
+
panel?: BackgroundAttributes & ISymbolGraphicAttribute & {
|
|
18
|
+
space?: number;
|
|
19
|
+
};
|
|
18
20
|
minWidth?: number;
|
|
19
21
|
maxWidth?: number;
|
|
20
22
|
visible?: boolean;
|
package/es/poptip/type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["poptip/type.ts"],"names":[],"mappings":"","file":"type.js","sourcesContent":["import type {\n IGraphic,\n IGroupGraphicAttribute,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n ITextGraphicAttribute\n} from '@visactor/vrender';\nimport type { Padding, State } from '../core/type';\nimport type { BackgroundAttributes } from '../interface';\n\ntype StateStyle = {\n /**\n * title 文本的状态配置\n */\n title?: State<Partial<ITextGraphicAttribute>>;\n /**\n * content 文本的状态配置\n */\n content?: State<Partial<ITextGraphicAttribute>>;\n /**\n * panel 背景的状态配置ß\n */\n panel?: State<Partial<IRectGraphicAttribute>>;\n};\n\nexport type PopTipAttributes = {\n /** 位置,参考arco design */\n position?: 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';\n /**\n * 标题内容,如果需要进行换行,则使用数组形式,如 ['abc', '123']\n */\n title?: string | string[] | number | number[];\n /** 标题样式 */\n titleStyle?: Partial<ITextGraphicAttribute>;\n /**\n * 内容文本,如果需要进行换行,则使用数组形式,如 ['abc', '123']\n */\n content?: string | string[] | number | number[];\n /** 内容文本样式 */\n contentStyle?: Partial<ITextGraphicAttribute>;\n /**\n * 标题与内容的间距\n */\n space?: number;\n /**\n * 内部边距\n */\n padding?: Padding;\n /**\n * 标签的背景面板配置, TODO: 支持symbol形状\n */\n panel?: BackgroundAttributes & ISymbolGraphicAttribute;\n\n /**\n * 最小宽度,像素值\n * @default 30\n */\n minWidth?: number;\n /**\n * 最大宽度,像素值。当文字超过最大宽度时,会自动省略。\n */\n maxWidth?: number;\n\n visible?: boolean;\n visibleFunc?: (graphic: IGraphic) => boolean;\n state?: StateStyle;\n dx?: number;\n dy?: number;\n} & Omit<IGroupGraphicAttribute, 'background'>;\n\nexport type PoptipShapeAttributes = {\n /**\n * 是否展示 shape\n */\n visible: boolean;\n} & Partial<ISymbolGraphicAttribute>;\n"]}
|
|
1
|
+
{"version":3,"sources":["poptip/type.ts"],"names":[],"mappings":"","file":"type.js","sourcesContent":["import type {\n IGraphic,\n IGroupGraphicAttribute,\n IRectGraphicAttribute,\n ISymbolGraphicAttribute,\n ITextGraphicAttribute\n} from '@visactor/vrender';\nimport type { Padding, State } from '../core/type';\nimport type { BackgroundAttributes } from '../interface';\n\ntype StateStyle = {\n /**\n * title 文本的状态配置\n */\n title?: State<Partial<ITextGraphicAttribute>>;\n /**\n * content 文本的状态配置\n */\n content?: State<Partial<ITextGraphicAttribute>>;\n /**\n * panel 背景的状态配置ß\n */\n panel?: State<Partial<IRectGraphicAttribute>>;\n};\n\nexport type PopTipAttributes = {\n /** 位置,参考arco design */\n position?: 'auto' | 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';\n /**\n * 标题内容,如果需要进行换行,则使用数组形式,如 ['abc', '123']\n */\n title?: string | string[] | number | number[];\n /** 标题样式 */\n titleStyle?: Partial<ITextGraphicAttribute>;\n /**\n * 内容文本,如果需要进行换行,则使用数组形式,如 ['abc', '123']\n */\n content?: string | string[] | number | number[];\n /** 内容文本样式 */\n contentStyle?: Partial<ITextGraphicAttribute>;\n /**\n * 标题与内容的间距\n */\n space?: number;\n /**\n * 内部边距\n */\n padding?: Padding;\n /**\n * 标签的背景面板配置, TODO: 支持symbol形状\n */\n panel?: BackgroundAttributes & ISymbolGraphicAttribute & { space?: number };\n\n /**\n * 最小宽度,像素值\n * @default 30\n */\n minWidth?: number;\n /**\n * 最大宽度,像素值。当文字超过最大宽度时,会自动省略。\n */\n maxWidth?: number;\n\n visible?: boolean;\n visibleFunc?: (graphic: IGraphic) => boolean;\n state?: StateStyle;\n dx?: number;\n dy?: number;\n} & Omit<IGroupGraphicAttribute, 'background'>;\n\nexport type PoptipShapeAttributes = {\n /**\n * 是否展示 shape\n */\n visible: boolean;\n} & Partial<ISymbolGraphicAttribute>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-components",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3-alpha.1",
|
|
4
4
|
"description": "components library for dp visualization",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@visactor/vrender": "0.13.
|
|
15
|
+
"@visactor/vrender": "0.13.3-alpha.1",
|
|
16
16
|
"@visactor/vutils": "~0.13.0",
|
|
17
17
|
"@visactor/vscale": "~0.13.0",
|
|
18
18
|
"inversify": "6.0.1"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"vite": "3.2.6",
|
|
30
30
|
"typescript": "4.9.5",
|
|
31
31
|
"@internal/ts-config": "0.0.1",
|
|
32
|
-
"@internal/
|
|
33
|
-
"@internal/
|
|
32
|
+
"@internal/bundler": "0.0.1",
|
|
33
|
+
"@internal/eslint-config": "0.0.1"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"VisActor",
|