@kengic/vue 0.28.2-beta.22 → 0.28.2-beta.23
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/dist/index.css +1 -1
- package/dist/kengic-vue.js +16299 -16180
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts +13 -0
- package/dist/src/page/KgCircleVis/components/KgCircleVis.store.d.ts +13 -1
- package/dist/src/page/KgCircleVis/components/KgCircleVis.vm.d.ts +2 -2
- package/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
2
|
+
import { MapStationDTO, StatusRgvVO } from './KgCircleVis.vm';
|
2
3
|
/** 节点类型. */
|
3
4
|
export declare const NODE_KEY: {
|
4
5
|
/** 轨道. */
|
@@ -13,6 +14,18 @@ export declare type IUseDraw = {
|
|
13
14
|
* 绘制图形.
|
14
15
|
*/
|
15
16
|
draw(param?: IUseDrawDrawParam): void;
|
17
|
+
/**
|
18
|
+
* 选中小车.
|
19
|
+
*
|
20
|
+
* @param rgv 小车. 如果为空, 表示清空选中.
|
21
|
+
*/
|
22
|
+
selectRgv(rgv: StatusRgvVO | null): void;
|
23
|
+
/**
|
24
|
+
* 选中站点.
|
25
|
+
*
|
26
|
+
* @param station 站点. 如果为空, 表示清空选中.
|
27
|
+
*/
|
28
|
+
selectStation(station: MapStationDTO | null): void;
|
16
29
|
};
|
17
30
|
declare type IUseDrawDrawParam = {
|
18
31
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
2
2
|
import { StoreDefinition } from 'pinia';
|
3
|
-
import { MapDTO, StatusDTO, StatusRgvVO } from './KgCircleVis.vm';
|
3
|
+
import { MapStationDTO, MapDTO, StatusDTO, StatusRgvVO } from './KgCircleVis.vm';
|
4
4
|
export declare type IKgCircleVisProps = {
|
5
5
|
/**
|
6
6
|
* 接口地址.
|
@@ -148,6 +148,14 @@ export interface IKgCircleVisStoreState {
|
|
148
148
|
* 库区下拉列表:当前选中的值.
|
149
149
|
*/
|
150
150
|
areaSelectValue: string | null;
|
151
|
+
/**
|
152
|
+
* 画布:当前选中的小车.
|
153
|
+
*/
|
154
|
+
canvasCurrentRgv: StatusRgvVO | null;
|
155
|
+
/**
|
156
|
+
* 画布:当前选中的站点.
|
157
|
+
*/
|
158
|
+
canvasCurrentStation: MapStationDTO | null;
|
151
159
|
/**
|
152
160
|
* 画布:图形地图数据列表. 等待被绘制的地图数据列表, 每次绘制都从队首取一个数据进行绘制, 当队列为空时暂停绘制.
|
153
161
|
*/
|
@@ -184,6 +192,8 @@ export interface IKgCircleVisStoreState {
|
|
184
192
|
export interface IKgCircleVisStoreGetters {
|
185
193
|
getAreaSelectIsRequesting(): boolean;
|
186
194
|
getAreaSelectValue(): string | null;
|
195
|
+
getCanvasCurrentRgv(): StatusRgvVO | null;
|
196
|
+
getCanvasCurrentStation(): MapStationDTO | null;
|
187
197
|
getCanvasMapDataList(): Array<MapDTO>;
|
188
198
|
getCanvasMapIsRequesting(): boolean;
|
189
199
|
getCanvasStatusData(): StatusDTO | null;
|
@@ -212,6 +222,8 @@ export interface IKgCircleVisStoreActions {
|
|
212
222
|
pushCanvasStatusDataList(value: StatusDTO | null | undefined): void;
|
213
223
|
setAreaSelectIsRequesting(value: boolean | null | undefined): void;
|
214
224
|
setAreaSelectValue(value: string | null | undefined): void;
|
225
|
+
setCanvasCurrentRgv(value: StatusRgvVO | null | undefined): void;
|
226
|
+
setCanvasCurrentStation(value: MapStationDTO | null | undefined): void;
|
215
227
|
setCanvasMapDataList(value: Array<MapDTO> | null | undefined): void;
|
216
228
|
setCanvasMapIsRequesting(value: boolean | null | undefined): void;
|
217
229
|
setCanvasStatusData(value: StatusDTO | null | undefined): void;
|
@@ -14,7 +14,7 @@ export declare type MapMapDTO = {
|
|
14
14
|
/** 宽 */
|
15
15
|
width: number;
|
16
16
|
};
|
17
|
-
export declare type
|
17
|
+
export declare type MapStationDTO = {
|
18
18
|
/** 线体编号. */
|
19
19
|
conveyorNo: string;
|
20
20
|
/** 线体坐标(线体相对环穿轨道的位置). */
|
@@ -35,7 +35,7 @@ export declare type MapConveyorDTO = {
|
|
35
35
|
*/
|
36
36
|
export declare type MapDTO = {
|
37
37
|
/** 站点. */
|
38
|
-
conveyor: Array<
|
38
|
+
conveyor: Array<MapStationDTO>;
|
39
39
|
/** 轨道. */
|
40
40
|
map: MapMapDTO;
|
41
41
|
};
|
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.23",
|
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",
|