@kengic/vue 0.28.2-beta.25 → 0.28.2-beta.26
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.
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
2
2
|
import { StoreDefinition } from 'pinia';
|
3
|
-
import { MapDTO,
|
3
|
+
import { MapDTO, MapStationVO, StatusDTO, StatusRgvVO } from './KgCircleVis.vm';
|
4
4
|
export declare type IKgCircleVisProps = {
|
5
5
|
/**
|
6
6
|
* 接口地址.
|
@@ -79,6 +79,12 @@ export declare type IKgCircleVisProps = {
|
|
79
79
|
* @default 1000 毫秒.
|
80
80
|
*/
|
81
81
|
requestStatusInterval?: number;
|
82
|
+
/**
|
83
|
+
* 小车刻度误差.
|
84
|
+
*
|
85
|
+
* @default 10.
|
86
|
+
*/
|
87
|
+
rgvCoordinateDeviation?: number;
|
82
88
|
/**
|
83
89
|
* 小车不同状态时的颜色.
|
84
90
|
*/
|
@@ -140,6 +146,14 @@ export declare type IKgCircleVisProps = {
|
|
140
146
|
updateStatusInterval?: number;
|
141
147
|
};
|
142
148
|
export interface IKgCircleVisStoreState {
|
149
|
+
/**
|
150
|
+
* 库区下拉列表:是否正在请求数据.
|
151
|
+
*/
|
152
|
+
$AreaSelect$isRequesting: boolean;
|
153
|
+
/**
|
154
|
+
* 库区下拉列表:当前选中的值.
|
155
|
+
*/
|
156
|
+
$AreaSelect$value: string | null;
|
143
157
|
/**
|
144
158
|
* 画布:当前选中的小车列表.
|
145
159
|
*/
|
@@ -147,7 +161,7 @@ export interface IKgCircleVisStoreState {
|
|
147
161
|
/**
|
148
162
|
* 画布:当前选中的站点列表.
|
149
163
|
*/
|
150
|
-
$Canvas$currentStationList: Array<
|
164
|
+
$Canvas$currentStationList: Array<MapStationVO>;
|
151
165
|
/**
|
152
166
|
* 画布:图形地图数据列表. 等待被绘制的地图数据列表, 每次绘制都从队首取一个数据进行绘制, 当队列为空时暂停绘制.
|
153
167
|
*/
|
@@ -168,6 +182,10 @@ export interface IKgCircleVisStoreState {
|
|
168
182
|
* 画布:是否正在请求状态数据.
|
169
183
|
*/
|
170
184
|
$Canvas$statusIsRequesting: boolean;
|
185
|
+
/**
|
186
|
+
* 图例:是否显示.
|
187
|
+
*/
|
188
|
+
$Legend$isVisible: boolean;
|
171
189
|
/**
|
172
190
|
* 标签页:当前标签页.
|
173
191
|
*/
|
@@ -176,48 +194,38 @@ export interface IKgCircleVisStoreState {
|
|
176
194
|
* 标签页:小车列表.
|
177
195
|
*/
|
178
196
|
$Tab$rgvList: Array<StatusRgvVO>;
|
179
|
-
/**
|
180
|
-
* 库区下拉列表:是否正在请求数据.
|
181
|
-
*/
|
182
|
-
areaSelectIsRequesting: boolean;
|
183
|
-
/**
|
184
|
-
* 库区下拉列表:当前选中的值.
|
185
|
-
*/
|
186
|
-
areaSelectValue: string | null;
|
187
197
|
/**
|
188
198
|
* 画布对象.
|
189
199
|
*/
|
190
200
|
graph: Q.Graph | null;
|
191
|
-
/**
|
192
|
-
* 图例:是否显示.
|
193
|
-
*/
|
194
|
-
legendIsVisible: boolean;
|
195
201
|
/**
|
196
202
|
* 参数.
|
197
203
|
*/
|
198
204
|
props: IKgCircleVisProps | null;
|
199
205
|
}
|
200
206
|
export interface IKgCircleVisStoreGetters {
|
207
|
+
$AreaSelect$getIsRequesting(): boolean;
|
208
|
+
$AreaSelect$getValue(): string | null;
|
201
209
|
$Canvas$getCurrentRgvList(): Array<StatusRgvVO>;
|
202
|
-
$Canvas$getCurrentStationList(): Array<
|
210
|
+
$Canvas$getCurrentStationList(): Array<MapStationVO>;
|
203
211
|
$Canvas$getMapDataList(): Array<MapDTO>;
|
204
212
|
$Canvas$getMapIsRequesting(): boolean;
|
205
213
|
$Canvas$getStatusData(): StatusDTO | null;
|
206
214
|
$Canvas$getStatusDataList(): Array<StatusDTO>;
|
207
215
|
$Canvas$getStatusIsRequesting(): boolean;
|
216
|
+
$Legend$getIsVisible(): boolean;
|
208
217
|
/**
|
209
218
|
* 离线区:离线小车列表.
|
210
219
|
*/
|
211
220
|
$Offline$getRgvList(): Array<StatusRgvVO>;
|
212
221
|
$Tab$getActiveKey(): string | number;
|
213
222
|
$Tab$getRgvList(): Array<StatusRgvVO>;
|
214
|
-
getAreaSelectIsRequesting(): boolean;
|
215
|
-
getAreaSelectValue(): string | null;
|
216
223
|
getGraph(): Q.Graph | null;
|
217
|
-
getLegendIsVisible(): boolean;
|
218
224
|
getProps(): IKgCircleVisProps | null;
|
219
225
|
}
|
220
226
|
export interface IKgCircleVisStoreActions {
|
227
|
+
$AreaSelect$setIsRequesting(value: boolean | null | undefined): void;
|
228
|
+
$AreaSelect$setValue(value: string | null | undefined): void;
|
221
229
|
/**
|
222
230
|
* 画布:往地图数据列尾插入一个数据.
|
223
231
|
*
|
@@ -231,11 +239,13 @@ export interface IKgCircleVisStoreActions {
|
|
231
239
|
*/
|
232
240
|
$Canvas$pushStatusDataList(value: StatusDTO | null | undefined): void;
|
233
241
|
$Canvas$setCurrentRgvList(value: Array<StatusRgvVO> | null | undefined): void;
|
242
|
+
$Canvas$setCurrentStationList(value: Array<MapStationVO> | null | undefined): void;
|
234
243
|
$Canvas$setMapDataList(value: Array<MapDTO> | null | undefined): void;
|
235
244
|
$Canvas$setMapIsRequesting(value: boolean | null | undefined): void;
|
236
245
|
$Canvas$setStatusData(value: StatusDTO | null | undefined): void;
|
237
246
|
$Canvas$setStatusDataList(value: Array<StatusDTO> | null | undefined): void;
|
238
247
|
$Canvas$setStatusIsRequesting(value: boolean | null | undefined): void;
|
248
|
+
$Legend$setIsVisible(value: boolean | null | undefined): void;
|
239
249
|
/**
|
240
250
|
* 标签页:从标签页列表中删除某个小车.
|
241
251
|
*
|
@@ -252,11 +262,7 @@ export interface IKgCircleVisStoreActions {
|
|
252
262
|
$Tab$insertRgvList(value: Array<StatusRgvVO> | null | undefined): void;
|
253
263
|
$Tab$setActiveKey(value: string | number | null | undefined): void;
|
254
264
|
$Tab$setRgvList(value: Array<StatusRgvVO> | null | undefined): void;
|
255
|
-
setAreaSelectIsRequesting(value: boolean | null | undefined): void;
|
256
|
-
setAreaSelectValue(value: string | null | undefined): void;
|
257
|
-
setCanvasCurrentStationList(value: Array<MapStationDTO> | null | undefined): void;
|
258
265
|
setGraph(value: Q.Graph | null | undefined): void;
|
259
|
-
setLegendIsVisible(value: boolean | null | undefined): void;
|
260
266
|
setProps(value: IKgCircleVisProps | null | undefined): void;
|
261
267
|
}
|
262
268
|
export declare type IUseKgCircleVisStore = StoreDefinition<'KgCircleVis', IKgCircleVisStoreState, IKgCircleVisStoreGetters, IKgCircleVisStoreActions>;
|
@@ -23,10 +23,10 @@ export declare type MapStationDTO = {
|
|
23
23
|
direction: number;
|
24
24
|
/** 线体长度. */
|
25
25
|
length: number;
|
26
|
-
/** 站点编号. */
|
27
|
-
stationNo: string;
|
28
26
|
/** 线体名称. */
|
29
27
|
name: string;
|
28
|
+
/** 站点编号. */
|
29
|
+
stationNo: string;
|
30
30
|
/** 线体宽度 */
|
31
31
|
width: number;
|
32
32
|
};
|
@@ -35,7 +35,7 @@ export declare type MapStationDTO = {
|
|
35
35
|
*/
|
36
36
|
export declare type MapDTO = {
|
37
37
|
/** 站点. */
|
38
|
-
conveyor: Array<
|
38
|
+
conveyor: Array<MapStationVO>;
|
39
39
|
/** 轨道. */
|
40
40
|
map: MapMapDTO;
|
41
41
|
};
|
@@ -108,6 +108,7 @@ export declare type StatusRgvVO = StatusRgvDTO & {
|
|
108
108
|
*/
|
109
109
|
PREVIOUS_COORDINATE?: number | null | undefined;
|
110
110
|
};
|
111
|
+
export declare type MapStationVO = MapStationDTO & StatusStationDTO;
|
111
112
|
export declare const TAB_KEY: {
|
112
113
|
/** 小车信息汇总. */
|
113
114
|
RGV_SUMMARY: string;
|
package/dist/src/page/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.28.2-beta.
|
3
|
+
"version": "0.28.2-beta.26",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|