@vyr/echarts 0.0.13 → 0.0.15
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/package.json +1 -21
- package/build/actor/EchartActor.d.ts +0 -70
- package/build/actor/EchartActor.js +0 -146
- package/build/actor/EchartActor.js.map +0 -1
- package/build/actor/index.d.ts +0 -1
- package/build/actor/index.js +0 -2
- package/build/actor/index.js.map +0 -1
- package/build/descriptor/BarServiceEchartDescriptor.d.ts +0 -13
- package/build/descriptor/BarServiceEchartDescriptor.js +0 -23
- package/build/descriptor/BarServiceEchartDescriptor.js.map +0 -1
- package/build/descriptor/EchartDescriptor.d.ts +0 -60
- package/build/descriptor/EchartDescriptor.js +0 -56
- package/build/descriptor/EchartDescriptor.js.map +0 -1
- package/build/descriptor/LineServiceEchartDescriptor.d.ts +0 -15
- package/build/descriptor/LineServiceEchartDescriptor.js +0 -20
- package/build/descriptor/LineServiceEchartDescriptor.js.map +0 -1
- package/build/descriptor/PieServiceEchartDescriptor.d.ts +0 -25
- package/build/descriptor/PieServiceEchartDescriptor.js +0 -31
- package/build/descriptor/PieServiceEchartDescriptor.js.map +0 -1
- package/build/descriptor/ServiceEchartDescriptor.d.ts +0 -16
- package/build/descriptor/ServiceEchartDescriptor.js +0 -23
- package/build/descriptor/ServiceEchartDescriptor.js.map +0 -1
- package/build/descriptor/index.d.ts +0 -5
- package/build/descriptor/index.js +0 -6
- package/build/descriptor/index.js.map +0 -1
- package/build/index.d.ts +0 -4
- package/build/index.js +0 -5
- package/build/index.js.map +0 -1
- package/build/interpreter/BarServiceEchartInterpreter.d.ts +0 -62
- package/build/interpreter/BarServiceEchartInterpreter.js +0 -28
- package/build/interpreter/BarServiceEchartInterpreter.js.map +0 -1
- package/build/interpreter/EchartInterpreter.d.ts +0 -12
- package/build/interpreter/EchartInterpreter.js +0 -34
- package/build/interpreter/EchartInterpreter.js.map +0 -1
- package/build/interpreter/LineServiceEchartInterpreter.d.ts +0 -59
- package/build/interpreter/LineServiceEchartInterpreter.js +0 -25
- package/build/interpreter/LineServiceEchartInterpreter.js.map +0 -1
- package/build/interpreter/PieServiceEchartInterpreter.d.ts +0 -66
- package/build/interpreter/PieServiceEchartInterpreter.js +0 -32
- package/build/interpreter/PieServiceEchartInterpreter.js.map +0 -1
- package/build/interpreter/ServiceEchartInterpreter.d.ts +0 -39
- package/build/interpreter/ServiceEchartInterpreter.js +0 -79
- package/build/interpreter/ServiceEchartInterpreter.js.map +0 -1
- package/build/interpreter/index.d.ts +0 -5
- package/build/interpreter/index.js +0 -6
- package/build/interpreter/index.js.map +0 -1
- package/build/locale/Language.d.ts +0 -3
- package/build/locale/Language.js +0 -6
- package/build/locale/Language.js.map +0 -1
- package/build/locale/LanguageProvider.d.ts +0 -5
- package/build/locale/LanguageProvider.js +0 -6
- package/build/locale/LanguageProvider.js.map +0 -1
- package/build/locale/index.d.ts +0 -2
- package/build/locale/index.js +0 -3
- package/build/locale/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vyr/echarts",
|
|
3
|
-
"version": "0.0.13",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"author": "",
|
|
7
|
-
"sideEffects": true,
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"echarts": "^5.5.0"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"src/",
|
|
14
|
-
"build/",
|
|
15
|
-
"package.json"
|
|
16
|
-
],
|
|
17
|
-
"vyr": {
|
|
18
|
-
"type": "universal",
|
|
19
|
-
"order": 10
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
{"name":"@vyr/echarts","version":"0.0.15","description":"","main":"./src/index.ts","author":"","sideEffects":true,"license":"MIT","dependencies":{"echarts":"^5.5.0"},"files":["package.json","src/"],"vyr":{"type":"universal","order":10}}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as echarts from 'echarts';
|
|
2
|
-
import { HTMLActor } from "@vyr/engine";
|
|
3
|
-
import { EchartDescriptor } from "../descriptor";
|
|
4
|
-
interface EchartServiceOption {
|
|
5
|
-
[k: string]: any;
|
|
6
|
-
}
|
|
7
|
-
interface AxisOption {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare class EchartActor extends HTMLActor {
|
|
11
|
-
private _wrapper;
|
|
12
|
-
readonly DOM: HTMLElement;
|
|
13
|
-
readonly instance: echarts.ECharts;
|
|
14
|
-
options: {
|
|
15
|
-
[k: string]: any;
|
|
16
|
-
};
|
|
17
|
-
constructor(uuid: string);
|
|
18
|
-
protected createWrapper(): HTMLDivElement;
|
|
19
|
-
getWrapper(): HTMLElement;
|
|
20
|
-
add(): void;
|
|
21
|
-
remove(): void;
|
|
22
|
-
getXAxis(descriptor: EchartDescriptor): AxisOption;
|
|
23
|
-
getYAxis(descriptor: EchartDescriptor): AxisOption;
|
|
24
|
-
getGrid(descriptor: EchartDescriptor): {
|
|
25
|
-
right: string;
|
|
26
|
-
bottom: string;
|
|
27
|
-
left: string;
|
|
28
|
-
top: string;
|
|
29
|
-
width: string;
|
|
30
|
-
height: string;
|
|
31
|
-
show: boolean;
|
|
32
|
-
};
|
|
33
|
-
getLegend(descriptor: EchartDescriptor): {
|
|
34
|
-
show: boolean;
|
|
35
|
-
type: string | undefined;
|
|
36
|
-
left: string;
|
|
37
|
-
top: string;
|
|
38
|
-
textStyle: {
|
|
39
|
-
color: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
getTooltip(descriptor: EchartDescriptor): {
|
|
43
|
-
show: boolean;
|
|
44
|
-
trigger: string;
|
|
45
|
-
};
|
|
46
|
-
getDataZoom(descriptor: EchartDescriptor): ({
|
|
47
|
-
show: boolean;
|
|
48
|
-
type: string;
|
|
49
|
-
startValue: number;
|
|
50
|
-
endValue: number;
|
|
51
|
-
yAxisIndex: number[];
|
|
52
|
-
filterMode: string;
|
|
53
|
-
zoomOnMouseWheel?: undefined;
|
|
54
|
-
moveOnMouseMove?: undefined;
|
|
55
|
-
moveOnMouseWheel?: undefined;
|
|
56
|
-
} | {
|
|
57
|
-
type: string;
|
|
58
|
-
yAxisIndex: number[];
|
|
59
|
-
zoomOnMouseWheel: boolean;
|
|
60
|
-
moveOnMouseMove: boolean;
|
|
61
|
-
moveOnMouseWheel: boolean;
|
|
62
|
-
show?: undefined;
|
|
63
|
-
startValue?: undefined;
|
|
64
|
-
endValue?: undefined;
|
|
65
|
-
filterMode?: undefined;
|
|
66
|
-
})[];
|
|
67
|
-
setOptions(descriptor: EchartDescriptor): void;
|
|
68
|
-
update(descriptor: EchartDescriptor): void;
|
|
69
|
-
}
|
|
70
|
-
export { EchartServiceOption, EchartActor, };
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import * as echarts from 'echarts';
|
|
2
|
-
import { DatasetDescriptor, HTMLActor } from "@vyr/engine";
|
|
3
|
-
class EchartActor extends HTMLActor {
|
|
4
|
-
_wrapper = null;
|
|
5
|
-
DOM;
|
|
6
|
-
instance;
|
|
7
|
-
options = {};
|
|
8
|
-
constructor(uuid) {
|
|
9
|
-
super(uuid);
|
|
10
|
-
this.DOM = this.createDOM();
|
|
11
|
-
const wrapper = this.getWrapper();
|
|
12
|
-
wrapper.appendChild(this.DOM);
|
|
13
|
-
this.instance = echarts.init(this.DOM);
|
|
14
|
-
}
|
|
15
|
-
createWrapper() {
|
|
16
|
-
const wrapper = document.createElement('div');
|
|
17
|
-
wrapper.setAttribute('class', HTMLActor.className);
|
|
18
|
-
wrapper.setAttribute(HTMLActor.uuidKey, this.uuid);
|
|
19
|
-
return wrapper;
|
|
20
|
-
}
|
|
21
|
-
getWrapper() {
|
|
22
|
-
if (this._wrapper === null) {
|
|
23
|
-
this._wrapper = this.createWrapper();
|
|
24
|
-
}
|
|
25
|
-
return this._wrapper;
|
|
26
|
-
}
|
|
27
|
-
add() { }
|
|
28
|
-
remove() { }
|
|
29
|
-
getXAxis(descriptor) {
|
|
30
|
-
const xAxis = {
|
|
31
|
-
show: descriptor.xAxisShow,
|
|
32
|
-
axisLine: descriptor.xAxisLine,
|
|
33
|
-
axisTick: descriptor.xAxisTick,
|
|
34
|
-
axisLabel: descriptor.xAxisLabel,
|
|
35
|
-
splitLine: descriptor.xAxisSplitLine,
|
|
36
|
-
};
|
|
37
|
-
if (descriptor.xAxisType)
|
|
38
|
-
xAxis.type = descriptor.xAxisType;
|
|
39
|
-
return xAxis;
|
|
40
|
-
}
|
|
41
|
-
getYAxis(descriptor) {
|
|
42
|
-
const yAxis = {
|
|
43
|
-
show: descriptor.yAxisShow,
|
|
44
|
-
axisLine: descriptor.yAxisLine,
|
|
45
|
-
axisTick: descriptor.yAxisTick,
|
|
46
|
-
axisLabel: descriptor.yAxisLabel,
|
|
47
|
-
splitLine: descriptor.yAxisSplitLine,
|
|
48
|
-
};
|
|
49
|
-
if (descriptor.yAxisType)
|
|
50
|
-
yAxis.type = descriptor.yAxisType;
|
|
51
|
-
return yAxis;
|
|
52
|
-
}
|
|
53
|
-
getGrid(descriptor) {
|
|
54
|
-
const grid = {
|
|
55
|
-
show: descriptor.gridShow,
|
|
56
|
-
...descriptor.gridRect,
|
|
57
|
-
};
|
|
58
|
-
return grid;
|
|
59
|
-
}
|
|
60
|
-
getLegend(descriptor) {
|
|
61
|
-
const legend = {
|
|
62
|
-
show: descriptor.legendShow,
|
|
63
|
-
type: descriptor.legendType || undefined,
|
|
64
|
-
left: descriptor.legendRect.left,
|
|
65
|
-
top: descriptor.legendRect.top,
|
|
66
|
-
textStyle: {
|
|
67
|
-
color: descriptor.legendTextStyle.color,
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
return legend;
|
|
71
|
-
}
|
|
72
|
-
getTooltip(descriptor) {
|
|
73
|
-
const tooltip = {
|
|
74
|
-
show: descriptor.tooltipShow,
|
|
75
|
-
trigger: descriptor.tooltipTrigger,
|
|
76
|
-
};
|
|
77
|
-
return tooltip;
|
|
78
|
-
}
|
|
79
|
-
getDataZoom(descriptor) {
|
|
80
|
-
const dataZoom = [
|
|
81
|
-
{
|
|
82
|
-
// 设置滚动条的隐藏或显示
|
|
83
|
-
show: false,
|
|
84
|
-
// 设置类型
|
|
85
|
-
type: "slider",
|
|
86
|
-
// 数据窗口范围的起始数值
|
|
87
|
-
startValue: 0,
|
|
88
|
-
// 数据窗口范围的结束数值(一页显示多少条数据)
|
|
89
|
-
endValue: descriptor.scroll.end - 1,
|
|
90
|
-
// 控制哪个轴,如果是number表示控制一个轴,
|
|
91
|
-
// 如果是Array表示控制多个轴。此处控制第二根轴
|
|
92
|
-
yAxisIndex: [0, 1],
|
|
93
|
-
// empty:当前数据窗口外的数据,被设置为空。
|
|
94
|
-
// 即不会影响其他轴的数据范围
|
|
95
|
-
filterMode: "empty",
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
// 没有下面这块的话,只能拖动滚动条,
|
|
99
|
-
// 鼠标滚轮在区域内不能控制外部滚动条
|
|
100
|
-
type: "inside",
|
|
101
|
-
// 控制哪个轴,如果是number表示控制一个轴,
|
|
102
|
-
// 如果是Array表示控制多个轴。此处控制第二根轴
|
|
103
|
-
yAxisIndex: [0, 1],
|
|
104
|
-
// 滚轮是否触发缩放
|
|
105
|
-
zoomOnMouseWheel: false,
|
|
106
|
-
// 鼠标移动能否触发平移
|
|
107
|
-
moveOnMouseMove: true,
|
|
108
|
-
// 鼠标滚轮能否触发平移
|
|
109
|
-
moveOnMouseWheel: true,
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
return dataZoom;
|
|
113
|
-
}
|
|
114
|
-
setOptions(descriptor) {
|
|
115
|
-
const dimensions = [descriptor.xAxisModelValue];
|
|
116
|
-
const children = [];
|
|
117
|
-
const graphics = HTMLActor.getGraphics(this);
|
|
118
|
-
for (const serie of descriptor.children) {
|
|
119
|
-
dimensions.push(serie.modelValue);
|
|
120
|
-
const interpreter = graphics.getInterpreter(serie);
|
|
121
|
-
children.push(interpreter.getService(serie));
|
|
122
|
-
}
|
|
123
|
-
const xAxis = this.getXAxis(descriptor);
|
|
124
|
-
const yAxis = this.getYAxis(descriptor);
|
|
125
|
-
const grid = this.getGrid(descriptor);
|
|
126
|
-
const legend = this.getLegend(descriptor);
|
|
127
|
-
const tooltip = this.getTooltip(descriptor);
|
|
128
|
-
const dataZoom = descriptor.scroll.end <= 0 ? undefined : this.getDataZoom(descriptor);
|
|
129
|
-
const dataset = { dimensions, source: DatasetDescriptor.getCollection(descriptor.dataset) };
|
|
130
|
-
this.options = { xAxis, yAxis, grid, legend, tooltip, dataset, dataZoom, series: children };
|
|
131
|
-
}
|
|
132
|
-
update(descriptor) {
|
|
133
|
-
const wrapper = this.getWrapper();
|
|
134
|
-
this.setHTMLStyle(wrapper, this.getWrapperStyle(descriptor));
|
|
135
|
-
this.setHTMLInteraction(wrapper, descriptor);
|
|
136
|
-
this.setHTMLStyle(this.DOM, this.getLayoutStyle(descriptor));
|
|
137
|
-
this.setStyleClass(this.DOM, this.getStyleClass(descriptor));
|
|
138
|
-
this.setOptions(descriptor);
|
|
139
|
-
this.instance.clear();
|
|
140
|
-
this.instance.setOption(this.options);
|
|
141
|
-
const rect = wrapper.getBoundingClientRect();
|
|
142
|
-
this.instance.resize({ width: rect.width, height: rect.height, });
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
export { EchartActor, };
|
|
146
|
-
//# sourceMappingURL=EchartActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EchartActor.js","sourceRoot":"","sources":["../../src/actor/EchartActor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAW3D,MAAM,WAAY,SAAQ,SAAS;IACvB,QAAQ,GAAuB,IAAI,CAAA;IAClC,GAAG,CAAa;IAChB,QAAQ,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,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;IACrE,CAAC;CACJ;AAED,OAAO,EAEH,WAAW,GACd,CAAA"}
|
package/build/actor/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EchartActor';
|
package/build/actor/index.js
DELETED
package/build/actor/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actor/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DeserializationObject } from '@vyr/engine';
|
|
2
|
-
import { EchartItemStyle, ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
3
|
-
declare class BarServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
4
|
-
static type: string;
|
|
5
|
-
barWidth: string;
|
|
6
|
-
barMaxWidth: string;
|
|
7
|
-
labelShow: boolean;
|
|
8
|
-
labelColor: string;
|
|
9
|
-
labelPosition: string;
|
|
10
|
-
itemStyle: EchartItemStyle;
|
|
11
|
-
constructor(descriptor?: Partial<DeserializationObject<BarServiceEchartDescriptor>>);
|
|
12
|
-
}
|
|
13
|
-
export { BarServiceEchartDescriptor };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
2
|
-
class BarServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
3
|
-
static type = 'BarServiceEchart';
|
|
4
|
-
barWidth;
|
|
5
|
-
barMaxWidth;
|
|
6
|
-
labelShow;
|
|
7
|
-
labelColor;
|
|
8
|
-
labelPosition;
|
|
9
|
-
itemStyle;
|
|
10
|
-
constructor(descriptor = {}) {
|
|
11
|
-
super(descriptor);
|
|
12
|
-
this.echart = descriptor.echart ?? 'bar';
|
|
13
|
-
this.barWidth = descriptor.barWidth ?? '';
|
|
14
|
-
this.barMaxWidth = descriptor.barMaxWidth ?? '';
|
|
15
|
-
this.labelShow = descriptor.labelShow ?? false;
|
|
16
|
-
this.labelColor = descriptor.labelColor ?? '';
|
|
17
|
-
this.labelPosition = descriptor.labelPosition ?? 'inside';
|
|
18
|
-
this.itemStyle = descriptor.itemStyle ? ServiceEchartDescriptor.deepClone(descriptor.itemStyle) : ServiceEchartDescriptor.getDefaultItemStyle();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
ServiceEchartDescriptor.register(BarServiceEchartDescriptor);
|
|
22
|
-
export { BarServiceEchartDescriptor };
|
|
23
|
-
//# sourceMappingURL=BarServiceEchartDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarServiceEchartDescriptor.js","sourceRoot":"","sources":["../../src/descriptor/BarServiceEchartDescriptor.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEpF,MAAM,0BAA2B,SAAQ,uBAAuB;IAC5D,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAEhC,QAAQ,CAAQ;IAChB,WAAW,CAAQ;IACnB,SAAS,CAAS;IAClB,UAAU,CAAQ;IAClB,aAAa,CAAQ;IAErB,SAAS,CAAiB;IAE1B,YAAY,aAAyE,EAAE;QACnF,KAAK,CAAC,UAAU,CAAC,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,KAAK,CAAA;QACxC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAA;QACzC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,IAAI,EAAE,CAAA;QAC/C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,KAAK,CAAA;QAC9C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,EAAE,CAAA;QAC7C,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,IAAI,QAAQ,CAAA;QAEzD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,mBAAmB,EAAE,CAAA;IACnJ,CAAC;;AAEL,uBAAuB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAE5D,OAAO,EACH,0BAA0B,EAC7B,CAAA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { DeserializationObject, HTMLDescriptor } from '@vyr/engine';
|
|
2
|
-
import { ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
3
|
-
interface EchartRect {
|
|
4
|
-
left: string;
|
|
5
|
-
top: string;
|
|
6
|
-
width: string;
|
|
7
|
-
height: string;
|
|
8
|
-
}
|
|
9
|
-
interface EchartGridRect extends EchartRect {
|
|
10
|
-
right: string;
|
|
11
|
-
bottom: string;
|
|
12
|
-
}
|
|
13
|
-
interface EchartAxisLine {
|
|
14
|
-
show: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface EchartAxisTick {
|
|
17
|
-
show: boolean;
|
|
18
|
-
}
|
|
19
|
-
interface EchartAxisLabel {
|
|
20
|
-
show: boolean;
|
|
21
|
-
color: string;
|
|
22
|
-
fontSize: number;
|
|
23
|
-
}
|
|
24
|
-
interface EchartSplitLine {
|
|
25
|
-
show: boolean;
|
|
26
|
-
}
|
|
27
|
-
interface EchartTextStyle {
|
|
28
|
-
color: string;
|
|
29
|
-
}
|
|
30
|
-
interface EchartScroll {
|
|
31
|
-
end: number;
|
|
32
|
-
}
|
|
33
|
-
declare class EchartDescriptor extends HTMLDescriptor {
|
|
34
|
-
static type: string;
|
|
35
|
-
children: ServiceEchartDescriptor[];
|
|
36
|
-
xAxisShow: boolean;
|
|
37
|
-
xAxisType: string;
|
|
38
|
-
xAxisModelValue: string;
|
|
39
|
-
xAxisLine: EchartAxisLine;
|
|
40
|
-
xAxisTick: EchartAxisTick;
|
|
41
|
-
xAxisLabel: EchartAxisLabel;
|
|
42
|
-
xAxisSplitLine: EchartSplitLine;
|
|
43
|
-
yAxisShow: boolean;
|
|
44
|
-
yAxisType: string;
|
|
45
|
-
yAxisLine: EchartAxisLine;
|
|
46
|
-
yAxisTick: EchartAxisTick;
|
|
47
|
-
yAxisLabel: EchartAxisLabel;
|
|
48
|
-
yAxisSplitLine: EchartSplitLine;
|
|
49
|
-
gridShow: boolean;
|
|
50
|
-
gridRect: EchartGridRect;
|
|
51
|
-
legendType: string;
|
|
52
|
-
legendShow: boolean;
|
|
53
|
-
legendRect: EchartRect;
|
|
54
|
-
legendTextStyle: EchartTextStyle;
|
|
55
|
-
tooltipShow: boolean;
|
|
56
|
-
tooltipTrigger: string;
|
|
57
|
-
scroll: EchartScroll;
|
|
58
|
-
constructor(descriptor?: Partial<DeserializationObject<EchartDescriptor>>);
|
|
59
|
-
}
|
|
60
|
-
export { EchartDescriptor };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { HTMLDescriptor } from '@vyr/engine';
|
|
2
|
-
class EchartDescriptor extends HTMLDescriptor {
|
|
3
|
-
static type = 'Echart';
|
|
4
|
-
xAxisShow;
|
|
5
|
-
xAxisType;
|
|
6
|
-
xAxisModelValue;
|
|
7
|
-
xAxisLine;
|
|
8
|
-
xAxisTick;
|
|
9
|
-
xAxisLabel;
|
|
10
|
-
xAxisSplitLine;
|
|
11
|
-
yAxisShow;
|
|
12
|
-
yAxisType;
|
|
13
|
-
yAxisLine;
|
|
14
|
-
yAxisTick;
|
|
15
|
-
yAxisLabel;
|
|
16
|
-
yAxisSplitLine;
|
|
17
|
-
gridShow;
|
|
18
|
-
gridRect;
|
|
19
|
-
legendType;
|
|
20
|
-
legendShow;
|
|
21
|
-
legendRect;
|
|
22
|
-
legendTextStyle;
|
|
23
|
-
tooltipShow;
|
|
24
|
-
tooltipTrigger;
|
|
25
|
-
scroll;
|
|
26
|
-
constructor(descriptor = {}) {
|
|
27
|
-
super(descriptor);
|
|
28
|
-
this.width = descriptor.width ?? 400;
|
|
29
|
-
this.height = descriptor.height ?? 400;
|
|
30
|
-
this.xAxisShow = descriptor.xAxisShow ?? true;
|
|
31
|
-
this.xAxisType = descriptor.xAxisType ?? 'category';
|
|
32
|
-
this.xAxisModelValue = descriptor.xAxisModelValue ?? '';
|
|
33
|
-
this.xAxisLine = descriptor.xAxisLine ? HTMLDescriptor.deepClone(descriptor.xAxisLine) : { show: true };
|
|
34
|
-
this.xAxisTick = descriptor.xAxisTick ? HTMLDescriptor.deepClone(descriptor.xAxisTick) : { show: true };
|
|
35
|
-
this.xAxisLabel = descriptor.xAxisLabel ? HTMLDescriptor.deepClone(descriptor.xAxisLabel) : { show: true, color: '', fontSize: 12 };
|
|
36
|
-
this.xAxisSplitLine = descriptor.xAxisSplitLine ? HTMLDescriptor.deepClone(descriptor.xAxisSplitLine) : { show: false };
|
|
37
|
-
this.yAxisType = descriptor.yAxisType ?? '';
|
|
38
|
-
this.yAxisShow = descriptor.yAxisShow ?? true;
|
|
39
|
-
this.yAxisLine = descriptor.yAxisLine ? HTMLDescriptor.deepClone(descriptor.yAxisLine) : { show: true };
|
|
40
|
-
this.yAxisTick = descriptor.yAxisTick ? HTMLDescriptor.deepClone(descriptor.yAxisTick) : { show: true, };
|
|
41
|
-
this.yAxisLabel = descriptor.yAxisLabel ? HTMLDescriptor.deepClone(descriptor.yAxisLabel) : { show: true, color: '', fontSize: 12 };
|
|
42
|
-
this.yAxisSplitLine = descriptor.yAxisSplitLine ? HTMLDescriptor.deepClone(descriptor.yAxisSplitLine) : { show: false };
|
|
43
|
-
this.gridShow = descriptor.gridShow ?? false;
|
|
44
|
-
this.gridRect = descriptor.gridRect ? HTMLDescriptor.deepClone(descriptor.gridRect) : { top: '60', left: '10%', right: '10%', bottom: '60', width: 'auto', height: 'auto', };
|
|
45
|
-
this.legendType = descriptor.legendType ?? 'plain';
|
|
46
|
-
this.legendShow = descriptor.legendShow ?? true;
|
|
47
|
-
this.legendRect = descriptor.legendRect ? HTMLDescriptor.deepClone(descriptor.legendRect) : { top: 'top', left: 'center', width: '', height: '', };
|
|
48
|
-
this.legendTextStyle = descriptor.legendTextStyle ? HTMLDescriptor.deepClone(descriptor.legendTextStyle) : { color: '#333' };
|
|
49
|
-
this.tooltipShow = descriptor.tooltipShow ?? true;
|
|
50
|
-
this.tooltipTrigger = descriptor.tooltipTrigger ?? 'item';
|
|
51
|
-
this.scroll = descriptor.scroll ? HTMLDescriptor.deepClone(descriptor.scroll) : { end: -1 };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
HTMLDescriptor.register(EchartDescriptor);
|
|
55
|
-
export { EchartDescriptor };
|
|
56
|
-
//# sourceMappingURL=EchartDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EchartDescriptor.js","sourceRoot":"","sources":["../../src/descriptor/EchartDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAE,MAAM,aAAa,CAAA;AAmCnE,MAAM,gBAAiB,SAAQ,cAAc;IACzC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAA;IAItB,SAAS,CAAS;IAClB,SAAS,CAAQ;IACjB,eAAe,CAAQ;IACvB,SAAS,CAAgB;IACzB,SAAS,CAAgB;IACzB,UAAU,CAAiB;IAC3B,cAAc,CAAiB;IAE/B,SAAS,CAAS;IAClB,SAAS,CAAQ;IACjB,SAAS,CAAgB;IACzB,SAAS,CAAgB;IACzB,UAAU,CAAiB;IAC3B,cAAc,CAAiB;IAE/B,QAAQ,CAAS;IACjB,QAAQ,CAAgB;IAExB,UAAU,CAAQ;IAClB,UAAU,CAAS;IACnB,UAAU,CAAY;IACtB,eAAe,CAAiB;IAEhC,WAAW,CAAS;IACpB,cAAc,CAAQ;IAEtB,MAAM,CAAc;IAEpB,YAAY,aAA+D,EAAE;QACz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AAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,CAAA;QAClJ,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;QAE5H,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,IAAI,IAAI,CAAA;QACjD,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,IAAI,MAAM,CAAA;QAEzD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAC/F,CAAC;;AAEL,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAA;AAEzC,OAAO,EACH,gBAAgB,EACnB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DeserializationObject, StyleColor } from '@vyr/engine';
|
|
2
|
-
import { ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
3
|
-
interface EchartLineStyle {
|
|
4
|
-
width: number;
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
declare class LineServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
8
|
-
static type: string;
|
|
9
|
-
smooth: boolean;
|
|
10
|
-
lineStyle: EchartLineStyle;
|
|
11
|
-
itemStyleColor: StyleColor;
|
|
12
|
-
areaStyleColor: StyleColor;
|
|
13
|
-
constructor(descriptor?: Partial<DeserializationObject<LineServiceEchartDescriptor>>);
|
|
14
|
-
}
|
|
15
|
-
export { LineServiceEchartDescriptor };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor } from '@vyr/engine';
|
|
2
|
-
import { ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
3
|
-
class LineServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
4
|
-
static type = 'LineServiceEchart';
|
|
5
|
-
smooth;
|
|
6
|
-
lineStyle;
|
|
7
|
-
itemStyleColor;
|
|
8
|
-
areaStyleColor;
|
|
9
|
-
constructor(descriptor = {}) {
|
|
10
|
-
super(descriptor);
|
|
11
|
-
this.echart = descriptor.echart ?? 'line';
|
|
12
|
-
this.smooth = descriptor.smooth ?? false;
|
|
13
|
-
this.lineStyle = descriptor.lineStyle ? ServiceEchartDescriptor.deepClone(descriptor.lineStyle) : { width: 0, type: 'solid', };
|
|
14
|
-
this.itemStyleColor = descriptor.itemStyleColor ? DefaultStyleColor.create(descriptor.itemStyleColor) : new DefaultStyleColor({ value: '#5470c6' });
|
|
15
|
-
this.areaStyleColor = descriptor.areaStyleColor ? DefaultStyleColor.create(descriptor.areaStyleColor) : new DefaultStyleColor({ value: '#849ae7' });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
ServiceEchartDescriptor.register(LineServiceEchartDescriptor);
|
|
19
|
-
export { LineServiceEchartDescriptor };
|
|
20
|
-
//# sourceMappingURL=LineServiceEchartDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineServiceEchartDescriptor.js","sourceRoot":"","sources":["../../src/descriptor/LineServiceEchartDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAqC,MAAM,aAAa,CAAA;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAOnE,MAAM,2BAA4B,SAAQ,uBAAuB;IAC7D,MAAM,CAAC,IAAI,GAAG,mBAAmB,CAAA;IAEjC,MAAM,CAAS;IACf,SAAS,CAAiB;IAC1B,cAAc,CAAY;IAC1B,cAAc,CAAY;IAE1B,YAAY,aAA0E,EAAE;QACpF,KAAK,CAAC,UAAU,CAAC,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,MAAM,CAAA;QACzC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,KAAK,CAAA;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,CAAA;QAC9H,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;QACnJ,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IACvJ,CAAC;;AAEL,uBAAuB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAE7D,OAAO,EACH,2BAA2B,EAC9B,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DeserializationObject } from '@vyr/engine';
|
|
2
|
-
import { EchartItemStyle, ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
3
|
-
interface EchartCenter {
|
|
4
|
-
x: string;
|
|
5
|
-
y: string;
|
|
6
|
-
}
|
|
7
|
-
interface EchartRadius {
|
|
8
|
-
x: string;
|
|
9
|
-
y: string;
|
|
10
|
-
}
|
|
11
|
-
declare class PieServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
12
|
-
static type: string;
|
|
13
|
-
roseType: string;
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
radius: EchartRadius;
|
|
17
|
-
center: EchartCenter;
|
|
18
|
-
padAngle: number;
|
|
19
|
-
labelShow: boolean;
|
|
20
|
-
labelColor: string;
|
|
21
|
-
labelPosition: string;
|
|
22
|
-
itemStyle: EchartItemStyle;
|
|
23
|
-
constructor(descriptor?: Partial<DeserializationObject<PieServiceEchartDescriptor>>);
|
|
24
|
-
}
|
|
25
|
-
export { PieServiceEchartDescriptor };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ServiceEchartDescriptor } from './ServiceEchartDescriptor';
|
|
2
|
-
class PieServiceEchartDescriptor extends ServiceEchartDescriptor {
|
|
3
|
-
static type = 'PieServiceEchart';
|
|
4
|
-
roseType;
|
|
5
|
-
width;
|
|
6
|
-
height;
|
|
7
|
-
radius;
|
|
8
|
-
center;
|
|
9
|
-
padAngle;
|
|
10
|
-
labelShow;
|
|
11
|
-
labelColor;
|
|
12
|
-
labelPosition;
|
|
13
|
-
itemStyle;
|
|
14
|
-
constructor(descriptor = {}) {
|
|
15
|
-
super(descriptor);
|
|
16
|
-
this.echart = descriptor.echart ?? 'pie';
|
|
17
|
-
this.roseType = descriptor.roseType ?? 'area';
|
|
18
|
-
this.width = descriptor.width ?? 'auto';
|
|
19
|
-
this.height = descriptor.height ?? 'auto';
|
|
20
|
-
this.radius = descriptor.radius ? ServiceEchartDescriptor.deepClone(descriptor.radius) : { x: '0', y: '75%' };
|
|
21
|
-
this.center = descriptor.center ? ServiceEchartDescriptor.deepClone(descriptor.center) : { x: '50%', y: '50%' };
|
|
22
|
-
this.padAngle = descriptor.padAngle ?? 4;
|
|
23
|
-
this.labelShow = descriptor.labelShow ?? false;
|
|
24
|
-
this.labelColor = descriptor.labelColor ?? '';
|
|
25
|
-
this.labelPosition = descriptor.labelPosition ?? 'outside';
|
|
26
|
-
this.itemStyle = descriptor.itemStyle ? ServiceEchartDescriptor.deepClone(descriptor.itemStyle) : ServiceEchartDescriptor.getDefaultItemStyle();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
ServiceEchartDescriptor.register(PieServiceEchartDescriptor);
|
|
30
|
-
export { PieServiceEchartDescriptor };
|
|
31
|
-
//# sourceMappingURL=PieServiceEchartDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PieServiceEchartDescriptor.js","sourceRoot":"","sources":["../../src/descriptor/PieServiceEchartDescriptor.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAYpF,MAAM,0BAA2B,SAAQ,uBAAuB;IAC5D,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAEhC,QAAQ,CAAQ;IAChB,KAAK,CAAQ;IACb,MAAM,CAAQ;IACd,MAAM,CAAc;IACpB,MAAM,CAAc;IACpB,QAAQ,CAAQ;IAChB,SAAS,CAAS;IAClB,UAAU,CAAQ;IAClB,aAAa,CAAQ;IACrB,SAAS,CAAiB;IAE1B,YAAY,aAAyE,EAAE;QACnF,KAAK,CAAC,UAAU,CAAC,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,KAAK,CAAA;QACxC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,MAAM,CAAA;QAC7C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,MAAM,CAAA;QACvC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,MAAM,CAAA;QACzC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAA;QAC7G,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAA;QAC/G,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,CAAC,CAAA;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,KAAK,CAAA;QAC9C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,EAAE,CAAA;QAC7C,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,IAAI,SAAS,CAAA;QAC1D,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,mBAAmB,EAAE,CAAA;IACnJ,CAAC;;AAEL,uBAAuB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAE5D,OAAO,EACH,0BAA0B,EAC7B,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, Descriptor, DeserializationObject, StyleColor } from '@vyr/engine';
|
|
2
|
-
interface EchartItemStyle {
|
|
3
|
-
color: StyleColor;
|
|
4
|
-
borderColor: DefaultStyleColor;
|
|
5
|
-
borderWidth: number;
|
|
6
|
-
borderType: string;
|
|
7
|
-
borderRadius: number;
|
|
8
|
-
}
|
|
9
|
-
declare class ServiceEchartDescriptor extends Descriptor {
|
|
10
|
-
static type: string;
|
|
11
|
-
static getDefaultItemStyle(): EchartItemStyle;
|
|
12
|
-
echart: string;
|
|
13
|
-
modelValue: string;
|
|
14
|
-
constructor(descriptor?: Partial<DeserializationObject<ServiceEchartDescriptor>>);
|
|
15
|
-
}
|
|
16
|
-
export { EchartItemStyle, ServiceEchartDescriptor };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, Descriptor } from '@vyr/engine';
|
|
2
|
-
class ServiceEchartDescriptor extends Descriptor {
|
|
3
|
-
static type = 'ServiceEchart';
|
|
4
|
-
static getDefaultItemStyle() {
|
|
5
|
-
const itemStyle = {
|
|
6
|
-
color: new DefaultStyleColor({ value: '#5470c6' }),
|
|
7
|
-
borderColor: new DefaultStyleColor({ opacity: 0 }),
|
|
8
|
-
borderWidth: 0,
|
|
9
|
-
borderType: 'solid',
|
|
10
|
-
borderRadius: 0
|
|
11
|
-
};
|
|
12
|
-
return itemStyle;
|
|
13
|
-
}
|
|
14
|
-
echart;
|
|
15
|
-
modelValue;
|
|
16
|
-
constructor(descriptor = {}) {
|
|
17
|
-
super(descriptor);
|
|
18
|
-
this.echart = descriptor.echart ?? '';
|
|
19
|
-
this.modelValue = descriptor.modelValue ?? '';
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export { ServiceEchartDescriptor };
|
|
23
|
-
//# sourceMappingURL=ServiceEchartDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceEchartDescriptor.js","sourceRoot":"","sources":["../../src/descriptor/ServiceEchartDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAqC,MAAM,aAAa,CAAA;AAU9F,MAAM,uBAAwB,SAAQ,UAAU;IAC5C,MAAM,CAAC,IAAI,GAAG,eAAe,CAAA;IAE7B,MAAM,CAAC,mBAAmB;QACtB,MAAM,SAAS,GAAoB;YAC/B,KAAK,EAAE,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;YAClD,WAAW,EAAE,IAAI,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAClD,WAAW,EAAE,CAAC;YACd,UAAU,EAAE,OAAO;YACnB,YAAY,EAAE,CAAC;SAClB,CAAA;QAED,OAAO,SAAS,CAAA;IACpB,CAAC;IAED,MAAM,CAAQ;IACd,UAAU,CAAQ;IAElB,YAAY,aAAsE,EAAE;QAChF,KAAK,CAAC,UAAU,CAAC,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,EAAE,CAAA;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,EAAE,CAAA;IACjD,CAAC;;AAGL,OAAO,EAEH,uBAAuB,EAC1B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptor/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA"}
|
package/build/index.d.ts
DELETED
package/build/index.js
DELETED
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { BarServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
declare class BarServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type: string;
|
|
5
|
-
getService(descriptor: BarServiceEchartDescriptor): {
|
|
6
|
-
barWidth: string;
|
|
7
|
-
barMaxWidth: string;
|
|
8
|
-
label: {
|
|
9
|
-
show: boolean;
|
|
10
|
-
color: string;
|
|
11
|
-
position: string;
|
|
12
|
-
};
|
|
13
|
-
itemStyle: {
|
|
14
|
-
color: string | {
|
|
15
|
-
type: "linear";
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
x2: number;
|
|
19
|
-
y2: number;
|
|
20
|
-
colorStops: {
|
|
21
|
-
offset: number;
|
|
22
|
-
color: string;
|
|
23
|
-
}[];
|
|
24
|
-
} | {
|
|
25
|
-
type: "radial";
|
|
26
|
-
r: number;
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
colorStops: {
|
|
30
|
-
offset: number;
|
|
31
|
-
color: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
borderType: string;
|
|
35
|
-
borderWidth: number;
|
|
36
|
-
borderColor: string | {
|
|
37
|
-
type: "linear";
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
x2: number;
|
|
41
|
-
y2: number;
|
|
42
|
-
colorStops: {
|
|
43
|
-
offset: number;
|
|
44
|
-
color: string;
|
|
45
|
-
}[];
|
|
46
|
-
} | {
|
|
47
|
-
type: "radial";
|
|
48
|
-
r: number;
|
|
49
|
-
x: number;
|
|
50
|
-
y: number;
|
|
51
|
-
colorStops: {
|
|
52
|
-
offset: number;
|
|
53
|
-
color: string;
|
|
54
|
-
}[];
|
|
55
|
-
};
|
|
56
|
-
borderRadius: number;
|
|
57
|
-
};
|
|
58
|
-
type: string;
|
|
59
|
-
name: string;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
export { BarServiceEchartInterpreter };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BarServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
class BarServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type = BarServiceEchartDescriptor.type;
|
|
5
|
-
getService(descriptor) {
|
|
6
|
-
const service = super.getService(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...service,
|
|
9
|
-
barWidth: descriptor.barWidth,
|
|
10
|
-
barMaxWidth: descriptor.barMaxWidth,
|
|
11
|
-
label: {
|
|
12
|
-
show: descriptor.labelShow,
|
|
13
|
-
color: descriptor.labelColor,
|
|
14
|
-
position: descriptor.labelPosition,
|
|
15
|
-
},
|
|
16
|
-
itemStyle: {
|
|
17
|
-
color: this.getStyleColor(descriptor.itemStyle.color),
|
|
18
|
-
borderType: descriptor.itemStyle.borderType,
|
|
19
|
-
borderWidth: descriptor.itemStyle.borderWidth,
|
|
20
|
-
borderColor: this.getStyleColor(descriptor.itemStyle.borderColor),
|
|
21
|
-
borderRadius: descriptor.itemStyle.borderRadius,
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
ServiceEchartInterpreter.register(BarServiceEchartInterpreter);
|
|
27
|
-
export { BarServiceEchartInterpreter };
|
|
28
|
-
//# sourceMappingURL=BarServiceEchartInterpreter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarServiceEchartInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/BarServiceEchartInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,2BAA4B,SAAQ,wBAAwB;IAC9D,MAAM,CAAC,IAAI,GAAG,0BAA0B,CAAC,IAAI,CAAA;IAE7C,UAAU,CAAC,UAAsC;QAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;QAE5C,OAAO;YACH,GAAG,OAAO;YACV,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,KAAK,EAAE;gBACH,IAAI,EAAE,UAAU,CAAC,SAAS;gBAC1B,KAAK,EAAE,UAAU,CAAC,UAAU;gBAC5B,QAAQ,EAAE,UAAU,CAAC,aAAa;aACrC;YACD,SAAS,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;gBACrD,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,UAAU;gBAC3C,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,WAAW;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC;gBACjE,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,YAAY;aAClD;SACJ,CAAA;IACL,CAAC;;AAEL,wBAAwB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAE9D,OAAO,EACH,2BAA2B,EAC9B,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Descriptor, Interpreter, PickupObject } from "@vyr/engine";
|
|
2
|
-
import { EchartDescriptor } from "../descriptor";
|
|
3
|
-
import { EchartActor } from "../actor";
|
|
4
|
-
declare class EchartInterpreter extends Interpreter {
|
|
5
|
-
static type: string;
|
|
6
|
-
protected createActor(descriptor: EchartDescriptor): EchartActor;
|
|
7
|
-
update(descriptor: EchartDescriptor): void;
|
|
8
|
-
mount(descriptor: EchartDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
9
|
-
unmount(descriptor: Descriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
10
|
-
pickup(descriptor: Descriptor, result: PickupObject[]): void;
|
|
11
|
-
}
|
|
12
|
-
export { EchartInterpreter };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Interpreter } from "@vyr/engine";
|
|
2
|
-
import { EchartDescriptor } from "../descriptor";
|
|
3
|
-
import { EchartActor } from "../actor";
|
|
4
|
-
class EchartInterpreter extends Interpreter {
|
|
5
|
-
static type = EchartDescriptor.type;
|
|
6
|
-
createActor(descriptor) {
|
|
7
|
-
return new EchartActor(descriptor.uuid);
|
|
8
|
-
}
|
|
9
|
-
update(descriptor) {
|
|
10
|
-
super.update(descriptor);
|
|
11
|
-
const actor = this.getActor(descriptor);
|
|
12
|
-
actor.update(descriptor);
|
|
13
|
-
}
|
|
14
|
-
mount(descriptor, parentInterpreter, parentDescriptor) {
|
|
15
|
-
super.mount(descriptor, parentInterpreter, parentDescriptor);
|
|
16
|
-
const actor = this.getActor(descriptor);
|
|
17
|
-
const parenActor = parentInterpreter.getActor(parentDescriptor);
|
|
18
|
-
parenActor.add(actor);
|
|
19
|
-
}
|
|
20
|
-
unmount(descriptor, parentInterpreter, parentDescriptor) {
|
|
21
|
-
const actor = this.getActor(descriptor);
|
|
22
|
-
actor.clearStyleClass(actor.DOM);
|
|
23
|
-
actor.cleanInteraction();
|
|
24
|
-
const parenActor = parentInterpreter.getActor(parentDescriptor);
|
|
25
|
-
parenActor.remove(actor);
|
|
26
|
-
super.unmount(descriptor, parentInterpreter, parentDescriptor);
|
|
27
|
-
}
|
|
28
|
-
pickup(descriptor, result) {
|
|
29
|
-
result.push({ uuid: descriptor.uuid, generatedBy: descriptor.generatedBy });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
Interpreter.register(EchartInterpreter);
|
|
33
|
-
export { EchartInterpreter };
|
|
34
|
-
//# sourceMappingURL=EchartInterpreter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EchartInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/EchartInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAgB,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,iBAAkB,SAAQ,WAAW;IACvC,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA;IAEzB,WAAW,CAAC,UAA4B;QAC9C,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,I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,EACH,iBAAiB,EACpB,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { LineServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
declare class LineServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type: string;
|
|
5
|
-
getService(descriptor: LineServiceEchartDescriptor): {
|
|
6
|
-
smooth: boolean;
|
|
7
|
-
lineStyle: {
|
|
8
|
-
type: string;
|
|
9
|
-
width: number;
|
|
10
|
-
};
|
|
11
|
-
itemStyle: {
|
|
12
|
-
color: string | {
|
|
13
|
-
type: "linear";
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
x2: number;
|
|
17
|
-
y2: number;
|
|
18
|
-
colorStops: {
|
|
19
|
-
offset: number;
|
|
20
|
-
color: string;
|
|
21
|
-
}[];
|
|
22
|
-
} | {
|
|
23
|
-
type: "radial";
|
|
24
|
-
r: number;
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
colorStops: {
|
|
28
|
-
offset: number;
|
|
29
|
-
color: string;
|
|
30
|
-
}[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
areaStyle: {
|
|
34
|
-
color: string | {
|
|
35
|
-
type: "linear";
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
x2: number;
|
|
39
|
-
y2: number;
|
|
40
|
-
colorStops: {
|
|
41
|
-
offset: number;
|
|
42
|
-
color: string;
|
|
43
|
-
}[];
|
|
44
|
-
} | {
|
|
45
|
-
type: "radial";
|
|
46
|
-
r: number;
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
colorStops: {
|
|
50
|
-
offset: number;
|
|
51
|
-
color: string;
|
|
52
|
-
}[];
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
type: string;
|
|
56
|
-
name: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export { LineServiceEchartInterpreter };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LineServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
class LineServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type = LineServiceEchartDescriptor.type;
|
|
5
|
-
getService(descriptor) {
|
|
6
|
-
const service = super.getService(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...service,
|
|
9
|
-
smooth: descriptor.smooth,
|
|
10
|
-
lineStyle: {
|
|
11
|
-
type: descriptor.lineStyle.type,
|
|
12
|
-
width: descriptor.lineStyle.width,
|
|
13
|
-
},
|
|
14
|
-
itemStyle: {
|
|
15
|
-
color: this.getStyleColor(descriptor.itemStyleColor),
|
|
16
|
-
},
|
|
17
|
-
areaStyle: {
|
|
18
|
-
color: this.getStyleColor(descriptor.areaStyleColor),
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
ServiceEchartInterpreter.register(LineServiceEchartInterpreter);
|
|
24
|
-
export { LineServiceEchartInterpreter };
|
|
25
|
-
//# sourceMappingURL=LineServiceEchartInterpreter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineServiceEchartInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/LineServiceEchartInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,4BAA6B,SAAQ,wBAAwB;IAC/D,MAAM,CAAC,IAAI,GAAG,2BAA2B,CAAC,IAAI,CAAA;IAE9C,UAAU,CAAC,UAAuC;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;QAE5C,OAAO;YACH,GAAG,OAAO;YACV,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,SAAS,EAAE;gBACP,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI;gBAC/B,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,KAAK;aACpC;YACD,SAAS,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC;aACvD;YACD,SAAS,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC;aACvD;SACJ,CAAA;IACL,CAAC;;AAEL,wBAAwB,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAA;AAE/D,OAAO,EACH,4BAA4B,EAC/B,CAAA"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { PieServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
declare class PieServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type: string;
|
|
5
|
-
getService(descriptor: PieServiceEchartDescriptor): {
|
|
6
|
-
roseType: string;
|
|
7
|
-
width: string;
|
|
8
|
-
height: string;
|
|
9
|
-
radius: string[];
|
|
10
|
-
center: string[];
|
|
11
|
-
padAngle: number;
|
|
12
|
-
label: {
|
|
13
|
-
show: boolean;
|
|
14
|
-
color: string;
|
|
15
|
-
position: string;
|
|
16
|
-
};
|
|
17
|
-
itemStyle: {
|
|
18
|
-
color: string | {
|
|
19
|
-
type: "linear";
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
x2: number;
|
|
23
|
-
y2: number;
|
|
24
|
-
colorStops: {
|
|
25
|
-
offset: number;
|
|
26
|
-
color: string;
|
|
27
|
-
}[];
|
|
28
|
-
} | {
|
|
29
|
-
type: "radial";
|
|
30
|
-
r: number;
|
|
31
|
-
x: number;
|
|
32
|
-
y: number;
|
|
33
|
-
colorStops: {
|
|
34
|
-
offset: number;
|
|
35
|
-
color: string;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
borderType: string;
|
|
39
|
-
borderWidth: number;
|
|
40
|
-
borderColor: string | {
|
|
41
|
-
type: "linear";
|
|
42
|
-
x: number;
|
|
43
|
-
y: number;
|
|
44
|
-
x2: number;
|
|
45
|
-
y2: number;
|
|
46
|
-
colorStops: {
|
|
47
|
-
offset: number;
|
|
48
|
-
color: string;
|
|
49
|
-
}[];
|
|
50
|
-
} | {
|
|
51
|
-
type: "radial";
|
|
52
|
-
r: number;
|
|
53
|
-
x: number;
|
|
54
|
-
y: number;
|
|
55
|
-
colorStops: {
|
|
56
|
-
offset: number;
|
|
57
|
-
color: string;
|
|
58
|
-
}[];
|
|
59
|
-
};
|
|
60
|
-
borderRadius: number;
|
|
61
|
-
};
|
|
62
|
-
type: string;
|
|
63
|
-
name: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export { PieServiceEchartInterpreter };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { PieServiceEchartDescriptor } from "../descriptor";
|
|
2
|
-
import { ServiceEchartInterpreter } from "./ServiceEchartInterpreter";
|
|
3
|
-
class PieServiceEchartInterpreter extends ServiceEchartInterpreter {
|
|
4
|
-
static type = PieServiceEchartDescriptor.type;
|
|
5
|
-
getService(descriptor) {
|
|
6
|
-
const service = super.getService(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...service,
|
|
9
|
-
roseType: descriptor.roseType,
|
|
10
|
-
width: descriptor.width,
|
|
11
|
-
height: descriptor.height,
|
|
12
|
-
radius: [descriptor.radius.x, descriptor.radius.y],
|
|
13
|
-
center: [descriptor.center.x, descriptor.center.y],
|
|
14
|
-
padAngle: descriptor.padAngle,
|
|
15
|
-
label: {
|
|
16
|
-
show: descriptor.labelShow,
|
|
17
|
-
color: descriptor.labelColor,
|
|
18
|
-
position: descriptor.labelPosition,
|
|
19
|
-
},
|
|
20
|
-
itemStyle: {
|
|
21
|
-
color: this.getStyleColor(descriptor.itemStyle.color),
|
|
22
|
-
borderType: descriptor.itemStyle.borderType,
|
|
23
|
-
borderWidth: descriptor.itemStyle.borderWidth,
|
|
24
|
-
borderColor: this.getStyleColor(descriptor.itemStyle.borderColor),
|
|
25
|
-
borderRadius: descriptor.itemStyle.borderRadius,
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
ServiceEchartInterpreter.register(PieServiceEchartInterpreter);
|
|
31
|
-
export { PieServiceEchartInterpreter };
|
|
32
|
-
//# sourceMappingURL=PieServiceEchartInterpreter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PieServiceEchartInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/PieServiceEchartInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,2BAA4B,SAAQ,wBAAwB;IAC9D,MAAM,CAAC,IAAI,GAAG,0BAA0B,CAAC,IAAI,CAAA;IAE7C,UAAU,CAAC,UAAsC;QAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;QAE5C,OAAO;YACH,GAAG,OAAO;YACV,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;YAClD,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;YAClD,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,KAAK,EAAE;gBACH,IAAI,EAAE,UAAU,CAAC,SAAS;gBAC1B,KAAK,EAAE,UAAU,CAAC,UAAU;gBAC5B,QAAQ,EAAE,UAAU,CAAC,aAAa;aACrC;YACD,SAAS,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;gBACrD,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,UAAU;gBAC3C,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,WAAW;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC;gBACjE,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,YAAY;aAClD;SACJ,CAAA;IACL,CAAC;;AAEL,wBAAwB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAE9D,OAAO,EACH,2BAA2B,EAC9B,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Descriptor, StyleColor, Interpreter } from "@vyr/engine";
|
|
2
|
-
import { EchartDescriptor, ServiceEchartDescriptor } from "../descriptor";
|
|
3
|
-
declare class ServiceEchartInterpreter extends Interpreter {
|
|
4
|
-
static type: string;
|
|
5
|
-
getLinearXYByAngle(angle: number): {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
x2: number;
|
|
9
|
-
y2: number;
|
|
10
|
-
};
|
|
11
|
-
getStyleColor(color: StyleColor): string | {
|
|
12
|
-
type: "linear";
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
x2: number;
|
|
16
|
-
y2: number;
|
|
17
|
-
colorStops: {
|
|
18
|
-
offset: number;
|
|
19
|
-
color: string;
|
|
20
|
-
}[];
|
|
21
|
-
} | {
|
|
22
|
-
type: "radial";
|
|
23
|
-
r: number;
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
colorStops: {
|
|
27
|
-
offset: number;
|
|
28
|
-
color: string;
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
getService(descriptor: ServiceEchartDescriptor): {
|
|
32
|
-
type: string;
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
35
|
-
update(descriptor: ServiceEchartDescriptor): void;
|
|
36
|
-
mount(descriptor: EchartDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
37
|
-
unmount(descriptor: Descriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
38
|
-
}
|
|
39
|
-
export { ServiceEchartInterpreter };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as echarts from 'echarts';
|
|
2
|
-
import { Descriptor, Interpreter, Queue } from "@vyr/engine";
|
|
3
|
-
import { EchartDescriptor, ServiceEchartDescriptor } from "../descriptor";
|
|
4
|
-
class ServiceEchartInterpreter extends Interpreter {
|
|
5
|
-
static type = ServiceEchartDescriptor.type;
|
|
6
|
-
getLinearXYByAngle(angle) {
|
|
7
|
-
const radian = (angle * Math.PI) / 180;
|
|
8
|
-
const x = Math.cos(radian);
|
|
9
|
-
const y = Math.sin(radian);
|
|
10
|
-
const x2 = Math.cos(radian + Math.PI);
|
|
11
|
-
const y2 = Math.sin(radian + Math.PI);
|
|
12
|
-
return { x, y, x2, y2 };
|
|
13
|
-
}
|
|
14
|
-
getStyleColor(color) {
|
|
15
|
-
if (color.type == 'linear') {
|
|
16
|
-
const { x, y, x2, y2 } = this.getLinearXYByAngle(color.angle);
|
|
17
|
-
const colorStops = [];
|
|
18
|
-
for (const item of color.value) {
|
|
19
|
-
colorStops.push({ offset: item.ratio, color: echarts.color.modifyAlpha(item.value, item.opacity) });
|
|
20
|
-
}
|
|
21
|
-
const style = {
|
|
22
|
-
type: color.type,
|
|
23
|
-
x, y, x2, y2,
|
|
24
|
-
colorStops
|
|
25
|
-
};
|
|
26
|
-
return style;
|
|
27
|
-
}
|
|
28
|
-
else if (color.type === 'radial') {
|
|
29
|
-
const colorStops = [];
|
|
30
|
-
for (const item of color.value) {
|
|
31
|
-
colorStops.push({ offset: item.ratio, color: echarts.color.modifyAlpha(item.value, item.opacity) });
|
|
32
|
-
}
|
|
33
|
-
const style = {
|
|
34
|
-
type: color.type,
|
|
35
|
-
r: color.radius,
|
|
36
|
-
x: color.center.x,
|
|
37
|
-
y: color.center.y,
|
|
38
|
-
colorStops
|
|
39
|
-
};
|
|
40
|
-
return style;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return echarts.color.modifyAlpha(color.value, color.opacity);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
getService(descriptor) {
|
|
47
|
-
return { type: descriptor.echart, name: descriptor.name };
|
|
48
|
-
}
|
|
49
|
-
update(descriptor) {
|
|
50
|
-
super.update(descriptor);
|
|
51
|
-
const unit = this.graphics.getUnit(descriptor.uuid);
|
|
52
|
-
const parentDescriptor = Descriptor.get(unit.parent);
|
|
53
|
-
if (parentDescriptor instanceof EchartDescriptor) {
|
|
54
|
-
const actor = this.graphics.getActor(parentDescriptor);
|
|
55
|
-
if (actor === null)
|
|
56
|
-
return;
|
|
57
|
-
actor.setOptions(parentDescriptor);
|
|
58
|
-
actor.instance.setOption(actor.options);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
mount(descriptor, parentInterpreter, parentDescriptor) {
|
|
62
|
-
super.mount(descriptor, parentInterpreter, parentDescriptor);
|
|
63
|
-
if (parentDescriptor instanceof EchartDescriptor) {
|
|
64
|
-
const unit = this.graphics.getUnit(parentDescriptor.uuid);
|
|
65
|
-
if (unit)
|
|
66
|
-
unit.trigger(Queue.Update);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
unmount(descriptor, parentInterpreter, parentDescriptor) {
|
|
70
|
-
if (parentDescriptor instanceof EchartDescriptor) {
|
|
71
|
-
const unit = this.graphics.getUnit(parentDescriptor.uuid);
|
|
72
|
-
if (unit)
|
|
73
|
-
unit.trigger(Queue.Update);
|
|
74
|
-
}
|
|
75
|
-
super.unmount(descriptor, parentInterpreter, parentDescriptor);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export { ServiceEchartInterpreter };
|
|
79
|
-
//# sourceMappingURL=ServiceEchartInterpreter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceEchartInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/ServiceEchartInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,UAAU,EAAc,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG1E,MAAM,wBAAyB,SAAQ,WAAW;IAC9C,MAAM,CAAC,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAA;IAE1C,kBAAkB,CAAC,KAAa;QAC5B,MAAM,MAAM,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAA;QACtC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC1B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;QACrC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;QAErC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAA;IAC3B,CAAC;IAED,aAAa,CAAC,KAAiB;QAC3B,IAAI,KAAK,CAAC,IAAI,IAAI,QAAQ,EAAE,CAAC;YACzB,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAE7D,MAAM,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AAA;YACzD,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACxC,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;IAClE,CAAC;;AAGL,OAAO,EACH,wBAAwB,EAC3B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interpreter/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA"}
|
package/build/locale/Language.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/locale/Language.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAwB,MAAM,oBAAoB,CAAC;AAEhF,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;AAErC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAuB,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAEpF,OAAO,EACH,QAAQ,EACX,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageProvider.js","sourceRoot":"","sources":["../../src/locale/LanguageProvider.ts"],"names":[],"mappings":"AAMA,MAAM,oBAAoB,GAAyB;IAC/C,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,cAAc;CACvB,CAAA;AAED,OAAO,EAEH,oBAAoB,GACvB,CAAA"}
|
package/build/locale/index.d.ts
DELETED
package/build/locale/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
|