diff --git a/.gitmodules b/.gitmodules index b70e77c..32a1a1d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "rtss-proto-msg"] - path = rtss-proto-msg - url = https://gitea.joylink.club/joylink/rtss-proto-msg.git +[submodule "rtsa-proto-msg"] + path = rtsa-proto-msg + url = https://gitea.joylink.club/joylink/rtsa-proto-msg.git diff --git a/package-lock.json b/package-lock.json index 3043e29..3a3ecda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@quasar/extras": "^1.16.4", "axios": "^1.2.1", "google-protobuf": "^3.21.4", - "jl-graphic": "git+http://120.46.212.6:3000/joylink/graphic-pixi.git#v0.1.18", + "jl-graphic": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19", "js-base64": "^3.7.5", "pinia": "^2.0.11", "quasar": "^2.16.0", @@ -30,6 +30,7 @@ "eslint-config-prettier": "^8.1.0", "eslint-plugin-vue": "^9.0.0", "prettier": "^2.5.1", + "ts-md5": "^1.3.1", "typescript": "~5.5.4", "vite-plugin-checker": "^0.7.2", "vue-tsc": "2.0.29" @@ -4436,8 +4437,8 @@ }, "node_modules/jl-graphic": { "name": "graphic-pixi", - "version": "0.1.14", - "resolved": "git+http://120.46.212.6:3000/joylink/graphic-pixi.git#8b0ad14f7324a5eaba58239645a1fa0452e87ab4", + "version": "0.1.18", + "resolved": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#1c803d096585e258be3f60d3d95d1bd0c318d316", "dependencies": { "@pixi/graphics-extras": "^7.3.2", "@pixi/utils": "^7.3.2", @@ -6398,6 +6399,15 @@ "typescript": ">=4.2.0" } }, + "node_modules/ts-md5": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/ts-md5/-/ts-md5-1.3.1.tgz", + "integrity": "sha512-DiwiXfwvcTeZ5wCE0z+2A9EseZsztaiZtGrtSaY5JOD7ekPnR/GoIVD5gXZAlK9Na9Kvpo9Waz5rW64WKAWApg==", + "dev": true, + "engines": { + "node": ">=12" + } + }, "node_modules/tslib": { "version": "2.7.0", "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.7.0.tgz", diff --git a/package.json b/package.json index d5711f4..ffc176f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "prettier": "^2.5.1", "typescript": "~5.5.4", "vite-plugin-checker": "^0.7.2", - "vue-tsc": "2.0.29" + "vue-tsc": "2.0.29", + "ts-md5": "^1.3.1" }, "engines": { "node": "^20 || ^18 || ^16", diff --git a/public/drawIcon.svg b/public/drawIcon.svg index 0639126..d5b6d50 100644 --- a/public/drawIcon.svg +++ b/public/drawIcon.svg @@ -96,4 +96,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rtsa-proto-msg b/rtsa-proto-msg new file mode 160000 index 0000000..64e48a0 --- /dev/null +++ b/rtsa-proto-msg @@ -0,0 +1 @@ +Subproject commit 64e48a0441eedd0b7bc926ca922b2fb58075467b diff --git a/rtss-proto-msg b/rtss-proto-msg deleted file mode 160000 index 87726ae..0000000 --- a/rtss-proto-msg +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 87726ae0917aedf814210d9725ee354aa15bb1f9 diff --git a/scripts/proto.cjs b/scripts/proto.cjs index 46b6799..7f5db70 100644 --- a/scripts/proto.cjs +++ b/scripts/proto.cjs @@ -7,7 +7,7 @@ const os = require('os'); const { exec } = require('child_process'); -const messageDir = resolve(__dirname, '../rtss-proto-msg'); +const messageDir = resolve(__dirname, '../rtsa-proto-msg'); const protoDir = resolve(messageDir, 'src'); const destDir = resolve(__dirname, '../src/protos'); diff --git a/src/App.vue b/src/App.vue index b42526e..4f4e0d3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,30 +3,20 @@ diff --git a/src/api/ElectronicMapDraftApi.ts b/src/api/ElectronicMapDraftApi.ts new file mode 100644 index 0000000..9a5105e --- /dev/null +++ b/src/api/ElectronicMapDraftApi.ts @@ -0,0 +1,138 @@ +import { api } from 'src/boot/axios'; +import { PageDto } from './ApiCommon'; +import { DraftDataType } from './DraftApi'; + +export enum LineType { + UNKNOWN, + UR = 'UR', + IR = 'IR', + CR = 'CR', +} + +export const lineTypeOption = [ + { + label: '城市轨道交通', + value: LineType.UR, + }, + { + label: '城际轨道交通', + value: LineType.IR, + }, + { + label: '市域轨道交通', + value: LineType.CR, + }, +]; + +export const searchLineTypeOption = [ + { + label: '全部', + value: LineType.UNKNOWN, + }, + ...lineTypeOption, +]; + +export interface DraftItem { + id: number; + name: string; + dataType: DraftDataType; + options: string; + data: string; + userId: number; + defaultReleaseDataId: number; + isShared: boolean; + createdAt: string; + updatedAt: string; + defaultReleaseDataName: string; + userName: string; +} +export interface LineInfoOptionsInput { + lineType: LineType; + city?: string; + lineCode?: string; +} +export interface PagingQueryParams { + paging: { + page: number; + itemsPerPage: number; + }; + query: { + dataType: DraftDataType; + options?: LineInfoOptionsInput; + name?: string; + isShared?: boolean; + userId?: number; + }; +} +export interface DraftEmDataDto { + draftData: DraftItem; + options: LineInfoOptionsInput; +} + +export async function draftPageQuery( + params: PagingQueryParams +): Promise> { + const query = ` + query userDraftEmDataPaging($paging: PageQueryDto, $query: UserDraftEmDataFilterDto) { + userDraftEmDataPaging(paging: $paging, query: $query) { + total + items { + draftData {id name dataType userName defaultReleaseDataId createdAt updatedAt isShared defaultReleaseDataName} + options {lineType city lineCode} + } + } + } +`; + const response = await api.post('', { + query, + variables: params, + }); + return response.data.data.userDraftEmDataPaging; +} + +export async function sharedDraftPageQuery( + params: PagingQueryParams +): Promise> { + const query = ` + query sharedDraftEmDataPaging($paging: PageQueryDto, $query: SharedDraftEmDataFilterDto) { + sharedDraftEmDataPaging(paging: $paging, query: $query) { + total + items { + draftData {id name dataType userName userId defaultReleaseDataId createdAt updatedAt isShared defaultReleaseDataName} + options {lineType city lineCode} + } + } + } +`; + const response = await api.post('', { + query, + variables: params, + }); + return response.data.data.sharedDraftEmDataPaging; +} + + +/** + * 创建草稿 + * @param params + * @returns + */ +interface CreateDraftEmDto { + input: { + name: string; + options: LineInfoOptionsInput; + }; +} +export function createDraft(params: CreateDraftEmDto) { + const mutation = ` + mutation createDraftEmData($input: CreateDraftEmDto) { + createDraftEmData(input: $input) { + name + } + } +`; + return api.post('', { + query: mutation, + variables: params, + }); +} diff --git a/src/api/ElectronicMapPublishApi.ts b/src/api/ElectronicMapPublishApi.ts new file mode 100644 index 0000000..d27ce59 --- /dev/null +++ b/src/api/ElectronicMapPublishApi.ts @@ -0,0 +1,63 @@ +import { api } from 'src/boot/axios'; +import { PageDto } from './ApiCommon'; +import { DraftDataType } from './DraftApi'; +import { LineInfoOptionsInput } from './ElectronicMapDraftApi'; + +export interface PublishItem { + id: number; + name: string; + dataType: DraftDataType; + options: string; + data: string; + usedVersionId: number; + userId: number; + isPublished: boolean; + createdAt: string; + updatedAt: string; + description: string; + userName: string; +} + +interface PagingQueryParams { + page: { + page: number; + itemsPerPage: number; + }; + query: { + dataType: DraftDataType; + userId?: number; + name?: string; + isPublished?: boolean; + options?: LineInfoOptionsInput; + }; +} +export interface PublishEmDataDto { + releaseData: PublishItem; + options: LineInfoOptionsInput; +} + +/** + * 分页查询 + * @param params + * @returns + */ +export async function publishPageQuery( + params: PagingQueryParams +): Promise> { + const query = ` + query releaseEmDataPaging($page: PageQueryDto, $query: ReleaseEmDataFilterDto) { + releaseEmDataPaging(page: $page, query: $query) { + total + items { + releaseData {id name dataType usedVersionId userName isPublished createdAt updatedAt description } + options {lineType city lineCode} + } + } + } +`; + const response = await api.post('', { + query, + variables: params, + }); + return response.data.data.releaseEmDataPaging; +} diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts index ef7225c..4a07b4d 100644 --- a/src/api/UserApi.ts +++ b/src/api/UserApi.ts @@ -1,9 +1,123 @@ import { api } from 'src/boot/axios'; import { PageDto } from './ApiCommon'; +import { Md5 } from 'ts-md5'; + +interface RegisterInfo { + username: string; + nickname: string; + password: string; + mobile?: string; + email?: string; +} + +//const PasswordSult = '4a6d74126bfd06d69406fcccb7e7d5d9'; // 密码加盐 +function encryptPassword(password: string): string { + const md5 = new Md5(); + return md5.appendStr(password).end() as string; +} + +/** + * 用户注册 + * @param info + * @returns + */ +export async function register(registerInfo: RegisterInfo) { + const register = { + ...registerInfo, + password: encryptPassword(registerInfo.password), + }; + const mutation = ` + mutation registerUser($register: RegisterUserDto) { + registerUser(register: $register){ + username + } + } +`; + return api.post('', { + query: mutation, + variables: { register }, + }); +} + +/** + * 检查用户名是否存在 + * @param username + */ +export function usernameExists(username: string) { + const query = ` + query usernameExists($username: String) { + usernameExists(username: $username,) + } +`; + return api.post('', { + query, + variables: { username }, + }); +} + +/** + * 检查邮箱是否存在 + * @param email + */ +export function emailExists(email: string) { + const query = ` + query emailExists($email: String) { + emailExists(email: $email,) + } +`; + return api.post('', { + query, + variables: { email }, + }); +} + +/** + * 检查手机号是否存在 + * @param mobile + */ +export function mobileExists(mobile: string) { + const query = ` + query mobileExists($mobile: String) { + mobileExists(mobile: $mobile,) + } +`; + return api.post('', { + query, + variables: { mobile }, + }); +} + +interface LoginInfo { + username: string; + password: string; + orgId?: number; +} + +/** + * 用户登录 + * @param loginInfo + * @returns + */ +export async function login(userLoginDto: LoginInfo) { + const info = { + ...userLoginDto, + password: encryptPassword(userLoginDto.password), + }; + const query = ` + query userLogin($info: UserLoginDto) { + userLogin(info: $info) + } +`; + return api.post('', { + query, + variables: { info }, + }); +} export interface User { - id: string; - name: string; + id: number; + username: string; + nickname: string; mobile: string; email: string; roles: []; @@ -18,7 +132,8 @@ export interface PagingQueryParams { }; query: { id?: string; - name?: string; + username?: string; + nickname?: string; mobile?: string; email?: string; roles?: []; @@ -38,7 +153,7 @@ export async function userPageQuery( userPaging(page: $page, query: $query) { total items { - id name mobile email roles createdAt updatedAt + id username nickname mobile email roles createdAt updatedAt } } } @@ -57,7 +172,7 @@ export async function getLoginUserInfo() { const query = ` query loginUserInfo { loginUserInfo{ - id + id username nickname mobile email roles createdAt updatedAt } } `; @@ -67,32 +182,148 @@ export async function getLoginUserInfo() { return response.data.data; } +export enum Role { + UNKNOWN, + ADMIN = 'ADMIN', + USER = 'USER', + ORG_MANAGER = 'ORG_MANAGER', //组织管理员 + ORG_TEACHER = 'ORG_TEACHER', //组织教师 + ORG_STUDENT = 'ORG_STUDENT', //组织学生 + ORG_GUEST = 'ORG_GUEST', //组织访客 +} + +export const rolesOptions = [ + { label: '系统管理员', value: Role.ADMIN }, + { label: '普通用户', value: Role.USER }, + { label: '组织管理员', value: Role.ORG_MANAGER }, + { label: '组织教师', value: Role.ORG_TEACHER }, + { label: '组织学生', value: Role.ORG_STUDENT }, + { label: '组织访客', value: Role.ORG_GUEST }, +]; + /** - * 同步用户 + * 更改用户角色 + * @param variables + * @returns */ -export async function syncUsersInfo() { +export async function updateUserRoles(variables: { + userId: number; + roles: Role[]; +}) { const mutation = ` - mutation syncUser { - syncUser + mutation updateUserRoles($userId: Int,$roles: [Role!]) { + updateUserRoles(userId: $userId,roles: $roles,){ + id + } } `; - const response = await api.post('', { + return api.post('', { query: mutation, + variables, }); - return response.data.data; } /** - * 获取jwt令牌(mqtt验证) + * 获取默认组织信息 */ -export async function getJwt() { +export async function getDefaultOrg() { const query = ` - query getJwt { - getJwt + query getDefaultOrg { + getDefaultOrg{ + id code name creatorId + } } `; const response = await api.post('', { query: query, }); + return response.data.data.getDefaultOrg; +} + +/** + * 获取组织信息 + * @param id + * @returns + */ +export async function getOrgById(id: number) { + const query = ` + query getOrg($id: Int) { + getOrg(id: $id){ + id code name creatorId + } + } +`; + const variables = { + id, + }; + const response = await api.post('', { + query, + variables, + }); + return response.data.data.getOrg; +} + +/** + * 获取组织信息 + * @param code + * @returns + */ +export async function getOrgByCode(code: string) { + const query = ` + query getOrgByCode($code: String) { + getOrgByCode(code: $code){ + id code name creatorId + } + } +`; + const variables = { + code, + }; + const response = await api.post('', { + query, + variables, + }); + return response.data.data.getOrg; +} + +/** + * 获取组织用户信息 + * @param orgId + * @param userId + * @returns + */ +export async function getOrgUserInfo(orgId: number, userId: number) { + const query = ` + query orgUserInfo($orgId: Int,$userId: Int) { + orgUserInfo(orgId: $orgId,userId: $userId){ + id orgId userId studentId roles + } + } +`; + const variables = { + orgId, + userId, + }; + const response = await api.post('', { + query, + variables, + }); return response.data.data; } + +/** + * 获取登录用户的组织用户信息 + */ +export async function loginOrgUserInfo() { + const query = ` + query loginOrgUserInfo { + loginOrgUserInfo{ + id orgId userId studentId roles + } + } +`; + const response = await api.post('', { + query: query, + }); + return response.data.data.getDefaultOrg; +} diff --git a/src/assets/ISCS/PSD/duanmenAlarm.png b/src/assets/ISCS/PSD/duanmenAlarm.png new file mode 100644 index 0000000..f3427aa Binary files /dev/null and b/src/assets/ISCS/PSD/duanmenAlarm.png differ diff --git a/src/assets/ISCS/PSD/duanmenClose.png b/src/assets/ISCS/PSD/duanmenClose.png new file mode 100644 index 0000000..99b504e Binary files /dev/null and b/src/assets/ISCS/PSD/duanmenClose.png differ diff --git a/src/assets/ISCS/PSD/duanmenConnectBreak.png b/src/assets/ISCS/PSD/duanmenConnectBreak.png new file mode 100644 index 0000000..3e60f6d Binary files /dev/null and b/src/assets/ISCS/PSD/duanmenConnectBreak.png differ diff --git a/src/assets/ISCS/PSD/train1.png b/src/assets/ISCS/PSD/train1.png new file mode 100644 index 0000000..81d70be Binary files /dev/null and b/src/assets/ISCS/PSD/train1.png differ diff --git a/src/assets/ISCS/PSD/train2.png b/src/assets/ISCS/PSD/train2.png new file mode 100644 index 0000000..ad1d7d8 Binary files /dev/null and b/src/assets/ISCS/PSD/train2.png differ diff --git a/src/components/Iscs/CCTVMonitoring.vue b/src/components/Iscs/CCTVMonitoring.vue new file mode 100644 index 0000000..47f7cd6 --- /dev/null +++ b/src/components/Iscs/CCTVMonitoring.vue @@ -0,0 +1,400 @@ + + + + + diff --git a/src/components/Iscs/FASPlaneGraph.vue b/src/components/Iscs/FASPlaneGraph.vue new file mode 100644 index 0000000..e25e6e7 --- /dev/null +++ b/src/components/Iscs/FASPlaneGraph.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/components/Iscs/IscsBottomAlarm.vue b/src/components/Iscs/IscsBottomAlarm.vue index 878be6a..4248ae5 100644 --- a/src/components/Iscs/IscsBottomAlarm.vue +++ b/src/components/Iscs/IscsBottomAlarm.vue @@ -46,10 +46,7 @@
- 玖链科技 + 玖链科技
@@ -71,6 +68,7 @@ import { reactive, onMounted } from 'vue'; import { useQuasar, type QTableColumn } from 'quasar'; import { PagingQueryParams, userPageQuery } from 'src/api/UserApi'; import { ApiError } from 'src/boot/axios'; +import icon from '/icons/favicon-96x96.png'; const $q = useQuasar(); diff --git a/src/components/Iscs/ModeControl.vue b/src/components/Iscs/ModeControl.vue new file mode 100644 index 0000000..097ea41 --- /dev/null +++ b/src/components/Iscs/ModeControl.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/components/Iscs/ModeControlOfBigSystem.vue b/src/components/Iscs/ModeControlOfBigSystem.vue new file mode 100644 index 0000000..8c98354 --- /dev/null +++ b/src/components/Iscs/ModeControlOfBigSystem.vue @@ -0,0 +1,319 @@ + + + + + diff --git a/src/components/Iscs/ModeControlOfBigSystemTable.vue b/src/components/Iscs/ModeControlOfBigSystemTable.vue new file mode 100644 index 0000000..b0be6de --- /dev/null +++ b/src/components/Iscs/ModeControlOfBigSystemTable.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/components/Iscs/PSD.vue b/src/components/Iscs/PSD.vue new file mode 100644 index 0000000..d22736c --- /dev/null +++ b/src/components/Iscs/PSD.vue @@ -0,0 +1,383 @@ + + + + + diff --git a/src/components/draw-app/IscsDrawProperties.vue b/src/components/draw-app/IscsDrawProperties.vue index fd95662..9d25b91 100644 --- a/src/components/draw-app/IscsDrawProperties.vue +++ b/src/components/draw-app/IscsDrawProperties.vue @@ -39,8 +39,14 @@ - + + @@ -56,8 +62,6 @@ import { useDrawStore } from 'src/stores/draw-store'; import CanvasProperty from './properties/CanvasIscsProperty.vue'; import IscsTextProperty from './properties/IscsTextProperty.vue'; import { TextContent } from 'src/graphics/textContent/TextContent'; -import cctvButtonProperty from './properties/CCTV/CCTVButtonProperty.vue'; -import { CCTVButton } from 'src/graphics/CCTV/cctvButton/CCTVButton'; import RectProperty from './properties/RectProperty.vue'; import { Rect } from 'src/graphics/rect/Rect'; import LineTemplate from './templates/LineTemplate.vue'; @@ -65,6 +69,13 @@ import LineProperty from './properties/LineProperty.vue'; import { Line } from 'src/graphics/line/Line'; import CircleProperty from './properties/CircleProperty.vue'; import { Circle } from 'src/graphics/circle/Circle'; +import ButtonProperty from './properties/ButtonProperty.vue'; +import { Button } from 'src/graphics/button/Button'; +import EscalatorProperty from './properties/BAS/EscalatorProperty.vue'; +import { Escalator } from 'src/graphics/BAS/escalator/Escalator'; +import VerticalElevatorProperty from './properties/BAS/VerticalElevatorProperty.vue'; +import { VerticalElevator } from 'src/graphics/BAS/verticalElevator/VerticalElevator'; + import { watch } from 'vue'; const drawStore = useDrawStore(); diff --git a/src/components/draw-app/electronicMapDrawProperties.vue b/src/components/draw-app/electronicMapDrawProperties.vue new file mode 100644 index 0000000..d9e07cb --- /dev/null +++ b/src/components/draw-app/electronicMapDrawProperties.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/components/draw-app/properties/BAS/EscalatorProperty.vue b/src/components/draw-app/properties/BAS/EscalatorProperty.vue new file mode 100644 index 0000000..f9dca89 --- /dev/null +++ b/src/components/draw-app/properties/BAS/EscalatorProperty.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/components/draw-app/properties/BAS/VerticalElevatorProperty.vue b/src/components/draw-app/properties/BAS/VerticalElevatorProperty.vue new file mode 100644 index 0000000..1eb171d --- /dev/null +++ b/src/components/draw-app/properties/BAS/VerticalElevatorProperty.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/components/draw-app/properties/ButtonProperty.vue b/src/components/draw-app/properties/ButtonProperty.vue new file mode 100644 index 0000000..6836a33 --- /dev/null +++ b/src/components/draw-app/properties/ButtonProperty.vue @@ -0,0 +1,136 @@ + + + diff --git a/src/components/draw-app/properties/CCTV/CCTVButtonProperty.vue b/src/components/draw-app/properties/CCTV/CCTVButtonProperty.vue deleted file mode 100644 index 482b71b..0000000 --- a/src/components/draw-app/properties/CCTV/CCTVButtonProperty.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/src/components/draw-app/properties/CanvasElectronicMapProperty.vue b/src/components/draw-app/properties/CanvasElectronicMapProperty.vue new file mode 100644 index 0000000..23483da --- /dev/null +++ b/src/components/draw-app/properties/CanvasElectronicMapProperty.vue @@ -0,0 +1,80 @@ + + + diff --git a/src/components/draw-app/properties/RectProperty.vue b/src/components/draw-app/properties/RectProperty.vue index 7c0833c..9b8f2bd 100644 --- a/src/components/draw-app/properties/RectProperty.vue +++ b/src/components/draw-app/properties/RectProperty.vue @@ -85,7 +85,7 @@ @blur="onUpdate" label="高度" lazy-rules - :rules="[(val) => (val && val > 0) || '宽度必须大于0']" + :rules="[(val) => (val && val > 0) || '高度必须大于0']" /> + + +
一键生成计轴配置
+
+ + +
+ + + +
+
+ + + +
+
+
+ + + diff --git a/src/components/draw-app/properties/electronicMap/PlatformProperty.vue b/src/components/draw-app/properties/electronicMap/PlatformProperty.vue new file mode 100644 index 0000000..6cd12b4 --- /dev/null +++ b/src/components/draw-app/properties/electronicMap/PlatformProperty.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/configs/cctvCamera.ts b/src/configs/cctvCamera.ts new file mode 100644 index 0000000..a69616b --- /dev/null +++ b/src/configs/cctvCamera.ts @@ -0,0 +1,41 @@ +export enum CCTV_Camera_name{ + //VehicleControlRoom,//车控室 + SparePartsCabinet,//备品柜 + PartsArea,//备品区 + StationHall,//站厅 + UpPlatform,//上行站台 + DownPlatform,//下行站台 + //APassageway,//A出入口 + StationHallAExit,//站厅A出口 + AEntrance,//A入口 + APassage,//A口通道 + //BPassageway,//B出入口 + StationHallBExit,//站厅B出口 + BEntrance,//B入口 + BPassage,//B口通道 + //CPassageway,//C出入口 + StationHallCExit,//站厅C出口 + CEntrance,//C入口 + CPassage,//C口通道 + //DPassageway,//D出入口 + StationHallDExit,//站厅D出口 + DEntrance,//D入口 + DPassage,//D口通道 + //StaionHallA,//站厅A端 + ALowerStepSwitch,//A端扶梯下部开关 + ATVM,//A端TVM + AInboundGate,//A端进站闸机 + AExitGate,//A端出站闸机 + AUpperStep,//A端扶梯上部 + ALowerStep,//A端扶梯下部 + AGangway,//A端站厅步梯口 + //StationHallB,//站厅B端 + BLowerStepSwitch,//B端扶梯下部开关 + BTVM,//B端TVM + BInboundGate,//B端进站闸机 + BExitGate,//B端出站闸机 + BUpperStep,//B端扶梯上部 + BLowerStep,//B端扶梯下部 + BGangway,//B端站厅步梯口 + Shop,//商铺 +} diff --git a/src/configs/iscsStyleConfig.ts b/src/configs/iscsStyleConfig.ts index 34b1d67..ea876fe 100644 --- a/src/configs/iscsStyleConfig.ts +++ b/src/configs/iscsStyleConfig.ts @@ -60,7 +60,7 @@ const DA_SHI_ZHI_NENG: I_DA_SHI_ZHI_NENG[] = [ { sunMenuName: '导向标识/广告', displayForm: DisplayForm.draw }, { sunMenuName: '人防门', displayForm: DisplayForm.draw }, { sunMenuName: 'BAS系统', displayForm: DisplayForm.draw }, - { sunMenuName: '模式控制', displayForm: DisplayForm.draw }, + { sunMenuName: '模式控制', displayForm: DisplayForm.component }, { sunMenuName: '时间表', displayForm: DisplayForm.draw }, { sunMenuName: '操作场所切换', displayForm: DisplayForm.draw }, ], @@ -96,7 +96,7 @@ const DA_SHI_ZHI_NENG: I_DA_SHI_ZHI_NENG[] = [ icon: 'svguse:../iscsMenuIcon.svg#icon-CCTV', activeIcon: 'svguse:../iscsMenuIcon.svg#icon-CCTV-active', sunMenu: [ - { sunMenuName: '监控布局图', displayForm: DisplayForm.draw }, + { sunMenuName: '监控布局图', displayForm: DisplayForm.component }, { sunMenuName: 'CCTV设备布局图', displayForm: DisplayForm.draw }, ], }, @@ -132,7 +132,9 @@ const DA_SHI_ZHI_NENG: I_DA_SHI_ZHI_NENG[] = [ menuName: 'PSD', icon: 'svguse:../iscsMenuIcon.svg#icon-PSD', activeIcon: 'svguse:../iscsMenuIcon.svg#icon-PSD-active', - sunMenu: [{ sunMenuName: '屏蔽门系统图', displayForm: DisplayForm.draw }], + sunMenu: [ + { sunMenuName: '屏蔽门系统图', displayForm: DisplayForm.component }, + ], }, { menuName: 'FG', diff --git a/src/drawApp/commonApp.ts b/src/drawApp/commonApp.ts index b894a99..43d3f4c 100644 --- a/src/drawApp/commonApp.ts +++ b/src/drawApp/commonApp.ts @@ -29,6 +29,9 @@ import { LineData } from './graphics/LineInteraction'; import { CircleDraw } from 'src/graphics/circle/CircleDrawAssistant'; import { Circle, CircleTemplate } from 'src/graphics/circle/Circle'; import { CircleData } from './graphics/CircleInteraction'; +import { ButtonDraw } from 'src/graphics/button/ButtonDrawAssistant'; +import { Button, ButtonTemplate } from 'src/graphics/button/Button'; +import { ButtonData } from './graphics/ButtonInteraction'; const UndoOptions: MenuItemOptions = { name: '撤销', @@ -58,6 +61,7 @@ export function initCommonDrawApp(app: IDrawApp) { new RectDraw(app, new RectTemplate(new RectData())); new LineDraw(app, new LineTemplate(new LineData())); new CircleDraw(app, new CircleTemplate(new CircleData())); + new ButtonDraw(app, new ButtonTemplate(new ButtonData())); // 画布右键菜单 app.registerMenu(DefaultCanvasMenu); @@ -88,6 +92,7 @@ interface ICommonStorage { rects: iscsGraphicData.Rect[]; lines: iscsGraphicData.Line[]; circles: iscsGraphicData.Circle[]; + buttons: iscsGraphicData.Button[]; }; } export function loadCommonDrawDatas(storage: ICommonStorage): GraphicData[] { @@ -108,6 +113,9 @@ export function loadCommonDrawDatas(storage: ICommonStorage): GraphicData[] { storage.commonGraphicStorage.circles.forEach((circle) => { datas.push(new CircleData(circle)); }); + storage.commonGraphicStorage.buttons.forEach((button) => { + datas.push(new ButtonData(button)); + }); return datas; } @@ -140,6 +148,11 @@ export function saveCommonDrawDatas(app: IDrawApp, storage: ICommonStorage) { storage.commonGraphicStorage.circles.push( (circleData as CircleData).data ); + } else if (g instanceof Button) { + const buttonData = g.saveData(); + storage.commonGraphicStorage.buttons.push( + (buttonData as ButtonData).data + ); } }); diff --git a/src/drawApp/electronicMapApp.ts b/src/drawApp/electronicMapApp.ts new file mode 100644 index 0000000..6854e02 --- /dev/null +++ b/src/drawApp/electronicMapApp.ts @@ -0,0 +1,279 @@ +import { fromUint8Array, toUint8Array } from 'js-base64'; +import { + calculateDistanceFromPointToLine, + CombinationKey, + ContextMenu, + distance2, + getRectangleCenter, + GraphicData, + IDrawApp, + IGraphicStorage, + KeyListener, + MenuItemOptions, + newDrawApp, +} from 'jl-graphic'; +import { getDraft, saveDraft } from 'src/api/DraftApi'; +import { electronicMapGraphicData } from 'src/protos/electronicMap_graphic_data'; +import { useDrawStore } from 'src/stores/electronicMap-draw-store'; +import { PlatformDraw } from 'src/graphics/electronicMap/platform/PlatformDrawAssistant'; +import { + Platform, + PlatformTemplate, +} from 'src/graphics/electronicMap/platform/Platform'; +import { PlatformData } from './graphics/electronicMap/PlatformInteraction'; +import { errorNotify, successNotify } from 'src/utils/CommonNotify'; +import { common } from 'src/protos/common'; +import { toStorageTransform } from './graphics/GraphicDataBase'; +import { Section } from 'src/graphics/electronicMap/section/Section'; +import { OneClickGenerateDraw, OneClickGenerateTemplate } from 'src/graphics/electronicMap/trainWindow/oneClickDrawAssistant'; + +let electronicMapDrawApp: IDrawApp | null = null; + +export function getElectronicMapDrawApp(): IDrawApp | null { + return electronicMapDrawApp; +} + +export function destroyElectronicMapDrawApp(): void { + if (electronicMapDrawApp) { + electronicMapDrawApp.destroy(); + electronicMapDrawApp = null; + } +} + +const UndoOptions: MenuItemOptions = { + name: '撤销', +}; +const RedoOptions: MenuItemOptions = { + name: '重做', +}; +const SelectAllOptions: MenuItemOptions = { + name: '全选', +}; + +export const DefaultEmCanvasMenu = new ContextMenu({ + name: '绘制-画布菜单', + groups: [ + { + items: [UndoOptions, RedoOptions], + }, + { + items: [SelectAllOptions], + }, + ], +}); + +export function initElectronicMapDrawApp(): IDrawApp { + electronicMapDrawApp = newDrawApp({ + dataLoader: loadElectronicMapDrawDatas, + }); + const app = electronicMapDrawApp; + new OneClickGenerateDraw(app, new OneClickGenerateTemplate()), + new PlatformDraw(app, new PlatformTemplate(new PlatformData())); + + // 画布右键菜单 + app.registerMenu(DefaultEmCanvasMenu); + + app.canvas.on('_rightclick', (e) => { + if (app.drawing) return; + UndoOptions.disabled = !app.opRecord.hasUndo; + RedoOptions.disabled = !app.opRecord.hasRedo; + + UndoOptions.handler = () => { + app.opRecord.undo(); + }; + RedoOptions.handler = () => { + app.opRecord.redo(); + }; + SelectAllOptions.handler = () => { + app.selectAllGraphics(); + }; + DefaultEmCanvasMenu.open(e.global); + }); + app.on('destroy', () => { + generateAxleCountingConfig = + new electronicMapGraphicData.GenerateAxleCountingConfig(); + }); + app.addKeyboardListener( + new KeyListener({ + value: 'KeyS', + global: true, + combinations: [CombinationKey.Ctrl], + onPress: () => { + saveDrawToServer(saveDrawDatas(app)); + }, + }) + ); + // KeyA 用于区段复制--控制生成的区段位置 + const graphicCopyPlugin = app.app.graphicCopyPlugin; + const copySectionListener = new KeyListener({ + value: 'KeyA', + global: true, + onPress: () => { + graphicCopyPlugin.updateMoveLimit('sectionPointLimit'); + }, + }); + graphicCopyPlugin.addGraphicControlers([ + { + controlerList: [copySectionListener], + check: () => { + if ( + graphicCopyPlugin.copys.length == 1 && + graphicCopyPlugin.copys[0].type == Section.Type + ) + return true; + return false; + }, + moveLimitOption: { + moveLimitName: 'sectionPointLimit', + moveLimit: (e) => { + const mousePos = app.toCanvasCoordinates(e.global); + const selectSection = app.selectedGraphics[0] as Section; + let selectSectionLeft = selectSection.localToCanvasPoint( + selectSection.getStartPoint() + ); + let selectSectionRight = selectSection.localToCanvasPoint( + selectSection.getEndPoint() + ); + [selectSectionLeft, selectSectionRight] = + selectSectionLeft.x < selectSectionRight.x + ? [selectSectionLeft, selectSectionRight] + : [selectSectionRight, selectSectionLeft]; + //要移动到目标位的区段 + const sections = app.queryStore.queryByType
(Section.Type); + const minDistanceSection = sections.reduce((prev, cur) => { + const prevDistance = calculateDistanceFromPointToLine( + prev.localToCanvasPoint(prev.getStartPoint()), + prev.localToCanvasPoint(prev.getEndPoint()), + mousePos + ); + const curDistance = calculateDistanceFromPointToLine( + cur.localToCanvasPoint(cur.getStartPoint()), + cur.localToCanvasPoint(cur.getEndPoint()), + mousePos + ); + return prevDistance > curDistance || + (prevDistance == curDistance && + distance2( + prev.localToCanvasPoint(prev.getStartPoint()), + mousePos + ) > + distance2( + cur.localToCanvasPoint(cur.getStartPoint()), + mousePos + )) + ? cur + : prev; + }); + const minDistanceRefSectionsPos = + minDistanceSection.localToCanvasPoint( + getRectangleCenter( + minDistanceSection.lineGraphic.getLocalBounds() + ) + ); + let minDistanceSectionLeft = minDistanceSection.localToCanvasPoint( + minDistanceSection.getStartPoint() + ); + let minDistanceSectionRight = minDistanceSection.localToCanvasPoint( + minDistanceSection.getEndPoint() + ); + [minDistanceSectionLeft, minDistanceSectionRight] = + minDistanceSectionLeft.x < minDistanceSectionRight.x + ? [minDistanceSectionLeft, minDistanceSectionRight] + : [minDistanceSectionRight, minDistanceSectionLeft]; + + if (mousePos.x > minDistanceRefSectionsPos.x) { + graphicCopyPlugin.container.position.x = + minDistanceSectionRight.x - selectSectionLeft.x; + graphicCopyPlugin.container.position.y = + minDistanceSectionRight.y - selectSectionLeft.y; + } else { + graphicCopyPlugin.container.position.x = + minDistanceSectionLeft.x - selectSectionRight.x; + graphicCopyPlugin.container.position.y = + minDistanceSectionLeft.y - selectSectionRight.y; + } + }, + }, + }, + ]); + return electronicMapDrawApp; +} + +export async function loadElectronicMapDrawDatas(): Promise { + const drawStore = useDrawStore(); + const id = drawStore.draftId; + if (!id) { + throw new Error('获取数据异常:为获取到草稿地图ID'); + } + const base64 = (await getDraft(id)).data; + if (base64) { + const storage = + electronicMapGraphicData.ElectronicMapGraphicStorage.deserialize( + toUint8Array(base64) + ); + const datas: GraphicData[] = []; + generateAxleCountingConfig = storage.generateAxleCountingConfig; + storage.Platforms.forEach((platform) => { + datas.push(new PlatformData(platform)); + }); + console.log(storage, 'storage'); + return Promise.resolve({ + canvasProperty: storage.canvas, + datas: datas, + }); + } else { + return Promise.resolve({ + datas: [], + }); + } +} + +export function saveDrawDatas(app: IDrawApp) { + const storage = new electronicMapGraphicData.ElectronicMapGraphicStorage(); + const canvasData = app.canvas.saveData(); + storage.canvas = new common.Canvas({ + width: canvasData.width, + height: canvasData.height, + backgroundColor: canvasData.backgroundColor, + viewportTransform: toStorageTransform(canvasData.viewportTransform), + }); + const graphics = app.queryStore.getAllGraphics(); + graphics.forEach((g) => { + if (g instanceof Platform) { + const platformData = g.saveData(); + storage.Platforms.push((platformData as PlatformData).data); + } + }); + storage.generateAxleCountingConfig = generateAxleCountingConfig; + const base64 = fromUint8Array(storage.serialize()); + console.log('保存数据', storage); + return base64; +} + +export function saveDrawToServer(base64: string) { + const drawStore = useDrawStore(); + const id = drawStore.draftId; + if (!id) { + return; + } + saveDraft({ id, data: base64 }) + .then(() => { + successNotify('保存数据成功!'); + }) + .catch((err) => { + errorNotify(err.message, err); + }); +} + +//一键生成计轴配置 +let generateAxleCountingConfig = + new electronicMapGraphicData.GenerateAxleCountingConfig(); +export function loadGenerateAxleCountingConfig() { + return generateAxleCountingConfig; +} + +export function setGenerateAxleCountingConfig( + newScreenDoorConfig: electronicMapGraphicData.GenerateAxleCountingConfig +) { + generateAxleCountingConfig = newScreenDoorConfig; +} diff --git a/src/drawApp/graphics/BAS/EscalatorInteraction.ts b/src/drawApp/graphics/BAS/EscalatorInteraction.ts new file mode 100644 index 0000000..362b5ba --- /dev/null +++ b/src/drawApp/graphics/BAS/EscalatorInteraction.ts @@ -0,0 +1,41 @@ +import * as pb_1 from 'google-protobuf'; +import { + IescalatorData, + Escalator, +} from 'src/graphics/BAS/escalator/Escalator'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class EscalatorData extends GraphicDataBase implements IescalatorData { + constructor(data?: iscsGraphicData.Escalator) { + let escalator; + if (data) { + escalator = data; + } else { + escalator = new iscsGraphicData.Escalator({ + common: GraphicDataBase.defaultCommonInfo(Escalator.Type), + }); + } + super(escalator); + } + + public get data(): iscsGraphicData.Escalator { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): EscalatorData { + return new EscalatorData(this.data.cloneMessage()); + } + copyFrom(data: EscalatorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: EscalatorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/BAS/VerticalElevatorInteraction.ts b/src/drawApp/graphics/BAS/VerticalElevatorInteraction.ts new file mode 100644 index 0000000..2f63192 --- /dev/null +++ b/src/drawApp/graphics/BAS/VerticalElevatorInteraction.ts @@ -0,0 +1,41 @@ +import * as pb_1 from 'google-protobuf'; +import { + IverticalElevatorData, + VerticalElevator, +} from 'src/graphics/BAS/verticalElevator/VerticalElevator'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class VerticalElevatorData extends GraphicDataBase implements IverticalElevatorData { + constructor(data?: iscsGraphicData.VerticalElevator) { + let verticalElevator; + if (data) { + verticalElevator = data; + } else { + verticalElevator = new iscsGraphicData.VerticalElevator({ + common: GraphicDataBase.defaultCommonInfo(VerticalElevator.Type), + }); + } + super(verticalElevator); + } + + public get data(): iscsGraphicData.VerticalElevator { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): VerticalElevatorData { + return new VerticalElevatorData(this.data.cloneMessage()); + } + copyFrom(data: VerticalElevatorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: VerticalElevatorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/ButtonInteraction.ts b/src/drawApp/graphics/ButtonInteraction.ts new file mode 100644 index 0000000..f96fe8c --- /dev/null +++ b/src/drawApp/graphics/ButtonInteraction.ts @@ -0,0 +1,92 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from './GraphicDataBase'; +import { Button, IButtonData } from 'src/graphics/button/Button'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class ButtonData extends GraphicDataBase implements IButtonData { + constructor(data?: iscsGraphicData.Button) { + let button; + if (data) { + button = data; + } else { + button = new iscsGraphicData.Button({ + common: GraphicDataBase.defaultCommonInfo(Button.Type), + }); + } + super(button); + } + + public get data(): iscsGraphicData.Button { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get codeColor(): string { + return this.data.codeColor; + } + set codeColor(v: string) { + this.data.codeColor = v; + } + get codeFontSize(): number { + return this.data.codeFontSize; + } + set codeFontSize(v: number) { + this.data.codeFontSize = v; + } + get belongSubMenu(): string { + return this.data.codeColor; + } + set belongSubMenu(v: string) { + this.data.codeColor = v; + } + get buttonType(): iscsGraphicData.Button.ButtonType { + return this.data.buttonType; + } + set buttonType(v: iscsGraphicData.Button.ButtonType) { + this.data.buttonType = v; + } + get width(): number { + return this.data.width; + } + set width(v: number) { + this.data.width = v; + } + get height(): number { + return this.data.height; + } + set height(v: number) { + this.data.height = v; + } + get radius(): number { + return this.data.radius; + } + set radius(v: number) { + this.data.radius = v; + } + get fillColor(): string { + return this.data.fillColor; + } + set fillColor(v: string) { + this.data.fillColor = v; + } + get alpha(): number { + return this.data.alpha; + } + set alpha(v: number) { + this.data.alpha = v; + } + clone(): ButtonData { + return new ButtonData(this.data.cloneMessage()); + } + copyFrom(data: ButtonData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ButtonData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/CCTV/CCTVButtonInteraction.ts b/src/drawApp/graphics/CCTV/CCTVButtonInteraction.ts deleted file mode 100644 index 0647fd8..0000000 --- a/src/drawApp/graphics/CCTV/CCTVButtonInteraction.ts +++ /dev/null @@ -1,47 +0,0 @@ -import * as pb_1 from 'google-protobuf'; -import { GraphicDataBase } from '../GraphicDataBase'; -import { - CCTVButton, - ICCTVButtonData, -} from 'src/graphics/CCTV/cctvButton/CCTVButton'; -import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; - -export class CCTVButtonData extends GraphicDataBase implements ICCTVButtonData { - constructor(data?: iscsGraphicData.CCTVButton) { - let cctvButton; - if (data) { - cctvButton = data; - } else { - cctvButton = new iscsGraphicData.CCTVButton({ - common: GraphicDataBase.defaultCommonInfo(CCTVButton.Type), - }); - } - super(cctvButton); - } - - public get data(): iscsGraphicData.CCTVButton { - return this.getData(); - } - - get code(): string { - return this.data.code; - } - set code(v: string) { - this.data.code = v; - } - get buttonType(): iscsGraphicData.CCTVButton.ButtonType { - return this.data.buttonType; - } - set buttonType(v: iscsGraphicData.CCTVButton.ButtonType) { - this.data.buttonType = v; - } - clone(): CCTVButtonData { - return new CCTVButtonData(this.data.cloneMessage()); - } - copyFrom(data: CCTVButtonData): void { - pb_1.Message.copyInto(data.data, this.data); - } - eq(other: CCTVButtonData): boolean { - return pb_1.Message.equals(this.data, other.data); - } -} diff --git a/src/drawApp/graphics/FAS/AcsInteraction.ts b/src/drawApp/graphics/FAS/AcsInteraction.ts new file mode 100644 index 0000000..2faeca8 --- /dev/null +++ b/src/drawApp/graphics/FAS/AcsInteraction.ts @@ -0,0 +1,38 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { Acs, IAcsData } from 'src/graphics/FAS/acs/Acs'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class AcsData extends GraphicDataBase implements IAcsData { + constructor(data?: iscsGraphicData.Acs) { + let acs; + if (data) { + acs = data; + } else { + acs = new iscsGraphicData.Acs({ + common: GraphicDataBase.defaultCommonInfo(Acs.Type), + }); + } + super(acs); + } + + public get data(): iscsGraphicData.Acs { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): AcsData { + return new AcsData(this.data.cloneMessage()); + } + copyFrom(data: AcsData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: AcsData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/AfcInteraction.ts b/src/drawApp/graphics/FAS/AfcInteraction.ts new file mode 100644 index 0000000..f2e350e --- /dev/null +++ b/src/drawApp/graphics/FAS/AfcInteraction.ts @@ -0,0 +1,38 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { Afc, IAfcData } from 'src/graphics/FAS/afc/Afc'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class AfcData extends GraphicDataBase implements IAfcData { + constructor(data?: iscsGraphicData.Afc) { + let afc; + if (data) { + afc = data; + } else { + afc = new iscsGraphicData.Afc({ + common: GraphicDataBase.defaultCommonInfo(Afc.Type), + }); + } + super(afc); + } + + public get data(): iscsGraphicData.Afc { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): AfcData { + return new AfcData(this.data.cloneMessage()); + } + copyFrom(data: AfcData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: AfcData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/ElectricButterflyValveInteraction.ts b/src/drawApp/graphics/FAS/ElectricButterflyValveInteraction.ts new file mode 100644 index 0000000..a205d86 --- /dev/null +++ b/src/drawApp/graphics/FAS/ElectricButterflyValveInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + ElectricButterflyValve, + IElectricButterflyValveData, +} from 'src/graphics/FAS/electricButterflyValve/ElectricButterflyValve'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class ElectricButterflyValveData + extends GraphicDataBase + implements IElectricButterflyValveData +{ + constructor(data?: iscsGraphicData.ElectricButterflyValve) { + let electricButterflyValve; + if (data) { + electricButterflyValve = data; + } else { + electricButterflyValve = new iscsGraphicData.ElectricButterflyValve({ + common: GraphicDataBase.defaultCommonInfo(ElectricButterflyValve.Type), + }); + } + super(electricButterflyValve); + } + + public get data(): iscsGraphicData.ElectricButterflyValve { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): ElectricButterflyValveData { + return new ElectricButterflyValveData(this.data.cloneMessage()); + } + copyFrom(data: ElectricButterflyValveData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ElectricButterflyValveData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/ElectricFireExtinguishingValveInteraction.ts b/src/drawApp/graphics/FAS/ElectricFireExtinguishingValveInteraction.ts new file mode 100644 index 0000000..a3b275d --- /dev/null +++ b/src/drawApp/graphics/FAS/ElectricFireExtinguishingValveInteraction.ts @@ -0,0 +1,47 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + ElectricFireExtinguishingValve, + IElectricFireExtinguishingValveData, +} from 'src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class ElectricFireExtinguishingValveData + extends GraphicDataBase + implements IElectricFireExtinguishingValveData +{ + constructor(data?: iscsGraphicData.ElectricFireExtinguishingValve) { + let electricFireExtinguishingValve; + if (data) { + electricFireExtinguishingValve = data; + } else { + electricFireExtinguishingValve = + new iscsGraphicData.ElectricFireExtinguishingValve({ + common: GraphicDataBase.defaultCommonInfo( + ElectricFireExtinguishingValve.Type + ), + }); + } + super(electricFireExtinguishingValve); + } + + public get data(): iscsGraphicData.ElectricFireExtinguishingValve { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): ElectricFireExtinguishingValveData { + return new ElectricFireExtinguishingValveData(this.data.cloneMessage()); + } + copyFrom(data: ElectricFireExtinguishingValveData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ElectricFireExtinguishingValveData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/ElevatorLiftToTopInteraction.ts b/src/drawApp/graphics/FAS/ElevatorLiftToTopInteraction.ts new file mode 100644 index 0000000..ef9eaf7 --- /dev/null +++ b/src/drawApp/graphics/FAS/ElevatorLiftToTopInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + ElevatorLiftToTop, + IElevatorLiftToTopData, +} from 'src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class ElevatorLiftToTopData + extends GraphicDataBase + implements IElevatorLiftToTopData +{ + constructor(data?: iscsGraphicData.ElevatorLiftToTop) { + let elevatorLiftToTop; + if (data) { + elevatorLiftToTop = data; + } else { + elevatorLiftToTop = new iscsGraphicData.ElevatorLiftToTop({ + common: GraphicDataBase.defaultCommonInfo(ElevatorLiftToTop.Type), + }); + } + super(elevatorLiftToTop); + } + + public get data(): iscsGraphicData.ElevatorLiftToTop { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): ElevatorLiftToTopData { + return new ElevatorLiftToTopData(this.data.cloneMessage()); + } + copyFrom(data: ElevatorLiftToTopData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ElevatorLiftToTopData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/EmergencyLightingInteraction.ts b/src/drawApp/graphics/FAS/EmergencyLightingInteraction.ts new file mode 100644 index 0000000..1ff479b --- /dev/null +++ b/src/drawApp/graphics/FAS/EmergencyLightingInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + EmergencyLighting, + IEmergencyLightingData, +} from 'src/graphics/FAS/emergencyLighting/EmergencyLighting'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class EmergencyLightingData + extends GraphicDataBase + implements IEmergencyLightingData +{ + constructor(data?: iscsGraphicData.EmergencyLighting) { + let emergencyLighting; + if (data) { + emergencyLighting = data; + } else { + emergencyLighting = new iscsGraphicData.EmergencyLighting({ + common: GraphicDataBase.defaultCommonInfo(EmergencyLighting.Type), + }); + } + super(emergencyLighting); + } + + public get data(): iscsGraphicData.EmergencyLighting { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): EmergencyLightingData { + return new EmergencyLightingData(this.data.cloneMessage()); + } + copyFrom(data: EmergencyLightingData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: EmergencyLightingData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FasAlarmInteraction.ts b/src/drawApp/graphics/FAS/FasAlarmInteraction.ts new file mode 100644 index 0000000..747214b --- /dev/null +++ b/src/drawApp/graphics/FAS/FasAlarmInteraction.ts @@ -0,0 +1,38 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { FasAlarm, IFasAlarmData } from 'src/graphics/FAS/fasAlarm/FasAlarm'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FasAlarmData extends GraphicDataBase implements IFasAlarmData { + constructor(data?: iscsGraphicData.FasAlarm) { + let fasAlarm; + if (data) { + fasAlarm = data; + } else { + fasAlarm = new iscsGraphicData.FasAlarm({ + common: GraphicDataBase.defaultCommonInfo(FasAlarm.Type), + }); + } + super(fasAlarm); + } + + public get data(): iscsGraphicData.FasAlarm { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FasAlarmData { + return new FasAlarmData(this.data.cloneMessage()); + } + copyFrom(data: FasAlarmData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FasAlarmData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FasFailureControlHostInteraction.ts b/src/drawApp/graphics/FAS/FasFailureControlHostInteraction.ts new file mode 100644 index 0000000..346a00d --- /dev/null +++ b/src/drawApp/graphics/FAS/FasFailureControlHostInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + FasFailureControlHost, + IFasFailureControlHostData, +} from 'src/graphics/FAS/fireFailureControlHost/FasFailureControlHost'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FasFailureControlHostData + extends GraphicDataBase + implements IFasFailureControlHostData +{ + constructor(data?: iscsGraphicData.FasFailureControlHost) { + let fasFailureControlHost; + if (data) { + fasFailureControlHost = data; + } else { + fasFailureControlHost = new iscsGraphicData.FasFailureControlHost({ + common: GraphicDataBase.defaultCommonInfo(FasFailureControlHost.Type), + }); + } + super(fasFailureControlHost); + } + + public get data(): iscsGraphicData.FasFailureControlHost { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FasFailureControlHostData { + return new FasFailureControlHostData(this.data.cloneMessage()); + } + copyFrom(data: FasFailureControlHostData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FasFailureControlHostData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FaultValveInteraction.ts b/src/drawApp/graphics/FAS/FaultValveInteraction.ts new file mode 100644 index 0000000..3bf8179 --- /dev/null +++ b/src/drawApp/graphics/FAS/FaultValveInteraction.ts @@ -0,0 +1,41 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + FaultValve, + IFaultValveData, +} from 'src/graphics/FAS/faultValve/FaultValve'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FaultValveData extends GraphicDataBase implements IFaultValveData { + constructor(data?: iscsGraphicData.FaultValve) { + let faultValve; + if (data) { + faultValve = data; + } else { + faultValve = new iscsGraphicData.FaultValve({ + common: GraphicDataBase.defaultCommonInfo(FaultValve.Type), + }); + } + super(faultValve); + } + + public get data(): iscsGraphicData.FaultValve { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FaultValveData { + return new FaultValveData(this.data.cloneMessage()); + } + copyFrom(data: FaultValveData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FaultValveData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FireIntercommunicationSignalInteraction.ts b/src/drawApp/graphics/FAS/FireIntercommunicationSignalInteraction.ts new file mode 100644 index 0000000..2b1f270 --- /dev/null +++ b/src/drawApp/graphics/FAS/FireIntercommunicationSignalInteraction.ts @@ -0,0 +1,47 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + FireIntercommunicationSignal, + IFireIntercommunicationSignalData, +} from 'src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FireIntercommunicationSignalData + extends GraphicDataBase + implements IFireIntercommunicationSignalData +{ + constructor(data?: iscsGraphicData.FireIntercommunicationSignal) { + let fireIntercommunicationSignal; + if (data) { + fireIntercommunicationSignal = data; + } else { + fireIntercommunicationSignal = + new iscsGraphicData.FireIntercommunicationSignal({ + common: GraphicDataBase.defaultCommonInfo( + FireIntercommunicationSignal.Type + ), + }); + } + super(fireIntercommunicationSignal); + } + + public get data(): iscsGraphicData.FireIntercommunicationSignal { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FireIntercommunicationSignalData { + return new FireIntercommunicationSignalData(this.data.cloneMessage()); + } + copyFrom(data: FireIntercommunicationSignalData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FireIntercommunicationSignalData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FirePumpInteraction.ts b/src/drawApp/graphics/FAS/FirePumpInteraction.ts new file mode 100644 index 0000000..ebee646 --- /dev/null +++ b/src/drawApp/graphics/FAS/FirePumpInteraction.ts @@ -0,0 +1,38 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { FirePump, IFirePumpData } from 'src/graphics/FAS/firePump/FirePump'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FirePumpData extends GraphicDataBase implements IFirePumpData { + constructor(data?: iscsGraphicData.FirePump) { + let firePump; + if (data) { + firePump = data; + } else { + firePump = new iscsGraphicData.FirePump({ + common: GraphicDataBase.defaultCommonInfo(FirePump.Type), + }); + } + super(firePump); + } + + public get data(): iscsGraphicData.FirePump { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FirePumpData { + return new FirePumpData(this.data.cloneMessage()); + } + copyFrom(data: FirePumpData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FirePumpData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FireShutterInteraction.ts b/src/drawApp/graphics/FAS/FireShutterInteraction.ts new file mode 100644 index 0000000..5f4d172 --- /dev/null +++ b/src/drawApp/graphics/FAS/FireShutterInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + FireShutter, + IFireShutterData, +} from 'src/graphics/FAS/fireShutter/FireShutter'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FireShutterData + extends GraphicDataBase + implements IFireShutterData +{ + constructor(data?: iscsGraphicData.FireShutter) { + let fireShutter; + if (data) { + fireShutter = data; + } else { + fireShutter = new iscsGraphicData.FireShutter({ + common: GraphicDataBase.defaultCommonInfo(FireShutter.Type), + }); + } + super(fireShutter); + } + + public get data(): iscsGraphicData.FireShutter { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FireShutterData { + return new FireShutterData(this.data.cloneMessage()); + } + copyFrom(data: FireShutterData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FireShutterData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/FireValveInteraction.ts b/src/drawApp/graphics/FAS/FireValveInteraction.ts new file mode 100644 index 0000000..ece3c2f --- /dev/null +++ b/src/drawApp/graphics/FAS/FireValveInteraction.ts @@ -0,0 +1,41 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + FireValve, + IFireValveData, +} from 'src/graphics/FAS/fireValve/FireValve'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class FireValveData extends GraphicDataBase implements IFireValveData { + constructor(data?: iscsGraphicData.FireValve) { + let fireValve; + if (data) { + fireValve = data; + } else { + fireValve = new iscsGraphicData.FireValve({ + common: GraphicDataBase.defaultCommonInfo(FireValve.Type), + }); + } + super(fireValve); + } + + public get data(): iscsGraphicData.FireValve { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): FireValveData { + return new FireValveData(this.data.cloneMessage()); + } + copyFrom(data: FireValveData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: FireValveData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/ManualAlarmButtonInteraction.ts b/src/drawApp/graphics/FAS/ManualAlarmButtonInteraction.ts new file mode 100644 index 0000000..3aeed14 --- /dev/null +++ b/src/drawApp/graphics/FAS/ManualAlarmButtonInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + ManualAlarmButton, + IManualAlarmButtonData, +} from 'src/graphics/FAS/manualAlarmButton/ManualAlarmButton'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class ManualAlarmButtonData + extends GraphicDataBase + implements IManualAlarmButtonData +{ + constructor(data?: iscsGraphicData.ManualAlarmButton) { + let manualAlarmButton; + if (data) { + manualAlarmButton = data; + } else { + manualAlarmButton = new iscsGraphicData.ManualAlarmButton({ + common: GraphicDataBase.defaultCommonInfo(ManualAlarmButton.Type), + }); + } + super(manualAlarmButton); + } + + public get data(): iscsGraphicData.ManualAlarmButton { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): ManualAlarmButtonData { + return new ManualAlarmButtonData(this.data.cloneMessage()); + } + copyFrom(data: ManualAlarmButtonData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ManualAlarmButtonData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/NonFirePowerSupplyInteraction.ts b/src/drawApp/graphics/FAS/NonFirePowerSupplyInteraction.ts new file mode 100644 index 0000000..873725e --- /dev/null +++ b/src/drawApp/graphics/FAS/NonFirePowerSupplyInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + NonFirePowerSupply, + INonFirePowerSupplyData, +} from 'src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class NonFirePowerSupplyData + extends GraphicDataBase + implements INonFirePowerSupplyData +{ + constructor(data?: iscsGraphicData.NonFirePowerSupply) { + let nonFirePowerSupply; + if (data) { + nonFirePowerSupply = data; + } else { + nonFirePowerSupply = new iscsGraphicData.NonFirePowerSupply({ + common: GraphicDataBase.defaultCommonInfo(NonFirePowerSupply.Type), + }); + } + super(nonFirePowerSupply); + } + + public get data(): iscsGraphicData.NonFirePowerSupply { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): NonFirePowerSupplyData { + return new NonFirePowerSupplyData(this.data.cloneMessage()); + } + copyFrom(data: NonFirePowerSupplyData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: NonFirePowerSupplyData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/PressureSwitchInteraction.ts b/src/drawApp/graphics/FAS/PressureSwitchInteraction.ts new file mode 100644 index 0000000..02b8f19 --- /dev/null +++ b/src/drawApp/graphics/FAS/PressureSwitchInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + PressureSwitch, + IPressureSwitchData, +} from 'src/graphics/FAS/pressureSwitch/PressureSwitch'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class PressureSwitchData + extends GraphicDataBase + implements IPressureSwitchData +{ + constructor(data?: iscsGraphicData.PressureSwitch) { + let pressureSwitch; + if (data) { + pressureSwitch = data; + } else { + pressureSwitch = new iscsGraphicData.PressureSwitch({ + common: GraphicDataBase.defaultCommonInfo(PressureSwitch.Type), + }); + } + super(pressureSwitch); + } + + public get data(): iscsGraphicData.PressureSwitch { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): PressureSwitchData { + return new PressureSwitchData(this.data.cloneMessage()); + } + copyFrom(data: PressureSwitchData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: PressureSwitchData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/SignalButterflyValveInteraction.ts b/src/drawApp/graphics/FAS/SignalButterflyValveInteraction.ts new file mode 100644 index 0000000..9e2122f --- /dev/null +++ b/src/drawApp/graphics/FAS/SignalButterflyValveInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + SignalButterflyValve, + ISignalButterflyValveData, +} from 'src/graphics/FAS/signalButterflyValve/SignalButterflyValve'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class SignalButterflyValveData + extends GraphicDataBase + implements ISignalButterflyValveData +{ + constructor(data?: iscsGraphicData.SignalButterflyValve) { + let signalButterflyValve; + if (data) { + signalButterflyValve = data; + } else { + signalButterflyValve = new iscsGraphicData.SignalButterflyValve({ + common: GraphicDataBase.defaultCommonInfo(SignalButterflyValve.Type), + }); + } + super(signalButterflyValve); + } + + public get data(): iscsGraphicData.SignalButterflyValve { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): SignalButterflyValveData { + return new SignalButterflyValveData(this.data.cloneMessage()); + } + copyFrom(data: SignalButterflyValveData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: SignalButterflyValveData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/SmokeDetectorInteraction.ts b/src/drawApp/graphics/FAS/SmokeDetectorInteraction.ts new file mode 100644 index 0000000..60021b1 --- /dev/null +++ b/src/drawApp/graphics/FAS/SmokeDetectorInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + SmokeDetector, + ISmokeDetectorData, +} from 'src/graphics/FAS/smokeDetector/SmokeDetector'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class SmokeDetectorData + extends GraphicDataBase + implements ISmokeDetectorData +{ + constructor(data?: iscsGraphicData.SmokeDetector) { + let smokeDetector; + if (data) { + smokeDetector = data; + } else { + smokeDetector = new iscsGraphicData.SmokeDetector({ + common: GraphicDataBase.defaultCommonInfo(SmokeDetector.Type), + }); + } + super(smokeDetector); + } + + public get data(): iscsGraphicData.SmokeDetector { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): SmokeDetectorData { + return new SmokeDetectorData(this.data.cloneMessage()); + } + copyFrom(data: SmokeDetectorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: SmokeDetectorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/SprayPumpInteraction.ts b/src/drawApp/graphics/FAS/SprayPumpInteraction.ts new file mode 100644 index 0000000..1790522 --- /dev/null +++ b/src/drawApp/graphics/FAS/SprayPumpInteraction.ts @@ -0,0 +1,41 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + SprayPump, + ISprayPumpData, +} from 'src/graphics/FAS/sprayPump/SprayPump'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class SprayPumpData extends GraphicDataBase implements ISprayPumpData { + constructor(data?: iscsGraphicData.SprayPump) { + let sprayPump; + if (data) { + sprayPump = data; + } else { + sprayPump = new iscsGraphicData.SprayPump({ + common: GraphicDataBase.defaultCommonInfo(SprayPump.Type), + }); + } + super(sprayPump); + } + + public get data(): iscsGraphicData.SprayPump { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): SprayPumpData { + return new SprayPumpData(this.data.cloneMessage()); + } + copyFrom(data: SprayPumpData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: SprayPumpData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/StabilizedPressurePumpInteraction.ts b/src/drawApp/graphics/FAS/StabilizedPressurePumpInteraction.ts new file mode 100644 index 0000000..1b3ee53 --- /dev/null +++ b/src/drawApp/graphics/FAS/StabilizedPressurePumpInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import { + StabilizedPressurePump, + IStabilizedPressurePumpData, +} from 'src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump'; + +export class StabilizedPressurePumpData + extends GraphicDataBase + implements IStabilizedPressurePumpData +{ + constructor(data?: iscsGraphicData.StabilizedPressurePump) { + let stabilizedPressurePump; + if (data) { + stabilizedPressurePump = data; + } else { + stabilizedPressurePump = new iscsGraphicData.StabilizedPressurePump({ + common: GraphicDataBase.defaultCommonInfo(StabilizedPressurePump.Type), + }); + } + super(stabilizedPressurePump); + } + + public get data(): iscsGraphicData.StabilizedPressurePump { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): StabilizedPressurePumpData { + return new StabilizedPressurePumpData(this.data.cloneMessage()); + } + copyFrom(data: StabilizedPressurePumpData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: StabilizedPressurePumpData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/StartPumpButtonInteraction.ts b/src/drawApp/graphics/FAS/StartPumpButtonInteraction.ts new file mode 100644 index 0000000..90220aa --- /dev/null +++ b/src/drawApp/graphics/FAS/StartPumpButtonInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + StartPumpButton, + IStartPumpButtonData, +} from 'src/graphics/FAS/startPumpButton/StartPumpButton'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class StartPumpButtonData + extends GraphicDataBase + implements IStartPumpButtonData +{ + constructor(data?: iscsGraphicData.StartPumpButton) { + let startPumpButton; + if (data) { + startPumpButton = data; + } else { + startPumpButton = new iscsGraphicData.StartPumpButton({ + common: GraphicDataBase.defaultCommonInfo(StartPumpButton.Type), + }); + } + super(startPumpButton); + } + + public get data(): iscsGraphicData.StartPumpButton { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): StartPumpButtonData { + return new StartPumpButtonData(this.data.cloneMessage()); + } + copyFrom(data: StartPumpButtonData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: StartPumpButtonData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/TemperatureCableInteraction.ts b/src/drawApp/graphics/FAS/TemperatureCableInteraction.ts new file mode 100644 index 0000000..14796d4 --- /dev/null +++ b/src/drawApp/graphics/FAS/TemperatureCableInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + TemperatureCable, + ITemperatureCableData, +} from 'src/graphics/FAS/temperatureCable/TemperatureCable'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class TemperatureCableData + extends GraphicDataBase + implements ITemperatureCableData +{ + constructor(data?: iscsGraphicData.TemperatureCable) { + let temperatureCable; + if (data) { + temperatureCable = data; + } else { + temperatureCable = new iscsGraphicData.TemperatureCable({ + common: GraphicDataBase.defaultCommonInfo(TemperatureCable.Type), + }); + } + super(temperatureCable); + } + + public get data(): iscsGraphicData.TemperatureCable { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): TemperatureCableData { + return new TemperatureCableData(this.data.cloneMessage()); + } + copyFrom(data: TemperatureCableData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: TemperatureCableData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/TemperatureDetectorInteraction.ts b/src/drawApp/graphics/FAS/TemperatureDetectorInteraction.ts new file mode 100644 index 0000000..a82a359 --- /dev/null +++ b/src/drawApp/graphics/FAS/TemperatureDetectorInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + TemperatureDetector, + ITemperatureDetectorData, +} from 'src/graphics/FAS/temperatureDetector/TemperatureDetector'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class TemperatureDetectorData + extends GraphicDataBase + implements ITemperatureDetectorData +{ + constructor(data?: iscsGraphicData.TemperatureDetector) { + let cctvButton; + if (data) { + cctvButton = data; + } else { + cctvButton = new iscsGraphicData.TemperatureDetector({ + common: GraphicDataBase.defaultCommonInfo(TemperatureDetector.Type), + }); + } + super(cctvButton); + } + + public get data(): iscsGraphicData.TemperatureDetector { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): TemperatureDetectorData { + return new TemperatureDetectorData(this.data.cloneMessage()); + } + copyFrom(data: TemperatureDetectorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: TemperatureDetectorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/FAS/WaterFlowIndicatorInteraction.ts b/src/drawApp/graphics/FAS/WaterFlowIndicatorInteraction.ts new file mode 100644 index 0000000..871a00e --- /dev/null +++ b/src/drawApp/graphics/FAS/WaterFlowIndicatorInteraction.ts @@ -0,0 +1,44 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase } from '../GraphicDataBase'; +import { + WaterFlowIndicator, + IWaterFlowIndicatorData, +} from 'src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +export class WaterFlowIndicatorData + extends GraphicDataBase + implements IWaterFlowIndicatorData +{ + constructor(data?: iscsGraphicData.WaterFlowIndicator) { + let waterFlowIndicator; + if (data) { + waterFlowIndicator = data; + } else { + waterFlowIndicator = new iscsGraphicData.WaterFlowIndicator({ + common: GraphicDataBase.defaultCommonInfo(WaterFlowIndicator.Type), + }); + } + super(waterFlowIndicator); + } + + public get data(): iscsGraphicData.WaterFlowIndicator { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + clone(): WaterFlowIndicatorData { + return new WaterFlowIndicatorData(this.data.cloneMessage()); + } + copyFrom(data: WaterFlowIndicatorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: WaterFlowIndicatorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/electronicMap/AxleCountingInteraction.ts b/src/drawApp/graphics/electronicMap/AxleCountingInteraction.ts new file mode 100644 index 0000000..e107452 --- /dev/null +++ b/src/drawApp/graphics/electronicMap/AxleCountingInteraction.ts @@ -0,0 +1,71 @@ +import * as pb_1 from 'google-protobuf'; +import { + AxleCounting, + IAxleCountingData, +} from 'src/graphics/axleCounting/AxleCounting'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { GraphicDataBase } from './GraphicDataBase'; +import { KilometerSystem } from 'src/graphics/signal/Signal'; + +export class AxleCountingData + extends GraphicDataBase + implements IAxleCountingData +{ + constructor(data?: graphicData.AxleCounting) { + let axleCounting; + if (!data) { + axleCounting = new graphicData.AxleCounting({ + common: GraphicDataBase.defaultCommonInfo(AxleCounting.Type), + }); + } else { + axleCounting = data; + } + super(axleCounting); + } + + public get data(): graphicData.AxleCounting { + return this.getData(); + } + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get kilometerSystem(): KilometerSystem { + if (!this.data.kilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(); + } + return this.data.kilometerSystem; + } + set kilometerSystem(v: KilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(v); + } + get axleCountingRef(): graphicData.RelatedRef[] { + return this.data.axleCountingRef; + } + set axleCountingRef(points: graphicData.RelatedRef[]) { + this.data.axleCountingRef = points; + } + get type(): graphicData.AxleCounting.TypeDetectionPoint { + return this.data.type; + } + set type(type: graphicData.AxleCounting.TypeDetectionPoint) { + this.data.type = type; + } + get centralizedStations(): number[] { + return this.data.centralizedStations; + } + set centralizedStations(v: number[]) { + this.data.centralizedStations = v; + } + clone(): AxleCountingData { + return new AxleCountingData(this.data.cloneMessage()); + } + copyFrom(data: AxleCountingData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: AxleCountingData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} diff --git a/src/drawApp/graphics/electronicMap/PlatformInteraction.ts b/src/drawApp/graphics/electronicMap/PlatformInteraction.ts new file mode 100644 index 0000000..7cc2155 --- /dev/null +++ b/src/drawApp/graphics/electronicMap/PlatformInteraction.ts @@ -0,0 +1,148 @@ +import * as pb_1 from 'google-protobuf'; +import { + IPlatformData, + Platform, +} from 'src/graphics/electronicMap/platform/Platform'; +import { electronicMapGraphicData } from 'src/protos/electronicMap_graphic_data'; +import { GraphicDataBase } from '../GraphicDataBase'; + +import { IGraphicScene, GraphicInteractionPlugin, JlGraphic } from 'jl-graphic'; + +export class PlatformData extends GraphicDataBase implements IPlatformData { + constructor(data?: electronicMapGraphicData.Platform) { + let platform; + if (!data) { + platform = new electronicMapGraphicData.Platform({ + common: GraphicDataBase.defaultCommonInfo(Platform.Type), + }); + } else { + platform = data; + } + super(platform); + } + + public get data(): electronicMapGraphicData.Platform { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get refStation(): number { + return this.data.refStationId; + } + set refStation(v: number) { + this.data.refStationId = v; + } + get refSection(): number { + return this.data.refSectionId; + } + set refSection(v: number) { + this.data.refSectionId = v; + } + get refEsbRelayCode(): string { + return this.data.refEsbRelayCode; + } + set refEsbRelayCode(v: string) { + this.data.refEsbRelayCode = v; + } + get type(): electronicMapGraphicData.Platform.TypeOfPlatform { + return this.data.type; + } + set type(v: electronicMapGraphicData.Platform.TypeOfPlatform) { + this.data.type = v; + } + clone(): PlatformData { + return new PlatformData(this.data.cloneMessage()); + } + copyFrom(data: PlatformData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: PlatformData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +/* export class PlatformState extends GraphicStateBase implements IPlatformState { + constructor(proto?: state.PlatformState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.PlatformState(); + } + super(states, Platform.Type); + } + get id(): number { + return this.states.id; + } + get code(): string { + return this.states.id + ''; + } + get states(): state.PlatformState { + return this.getState(); + } + get empj(): boolean { + return this.states.empj; + } + get spksState(): state.ReplyState[] { + if (!this.states.spksState) { + this.states.spksState = [new state.ReplyState()]; + } + return this.states.spksState; + } + set spksState(v: state.ReplyState[]) { + this.states.spksState = v; + } + get mkxJState(): state.MkxJState { + if (!this.states.mkxJState) { + this.states.mkxJState = new state.MkxJState(); + } + return this.states.mkxJState; + } + set mkxJState(v: state.MkxJState) { + this.states.mkxJState = v; + } + clone(): PlatformState { + return new PlatformState(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} */ + +export class PlatformOperateInteraction extends GraphicInteractionPlugin { + static Name = 'platform_operate_menu'; + constructor(app: IGraphicScene) { + super(PlatformOperateInteraction.Name, app); + } + static init(app: IGraphicScene) { + return new PlatformOperateInteraction(app); + } + filter(...grahpics: JlGraphic[]): Platform[] | undefined { + return grahpics + .filter((g) => g.type === Platform.Type) + .map((g) => g as Platform); + } + bind(g: Platform): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.selectable = true; + g.on('_leftclick', this.onLeftClick, this); + } + + unbind(g: Platform): void { + g.selectable = false; + g.eventMode = 'none'; + g.off('_leftclick', this.onLeftClick, this); + } + onLeftClick() { + //useLineStore().stateProCountIncrease(); + } +} diff --git a/src/drawApp/graphics/electronicMap/ScreenDoorInteraction.ts b/src/drawApp/graphics/electronicMap/ScreenDoorInteraction.ts new file mode 100644 index 0000000..bdd359c --- /dev/null +++ b/src/drawApp/graphics/electronicMap/ScreenDoorInteraction.ts @@ -0,0 +1,192 @@ +import * as pb_1 from 'google-protobuf'; +import { + IScreenDoorData, + IScreenDoorState, + ScreenDoor, +} from 'src/graphics/screenDoor/ScreenDoor'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase'; +import { state } from 'src/protos/device_state'; +import { useLineStore } from 'src/stores/line-store'; +import { + ContextMenu, + GraphicInteractionPlugin, + IGraphicScene, + JlGraphic, + MenuItemOptions, +} from 'jl-graphic'; +import { loadScreenDoorConfig } from '../commonApp'; +import { Dialog } from 'quasar'; +import { DisplayObject, FederatedMouseEvent } from 'pixi.js'; +import ScreenDoorOperation from 'src/components/draw-app/dialogs/ScreenDoorOperation.vue'; +import { request } from 'src/protos/request'; + +export class ScreenDoorData extends GraphicDataBase implements IScreenDoorData { + constructor(data?: graphicData.ScreenDoor) { + let screenDoor; + if (!data) { + screenDoor = new graphicData.ScreenDoor({ + common: GraphicDataBase.defaultCommonInfo(ScreenDoor.Type), + }); + } else { + screenDoor = data; + } + super(screenDoor); + } + + public get data(): graphicData.ScreenDoor { + return this.getData(); + } + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get refPlatform(): number { + return this.data.refPlatformId; + } + set refPlatform(v: number) { + this.data.refPlatformId = v; + } + get sonDoorAmount(): number { + return loadScreenDoorConfig()?.sonDoorAmount || 30; + } + + clone(): ScreenDoorData { + return new ScreenDoorData(this.data.cloneMessage()); + } + copyFrom(data: ScreenDoorData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: ScreenDoorData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +export class ScreenDoorState + extends GraphicStateBase + implements IScreenDoorState +{ + constructor(proto?: state.PsdState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.PsdState(); + } + super(states, ScreenDoor.Type); + } + get code(): string { + return this.states.id + ''; + } + get id(): number { + return this.states.id; + } + set id(id: number) { + this.states.id = id; + } + get asdStates(): state.AsdState[] { + return this.states.asdStates; + } + set asdStates(v: state.AsdState[]) { + this.states.asdStates = v; + } + get mgj() { + return this.states.mgj; + } + set mgj(v: boolean) { + this.states.mgj = v; + } + get zaw() { + return this.states.zaw; + } + set zaw(v: boolean) { + this.states.zaw = v; + } + get param(): request.PsdParam { + return this.states.param; + } + set param(param: request.PsdParam) { + this.states.param = param; + } + get states(): state.PsdState { + return this.getState(); + } + clone(): ScreenDoorState { + return new ScreenDoorState(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} + +const setSceenDoorParam: MenuItemOptions = { name: '设置参数' }; +const sceenDoorOperateMenu: ContextMenu = ContextMenu.init({ + name: '屏蔽门操作菜单', + groups: [ + { + items: [setSceenDoorParam], + }, + ], +}); + +export class ScreenDoorOperateInteraction extends GraphicInteractionPlugin { + static Name = 'screen_door_operate_menu'; + constructor(app: IGraphicScene) { + super(ScreenDoorOperateInteraction.Name, app); + app.registerMenu(sceenDoorOperateMenu); + } + static init(app: IGraphicScene) { + return new ScreenDoorOperateInteraction(app); + } + filter(...grahpics: JlGraphic[]): ScreenDoor[] | undefined { + return grahpics + .filter((g) => g.type === ScreenDoor.Type) + .map((g) => g as ScreenDoor); + } + bind(g: ScreenDoor): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.selectable = true; + g.on('_leftclick', this.onLeftClick, this); + g.on('rightclick', this.onContextMenu, this); + } + + unbind(g: ScreenDoor): void { + g.selectable = false; + g.eventMode = 'none'; + g.off('_leftclick', this.onLeftClick, this); + g.off('rightclick', this.onContextMenu, this); + } + onLeftClick() { + useLineStore().stateProCountIncrease(); + } + onContextMenu(e: FederatedMouseEvent) { + const target = e.target as DisplayObject; + const screenDoor = target.getGraphic(); + if (!screenDoor) return; + this.app.updateSelected(screenDoor); + const lineStore = useLineStore(); + setSceenDoorParam.handler = async () => { + if (lineStore.deviceOpreratDialogInstance) return; + lineStore.deviceOpreratDialogInstance = Dialog.create({ + component: ScreenDoorOperation, + componentProps: { + id: screenDoor.id, + code: screenDoor.datas.code, + sonDoorAmount: screenDoor.datas.sonDoorAmount, + asdCodesProp: screenDoor.states.param.asdCodes, + screenDoorForceProp: screenDoor.states.param.force, + screenDoorFaultProp: screenDoor.states.param.fault, + }, + cancel: true, + persistent: true, + }); + }; + sceenDoorOperateMenu.open(e.global); + } +} diff --git a/src/drawApp/graphics/electronicMap/SectionInteraction.ts b/src/drawApp/graphics/electronicMap/SectionInteraction.ts new file mode 100644 index 0000000..af06fac --- /dev/null +++ b/src/drawApp/graphics/electronicMap/SectionInteraction.ts @@ -0,0 +1,317 @@ +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase'; +import { + ISectionData, + ISectionState, + Section, + SectionType, +} from 'src/graphics/section/Section'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { DisplayObject, FederatedMouseEvent, IPointData } from 'pixi.js'; +import { + GraphicInteractionPlugin, + IGraphicScene, + JlGraphic, + MenuItemOptions, + ContextMenu, +} from 'jl-graphic'; +import { useLineStore } from 'src/stores/line-store'; +import { SectionGraphicHitArea } from 'src/graphics/section/SectionDrawAssistant'; +import { Dialog } from 'quasar'; +import AddTrainDialog from '../../components/draw-app/dialogs/AddTrainDialog.vue'; +import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting'; +import { state } from 'src/protos/device_state'; +import { getKmDistance } from '../lineScene'; +import SectionOperation from 'src/components/draw-app/dialogs/SectionOperation.vue'; +import { request } from 'src/protos/request'; +import { setAxleSectionState } from 'src/api/Simulation'; +import { errorNotify } from 'src/utils/CommonNotify'; + +export class SectionData extends GraphicDataBase implements ISectionData { + constructor(data?: graphicData.Section) { + let section; + if (!data) { + section = new graphicData.Section({ + common: GraphicDataBase.defaultCommonInfo(Section.Type), + }); + } else { + section = data; + } + super(section); + } + public get data(): graphicData.Section { + return this.getData(); + } + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get points(): IPointData[] { + return this.data.points; + } + set points(points: IPointData[]) { + this.data.points = points.map( + (p) => new graphicData.Point({ x: p.x, y: p.y }) + ); + } + get paRef(): graphicData.RelatedRef { + return this.data.paRef; + } + set paRef(ref: graphicData.RelatedRef) { + this.data.paRef = ref; + } + get pbRef(): graphicData.RelatedRef { + return this.data.pbRef; + } + set pbRef(ref: graphicData.RelatedRef) { + this.data.pbRef = ref; + } + get sectionType(): graphicData.Section.SectionType { + return this.data.sectionType; + } + set sectionType(type: graphicData.Section.SectionType) { + this.data.sectionType = type; + } + get axleCountings(): number[] { + return this.data.axleCountings; + } + set axleCountings(axleCountings: number[]) { + this.data.axleCountings = axleCountings; + } + get trackSectionId(): number { + return this.data.trackSectionId; + } + set trackSectionId(v: number) { + this.data.trackSectionId = v; + } + get isCurve(): boolean { + return this.data.isCurve; + } + set isCurve(v: boolean) { + this.data.isCurve = v; + } + get segmentsCount(): number { + return this.data.segmentsCount; + } + set segmentsCount(v: number) { + this.data.segmentsCount = v; + } + get centralizedStations(): number[] { + return this.data.centralizedStations; + } + set centralizedStations(v: number[]) { + this.data.centralizedStations = v; + } + get normalRunningDirection(): graphicData.Section.RunningDirection { + return this.data.normalRunningDirection; + } + set normalRunningDirection(v: graphicData.Section.RunningDirection) { + this.data.normalRunningDirection = v; + } + get isTurnBackZone(): boolean { + return this.data.isTurnBackZone; + } + set isTurnBackZone(v: boolean) { + this.data.isTurnBackZone = v; + } + get direction(): graphicData.Direction { + return this.data.direction; + } + set direction(v: graphicData.Direction) { + this.data.direction = v; + } + clone(): SectionData { + return new SectionData(this.data.cloneMessage()); + } + copyFrom(data: SectionData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: SectionData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +export class SectionStates extends GraphicStateBase implements ISectionState { + constructor(proto?: state.SectionState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.SectionState(); + } + super(states, Section.Type); + } + get code(): string { + return this.states.id + ''; + } + get id(): number { + return this.states.id; + } + set id(id: number) { + this.states.id = id; + } + get occupied(): boolean { + return this.states.occupied; + } + set occupied(occupied: boolean) { + this.states.occupied = occupied; + } + get axleFault(): boolean { + return this.states.axleFault; + } + set axleFault(axleFault: boolean) { + this.states.axleFault = axleFault; + } + get axleDrst(): boolean { + return this.states.axleDrst; + } + set axleDrst(axleDrst: boolean) { + this.states.axleDrst = axleDrst; + } + get axlePdrst(): boolean { + return this.states.axlePdrst; + } + set axlePdrst(axlePdrst: boolean) { + this.states.axlePdrst = axlePdrst; + } + get states(): state.SectionState { + return this.getState(); + } + clone(): SectionStates { + return new SectionStates(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} + +const addTrainConfig: MenuItemOptions = { + name: '添加列车', +}; +const setSectionParam: MenuItemOptions = { name: '设置参数' }; +const setFaultOcc: MenuItemOptions = { name: '设置故障占用' }; +const SectionOperateMenu: ContextMenu = ContextMenu.init({ + name: '区段操作菜单', + groups: [ + { + items: [setSectionParam, setFaultOcc, addTrainConfig], + }, + ], +}); + +export class SectionOperateInteraction extends GraphicInteractionPlugin
{ + static Name = 'section_operate_menu'; + constructor(app: IGraphicScene) { + super(SectionOperateInteraction.Name, app); + app.registerMenu(SectionOperateMenu); + } + static init(app: IGraphicScene) { + return new SectionOperateInteraction(app); + } + filter(...grahpics: JlGraphic[]): Section[] | undefined { + return grahpics + .filter((g) => g.type === Section.Type) + .map((g) => g as Section); + } + bind(g: Section): void { + g.lineGraphic.eventMode = 'static'; + g.lineGraphic.cursor = 'pointer'; + g.lineGraphic.hitArea = new SectionGraphicHitArea(g); + g.lineGraphic.selectable = true; + g.selectable = true; + g.labelGraphic.eventMode = 'static'; + g.labelGraphic.cursor = 'pointer'; + g.labelGraphic.selectable = true; + g.on('_leftclick', this.onLeftClick, this); + g.on('rightclick', this.onContextMenu, this); + } + + unbind(g: Section): void { + g.lineGraphic.eventMode = 'none'; + g.lineGraphic.scalable = false; + g.lineGraphic.selectable = false; + g.selectable = false; + g.labelGraphic.eventMode = 'none'; + g.labelGraphic.selectable = false; + g.off('_leftclick', this.onLeftClick, this); + g.off('rightclick', this.onContextMenu, this); + } + onLeftClick() { + useLineStore().stateProCountIncrease(); + } + onContextMenu(e: FederatedMouseEvent) { + const target = e.target as DisplayObject; + const section = target.getGraphic
(); + if (!section || section.datas.sectionType != SectionType.Physical) return; + this.app.updateSelected(section); + const lineStore = useLineStore(); + setSectionParam.handler = async () => { + if (lineStore.deviceOpreratDialogInstance) return; + lineStore.deviceOpreratDialogInstance = Dialog.create({ + component: SectionOperation, + componentProps: { + id: section.id, + code: section.datas.code, + axleDrst: section.states.axleDrst, + axlePdrst: section.states.axlePdrst, + }, + cancel: true, + persistent: true, + }); + }; + setFaultOcc.handler = async () => { + const obj = { + simulationId: lineStore?.simulationId || '', + mapId: lineStore.mapId as number, + deviceId: section.id, + operation: request.Section.Operation.SetFaultOcc, + }; + setAxleSectionState(obj).catch((e) => + errorNotify('区段操作失败:' + e.title, e) + ); + }; + addTrainConfig.disabled = !lineStore.trainConfigList; + addTrainConfig.handler = () => { + const relations = + section.relationManage.getRelationsOfGraphicAndOtherType( + section, + AxleCounting.Type + ); + let AKm; + let BKm; + relations.forEach((item) => { + const rp = item.getRelationParam(section); + const other = item.getOtherGraphic(section) as AxleCounting; + if ( + (other.datas.axleCountingRef.length > 1 && + other.datas.type == + graphicData.AxleCounting.TypeDetectionPoint.AxleCounting) || + other.datas.axleCountingRef.length == 1 + ) { + if (rp.getParam() == 'A') { + AKm = other.datas.kilometerSystem; + } + if (rp.getParam() == 'B') { + BKm = other.datas.kilometerSystem; + } + } + }); + const d = getKmDistance(BKm, AKm); + if (lineStore.deviceOpreratDialogInstance) return; + lineStore.deviceOpreratDialogInstance = Dialog.create({ + title: '创建列车', + message: '', + component: AddTrainDialog, + componentProps: { dev: section, kmLength: d }, + cancel: true, + persistent: true, + }); + }; + SectionOperateMenu.open(e.global); + } +} diff --git a/src/drawApp/graphics/electronicMap/SignalInteraction.ts b/src/drawApp/graphics/electronicMap/SignalInteraction.ts new file mode 100644 index 0000000..b9ac41b --- /dev/null +++ b/src/drawApp/graphics/electronicMap/SignalInteraction.ts @@ -0,0 +1,253 @@ +import * as pb_1 from 'google-protobuf'; +import { + ISignalData, + Signal, + ISignalState, + KilometerSystem, +} from 'src/graphics/signal/Signal'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase'; +import { + GraphicInteractionPlugin, + IGraphicScene, + JlGraphic, + MenuItemOptions, + ContextMenu, +} from 'jl-graphic'; +import { FederatedMouseEvent, DisplayObject } from 'pixi.js'; +import { state } from 'src/protos/device_state'; +import { useLineStore } from 'src/stores/line-store'; +import { SignalGraphicHitArea } from 'src/graphics/signal/SignalDrawAssistant'; +import { request } from 'src/protos/request'; +import { Dialog } from 'quasar'; +import SignalOperation from 'src/components/draw-app/dialogs/SignalOperation.vue' + +export class SignalData extends GraphicDataBase implements ISignalData { + constructor(data?: graphicData.Signal) { + let signal; + if (!data) { + signal = new graphicData.Signal({ + common: GraphicDataBase.defaultCommonInfo(Signal.Type), + }); + } else { + signal = data; + } + super(signal); + } + public get data(): graphicData.Signal { + return this.getData(); + } + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get mirror(): boolean { + return this.data.mirror; + } + set mirror(v: boolean) { + this.data.mirror = v; + } + get kilometerSystem(): KilometerSystem { + if (!this.data.kilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(); + } + return this.data.kilometerSystem; + } + set kilometerSystem(v: KilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(v); + } + get refDev(): graphicData.RelatedRef { + return this.data.refDev ?? new graphicData.RelatedRef(); + } + set refDev(v: graphicData.RelatedRef) { + this.data.refDev = v; + } + get centralizedStations(): number[] { + return this.data.centralizedStations; + } + set centralizedStations(v: number[]) { + this.data.centralizedStations = v; + } + get mt(): graphicData.Signal.Model { + return this.data.mt; + } + set mt(v: graphicData.Signal.Model) { + this.data.mt = v; + } + get direction(): graphicData.Direction { + return this.data.direction; + } + set direction(v: graphicData.Direction) { + this.data.direction = v; + } + clone(): SignalData { + return new SignalData(this.data.cloneMessage()); + } + copyFrom(data: SignalData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: SignalData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +export class SignalState extends GraphicStateBase implements ISignalState { + constructor(proto?: state.SignalState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.SignalState(); + } + super(states, Signal.Type); + } + get code(): string { + return this.states.id + ''; + } + get aspect(): number { + return this.states.aspect; + } + set aspect(v: number) { + this.states.aspect = v; + } + get param(): request.SignalParam { + return this.states.param; + } + set param(v: request.SignalParam) { + this.states.param = v; + } + get states(): state.SignalState { + return this.getState(); + } + clone(): SignalState { + return new SignalState(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} + +const mirrorFlipConfig: MenuItemOptions = { + name: '镜像翻转', +}; +const setSignalParam: MenuItemOptions = { + name: '设置参数' +} +const SignalEditMenu: ContextMenu = ContextMenu.init({ + name: '信号机编辑菜单', + groups: [ + { + items: [mirrorFlipConfig], + }, + ], +}); +const SignalOperateMenu: ContextMenu = ContextMenu.init({ + name: '信号机操作菜单', + groups: [ + { + items: [ + setSignalParam + // signalRedConfig, + // signalGreenConfig, + // signalYellowConfig, + // signalGuideConfig, + // signalCloseConfig, + ], + }, + ], +}); +export class DrawSignalInteraction extends GraphicInteractionPlugin { + static Name = 'signal_draw_right_menu'; + constructor(app: IGraphicScene) { + super(DrawSignalInteraction.Name, app); + app.registerMenu(SignalEditMenu); + } + static init(app: IGraphicScene) { + return new DrawSignalInteraction(app); + } + filter(...grahpics: JlGraphic[]): Signal[] | undefined { + return grahpics + .filter((g) => g.type === Signal.Type) + .map((g) => g as Signal); + } + bind(g: Signal): void { + g.on('_rightclick', this.onContextMenu, this); + } + + unbind(g: Signal): void { + g.off('_rightclick', this.onContextMenu, this); + } + + onContextMenu(e: FederatedMouseEvent) { + const target = e.target as DisplayObject; + const signal = target.getGraphic() as Signal; + this.app.updateSelected(signal); + mirrorFlipConfig.handler = () => { + signal.mirror = !signal.mirror; + }; + SignalEditMenu.open(e.global); + } +} + +export class SignalOperateInteraction extends GraphicInteractionPlugin { + static Name = 'signal_operate_menu'; + constructor(app: IGraphicScene) { + super(SignalOperateInteraction.Name, app); + app.registerMenu(SignalOperateMenu); + } + static init(app: IGraphicScene) { + return new SignalOperateInteraction(app); + } + filter(...grahpics: JlGraphic[]): Signal[] | undefined { + return grahpics + .filter((g) => g.type === Signal.Type) + .map((g) => g as Signal); + } + bind(g: Signal): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.selectable = true; + g.lampMainBody.hitArea = new SignalGraphicHitArea(g); + g.on('_leftclick', this.onLeftClick, this); + g.on('rightclick', this.onContextMenu, this); + } + + unbind(g: Signal): void { + g.selectable = false; + g.eventMode = 'none'; + g.off('_leftclick', this.onLeftClick, this); + g.off('rightclick', this.onContextMenu); + } + onLeftClick() { + useLineStore().stateProCountIncrease(); + } + onContextMenu(e: FederatedMouseEvent) { + const target = e.target as DisplayObject; + const signal = target.getGraphic() as Signal; + this.app.updateSelected(signal); + const lineStore = useLineStore(); + + setSignalParam.handler = () => { + if (lineStore.deviceOpreratDialogInstance) return; + lineStore.deviceOpreratDialogInstance = Dialog.create({ + title: '信号机设置参数', + message: '', + component: SignalOperation, + componentProps: { + id: signal.datas.id, + code: signal.datas.code, + mt: signal.datas.mt, + param: signal.states.param, + }, + cancel: true, + persistent: true, + }); + } + SignalOperateMenu.open(e.global); + } +} diff --git a/src/drawApp/graphics/electronicMap/StationInteraction.ts b/src/drawApp/graphics/electronicMap/StationInteraction.ts new file mode 100644 index 0000000..eadca74 --- /dev/null +++ b/src/drawApp/graphics/electronicMap/StationInteraction.ts @@ -0,0 +1,168 @@ +import * as pb_1 from 'google-protobuf'; +import { + IStationData, + IStationState, + Station, +} from 'src/graphics/station/Station'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase'; +import { state } from 'src/protos/device_state'; +import { IGraphicScene, GraphicInteractionPlugin, JlGraphic } from 'jl-graphic'; +import { KilometerSystem } from 'src/graphics/signal/Signal'; +import { useLineStore } from 'src/stores/line-store'; + +export class StationData extends GraphicDataBase implements IStationData { + constructor(data?: graphicData.Station) { + let station; + if (!data) { + station = new graphicData.Station({ + common: GraphicDataBase.defaultCommonInfo(Station.Type), + }); + } else { + station = data; + } + super(station); + } + + public get data(): graphicData.Station { + return this.getData(); + } + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get stationName(): string { + return this.data.stationName; + } + set stationName(v: string) { + this.data.stationName = v; + } + get stationNameAcronym(): string { + return this.data.stationNameAcronym; + } + set stationNameAcronym(v: string) { + this.data.stationNameAcronym = v; + } + get kilometerSystem(): KilometerSystem { + if (!this.data.kilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(); + } + return this.data.kilometerSystem; + } + set kilometerSystem(v: KilometerSystem) { + this.data.kilometerSystem = new graphicData.KilometerSystem(v); + } + get concentrationStations(): boolean { + return this.data.concentrationStations; + } + set concentrationStations(v: boolean) { + this.data.concentrationStations = v; + } + get depots(): boolean { + return this.data.depots; + } + set depots(v: boolean) { + this.data.depots = v; + } + get manageStations(): number[] { + return this.data.manageStations; + } + set manageStations(v: number[]) { + this.data.manageStations = v; + } + clone(): StationData { + return new StationData(this.data.cloneMessage()); + } + copyFrom(data: StationData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: StationData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +export class StationState extends GraphicStateBase implements IStationState { + constructor(proto?: state.StationState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.StationState(); + } + super(states, Station.Type); + } + get id(): number { + return this.states.id; + } + get code(): string { + return this.states.id + ''; + } + // get ipRtuStusDown(): boolean { + // return this.states.ipRtuStusDown; + // } + // set ipRtuStusDown(v: boolean) { + // this.states.ipRtuStusDown = v; + // } + // get ipRtuStusInLocalCtrl(): boolean { + // return this.states.ipRtuStusInLocalCtrl; + // } + // set ipRtuStusInLocalCtrl(v: boolean) { + // this.states.ipRtuStusInLocalCtrl = v; + // } + // get ipRtuStusInCentralCtrl(): boolean { + // return this.states.ipRtuStusInCentralCtrl; + // } + // set ipRtuStusInCentralCtrl(v: boolean) { + // this.states.ipRtuStusInCentralCtrl = v; + // } + // get ipRtuStusInEmergencyCtrl(): boolean { + // return this.states.ipRtuStusInEmergencyCtrl; + // } + // set ipRtuStusInEmergencyCtrl(v: boolean) { + // this.states.ipRtuStusInEmergencyCtrl = v; + // } + get states(): state.StationState { + return this.getState(); + } + clone(): StationState { + return new StationState(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} + +export class StationOperateInteraction extends GraphicInteractionPlugin { + static Name = 'station_operate_menu'; + constructor(app: IGraphicScene) { + super(StationOperateInteraction.Name, app); + } + static init(app: IGraphicScene) { + return new StationOperateInteraction(app); + } + filter(...grahpics: JlGraphic[]): Station[] | undefined { + return grahpics + .filter((g) => g.type === Station.Type) + .map((g) => g as Station); + } + bind(g: Station): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.selectable = true; + g.on('_leftclick', this.onLeftClick, this); + } + + unbind(g: Station): void { + g.selectable = false; + g.eventMode = 'none'; + g.off('_leftclick', this.onLeftClick, this); + } + onLeftClick() { + useLineStore().stateProCountIncrease(); + } +} diff --git a/src/drawApp/graphics/electronicMap/TurnoutInteraction.ts b/src/drawApp/graphics/electronicMap/TurnoutInteraction.ts new file mode 100644 index 0000000..28881ca --- /dev/null +++ b/src/drawApp/graphics/electronicMap/TurnoutInteraction.ts @@ -0,0 +1,378 @@ +import { + ITurnoutData, + ITurnoutState, + Turnout, + TurnoutSection, +} from 'src/graphics/turnout/Turnout'; +import * as pb_1 from 'google-protobuf'; +import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase'; +import { graphicData } from 'src/protos/stationLayoutGraphics'; +import { DisplayObject, FederatedMouseEvent, IPointData } from 'pixi.js'; +import { KilometerSystem } from 'src/graphics/signal/Signal'; +import { state } from 'src/protos/device_state'; +import { + IGraphicScene, + GraphicInteractionPlugin, + JlGraphic, + MenuItemOptions, + ContextMenu, +} from 'jl-graphic'; +import { + ForkHitArea, + TurnoutSectionHitArea, +} from 'src/graphics/turnout/TurnoutDrawAssistant'; +import { useLineStore } from 'src/stores/line-store'; +import { Dialog } from 'quasar'; +// import AddTrainDialog from '../../components/draw-app/dialogs/AddTrainDialog.vue'; +// import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting'; +import TurnoutOperation from 'src/components/draw-app/dialogs/TurnoutOperation.vue'; +// import { getKmDistance } from '../lineScene'; +import { request } from 'src/protos/request'; + +function getDefaultEndPoint() { + return { + pointA: [new graphicData.Point([50, 0])], + pointB: [new graphicData.Point([-50, 0])], + pointC: [new graphicData.Point([-50, -50])], + }; +} + +const setTurnoutParam: MenuItemOptions = { name: '设置参数' }; + +// const addTrainConfig: MenuItemOptions = { +// name: '添加列车', +// }; + +const TurnoutOperationMenu: ContextMenu = ContextMenu.init({ + name: 'Turnout操作', + groups: [{ items: [setTurnoutParam] }], +}); + +export class TurnoutOperationPlugin extends GraphicInteractionPlugin { + static Name = 'turnout_operate_menu'; + constructor(app: IGraphicScene) { + super(TurnoutOperationPlugin.Name, app); + app.registerMenu(TurnoutOperationMenu); + } + static init(app: IGraphicScene) { + return new TurnoutOperationPlugin(app); + } + filter(...grahpics: JlGraphic[]): Turnout[] | undefined { + return grahpics.filter((g): g is Turnout => g instanceof Turnout); + } + bind(g: Turnout): void { + g.graphics.fork.eventMode = 'static'; + g.graphics.fork.cursor = 'pointer'; + g.selectable = true; + g.graphics.fork.hitArea = new ForkHitArea(g); + g.graphics.sections.forEach((sectionGraphic) => { + sectionGraphic.eventMode = 'static'; + sectionGraphic.cursor = 'pointer'; + sectionGraphic.hitArea = new TurnoutSectionHitArea(sectionGraphic); + }); + g.on('rightclick', this.onContextMenu, this); + g.on('_leftclick', this.onLeftClick, this); + } + unbind(g: Turnout): void { + g.graphics.fork.eventMode = 'none'; + g.selectable = false; + g.graphics.sections.forEach((sectionGraphic) => { + sectionGraphic.eventMode = 'none'; + }); + g.off('rightclick', this.onContextMenu); + g.off('_leftclick', this.onLeftClick, this); + } + onLeftClick() { + useLineStore().stateProCountIncrease(); + } + onContextMenu(e: FederatedMouseEvent) { + const target = e.target as DisplayObject; + const turnout = target.getGraphic(); + if (!turnout) return; + const lineStore = useLineStore(); + this.app.updateSelected(turnout); + setTurnoutParam.handler = async () => { + if (lineStore.deviceOpreratDialogInstance) return; + lineStore.deviceOpreratDialogInstance = Dialog.create({ + title: '道岔设置参数', + message: '', + component: TurnoutOperation, + componentProps: { + id: turnout.id, + code: turnout.datas.code, + force: turnout.states.param.forcePosition, + }, + cancel: true, + persistent: true, + }); + }; + + // const port = (target as TurnoutSection).port; + // addTrainConfig.disabled = !port || !lineStore.trainConfigList; + // addTrainConfig.handler = () => { + // const relations = + // turnout.relationManage.getRelationsOfGraphicAndOtherType( + // turnout, + // AxleCounting.Type + // ); + // const findAc = relations.find((item) => { + // const rp = item.getRelationParam(turnout); + // const orp = item.getOtherRelationParam(turnout as Turnout); + // const ac = orp.g as AxleCounting; + // return ( + // rp.getParam() == port && + // ((ac.datas.axleCountingRef.length > 1 && + // ac.datas.type == + // graphicData.AxleCounting.TypeDetectionPoint.AxleCounting) || + // ac.datas.axleCountingRef.length == 1) + // ); + // }); + // const oKm = turnout.datas.kilometerSystem; + // let pKm; + // if (findAc) { + // const other = findAc.getOtherGraphic(turnout) as AxleCounting; + // pKm = other.datas.kilometerSystem; + // } else { + // const relations = + // turnout.relationManage.getRelationsOfGraphicAndOtherType( + // turnout, + // Turnout.Type + // ); + // const findT = relations.find((item) => { + // const rp = item.getRelationParam(turnout); + // return rp.getParam() == port; + // }); + // if (findT) { + // const other = findT.getOtherGraphic(turnout) as Turnout; + // pKm = other.datas.kilometerSystem; + // } + // } + // const d = getKmDistance(pKm, oKm); + // if (lineStore.deviceOpreratDialogInstance) return; + // lineStore.deviceOpreratDialogInstance = Dialog.create({ + // title: '创建列车', + // message: '', + // component: AddTrainDialog, + // componentProps: { dev: turnout, kmLength: d }, + // cancel: true, + // persistent: true, + // }); + // }; + TurnoutOperationMenu.open(e.global); + } +} + +export class TurnoutData extends GraphicDataBase implements ITurnoutData { + constructor(data?: graphicData.Turnout) { + let turnout = new graphicData.Turnout(); + if (!data) { + turnout.common = GraphicDataBase.defaultCommonInfo(Turnout.Type); + const p = getDefaultEndPoint(); + turnout.pointA = p.pointA; + turnout.pointB = p.pointB; + turnout.pointC = p.pointC; + } else { + turnout = data; + } + super(turnout); + } + get data(): graphicData.Turnout { + return this.getData(); + } + + get code(): string { + return this.data.code; + } + set code(v: string) { + this.data.code = v; + } + get pointA(): IPointData[] { + return this.data.pointA; + } + set pointA(v: IPointData[]) { + this.data.pointA = v.map((p) => new graphicData.Point({ x: p.x, y: p.y })); + } + get pointB(): IPointData[] { + return this.data.pointB; + } + set pointB(v: IPointData[]) { + this.data.pointB = v.map((p) => new graphicData.Point({ x: p.x, y: p.y })); + } + get pointC(): IPointData[] { + return this.data.pointC; + } + set pointC(v: IPointData[]) { + this.data.pointC = v.map((p) => new graphicData.Point({ x: p.x, y: p.y })); + } + get paRef(): graphicData.RelatedRef { + return this.data.paRef; + } + set paRef(ref: graphicData.RelatedRef) { + this.data.paRef = ref; + } + get pbRef(): graphicData.RelatedRef { + return this.data.pbRef; + } + set pbRef(ref: graphicData.RelatedRef) { + this.data.pbRef = ref; + } + get pcRef(): graphicData.RelatedRef { + return this.data.pcRef; + } + set pcRef(ref: graphicData.RelatedRef) { + this.data.pcRef = ref; + } + get kilometerSystem(): KilometerSystem { + if (!this.data.kilometerSystem[0]) { + this.data.kilometerSystem = [new graphicData.KilometerSystem()]; + } + return this.data.kilometerSystem[0]; + } + set kilometerSystem(v: KilometerSystem) { + this.data.kilometerSystem = [new graphicData.KilometerSystem(v)]; + } + get paTrackSectionId(): number { + return this.data.paTrackSectionId; + } + set paTrackSectionId(v: number) { + this.data.paTrackSectionId = v; + } + get pbTrackSectionId(): number { + return this.data.pbTrackSectionId; + } + set pbTrackSectionId(v: number) { + this.data.pbTrackSectionId = v; + } + get pcTrackSectionId(): number { + return this.data.pcTrackSectionId; + } + set pcTrackSectionId(v: number) { + this.data.pcTrackSectionId = v; + } + get switchMachineType(): graphicData.Turnout.SwitchMachineType { + return this.data.switchMachineType; + } + set switchMachineType(v: graphicData.Turnout.SwitchMachineType) { + this.data.switchMachineType = v; + } + get centralizedStations(): number[] { + return this.data.centralizedStations; + } + set centralizedStations(v: number[]) { + this.data.centralizedStations = v; + } + clone(): TurnoutData { + return new TurnoutData(this.data.cloneMessage()); + } + copyFrom(data: TurnoutData): void { + pb_1.Message.copyInto(data.data, this.data); + } + eq(other: TurnoutData): boolean { + return pb_1.Message.equals(this.data, other.data); + } +} + +export class TurnoutStates extends GraphicStateBase implements ITurnoutState { + constructor(proto?: state.SwitchState) { + let states; + if (proto) { + states = proto; + } else { + states = new state.SwitchState(); + } + super(states, Turnout.Type); + } + get code(): string { + return this.states.id + ''; + } + get id(): number { + return this.states.id; + } + set id(id: number) { + this.states.id = id; + } + get normal(): boolean { + return this.states.normal; + } + set normal(normal: boolean) { + this.states.normal = normal; + } + get reverse(): boolean { + return this.states.reverse; + } + set reverse(reverse: boolean) { + this.states.reverse = reverse; + } + get dw(): boolean { + return this.states.dw; + } + set dw(dw: boolean) { + this.states.dw = dw; + } + get fw(): boolean { + return this.states.fw; + } + set fw(v: boolean) { + this.states.fw = v; + } + get param(): request.PointsParam { + return this.states.param; + } + set param(param: request.PointsParam) { + this.states.param = param; + } + get qdc(): boolean { + return this.states.qdc; + } + set qdc(v: boolean) { + this.states.qdc = v; + } + get qfc(): boolean { + return this.states.qfc; + } + set qfc(v: boolean) { + this.states.qfc = v; + } + get qyc(): boolean { + return this.states.qyc; + } + set qyc(v: boolean) { + this.states.qyc = v; + } + get dc(): boolean { + return this.states.dc; + } + set dc(v: boolean) { + this.states.dc = v; + } + get fc(): boolean { + return this.states.fc; + } + set fc(v: boolean) { + this.states.fc = v; + } + get yc(): boolean { + return this.states.yc; + } + set yc(v: boolean) { + this.states.yc = v; + } + get occupied(): boolean { + return this.states.occupied; + } + set occupied(v: boolean) { + this.states.occupied = v; + } + get states(): state.SwitchState { + return this.getState(); + } + clone(): TurnoutStates { + return new TurnoutStates(this.states.cloneMessage()); + } + copyFrom(data: GraphicStateBase): void { + pb_1.Message.copyInto(data._state, this._state); + } + eq(data: GraphicStateBase): boolean { + return pb_1.Message.equals(this._state, data._state); + } +} diff --git a/src/drawApp/iscsApp.ts b/src/drawApp/iscsApp.ts index 11ff46e..2538171 100644 --- a/src/drawApp/iscsApp.ts +++ b/src/drawApp/iscsApp.ts @@ -17,22 +17,160 @@ import { saveDrawToServer, handlerNoEditCommonData, } from './commonApp'; -import { CCTVButtonData } from './graphics/CCTV/CCTVButtonInteraction'; -import { CCTVButtonDraw } from 'src/graphics/CCTV/cctvButton/CCTVButtonDrawAssistant'; -import { - CCTVButton, - CCTVButtonTemplate, -} from 'src/graphics/CCTV/cctvButton/CCTVButton'; import { useDrawStore } from 'src/stores/draw-store'; import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; import { getDraft } from 'src/api/DraftApi'; -import { getJwt } from 'src/api/UserApi'; import { fromUint8Array, toUint8Array } from 'js-base64'; import { getWebsocketUrl } from 'src/configs/UrlManage'; import { sync_data_message } from 'src/protos/sync_data_message'; import { useAuthStore } from 'src/stores/auth-store'; import { common } from 'src/protos/common'; +import { + FasFailureControlHost, + FasFailureControlHostTemplate, +} from 'src/graphics/FAS/fireFailureControlHost/FasFailureControlHost'; +import { FasFailureControlHostData } from './graphics/FAS/FasFailureControlHostInteraction'; +import { FasFailureControlHostDraw } from 'src/graphics/FAS/fireFailureControlHost/FasFailureContorlHostAssistant'; +import { FasAlarm, FasAlarmTemplate } from 'src/graphics/FAS/fasAlarm/FasAlarm'; +import { FasAlarmData } from './graphics/FAS/FasAlarmInteraction'; +import { FasAlarmDraw } from 'src/graphics/FAS/fasAlarm/FasAlarmAssistant'; +import { + ManualAlarmButton, + ManualAlarmButtonTemplate, +} from 'src/graphics/FAS/manualAlarmButton/ManualAlarmButton'; +import { ManualAlarmButtonData } from './graphics/FAS/ManualAlarmButtonInteraction'; +import { ManualAlarmButtonDraw } from 'src/graphics/FAS/manualAlarmButton/ManualAlarmButtonAssistant'; +import { + SmokeDetector, + SmokeDetectorTemplate, +} from 'src/graphics/FAS/smokeDetector/SmokeDetector'; +import { SmokeDetectorData } from './graphics/FAS/SmokeDetectorInteraction'; +import { SmokeDetectorDraw } from 'src/graphics/FAS/smokeDetector/SmokeDetectorAssistant'; +import { + TemperatureDetector, + TemperatureDetectorTemplate, +} from 'src/graphics/FAS/temperatureDetector/TemperatureDetector'; +import { TemperatureDetectorData } from './graphics/FAS/TemperatureDetectorInteraction'; +import { TemperatureDetectorDraw } from 'src/graphics/FAS/temperatureDetector/TemperatureDetectorAssistant'; +import { + FireShutter, + FireShutterTemplate, +} from 'src/graphics/FAS/fireShutter/FireShutter'; +import { FireShutterData } from './graphics/FAS/FireShutterInteraction'; +import { FireShutterDraw } from 'src/graphics/FAS/fireShutter/FireShutterAssistant'; +import { EscalatorDraw } from 'src/graphics/BAS/escalator/EscalatorDrawAssistant'; +import { + Escalator, + EscalatorTemplate, +} from 'src/graphics/BAS/escalator/Escalator'; +import { EscalatorData } from './graphics/BAS/EscalatorInteraction'; +import { + VerticalElevator, + VerticalElevatorTemplate, +} from 'src/graphics/BAS/verticalElevator/VerticalElevator'; +import { VerticalElevatorData } from './graphics/BAS/VerticalElevatorInteraction'; +import { VerticalElevatorDraw } from 'src/graphics/BAS/verticalElevator/VerticalElevatorDrawAssistant'; +import { FirePump, FirePumpTemplate } from 'src/graphics/FAS/firePump/FirePump'; +import { FirePumpDraw } from 'src/graphics/FAS/firePump/FirePumpAssistant'; +import { FirePumpData } from './graphics/FAS/FirePumpInteraction'; +import { SprayPumpDraw } from 'src/graphics/FAS/sprayPump/SprayPumpAssistant'; +import { + SprayPump, + SprayPumpTemplate, +} from 'src/graphics/FAS/sprayPump/SprayPump'; +import { SprayPumpData } from './graphics/FAS/SprayPumpInteraction'; +import { StabilizedPressurePumpData } from './graphics/FAS/StabilizedPressurePumpInteraction'; +import { StabilizedPressurePumpDraw } from 'src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePumpAssistant'; +import { + StabilizedPressurePump, + StabilizedPressurePumpTemplate, +} from 'src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump'; +import { AcsDraw } from 'src/graphics/FAS/acs/AcsAssistant'; +import { Acs, AcsTemplate } from 'src/graphics/FAS/acs/Acs'; +import { AcsData } from './graphics/FAS/AcsInteraction'; +import { AfcDraw } from 'src/graphics/FAS/afc/AfcAssistant'; +import { Afc, AfcTemplate } from 'src/graphics/FAS/afc/Afc'; +import { AfcData } from './graphics/FAS/AfcInteraction'; +import { NonFirePowerSupplyDraw } from 'src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupplyAssistant'; +import { + NonFirePowerSupply, + NonFirePowerSupplyTemplate, +} from 'src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply'; +import { NonFirePowerSupplyData } from './graphics/FAS/NonFirePowerSupplyInteraction'; +import { WaterFlowIndicatorDraw } from 'src/graphics/FAS/waterFlowIndicator/WaterFlowIndicatorAssistant'; +import { + WaterFlowIndicator, + WaterFlowIndicatorTemplate, +} from 'src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator'; +import { WaterFlowIndicatorData } from './graphics/FAS/WaterFlowIndicatorInteraction'; +import { SignalButterflyValveDraw } from 'src/graphics/FAS/signalButterflyValve/SignalButterflyValveAssistant'; +import { + SignalButterflyValve, + SignalButterflyValveTemplate, +} from 'src/graphics/FAS/signalButterflyValve/SignalButterflyValve'; +import { SignalButterflyValveData } from './graphics/FAS/SignalButterflyValveInteraction'; +import { PressureSwitchDraw } from 'src/graphics/FAS/pressureSwitch/PressureSwitchAssistant'; +import { + PressureSwitch, + PressureSwitchTemplate, +} from 'src/graphics/FAS/pressureSwitch/PressureSwitch'; +import { PressureSwitchData } from './graphics/FAS/PressureSwitchInteraction'; +import { FaultValveDraw } from 'src/graphics/FAS/faultValve/FaultValveAssistant'; +import { + FaultValve, + FaultValveTemplate, +} from 'src/graphics/FAS/faultValve/FaultValve'; +import { FaultValveData } from './graphics/FAS/FaultValveInteraction'; +import { StartPumpButtonDraw } from 'src/graphics/FAS/startPumpButton/StartPumpButtonAssistant'; +import { + StartPumpButton, + StartPumpButtonTemplate, +} from 'src/graphics/FAS/startPumpButton/StartPumpButton'; +import { StartPumpButtonData } from './graphics/FAS/StartPumpButtonInteraction'; +import { TemperatureCableDraw } from 'src/graphics/FAS/temperatureCable/TemperatureCableAssistant'; +import { + TemperatureCable, + TemperatureCableTemplate, +} from 'src/graphics/FAS/temperatureCable/TemperatureCable'; +import { TemperatureCableData } from './graphics/FAS/TemperatureCableInteraction'; +import { EmergencyLightingDraw } from 'src/graphics/FAS/emergencyLighting/EmergencyLightingAssistant'; +import { + EmergencyLighting, + EmergencyLightingTemplate, +} from 'src/graphics/FAS/emergencyLighting/EmergencyLighting'; +import { EmergencyLightingData } from './graphics/FAS/EmergencyLightingInteraction'; +import { ElevatorLiftToTopDraw } from 'src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTopAssistant'; +import { + ElevatorLiftToTop, + ElevatorLiftToTopTemplate, +} from 'src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop'; +import { ElevatorLiftToTopData } from './graphics/FAS/ElevatorLiftToTopInteraction'; +import { ElectricButterflyValveDraw } from 'src/graphics/FAS/electricButterflyValve/ElectricButterflyValveAssistant'; +import { + ElectricButterflyValve, + ElectricButterflyValveTemplate, +} from 'src/graphics/FAS/electricButterflyValve/ElectricButterflyValve'; +import { ElectricButterflyValveData } from './graphics/FAS/ElectricButterflyValveInteraction'; +import { FireValveDraw } from 'src/graphics/FAS/fireValve/FireValveAssistant'; +import { + FireValve, + FireValveTemplate, +} from 'src/graphics/FAS/fireValve/FireValve'; +import { FireValveData } from './graphics/FAS/FireValveInteraction'; +import { ElectricFireExtinguishingValveData } from './graphics/FAS/ElectricFireExtinguishingValveInteraction'; +import { ElectricFireExtinguishingValveDraw } from 'src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValveAssistant'; +import { + ElectricFireExtinguishingValve, + ElectricFireExtinguishingValveTemplate, +} from 'src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve'; +import { FireIntercommunicationSignalData } from './graphics/FAS/FireIntercommunicationSignalInteraction'; +import { FireIntercommunicationSignalDraw } from 'src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignalAssistant'; +import { + FireIntercommunicationSignal, + FireIntercommunicationSignalTemplate, +} from 'src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal'; // import { getOnlyToken } from 'src/configs/TokenManage'; +import { getJwtToken } from 'src/configs/TokenManage'; let drawApp: IDrawApp | null = null; @@ -56,17 +194,95 @@ export function initIscsDrawApp(): IDrawApp { dataLoader: loadDrawDatas, isSupportDeletion: isSupportDeletion, }); - getJwt().then((res) => { - drawApp.enableWsMassaging({ - engine: ClientEngine.MQTT, - wsUrl: `${getWebsocketUrl()}`, - token: res.getJwt as string, - }); + drawApp.enableWsMassaging({ + engine: ClientEngine.MQTT, + wsUrl: `${getWebsocketUrl()}`, + token: getJwtToken() as string, }); const app = drawApp; initCommonDrawApp(app); - new CCTVButtonDraw(app, new CCTVButtonTemplate(new CCTVButtonData())); + new EscalatorDraw(app, new EscalatorTemplate(new EscalatorData())); + new VerticalElevatorDraw( + app, + new VerticalElevatorTemplate(new VerticalElevatorData()) + ); + new FasFailureControlHostDraw( + app, + new FasFailureControlHostTemplate(new FasFailureControlHostData()) + ); + new FasAlarmDraw(app, new FasAlarmTemplate(new FasAlarmData())); + new ManualAlarmButtonDraw( + app, + new ManualAlarmButtonTemplate(new ManualAlarmButtonData()) + ); + new SmokeDetectorDraw( + app, + new SmokeDetectorTemplate(new SmokeDetectorData()) + ); + new TemperatureDetectorDraw( + app, + new TemperatureDetectorTemplate(new TemperatureDetectorData()) + ); + new FireShutterDraw(app, new FireShutterTemplate(new FireShutterData())); + new FirePumpDraw(app, new FirePumpTemplate(new FirePumpData())); + new SprayPumpDraw(app, new SprayPumpTemplate(new SprayPumpData())); + new StabilizedPressurePumpDraw( + app, + new StabilizedPressurePumpTemplate(new StabilizedPressurePumpData()) + ); + new AcsDraw(app, new AcsTemplate(new AcsData())); + new AfcDraw(app, new AfcTemplate(new AfcData())); + new NonFirePowerSupplyDraw( + app, + new NonFirePowerSupplyTemplate(new NonFirePowerSupplyData()) + ); + new WaterFlowIndicatorDraw( + app, + new WaterFlowIndicatorTemplate(new WaterFlowIndicatorData()) + ); + new SignalButterflyValveDraw( + app, + new SignalButterflyValveTemplate(new SignalButterflyValveData()) + ); + new PressureSwitchDraw( + app, + new PressureSwitchTemplate(new PressureSwitchData()) + ); + new FaultValveDraw(app, new FaultValveTemplate(new FaultValveData())); + new StartPumpButtonDraw( + app, + new StartPumpButtonTemplate(new StartPumpButtonData()) + ); + new TemperatureCableDraw( + app, + new TemperatureCableTemplate(new TemperatureCableData()) + ); + new EmergencyLightingDraw( + app, + new EmergencyLightingTemplate(new EmergencyLightingData()) + ); + new ElevatorLiftToTopDraw( + app, + new ElevatorLiftToTopTemplate(new ElevatorLiftToTopData()) + ); + new ElectricButterflyValveDraw( + app, + new ElectricButterflyValveTemplate(new ElectricButterflyValveData()) + ); + new FireValveDraw(app, new FireValveTemplate(new FireValveData())); + new ElectricFireExtinguishingValveDraw( + app, + new ElectricFireExtinguishingValveTemplate( + new ElectricFireExtinguishingValveData() + ) + ); + new FireIntercommunicationSignalDraw( + app, + new FireIntercommunicationSignalTemplate( + new FireIntercommunicationSignalData() + ) + ); app.addKeyboardListener( new KeyListener({ @@ -150,18 +366,19 @@ function handleSubscribe(app: IDrawApp) { console.log(fasPlatformAlarm, 'fasPlatformAlarm'); } } - } else if (syncData.submenu === '监控布局图') { + } else if (syncData.submenu === 'CCTV设备布局图') { for ( let i = 0; - i < storage.cctvOfStationControlStorages.length; + i < storage.cctvOfEquipmentLayoutStorages.length; i++ ) { - const ctvOfStationControl = storage.cctvOfStationControlStorages[i]; - if (ctvOfStationControl.stationName == syncData.station) { + const cctvOfEquipmentLayout = + storage.cctvOfEquipmentLayoutStorages[i]; + if (cctvOfEquipmentLayout.stationName == syncData.station) { syncData.datas.forEach((data) => { handlerNoEditCommonData( data, - ctvOfStationControl, + cctvOfEquipmentLayout, syncData.operationType ); }); @@ -225,25 +442,156 @@ export async function loadDrawDatas(): Promise { ) { canvasProperty = fasOfPlatformAlarm.canvas; datas = loadCommonDrawDatas(fasOfPlatformAlarm); + fasOfPlatformAlarm.fasFailureControlHosts.forEach( + (fasFailureControlHost) => { + datas.push( + new FasFailureControlHostData(fasFailureControlHost) + ); + } + ); + fasOfPlatformAlarm.fasAlarms.forEach((fasAlarm) => { + datas.push(new FasAlarmData(fasAlarm)); + }); + fasOfPlatformAlarm.manualAlarmButtons.forEach( + (manualAlarmButton) => { + datas.push(new ManualAlarmButtonData(manualAlarmButton)); + } + ); + fasOfPlatformAlarm.smokeDetectors.forEach((smokeDetector) => { + datas.push(new SmokeDetectorData(smokeDetector)); + }); + fasOfPlatformAlarm.temperatureDetectors.forEach( + (temperatureDetector) => { + datas.push(new TemperatureDetectorData(temperatureDetector)); + } + ); + fasOfPlatformAlarm.fireShutters.forEach((fireShutter) => { + datas.push(new FireShutterData(fireShutter)); + }); + fasOfPlatformAlarm.firePumps.forEach((firePump) => { + datas.push(new FirePumpData(firePump)); + }); + fasOfPlatformAlarm.sprayPumps.forEach((sprayPump) => { + datas.push(new SprayPumpData(sprayPump)); + }); + fasOfPlatformAlarm.stabilizedPressurePumps.forEach( + (stabilizedPressurePump) => { + datas.push( + new StabilizedPressurePumpData(stabilizedPressurePump) + ); + } + ); + fasOfPlatformAlarm.acs.forEach((acs) => { + datas.push(new AcsData(acs)); + }); + fasOfPlatformAlarm.afc.forEach((afc) => { + datas.push(new AfcData(afc)); + }); + fasOfPlatformAlarm.nonFirePowerSupplies.forEach( + (nonFirePowerSupply) => { + datas.push(new NonFirePowerSupplyData(nonFirePowerSupply)); + } + ); + fasOfPlatformAlarm.waterFlowIndicators.forEach( + (waterFlowIndicator) => { + datas.push(new WaterFlowIndicatorData(waterFlowIndicator)); + } + ); + fasOfPlatformAlarm.signalButterflyValves.forEach( + (signalButterflyValve) => { + datas.push(new SignalButterflyValveData(signalButterflyValve)); + } + ); + fasOfPlatformAlarm.pressureSwitches.forEach((pressureSwitch) => { + datas.push(new PressureSwitchData(pressureSwitch)); + }); + fasOfPlatformAlarm.faultValves.forEach((faultValve) => { + datas.push(new FaultValveData(faultValve)); + }); + fasOfPlatformAlarm.startPumpButtons.forEach((startPumpButton) => { + datas.push(new StartPumpButtonData(startPumpButton)); + }); + fasOfPlatformAlarm.temperatureCables.forEach((temperatureCable) => { + datas.push(new TemperatureCableData(temperatureCable)); + }); + fasOfPlatformAlarm.emergencyLightings.forEach( + (emergencyLighting) => { + datas.push(new EmergencyLightingData(emergencyLighting)); + } + ); + fasOfPlatformAlarm.elevatorLiftToTops.forEach( + (elevatorLiftToTop) => { + datas.push(new ElevatorLiftToTopData(elevatorLiftToTop)); + } + ); + fasOfPlatformAlarm.electricButterflyValves.forEach( + (electricButterflyValve) => { + datas.push( + new ElectricButterflyValveData(electricButterflyValve) + ); + } + ); + fasOfPlatformAlarm.fireValves.forEach((fireValve) => { + datas.push(new FireValveData(fireValve)); + }); + fasOfPlatformAlarm.electricFireExtinguishingValves.forEach( + (electricFireExtinguishingValve) => { + datas.push( + new ElectricFireExtinguishingValveData( + electricFireExtinguishingValve + ) + ); + } + ); + fasOfPlatformAlarm.fireIntercommunicationSignals.forEach( + (fireIntercommunicationSignal) => { + datas.push( + new FireIntercommunicationSignalData( + fireIntercommunicationSignal + ) + ); + } + ); break; } } break; - case '监控布局图': - for (let i = 0; i < storage.cctvOfStationControlStorages.length; i++) { - const ctvOfStationControl = storage.cctvOfStationControlStorages[i]; + case 'CCTV设备布局图': + for (let i = 0; i < storage.cctvOfEquipmentLayoutStorages.length; i++) { + const cctvOfEquipmentLayout = + storage.cctvOfEquipmentLayoutStorages[i]; if ( - ctvOfStationControl.stationName == + cctvOfEquipmentLayout.stationName == drawStore.selectSubmenuAndStation.station ) { - canvasProperty = ctvOfStationControl.canvas; - datas = loadCommonDrawDatas(ctvOfStationControl); - ctvOfStationControl.cctvButtons.forEach((cctvButton) => { + canvasProperty = cctvOfEquipmentLayout.canvas; + datas = loadCommonDrawDatas(cctvOfEquipmentLayout); + /* ctvOfStationControl.cctvButtons.forEach((cctvButton) => { datas.push(new CCTVButtonData(cctvButton)); + }); */ + break; + } + } + break; + case '电扶梯': + for (let i = 0; i < storage.basOfEscalatorStorages.length; i++) { + const basOfEscalator = storage.basOfEscalatorStorages[i]; + if ( + basOfEscalator.stationName == + drawStore.selectSubmenuAndStation.station + ) { + canvasProperty = basOfEscalator.canvas; + datas = loadCommonDrawDatas(basOfEscalator); + basOfEscalator.escalators.forEach((escalator) => { + datas.push(new EscalatorData(escalator)); + }); + basOfEscalator.verticalElevators.forEach((verticalElevator) => { + datas.push(new VerticalElevatorData(verticalElevator)); }); break; } } + break; default: break; } @@ -273,14 +621,28 @@ export function saveDrawDatas(app: IDrawApp) { new iscsGraphicData.FASOfPlatformAlarmStorage({ stationName: station, commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), + partition: '设备分区一', }) ) ); } - if (!storage?.cctvOfStationControlStorages.length) { + if (!storage?.cctvOfEquipmentLayoutStorages.length) { + stationOption.forEach((station) => { + for (let layer = 0; layer < 3; layer++) { + storage?.cctvOfEquipmentLayoutStorages.push( + new iscsGraphicData.CCTVOfEquipmentLayoutStorage({ + stationName: station, + commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), + layer, + }) + ); + } + }); + } + if (!storage?.basOfEscalatorStorages.length) { stationOption.forEach((station) => - storage?.cctvOfStationControlStorages.push( - new iscsGraphicData.CCTVOfStationControlStorage({ + storage?.basOfEscalatorStorages.push( + new iscsGraphicData.BASOfEscalatorStorage({ stationName: station, commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), }) @@ -299,42 +661,192 @@ export function saveDrawDatas(app: IDrawApp) { fasOfPlatformAlarm = new iscsGraphicData.FASOfPlatformAlarmStorage({ stationName: drawStore.selectSubmenuAndStation.station, commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), + partition: drawStore.selectSubmenuAndStation.partition, }); const fasStorage = saveCommonDrawDatas( app, fasOfPlatformAlarm ) as iscsGraphicData.FASOfPlatformAlarmStorage; + graphics.forEach((g) => { + if (g instanceof FasFailureControlHost) { + const fasFailureControlHostData = g.saveData(); + fasStorage.fasFailureControlHosts.push( + (fasFailureControlHostData as FasFailureControlHostData).data + ); + } else if (g instanceof FasAlarm) { + const fasAlarmData = g.saveData(); + fasStorage.fasAlarms.push((fasAlarmData as FasAlarmData).data); + } else if (g instanceof ManualAlarmButton) { + const manualAlarmButtonData = g.saveData(); + fasStorage.manualAlarmButtons.push( + (manualAlarmButtonData as ManualAlarmButtonData).data + ); + } else if (g instanceof SmokeDetector) { + const smokeDetectorData = g.saveData(); + fasStorage.smokeDetectors.push( + (smokeDetectorData as SmokeDetectorData).data + ); + } else if (g instanceof TemperatureDetector) { + const temperatureDetectorData = g.saveData(); + fasStorage.temperatureDetectors.push( + (temperatureDetectorData as TemperatureDetectorData).data + ); + } else if (g instanceof FireShutter) { + const fireShutterData = g.saveData(); + fasStorage.fireShutters.push( + (fireShutterData as FireShutterData).data + ); + } else if (g instanceof FirePump) { + const firePumpData = g.saveData(); + fasStorage.firePumps.push((firePumpData as FirePumpData).data); + } else if (g instanceof SprayPump) { + const sprayPumpData = g.saveData(); + fasStorage.sprayPumps.push((sprayPumpData as SprayPumpData).data); + } else if (g instanceof StabilizedPressurePump) { + const stabilizedPressurePumpData = g.saveData(); + fasStorage.stabilizedPressurePumps.push( + (stabilizedPressurePumpData as StabilizedPressurePumpData).data + ); + } else if (g instanceof Acs) { + const acsData = g.saveData(); + fasStorage.acs.push((acsData as AcsData).data); + } else if (g instanceof Afc) { + const afcData = g.saveData(); + fasStorage.afc.push((afcData as AfcData).data); + } else if (g instanceof NonFirePowerSupply) { + const nonFirePowerSupplyData = g.saveData(); + fasStorage.nonFirePowerSupplies.push( + (nonFirePowerSupplyData as NonFirePowerSupplyData).data + ); + } else if (g instanceof WaterFlowIndicator) { + const waterFlowIndicatorData = g.saveData(); + fasStorage.waterFlowIndicators.push( + (waterFlowIndicatorData as WaterFlowIndicatorData).data + ); + } else if (g instanceof SignalButterflyValve) { + const signalButterflyValveData = g.saveData(); + fasStorage.signalButterflyValves.push( + (signalButterflyValveData as SignalButterflyValveData).data + ); + } else if (g instanceof PressureSwitch) { + const pressureSwitchData = g.saveData(); + fasStorage.pressureSwitches.push( + (pressureSwitchData as PressureSwitchData).data + ); + } else if (g instanceof FaultValve) { + const faultValveData = g.saveData(); + fasStorage.faultValves.push( + (faultValveData as FaultValveData).data + ); + } else if (g instanceof StartPumpButton) { + const startPumpButtonData = g.saveData(); + fasStorage.startPumpButtons.push( + (startPumpButtonData as StartPumpButtonData).data + ); + } else if (g instanceof TemperatureCable) { + const temperatureCableData = g.saveData(); + fasStorage.temperatureCables.push( + (temperatureCableData as TemperatureCableData).data + ); + } else if (g instanceof EmergencyLighting) { + const emergencyLightingData = g.saveData(); + fasStorage.emergencyLightings.push( + (emergencyLightingData as EmergencyLightingData).data + ); + } else if (g instanceof ElevatorLiftToTop) { + const elevatorLiftToTopData = g.saveData(); + fasStorage.elevatorLiftToTops.push( + (elevatorLiftToTopData as ElevatorLiftToTopData).data + ); + } else if (g instanceof ElectricButterflyValve) { + const electricButterflyValveData = g.saveData(); + fasStorage.electricButterflyValves.push( + (electricButterflyValveData as ElectricButterflyValveData).data + ); + } else if (g instanceof FireValve) { + const fireValveData = g.saveData(); + fasStorage.fireValves.push((fireValveData as FireValveData).data); + } else if (g instanceof ElectricFireExtinguishingValve) { + const electricFireExtinguishingValveData = g.saveData(); + fasStorage.electricFireExtinguishingValves.push( + ( + electricFireExtinguishingValveData as ElectricFireExtinguishingValveData + ).data + ); + } else if (g instanceof FireIntercommunicationSignal) { + const fireIntercommunicationSignalData = g.saveData(); + fasStorage.fireIntercommunicationSignals.push( + ( + fireIntercommunicationSignalData as FireIntercommunicationSignalData + ).data + ); + } + }); storage.fasOfPlatformAlarmStorages[i] = fasStorage; break; } } break; - case '监控布局图': - for (let i = 0; i < storage.cctvOfStationControlStorages.length; i++) { - let cctvOfStationControl = storage.cctvOfStationControlStorages[i]; + case 'CCTV设备布局图': + for (let i = 0; i < storage.cctvOfEquipmentLayoutStorages.length; i++) { + let cctvOfEquipmentLayout = storage.cctvOfEquipmentLayoutStorages[i]; if ( - cctvOfStationControl.stationName == + cctvOfEquipmentLayout.stationName == drawStore.selectSubmenuAndStation.station ) { - cctvOfStationControl = - new iscsGraphicData.CCTVOfStationControlStorage({ + cctvOfEquipmentLayout = + new iscsGraphicData.CCTVOfEquipmentLayoutStorage({ stationName: drawStore.selectSubmenuAndStation.station, commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), }); const cctvStorage = saveCommonDrawDatas( app, - cctvOfStationControl - ) as iscsGraphicData.CCTVOfStationControlStorage; + cctvOfEquipmentLayout + ) as iscsGraphicData.CCTVOfEquipmentLayoutStorage; - graphics.forEach((g) => { + /* graphics.forEach((g) => { if (g instanceof CCTVButton) { const cctvButtonData = g.saveData(); cctvStorage.cctvButtons.push( (cctvButtonData as CCTVButtonData).data ); } + }); */ + storage.cctvOfEquipmentLayoutStorages[i] = cctvStorage; + break; + } + } + break; + case '电扶梯': + for (let i = 0; i < storage.basOfEscalatorStorages.length; i++) { + let basOfEscalator = storage.basOfEscalatorStorages[i]; + if ( + basOfEscalator.stationName == + drawStore.selectSubmenuAndStation.station + ) { + basOfEscalator = new iscsGraphicData.BASOfEscalatorStorage({ + stationName: drawStore.selectSubmenuAndStation.station, + commonGraphicStorage: new iscsGraphicData.CommonGraphicStorage(), }); - storage.cctvOfStationControlStorages[i] = cctvStorage; + const basOfEscalatorStorage = saveCommonDrawDatas( + app, + basOfEscalator + ) as iscsGraphicData.BASOfEscalatorStorage; + + graphics.forEach((g) => { + if (g instanceof Escalator) { + const escalatorData = g.saveData(); + basOfEscalatorStorage.escalators.push( + (escalatorData as EscalatorData).data + ); + } else if (g instanceof VerticalElevator) { + const verticalElevatorData = g.saveData(); + basOfEscalatorStorage.verticalElevators.push( + (verticalElevatorData as VerticalElevatorData).data + ); + } + }); + storage.basOfEscalatorStorages[i] = basOfEscalatorStorage; break; } } diff --git a/src/graphics/BAS/escalator/Escalator.ts b/src/graphics/BAS/escalator/Escalator.ts new file mode 100644 index 0000000..8d1fc89 --- /dev/null +++ b/src/graphics/BAS/escalator/Escalator.ts @@ -0,0 +1,74 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import tcc_Light_Assets from './escalator-spritesheet.png'; +import tcc_Light_JSON from './escalator-data.json'; + +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; + +interface EscalatorTextures { + redOn: Texture; + redOff: Texture; + greenOn: Texture; + greenOff: Texture; + blueOn: Texture; + blueOff: Texture; +} + +export interface IescalatorData extends GraphicData { + get code(): string; + set code(v: string); +} + +export class Escalator extends JlGraphic { + static Type = 'Escalator'; + _escalator: Sprite; + escalatorTextures: EscalatorTextures; + __state = 0; + + constructor(escalatorTextures: EscalatorTextures) { + super(Escalator.Type); + this.escalatorTextures = escalatorTextures; + this._escalator = new Sprite(); + this._escalator.texture = this.escalatorTextures.greenOff; + this._escalator.anchor.set(0.5); + this.addChild(this._escalator); + } + get code(): string { + return this.datas.code; + } + get datas(): IescalatorData { + return this.getDatas(); + } + doRepaint(): void { + this._escalator.texture = this.escalatorTextures.greenOn; + } +} + +export class EscalatorTemplate extends JlGraphicTemplate { + escalatorTextures?: EscalatorTextures; + constructor(dataTemplate: IescalatorData) { + super(Escalator.Type, { dataTemplate }); + this.loadAssets(); + } + new(): Escalator { + if (this.escalatorTextures) { + const g = new Escalator(this.escalatorTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(tcc_Light_Assets); + const escalatorSheet = new Spritesheet(texture, tcc_Light_JSON); + const result = await escalatorSheet.parse(); + this.escalatorTextures = { + redOff: result['red-off.png'], + redOn: result['red-on.png'], + blueOff: result['blue-off.png'], + blueOn: result['blue-on.png'], + greenOff: result['green-off.png'], + greenOn: result['green-on.png'], + }; + return this.escalatorTextures as EscalatorTextures; + } +} diff --git a/src/graphics/BAS/escalator/EscalatorDrawAssistant.ts b/src/graphics/BAS/escalator/EscalatorDrawAssistant.ts new file mode 100644 index 0000000..c70efbb --- /dev/null +++ b/src/graphics/BAS/escalator/EscalatorDrawAssistant.ts @@ -0,0 +1,117 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IescalatorData, Escalator, EscalatorTemplate } from './Escalator'; + +export class EscalatorDraw extends GraphicDrawAssistant< + EscalatorTemplate, + IescalatorData +> { + _escalator: Escalator | null = null; + constructor(app: IDrawApp, template: EscalatorTemplate) { + super(app, template, 'escalator', '自动扶梯'); + EscalatorInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._escalator) { + this._escalator = this.graphicTemplate.new(); + this.container.addChild(this._escalator); + } + } + + public get escalator(): Escalator { + if (!this._escalator) { + this._escalator = this.graphicTemplate.new(); + this.container.addChild(this._escalator); + } + return this._escalator; + } + + redraw(cp: Point): void { + this.escalator.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.escalator.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IescalatorData): boolean { + data.transform = this.escalator.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param escalator + */ +function buildAbsorbablePositions(escalator: Escalator): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const escalators = escalator.queryStore.queryByType( + Escalator.Type + ); + const canvas = escalator.getCanvas(); + escalators.forEach((item) => { + if (item.id === escalator.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class EscalatorInteraction extends GraphicInteractionPlugin { + static Name = 'escalator_transform'; + constructor(app: IDrawApp) { + super(EscalatorInteraction.Name, app); + } + static init(app: IDrawApp) { + return new EscalatorInteraction(app); + } + filter(...grahpics: JlGraphic[]): Escalator[] | undefined { + return grahpics + .filter((g) => g.type === Escalator.Type) + .map((g) => g as Escalator); + } + bind(g: Escalator): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: Escalator): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const escalator = target.getGraphic() as Escalator; + escalator.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(escalator), + }); + } +} diff --git a/src/graphics/BAS/escalator/escalator-data.json b/src/graphics/BAS/escalator/escalator-data.json new file mode 100644 index 0000000..29b4ddc --- /dev/null +++ b/src/graphics/BAS/escalator/escalator-data.json @@ -0,0 +1,29 @@ +{ + "frames": { + "green-off.png": { + "frame": { "x": 0, "y": 0, "w": 45, "h": 46 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 46, "h": 46 }, + "sourceSize": { "w": 46, "h": 46 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "green-on.png": { + "frame": { "x": 45, "y": 0, "w": 45, "h": 46 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 46, "h": 46 }, + "sourceSize": { "w": 46, "h": 64 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "tcc-light.png", + "format": "RGBA8888", + "size": { "w": 271, "h": 46 }, + "scale": "0.5", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/BAS/escalator/escalator-spritesheet.png b/src/graphics/BAS/escalator/escalator-spritesheet.png new file mode 100644 index 0000000..81518d6 Binary files /dev/null and b/src/graphics/BAS/escalator/escalator-spritesheet.png differ diff --git a/src/graphics/BAS/verticalElevator/VerticalElevator.ts b/src/graphics/BAS/verticalElevator/VerticalElevator.ts new file mode 100644 index 0000000..332c90e --- /dev/null +++ b/src/graphics/BAS/verticalElevator/VerticalElevator.ts @@ -0,0 +1,75 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import tcc_Light_Assets from './verticalElevator-spritesheet.png'; +import tcc_Light_JSON from './verticalElevator-data.json'; + +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; + +interface VerticalElevatorTextures { + redOn: Texture; + redOff: Texture; + greenOn: Texture; + greenOff: Texture; + blueOn: Texture; + blueOff: Texture; +} + +export interface IverticalElevatorData extends GraphicData { + get code(): string; + set code(v: string); +} + +export class VerticalElevator extends JlGraphic { + static Type = 'VerticalElevator'; + _verticalElevator: Sprite; + verticalElevatorTextures: VerticalElevatorTextures; + __state = 0; + + constructor(verticalElevatorTextures: VerticalElevatorTextures) { + super(VerticalElevator.Type); + this.verticalElevatorTextures = verticalElevatorTextures; + this._verticalElevator = new Sprite(); + this._verticalElevator.texture = this.verticalElevatorTextures.greenOff; + this._verticalElevator.scale.set(1); + this._verticalElevator.anchor.set(0.5); + this.addChild(this._verticalElevator); + } + get code(): string { + return this.datas.code; + } + get datas(): IverticalElevatorData { + return this.getDatas(); + } + doRepaint(): void { + this._verticalElevator.texture = this.verticalElevatorTextures.greenOn; + } +} + +export class VerticalElevatorTemplate extends JlGraphicTemplate { + verticalElevatorTextures?: VerticalElevatorTextures; + constructor(dataTemplate: IverticalElevatorData) { + super(VerticalElevator.Type, { dataTemplate }); + this.loadAssets(); + } + new(): VerticalElevator { + if (this.verticalElevatorTextures) { + const g = new VerticalElevator(this.verticalElevatorTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(tcc_Light_Assets); + const verticalElevatorSheet = new Spritesheet(texture, tcc_Light_JSON); + const result = await verticalElevatorSheet.parse(); + this.verticalElevatorTextures = { + redOff: result['red-off.png'], + redOn: result['red-on.png'], + blueOff: result['blue-off.png'], + blueOn: result['blue-on.png'], + greenOff: result['green-off.png'], + greenOn: result['green-on.png'], + }; + return this.verticalElevatorTextures as VerticalElevatorTextures; + } +} diff --git a/src/graphics/BAS/verticalElevator/VerticalElevatorDrawAssistant.ts b/src/graphics/BAS/verticalElevator/VerticalElevatorDrawAssistant.ts new file mode 100644 index 0000000..47cedfc --- /dev/null +++ b/src/graphics/BAS/verticalElevator/VerticalElevatorDrawAssistant.ts @@ -0,0 +1,124 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IverticalElevatorData, + VerticalElevator, + VerticalElevatorTemplate, +} from './VerticalElevator'; + +export class VerticalElevatorDraw extends GraphicDrawAssistant< + VerticalElevatorTemplate, + IverticalElevatorData +> { + _verticalElevator: VerticalElevator | null = null; + constructor(app: IDrawApp, template: VerticalElevatorTemplate) { + super(app, template, 'elevator', '垂直电梯'); + VerticalElevatorInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._verticalElevator) { + this._verticalElevator = this.graphicTemplate.new(); + this.container.addChild(this._verticalElevator); + } + } + + public get verticalElevator(): VerticalElevator { + if (!this._verticalElevator) { + this._verticalElevator = this.graphicTemplate.new(); + this.container.addChild(this._verticalElevator); + } + return this._verticalElevator; + } + + redraw(cp: Point): void { + this.verticalElevator.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.verticalElevator.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IverticalElevatorData): boolean { + data.transform = this.verticalElevator.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param verticalElevator + */ +function buildAbsorbablePositions( + verticalElevator: VerticalElevator +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const verticalElevators = + verticalElevator.queryStore.queryByType( + VerticalElevator.Type + ); + const canvas = verticalElevator.getCanvas(); + verticalElevators.forEach((item) => { + if (item.id === verticalElevator.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class VerticalElevatorInteraction extends GraphicInteractionPlugin { + static Name = 'vertical_elevator_transform'; + constructor(app: IDrawApp) { + super(VerticalElevatorInteraction.Name, app); + } + static init(app: IDrawApp) { + return new VerticalElevatorInteraction(app); + } + filter(...grahpics: JlGraphic[]): VerticalElevator[] | undefined { + return grahpics + .filter((g) => g.type === VerticalElevator.Type) + .map((g) => g as VerticalElevator); + } + bind(g: VerticalElevator): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: VerticalElevator): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const verticalElevator = target.getGraphic() as VerticalElevator; + verticalElevator.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(verticalElevator), + }); + } +} diff --git a/src/graphics/BAS/verticalElevator/verticalElevator-data.json b/src/graphics/BAS/verticalElevator/verticalElevator-data.json new file mode 100644 index 0000000..76e7d53 --- /dev/null +++ b/src/graphics/BAS/verticalElevator/verticalElevator-data.json @@ -0,0 +1,29 @@ +{ + "frames": { + "green-off.png": { + "frame": { "x": 0, "y": 0, "w": 32, "h": 33 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 33, "h": 33 }, + "sourceSize": { "w": 128, "h": 33 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "green-on.png": { + "frame": { "x": 33, "y": 0, "w": 32, "h": 33 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 33, "h": 33 }, + "sourceSize": { "w": 128, "h": 33 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "tcc-light.png", + "format": "RGBA8888", + "size": { "w": 129, "h": 33 }, + "scale": "0.5", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/BAS/verticalElevator/verticalElevator-spritesheet.png b/src/graphics/BAS/verticalElevator/verticalElevator-spritesheet.png new file mode 100644 index 0000000..7950f16 Binary files /dev/null and b/src/graphics/BAS/verticalElevator/verticalElevator-spritesheet.png differ diff --git a/src/graphics/CCTV/cctvButton/CCTVButton.ts b/src/graphics/CCTV/cctvButton/CCTVButton.ts deleted file mode 100644 index 5259237..0000000 --- a/src/graphics/CCTV/cctvButton/CCTVButton.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; -import CCTV_Button_Assets from './cctv-button-spritesheet.png'; -import CCTV_Button_JSON from './cctv-button-data.json'; -import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; -import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; - -interface CCTVButtonTextures { - rectPressBtn: Texture; - rectBtn: Texture; - monitorBtn: Texture; - semicircleBtn: Texture; -} - -export interface ICCTVButtonData extends GraphicData { - get code(): string; - set code(v: string); - get buttonType(): iscsGraphicData.CCTVButton.ButtonType; - set buttonType(v: iscsGraphicData.CCTVButton.ButtonType); -} - -export class CCTVButton extends JlGraphic { - static Type = 'CCTVButton'; - _cctvButton: Sprite; - cctvButtonTextures: CCTVButtonTextures; - __state = 0; - - constructor(cctvButtonTextures: CCTVButtonTextures) { - super(CCTVButton.Type); - this.cctvButtonTextures = cctvButtonTextures; - this._cctvButton = new Sprite(); - this._cctvButton.texture = this.cctvButtonTextures.rectBtn; - this._cctvButton.anchor.set(0.5); - this.addChild(this._cctvButton); - } - get code(): string { - return this.datas.code; - } - get datas(): ICCTVButtonData { - return this.getDatas(); - } - - doRepaint(): void { - if (this.datas.buttonType == iscsGraphicData.CCTVButton.ButtonType.rect) { - this._cctvButton.texture = this.cctvButtonTextures.rectBtn; - } else if ( - this.datas.buttonType == iscsGraphicData.CCTVButton.ButtonType.monitor - ) { - this._cctvButton.texture = this.cctvButtonTextures.monitorBtn; - } else { - this._cctvButton.texture = this.cctvButtonTextures.semicircleBtn; - } - } -} - -export class CCTVButtonTemplate extends JlGraphicTemplate { - cctvButtonTextures?: CCTVButtonTextures; - constructor(dataTemplate: ICCTVButtonData) { - super(CCTVButton.Type, { dataTemplate }); - this.loadAssets(); - } - new(): CCTVButton { - if (this.cctvButtonTextures) { - const g = new CCTVButton(this.cctvButtonTextures); - g.loadData(this.datas); - return g; - } - throw new Error('资源未加载/加载失败'); - } - async loadAssets(): Promise { - const texture = await Assets.load(CCTV_Button_Assets); - const cctvButtonSheet = new Spritesheet(texture, CCTV_Button_JSON); - const result = await cctvButtonSheet.parse(); - this.cctvButtonTextures = { - rectPressBtn: result['rect-press-btn.png'], - rectBtn: result['rect-btn.png'], - monitorBtn: result['monitor-btn.png'], - semicircleBtn: result['semicircle-btn.png'], - }; - return this.cctvButtonTextures as CCTVButtonTextures; - } -} diff --git a/src/graphics/CCTV/cctvButton/CCTVButtonDrawAssistant.ts b/src/graphics/CCTV/cctvButton/CCTVButtonDrawAssistant.ts deleted file mode 100644 index b5ed24d..0000000 --- a/src/graphics/CCTV/cctvButton/CCTVButtonDrawAssistant.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; -import { - AbsorbableLine, - AbsorbablePosition, - GraphicDrawAssistant, - GraphicInteractionPlugin, - GraphicTransformEvent, - IDrawApp, - JlGraphic, -} from 'jl-graphic'; -import { ICCTVButtonData, CCTVButton, CCTVButtonTemplate } from './CCTVButton'; - -export class CCTVButtonDraw extends GraphicDrawAssistant< - CCTVButtonTemplate, - ICCTVButtonData -> { - _cctvButton: CCTVButton | null = null; - constructor(app: IDrawApp, template: CCTVButtonTemplate) { - super( - app, - template, - 'svguse:../drawIcon.svg#icon-psl-button', - 'cctv按钮' - ); - CCTVButtonInteraction.init(app); - } - - bind(): void { - super.bind(); - if (!this._cctvButton) { - this._cctvButton = this.graphicTemplate.new(); - this.container.addChild(this._cctvButton); - } - } - - public get cctvButton(): CCTVButton { - if (!this._cctvButton) { - this._cctvButton = this.graphicTemplate.new(); - this.container.addChild(this._cctvButton); - } - return this._cctvButton; - } - - redraw(cp: Point): void { - this.cctvButton.position.copyFrom(cp); - } - onLeftUp(e: FederatedMouseEvent): void { - this.cctvButton.position.copyFrom(this.toCanvasCoordinates(e.global)); - this.createAndStore(true); - } - prepareData(data: ICCTVButtonData): boolean { - data.transform = this.cctvButton.saveTransform(); - return true; - } - onEsc(): void { - this.finish(); - } -} - -/** - * 构建吸附线 - * @param cctvButton - */ -function buildAbsorbablePositions(cctvButton: CCTVButton): AbsorbablePosition[] { - const aps: AbsorbablePosition[] = []; - const cctvButtons = cctvButton.queryStore.queryByType( - CCTVButton.Type - ); - const canvas = cctvButton.getCanvas(); - cctvButtons.forEach((item) => { - if (item.id === cctvButton.id) { - return; - } - const ala = new AbsorbableLine( - new Point(item.x, 0), - new Point(item.x, canvas.height) - ); - const alb = new AbsorbableLine( - new Point(0, item.y), - new Point(canvas.width, item.y) - ); - aps.push(ala); - aps.push(alb); - }); - - return aps; -} - -export class CCTVButtonInteraction extends GraphicInteractionPlugin { - static Name = 'cctv_button_transform'; - constructor(app: IDrawApp) { - super(CCTVButtonInteraction.Name, app); - } - static init(app: IDrawApp) { - return new CCTVButtonInteraction(app); - } - filter(...grahpics: JlGraphic[]): CCTVButton[] | undefined { - return grahpics - .filter((g) => g.type === CCTVButton.Type) - .map((g) => g as CCTVButton); - } - bind(g: CCTVButton): void { - g.eventMode = 'static'; - g.cursor = 'pointer'; - g.scalable = true; - g.rotatable = true; - g.on('transformstart', this.transformstart, this); - } - unbind(g: CCTVButton): void { - g.eventMode = 'none'; - g.scalable = false; - g.rotatable = false; - g.off('transformstart', this.transformstart, this); - } - transformstart(e: GraphicTransformEvent) { - const target = e.target as DisplayObject; - const cctvButton = target.getGraphic() as CCTVButton; - cctvButton.getGraphicApp().setOptions({ - absorbablePositions: buildAbsorbablePositions(cctvButton), - }); - } -} diff --git a/src/graphics/CCTV/cctvButton/cctv-button-spritesheet.png b/src/graphics/CCTV/cctvButton/cctv-button-spritesheet.png deleted file mode 100644 index b1c9720..0000000 Binary files a/src/graphics/CCTV/cctvButton/cctv-button-spritesheet.png and /dev/null differ diff --git a/src/graphics/FAS/acs/Acs.ts b/src/graphics/FAS/acs/Acs.ts new file mode 100644 index 0000000..dd5561b --- /dev/null +++ b/src/graphics/FAS/acs/Acs.ts @@ -0,0 +1,68 @@ +import { Graphics } from 'pixi.js'; +import { + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; + +export interface IAcsData extends GraphicData { + get code(): string; // 编号 + set code(v: string); + clone(): IAcsData; + copyFrom(data: IAcsData): void; + eq(other: IAcsData): boolean; +} + +const acsConsts = { + rectWidth: 64, + rectHeight: 24, + rectBackground: '0x99ccff', + textColor: '0x33cc00', + text: 'ACS联动', + fontSize: 12, +}; + +export class Acs extends JlGraphic { + static Type = 'Acs'; + rectGraphic: Graphics = new Graphics(); + textGraphic: VectorText = new VectorText(); + constructor() { + super(Acs.Type); + this.addChild(this.rectGraphic); + this.addChild(this.textGraphic); + } + + get datas(): IAcsData { + return this.getDatas(); + } + doRepaint(): void { + const rectGraphic = this.rectGraphic; + rectGraphic.clear(); + rectGraphic.beginFill(acsConsts.rectBackground); + rectGraphic.drawRect(0, 0, acsConsts.rectWidth, acsConsts.rectHeight); + rectGraphic.endFill(); + + this.textGraphic.text = acsConsts.text; + this.textGraphic.setVectorFontSize(acsConsts.fontSize); + this.textGraphic.anchor.set(0.5); + this.textGraphic.style.fill = acsConsts.textColor; + this.textGraphic.position.set( + acsConsts.rectWidth / 2, + acsConsts.rectHeight / 2 + ); + } +} + +export class AcsTemplate extends JlGraphicTemplate { + constructor(dataTemplate: IAcsData) { + super(Acs.Type, { + dataTemplate, + }); + } + new(): Acs { + const acs = new Acs(); + acs.loadData(this.datas); + return acs; + } +} diff --git a/src/graphics/FAS/acs/AcsAssistant.ts b/src/graphics/FAS/acs/AcsAssistant.ts new file mode 100644 index 0000000..023b835 --- /dev/null +++ b/src/graphics/FAS/acs/AcsAssistant.ts @@ -0,0 +1,111 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IAcsData, Acs, AcsTemplate } from './Acs'; + +export class AcsDraw extends GraphicDrawAssistant { + _acs: Acs | null = null; + constructor(app: IDrawApp, template: AcsTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-acs', 'ACS'); + AcsInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._acs) { + this._acs = this.graphicTemplate.new(); + this.container.addChild(this._acs); + this._acs.doRepaint(); + } + } + + public get acs(): Acs { + if (!this._acs) { + this._acs = this.graphicTemplate.new(); + this.container.addChild(this._acs); + } + return this._acs; + } + + redraw(cp: Point): void { + this.acs.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.acs.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IAcsData): boolean { + data.transform = this.acs.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param acs + */ +function buildAbsorbablePositions(acs: Acs): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const acses = acs.queryStore.queryByType(Acs.Type); + const canvas = acs.getCanvas(); + acses.forEach((item) => { + if (item.id === acs.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class AcsInteraction extends GraphicInteractionPlugin { + static Name = 'acs_transform'; + constructor(app: IDrawApp) { + super(AcsInteraction.Name, app); + } + static init(app: IDrawApp) { + return new AcsInteraction(app); + } + filter(...grahpics: JlGraphic[]): Acs[] | undefined { + return grahpics.filter((g) => g.type === Acs.Type).map((g) => g as Acs); + } + bind(g: Acs): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: Acs): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const acs = target.getGraphic() as Acs; + acs.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(acs), + }); + } +} diff --git a/src/graphics/FAS/afc/Afc.ts b/src/graphics/FAS/afc/Afc.ts new file mode 100644 index 0000000..0a9a974 --- /dev/null +++ b/src/graphics/FAS/afc/Afc.ts @@ -0,0 +1,68 @@ +import { Graphics } from 'pixi.js'; +import { + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; + +export interface IAfcData extends GraphicData { + get code(): string; // 编号 + set code(v: string); + clone(): IAfcData; + copyFrom(data: IAfcData): void; + eq(other: IAfcData): boolean; +} + +const afcConsts = { + rectWidth: 64, + rectHeight: 24, + rectBackground: '0x99ccff', + textColor: '0x33cc00', + text: 'AFC联动', + fontSize: 12, +}; + +export class Afc extends JlGraphic { + static Type = 'Afc'; + rectGraphic: Graphics = new Graphics(); + textGraphic: VectorText = new VectorText(); + constructor() { + super(Afc.Type); + this.addChild(this.rectGraphic); + this.addChild(this.textGraphic); + } + + get datas(): IAfcData { + return this.getDatas(); + } + doRepaint(): void { + const rectGraphic = this.rectGraphic; + rectGraphic.clear(); + rectGraphic.beginFill(afcConsts.rectBackground); + rectGraphic.drawRect(0, 0, afcConsts.rectWidth, afcConsts.rectHeight); + rectGraphic.endFill(); + + this.textGraphic.text = afcConsts.text; + this.textGraphic.setVectorFontSize(afcConsts.fontSize); + this.textGraphic.anchor.set(0.5); + this.textGraphic.style.fill = afcConsts.textColor; + this.textGraphic.position.set( + afcConsts.rectWidth / 2, + afcConsts.rectHeight / 2 + ); + } +} + +export class AfcTemplate extends JlGraphicTemplate { + constructor(dataTemplate: IAfcData) { + super(Afc.Type, { + dataTemplate, + }); + } + new(): Afc { + const afc = new Afc(); + afc.loadData(this.datas); + return afc; + } +} diff --git a/src/graphics/FAS/afc/AfcAssistant.ts b/src/graphics/FAS/afc/AfcAssistant.ts new file mode 100644 index 0000000..a0d8127 --- /dev/null +++ b/src/graphics/FAS/afc/AfcAssistant.ts @@ -0,0 +1,111 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IAfcData, Afc, AfcTemplate } from './Afc'; + +export class AfcDraw extends GraphicDrawAssistant { + _afc: Afc | null = null; + constructor(app: IDrawApp, template: AfcTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-afc', 'Afc'); + AfcInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._afc) { + this._afc = this.graphicTemplate.new(); + this.container.addChild(this._afc); + this._afc.doRepaint(); + } + } + + public get afc(): Afc { + if (!this._afc) { + this._afc = this.graphicTemplate.new(); + this.container.addChild(this._afc); + } + return this._afc; + } + + redraw(cp: Point): void { + this.afc.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.afc.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IAfcData): boolean { + data.transform = this.afc.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param afc + */ +function buildAbsorbablePositions(afc: Afc): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const afcs = afc.queryStore.queryByType(Afc.Type); + const canvas = afc.getCanvas(); + afcs.forEach((item) => { + if (item.id === afc.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class AfcInteraction extends GraphicInteractionPlugin { + static Name = 'afc_transform'; + constructor(app: IDrawApp) { + super(AfcInteraction.Name, app); + } + static init(app: IDrawApp) { + return new AfcInteraction(app); + } + filter(...grahpics: JlGraphic[]): Afc[] | undefined { + return grahpics.filter((g) => g.type === Afc.Type).map((g) => g as Afc); + } + bind(g: Afc): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: Afc): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const afc = target.getGraphic() as Afc; + afc.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(afc), + }); + } +} diff --git a/src/graphics/FAS/electricButterflyValve/ElectricButterflyValve.ts b/src/graphics/FAS/electricButterflyValve/ElectricButterflyValve.ts new file mode 100644 index 0000000..b932d68 --- /dev/null +++ b/src/graphics/FAS/electricButterflyValve/ElectricButterflyValve.ts @@ -0,0 +1,70 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IElectricButterflyValveData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface ElectricButterflyValveTextures { + normal: Texture; + fireFault: Texture; + fault: Texture; + interruption: Texture; +} + +export class ElectricButterflyValve extends JlGraphic { + static Type = 'ElectricButterflyValve'; + _electricButterflyValve: Sprite; + electricButterflyValveTextures: ElectricButterflyValveTextures; + __state = 0; + + constructor(electricButterflyValveTextures: ElectricButterflyValveTextures) { + super(ElectricButterflyValve.Type); + this._electricButterflyValve = new Sprite(); + this.electricButterflyValveTextures = electricButterflyValveTextures; + this._electricButterflyValve.anchor.set(0.5); + this.addChild(this._electricButterflyValve); + this._electricButterflyValve.texture = + this.electricButterflyValveTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IElectricButterflyValveData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class ElectricButterflyValveTemplate extends JlGraphicTemplate { + electricButterflyValveTextures?: ElectricButterflyValveTextures; + constructor(dataTemplate: IElectricButterflyValveData) { + super(ElectricButterflyValve.Type, { dataTemplate }); + this.loadAssets(); + } + new(): ElectricButterflyValve { + if (this.electricButterflyValveTextures) { + const g = new ElectricButterflyValve(this.electricButterflyValveTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const electricButterflyValveSheet = new Spritesheet(texture, FasDeviceJson); + const result = await electricButterflyValveSheet.parse(); + this.electricButterflyValveTextures = { + normal: result['electricButterflyValveNormal.png'], + fireFault: result['electricButterflyValveFireFault.png'], + fault: result['electricButterflyValveFault.png'], + interruption: result['electricButterflyValveInterruption.png'], + }; + return this + .electricButterflyValveTextures as ElectricButterflyValveTextures; + } +} diff --git a/src/graphics/FAS/electricButterflyValve/ElectricButterflyValveAssistant.ts b/src/graphics/FAS/electricButterflyValve/ElectricButterflyValveAssistant.ts new file mode 100644 index 0000000..0140f82 --- /dev/null +++ b/src/graphics/FAS/electricButterflyValve/ElectricButterflyValveAssistant.ts @@ -0,0 +1,132 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ElectricButterflyValve, + IElectricButterflyValveData, + ElectricButterflyValveTemplate, +} from './ElectricButterflyValve'; + +export class ElectricButterflyValveDraw extends GraphicDrawAssistant< + ElectricButterflyValveTemplate, + IElectricButterflyValveData +> { + _electricButterflyValve: ElectricButterflyValve | null = null; + constructor(app: IDrawApp, template: ElectricButterflyValveTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-elevator-lift-to-top', + '电动蝶阀' + ); + ElectricButterflyValveInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._electricButterflyValve) { + this._electricButterflyValve = this.graphicTemplate.new(); + this.container.addChild(this._electricButterflyValve); + } + } + + public get electricButterflyValve(): ElectricButterflyValve { + if (!this._electricButterflyValve) { + this._electricButterflyValve = this.graphicTemplate.new(); + this.container.addChild(this._electricButterflyValve); + } + return this._electricButterflyValve; + } + + redraw(cp: Point): void { + this.electricButterflyValve.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.electricButterflyValve.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IElectricButterflyValveData): boolean { + data.transform = this.electricButterflyValve.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param electricButterflyValve + */ +function buildAbsorbablePositions( + electricButterflyValve: ElectricButterflyValve +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const electricButterflyValves = + electricButterflyValve.queryStore.queryByType( + ElectricButterflyValve.Type + ); + const canvas = electricButterflyValve.getCanvas(); + electricButterflyValves.forEach((item) => { + if (item.id === electricButterflyValve.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class ElectricButterflyValveInteraction extends GraphicInteractionPlugin { + static Name = 'electric_butter_fly_valve_transform'; + constructor(app: IDrawApp) { + super(ElectricButterflyValveInteraction.Name, app); + } + static init(app: IDrawApp) { + return new ElectricButterflyValveInteraction(app); + } + filter(...grahpics: JlGraphic[]): ElectricButterflyValve[] | undefined { + return grahpics + .filter((g) => g.type === ElectricButterflyValve.Type) + .map((g) => g as ElectricButterflyValve); + } + bind(g: ElectricButterflyValve): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: ElectricButterflyValve): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const electricButterflyValve = + target.getGraphic() as ElectricButterflyValve; + electricButterflyValve.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(electricButterflyValve), + }); + } +} diff --git a/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve.ts b/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve.ts new file mode 100644 index 0000000..c991522 --- /dev/null +++ b/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve.ts @@ -0,0 +1,78 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IElectricFireExtinguishingValveData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface ElectricFireExtinguishingValveTextures { + normal: Texture; + fireAlarm: Texture; + fault: Texture; + interruption: Texture; +} + +export class ElectricFireExtinguishingValve extends JlGraphic { + static Type = 'ElectricFireExtinguishingValve'; + _electricFireExtinguishingValve: Sprite; + electricFireExtinguishingValveTextures: ElectricFireExtinguishingValveTextures; + __state = 0; + + constructor( + electricFireExtinguishingValveTextures: ElectricFireExtinguishingValveTextures + ) { + super(ElectricFireExtinguishingValve.Type); + this._electricFireExtinguishingValve = new Sprite(); + this.electricFireExtinguishingValveTextures = + electricFireExtinguishingValveTextures; + this._electricFireExtinguishingValve.anchor.set(0.5); + this.addChild(this._electricFireExtinguishingValve); + this._electricFireExtinguishingValve.texture = + this.electricFireExtinguishingValveTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IElectricFireExtinguishingValveData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class ElectricFireExtinguishingValveTemplate extends JlGraphicTemplate { + electricFireExtinguishingValveTextures?: ElectricFireExtinguishingValveTextures; + constructor(dataTemplate: IElectricFireExtinguishingValveData) { + super(ElectricFireExtinguishingValve.Type, { dataTemplate }); + this.loadAssets(); + } + new(): ElectricFireExtinguishingValve { + if (this.electricFireExtinguishingValveTextures) { + const g = new ElectricFireExtinguishingValve( + this.electricFireExtinguishingValveTextures + ); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const electricFireExtinguishingValveSheet = new Spritesheet( + texture, + FasDeviceJson + ); + const result = await electricFireExtinguishingValveSheet.parse(); + this.electricFireExtinguishingValveTextures = { + normal: result['electricFireExtinguishingValveNormal.png'], + fireAlarm: result['_electricFireExtinguishingValveFireAlarm.png'], + fault: result['_electricFireExtinguishingValveFault.png'], + interruption: result['electricFireExtinguishingValveInterruption.png'], + }; + return this + .electricFireExtinguishingValveTextures as ElectricFireExtinguishingValveTextures; + } +} diff --git a/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValveAssistant.ts b/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValveAssistant.ts new file mode 100644 index 0000000..df347ec --- /dev/null +++ b/src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValveAssistant.ts @@ -0,0 +1,136 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ElectricFireExtinguishingValve, + IElectricFireExtinguishingValveData, + ElectricFireExtinguishingValveTemplate, +} from './ElectricFireExtinguishingValve'; + +export class ElectricFireExtinguishingValveDraw extends GraphicDrawAssistant< + ElectricFireExtinguishingValveTemplate, + IElectricFireExtinguishingValveData +> { + _electricFireExtinguishingValve: ElectricFireExtinguishingValve | null = null; + constructor(app: IDrawApp, template: ElectricFireExtinguishingValveTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-electric-fire-extinguishing-valve', + '电动防烟防火阀' + ); + ElectricFireExtinguishingValveInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._electricFireExtinguishingValve) { + this._electricFireExtinguishingValve = this.graphicTemplate.new(); + this.container.addChild(this._electricFireExtinguishingValve); + } + } + + public get electricFireExtinguishingValve(): ElectricFireExtinguishingValve { + if (!this._electricFireExtinguishingValve) { + this._electricFireExtinguishingValve = this.graphicTemplate.new(); + this.container.addChild(this._electricFireExtinguishingValve); + } + return this._electricFireExtinguishingValve; + } + + redraw(cp: Point): void { + this.electricFireExtinguishingValve.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.electricFireExtinguishingValve.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IElectricFireExtinguishingValveData): boolean { + data.transform = this.electricFireExtinguishingValve.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param electricFireExtinguishingValve + */ +function buildAbsorbablePositions( + electricFireExtinguishingValve: ElectricFireExtinguishingValve +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const electricFireExtinguishingValves = + electricFireExtinguishingValve.queryStore.queryByType( + ElectricFireExtinguishingValve.Type + ); + const canvas = electricFireExtinguishingValve.getCanvas(); + electricFireExtinguishingValves.forEach((item) => { + if (item.id === electricFireExtinguishingValve.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class ElectricFireExtinguishingValveInteraction extends GraphicInteractionPlugin { + static Name = 'electric_fire_extinguishing_valve_transform'; + constructor(app: IDrawApp) { + super(ElectricFireExtinguishingValveInteraction.Name, app); + } + static init(app: IDrawApp) { + return new ElectricFireExtinguishingValveInteraction(app); + } + filter( + ...grahpics: JlGraphic[] + ): ElectricFireExtinguishingValve[] | undefined { + return grahpics + .filter((g) => g.type === ElectricFireExtinguishingValve.Type) + .map((g) => g as ElectricFireExtinguishingValve); + } + bind(g: ElectricFireExtinguishingValve): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: ElectricFireExtinguishingValve): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const electricFireExtinguishingValve = + target.getGraphic() as ElectricFireExtinguishingValve; + electricFireExtinguishingValve.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions( + electricFireExtinguishingValve + ), + }); + } +} diff --git a/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop.ts b/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop.ts new file mode 100644 index 0000000..b9cf357 --- /dev/null +++ b/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop.ts @@ -0,0 +1,68 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IElevatorLiftToTopData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface ElevatorLiftToTopTextures { + normal: Texture; + fireFault: Texture; + fault: Texture; + interruption: Texture; +} + +export class ElevatorLiftToTop extends JlGraphic { + static Type = 'ElevatorLiftToTop'; + _elevatorLiftToTop: Sprite; + elevatorLiftToTopTextures: ElevatorLiftToTopTextures; + __state = 0; + + constructor(elevatorLiftToTopTextures: ElevatorLiftToTopTextures) { + super(ElevatorLiftToTop.Type); + this._elevatorLiftToTop = new Sprite(); + this.elevatorLiftToTopTextures = elevatorLiftToTopTextures; + this._elevatorLiftToTop.anchor.set(0.5); + this.addChild(this._elevatorLiftToTop); + this._elevatorLiftToTop.texture = this.elevatorLiftToTopTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IElevatorLiftToTopData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class ElevatorLiftToTopTemplate extends JlGraphicTemplate { + elevatorLiftToTopTextures?: ElevatorLiftToTopTextures; + constructor(dataTemplate: IElevatorLiftToTopData) { + super(ElevatorLiftToTop.Type, { dataTemplate }); + this.loadAssets(); + } + new(): ElevatorLiftToTop { + if (this.elevatorLiftToTopTextures) { + const g = new ElevatorLiftToTop(this.elevatorLiftToTopTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const elevatorLiftToTopSheet = new Spritesheet(texture, FasDeviceJson); + const result = await elevatorLiftToTopSheet.parse(); + this.elevatorLiftToTopTextures = { + normal: result['elevatorLiftToTopNormal.png'], + fireFault: result['elevatorLiftToTopFireFault.png'], + fault: result['elevatorLiftToTopFault.png'], + interruption: result['elevatorLiftToTopInterruption.png'], + }; + return this.elevatorLiftToTopTextures as ElevatorLiftToTopTextures; + } +} diff --git a/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTopAssistant.ts b/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTopAssistant.ts new file mode 100644 index 0000000..fc4c6ca --- /dev/null +++ b/src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTopAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ElevatorLiftToTop, + IElevatorLiftToTopData, + ElevatorLiftToTopTemplate, +} from './ElevatorLiftToTop'; + +export class ElevatorLiftToTopDraw extends GraphicDrawAssistant< + ElevatorLiftToTopTemplate, + IElevatorLiftToTopData +> { + _elevatorLiftToTop: ElevatorLiftToTop | null = null; + constructor(app: IDrawApp, template: ElevatorLiftToTopTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-elevator-lift-to-top', + '电梯归首' + ); + ElevatorLiftToTopInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._elevatorLiftToTop) { + this._elevatorLiftToTop = this.graphicTemplate.new(); + this.container.addChild(this._elevatorLiftToTop); + } + } + + public get elevatorLiftToTop(): ElevatorLiftToTop { + if (!this._elevatorLiftToTop) { + this._elevatorLiftToTop = this.graphicTemplate.new(); + this.container.addChild(this._elevatorLiftToTop); + } + return this._elevatorLiftToTop; + } + + redraw(cp: Point): void { + this.elevatorLiftToTop.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.elevatorLiftToTop.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IElevatorLiftToTopData): boolean { + data.transform = this.elevatorLiftToTop.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param elevatorLiftToTop + */ +function buildAbsorbablePositions( + elevatorLiftToTop: ElevatorLiftToTop +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const elevatorLiftToTops = + elevatorLiftToTop.queryStore.queryByType( + ElevatorLiftToTop.Type + ); + const canvas = elevatorLiftToTop.getCanvas(); + elevatorLiftToTops.forEach((item) => { + if (item.id === elevatorLiftToTop.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class ElevatorLiftToTopInteraction extends GraphicInteractionPlugin { + static Name = 'elevator_lift_to_top_transform'; + constructor(app: IDrawApp) { + super(ElevatorLiftToTopInteraction.Name, app); + } + static init(app: IDrawApp) { + return new ElevatorLiftToTopInteraction(app); + } + filter(...grahpics: JlGraphic[]): ElevatorLiftToTop[] | undefined { + return grahpics + .filter((g) => g.type === ElevatorLiftToTop.Type) + .map((g) => g as ElevatorLiftToTop); + } + bind(g: ElevatorLiftToTop): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: ElevatorLiftToTop): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const elevatorLiftToTop = target.getGraphic() as ElevatorLiftToTop; + elevatorLiftToTop.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(elevatorLiftToTop), + }); + } +} diff --git a/src/graphics/FAS/emergencyLighting/EmergencyLighting.ts b/src/graphics/FAS/emergencyLighting/EmergencyLighting.ts new file mode 100644 index 0000000..0696273 --- /dev/null +++ b/src/graphics/FAS/emergencyLighting/EmergencyLighting.ts @@ -0,0 +1,68 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IEmergencyLightingData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface EmergencyLightingTextures { + normal: Texture; + run: Texture; + fault: Texture; + interruption: Texture; +} + +export class EmergencyLighting extends JlGraphic { + static Type = 'EmergencyLighting'; + _emergencyLighting: Sprite; + emergencyLightingTextures: EmergencyLightingTextures; + __state = 0; + + constructor(emergencyLightingTextures: EmergencyLightingTextures) { + super(EmergencyLighting.Type); + this._emergencyLighting = new Sprite(); + this.emergencyLightingTextures = emergencyLightingTextures; + this._emergencyLighting.anchor.set(0.5); + this.addChild(this._emergencyLighting); + this._emergencyLighting.texture = this.emergencyLightingTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IEmergencyLightingData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class EmergencyLightingTemplate extends JlGraphicTemplate { + emergencyLightingTextures?: EmergencyLightingTextures; + constructor(dataTemplate: IEmergencyLightingData) { + super(EmergencyLighting.Type, { dataTemplate }); + this.loadAssets(); + } + new(): EmergencyLighting { + if (this.emergencyLightingTextures) { + const g = new EmergencyLighting(this.emergencyLightingTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const emergencyLightingSheet = new Spritesheet(texture, FasDeviceJson); + const result = await emergencyLightingSheet.parse(); + this.emergencyLightingTextures = { + normal: result['emergencyLightingNormal.png'], + run: result['emergencyLightingRun.png'], + fault: result['emergencyLightingFault.png'], + interruption: result['emergencyLightingInterruption.png'], + }; + return this.emergencyLightingTextures as EmergencyLightingTextures; + } +} diff --git a/src/graphics/FAS/emergencyLighting/EmergencyLightingAssistant.ts b/src/graphics/FAS/emergencyLighting/EmergencyLightingAssistant.ts new file mode 100644 index 0000000..02a87f5 --- /dev/null +++ b/src/graphics/FAS/emergencyLighting/EmergencyLightingAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IEmergencyLightingData, + EmergencyLighting, + EmergencyLightingTemplate, +} from './EmergencyLighting'; + +export class EmergencyLightingDraw extends GraphicDrawAssistant< + EmergencyLightingTemplate, + IEmergencyLightingData +> { + _emergencyLighting: EmergencyLighting | null = null; + constructor(app: IDrawApp, template: EmergencyLightingTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-emergency-lighting', + '应急照明' + ); + EmergencyLightingInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._emergencyLighting) { + this._emergencyLighting = this.graphicTemplate.new(); + this.container.addChild(this._emergencyLighting); + } + } + + public get emergencyLighting(): EmergencyLighting { + if (!this._emergencyLighting) { + this._emergencyLighting = this.graphicTemplate.new(); + this.container.addChild(this._emergencyLighting); + } + return this._emergencyLighting; + } + + redraw(cp: Point): void { + this.emergencyLighting.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.emergencyLighting.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IEmergencyLightingData): boolean { + data.transform = this.emergencyLighting.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param emergencyLighting + */ +function buildAbsorbablePositions( + emergencyLighting: EmergencyLighting +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const emergencyLightings = + emergencyLighting.queryStore.queryByType( + EmergencyLighting.Type + ); + const canvas = emergencyLighting.getCanvas(); + emergencyLightings.forEach((item) => { + if (item.id === emergencyLighting.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class EmergencyLightingInteraction extends GraphicInteractionPlugin { + static Name = 'emergency_lighting_transform'; + constructor(app: IDrawApp) { + super(EmergencyLightingInteraction.Name, app); + } + static init(app: IDrawApp) { + return new EmergencyLightingInteraction(app); + } + filter(...grahpics: JlGraphic[]): EmergencyLighting[] | undefined { + return grahpics + .filter((g) => g.type === EmergencyLighting.Type) + .map((g) => g as EmergencyLighting); + } + bind(g: EmergencyLighting): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: EmergencyLighting): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const emergencyLighting = target.getGraphic() as EmergencyLighting; + emergencyLighting.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(emergencyLighting), + }); + } +} diff --git a/src/graphics/FAS/fasAlarm/FasAlarm.ts b/src/graphics/FAS/fasAlarm/FasAlarm.ts new file mode 100644 index 0000000..edc1c03 --- /dev/null +++ b/src/graphics/FAS/fasAlarm/FasAlarm.ts @@ -0,0 +1,71 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IFasAlarmData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FasAlarmTextures { + normal: Texture; + alarm: Texture; + isolate: Texture; + fault: Texture; + interruption: Texture; +} + +export class FasAlarm extends JlGraphic { + static Type = 'FasAlarm'; + _fasAlarm: Sprite; + fasAlarmTextures: FasAlarmTextures; + __state = 0; + + constructor(fasAlarmTextures: FasAlarmTextures) { + super(FasAlarm.Type); + this._fasAlarm = new Sprite(); + this.fasAlarmTextures = fasAlarmTextures; + this._fasAlarm.anchor.set(0.5); + this.addChild(this._fasAlarm); + this._fasAlarm.texture = this.fasAlarmTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IFasAlarmData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class FasAlarmTemplate extends JlGraphicTemplate { + fasAlarmTextures?: FasAlarmTextures; + constructor(dataTemplate: IFasAlarmData) { + super(FasAlarm.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FasAlarm { + if (this.fasAlarmTextures) { + const g = new FasAlarm(this.fasAlarmTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const fasAlarmSheet = new Spritesheet(texture, FasDeviceJson); + const result = await fasAlarmSheet.parse(); + this.fasAlarmTextures = { + normal: result['fasAlarmNormal.png'], + alarm: result['fasAlarmAlarm.png'], + isolate: result['fasAlarmIsolate.png'], + fault: result['fasAlarmFault.png'], + interruption: result['fasAlarmInterruption.png'], + }; + return this.fasAlarmTextures as FasAlarmTextures; + } +} diff --git a/src/graphics/FAS/fasAlarm/FasAlarmAssistant.ts b/src/graphics/FAS/fasAlarm/FasAlarmAssistant.ts new file mode 100644 index 0000000..c74259a --- /dev/null +++ b/src/graphics/FAS/fasAlarm/FasAlarmAssistant.ts @@ -0,0 +1,115 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IFasAlarmData, FasAlarm, FasAlarmTemplate } from './FasAlarm'; + +export class FasAlarmDraw extends GraphicDrawAssistant< + FasAlarmTemplate, + IFasAlarmData +> { + _fasAlarm: FasAlarm | null = null; + constructor(app: IDrawApp, template: FasAlarmTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-fas-alarm', '警铃'); + FasAlarmInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._fasAlarm) { + this._fasAlarm = this.graphicTemplate.new(); + this.container.addChild(this._fasAlarm); + } + } + + public get fasAlarm(): FasAlarm { + if (!this._fasAlarm) { + this._fasAlarm = this.graphicTemplate.new(); + this.container.addChild(this._fasAlarm); + } + return this._fasAlarm; + } + + redraw(cp: Point): void { + this.fasAlarm.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.fasAlarm.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IFasAlarmData): boolean { + data.transform = this.fasAlarm.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param fasAlarm + */ +function buildAbsorbablePositions(fasAlarm: FasAlarm): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const fasAlarms = fasAlarm.queryStore.queryByType(FasAlarm.Type); + const canvas = fasAlarm.getCanvas(); + fasAlarms.forEach((item) => { + if (item.id === fasAlarm.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FasAlarmInteraction extends GraphicInteractionPlugin { + static Name = 'fas_alarm_transform'; + constructor(app: IDrawApp) { + super(FasAlarmInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FasAlarmInteraction(app); + } + filter(...grahpics: JlGraphic[]): FasAlarm[] | undefined { + return grahpics + .filter((g) => g.type === FasAlarm.Type) + .map((g) => g as FasAlarm); + } + bind(g: FasAlarm): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FasAlarm): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const fasAlarm = target.getGraphic() as FasAlarm; + fasAlarm.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(fasAlarm), + }); + } +} diff --git a/src/graphics/FAS/faultValve/FaultValve.ts b/src/graphics/FAS/faultValve/FaultValve.ts new file mode 100644 index 0000000..be7db32 --- /dev/null +++ b/src/graphics/FAS/faultValve/FaultValve.ts @@ -0,0 +1,74 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IFaultValveData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FaultValveTextures { + normal: Texture; + run: Texture; + fault: Texture; + interruption: Texture; +} + +export class FaultValve extends JlGraphic { + static Type = 'FaultValve'; + _faultValve: Sprite; + faultValveTextures: FaultValveTextures; + __state = 0; + + constructor(faultValveTextures: FaultValveTextures) { + super(FaultValve.Type); + this._faultValve = new Sprite(); + this.faultValveTextures = faultValveTextures; + this._faultValve.anchor.set(0.5); + this.addChild(this._faultValve); + this._faultValve.texture = this.faultValveTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IFaultValveData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class FaultValveTemplate extends JlGraphicTemplate { + faultValveTextures?: FaultValveTextures; + constructor(dataTemplate: IFaultValveData) { + super(FaultValve.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FaultValve { + if (this.faultValveTextures) { + const g = new FaultValve(this.faultValveTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const faultValveSheet = new Spritesheet(texture, FasDeviceJson); + const result = await faultValveSheet.parse(); + this.faultValveTextures = { + normal: result['faultValveNormal.png'], + run: result['faultValveRun.png'], + fault: result['faultValveFault.png'], + interruption: result['faultValveInterruption.png'], + }; + console.log( + this.faultValveTextures, + 'faultValveTextures', + texture, + faultValveSheet + ); + return this.faultValveTextures as FaultValveTextures; + } +} diff --git a/src/graphics/FAS/faultValve/FaultValveAssistant.ts b/src/graphics/FAS/faultValve/FaultValveAssistant.ts new file mode 100644 index 0000000..bdecc78 --- /dev/null +++ b/src/graphics/FAS/faultValve/FaultValveAssistant.ts @@ -0,0 +1,124 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { FaultValve, IFaultValveData, FaultValveTemplate } from './FaultValve'; + +export class FaultValveDraw extends GraphicDrawAssistant< + FaultValveTemplate, + IFaultValveData +> { + _faultValve: FaultValve | null = null; + constructor(app: IDrawApp, template: FaultValveTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-pressure-switch', + '故障阀' + ); + FaultValveInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._faultValve) { + this._faultValve = this.graphicTemplate.new(); + this.container.addChild(this._faultValve); + } + } + + public get faultValve(): FaultValve { + if (!this._faultValve) { + this._faultValve = this.graphicTemplate.new(); + this.container.addChild(this._faultValve); + } + return this._faultValve; + } + + redraw(cp: Point): void { + this.faultValve.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.faultValve.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IFaultValveData): boolean { + data.transform = this.faultValve.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param faultValve + */ +function buildAbsorbablePositions( + faultValve: FaultValve +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const faultValves = faultValve.queryStore.queryByType( + FaultValve.Type + ); + const canvas = faultValve.getCanvas(); + faultValves.forEach((item) => { + if (item.id === faultValve.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FaultValveInteraction extends GraphicInteractionPlugin { + static Name = 'fault_valve_transform'; + constructor(app: IDrawApp) { + super(FaultValveInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FaultValveInteraction(app); + } + filter(...grahpics: JlGraphic[]): FaultValve[] | undefined { + return grahpics + .filter((g) => g.type === FaultValve.Type) + .map((g) => g as FaultValve); + } + bind(g: FaultValve): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FaultValve): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const faultValve = target.getGraphic() as FaultValve; + faultValve.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(faultValve), + }); + } +} diff --git a/src/graphics/FAS/fireFailureControlHost/FasFailureContorlHostAssistant.ts b/src/graphics/FAS/fireFailureControlHost/FasFailureContorlHostAssistant.ts new file mode 100644 index 0000000..7d814ba --- /dev/null +++ b/src/graphics/FAS/fireFailureControlHost/FasFailureContorlHostAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IFasFailureControlHostData, + FasFailureControlHost, + FasFailureControlHostTemplate, +} from './FasFailureControlHost'; + +export class FasFailureControlHostDraw extends GraphicDrawAssistant< + FasFailureControlHostTemplate, + IFasFailureControlHostData +> { + _fasFailureControlHost: FasFailureControlHost | null = null; + constructor(app: IDrawApp, template: FasFailureControlHostTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-fas-failure-control-host', + '火灾故障控制主机' + ); + FasFailureControlHostInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._fasFailureControlHost) { + this._fasFailureControlHost = this.graphicTemplate.new(); + this.container.addChild(this._fasFailureControlHost); + } + } + + public get fasFailureControlHost(): FasFailureControlHost { + if (!this._fasFailureControlHost) { + this._fasFailureControlHost = this.graphicTemplate.new(); + this.container.addChild(this._fasFailureControlHost); + } + return this._fasFailureControlHost; + } + + redraw(cp: Point): void { + this.fasFailureControlHost.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.fasFailureControlHost.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IFasFailureControlHostData): boolean { + data.transform = this.fasFailureControlHost.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param fasFailureControlHost + */ +function buildAbsorbablePositions( + fasFailureControlHost: FasFailureControlHost +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const fasFailureControlHosts = + fasFailureControlHost.queryStore.queryByType( + FasFailureControlHost.Type + ); + const canvas = fasFailureControlHost.getCanvas(); + fasFailureControlHosts.forEach((item) => { + if (item.id === fasFailureControlHost.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FasFailureControlHostInteraction extends GraphicInteractionPlugin { + static Name = 'fas_failure_control_host_transform'; + constructor(app: IDrawApp) { + super(FasFailureControlHostInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FasFailureControlHostInteraction(app); + } + filter(...grahpics: JlGraphic[]): FasFailureControlHost[] | undefined { + return grahpics + .filter((g) => g.type === FasFailureControlHost.Type) + .map((g) => g as FasFailureControlHost); + } + bind(g: FasFailureControlHost): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FasFailureControlHost): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const fasFailureControlHost = target.getGraphic() as FasFailureControlHost; + fasFailureControlHost.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(fasFailureControlHost), + }); + } +} diff --git a/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.json b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.json new file mode 100644 index 0000000..4de970d --- /dev/null +++ b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.json @@ -0,0 +1,21 @@ +{ + "frames": { + "normal.png": { + "frame": { "x": 0, "y": 0, "w": 32, "h": 53 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 53 }, + "sourceSize": { "w": 32, "h": 53 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "FasFailureControlHost.png", + "format": "RGBA8888", + "size": { "w": 32, "h": 53 }, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.png b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.png new file mode 100644 index 0000000..c789ff6 Binary files /dev/null and b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.png differ diff --git a/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.ts b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.ts new file mode 100644 index 0000000..95b1bfb --- /dev/null +++ b/src/graphics/FAS/fireFailureControlHost/FasFailureControlHost.ts @@ -0,0 +1,70 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasFailureControlHostJson from './FasFailureControlHost.json'; +import FasFailureControlHostAssets from './FasFailureControlHost.png'; + +export interface IFasFailureControlHostData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FasFailureControlHostTextures { + normal: Texture; +} + +export class FasFailureControlHost extends JlGraphic { + static Type = 'FasFailureControlHost'; + _fasFailureControlHost: Sprite; + fasFailureControlHostTextures: FasFailureControlHostTextures; + __state = 0; + + constructor(fasFailureControlHostTextures: FasFailureControlHostTextures) { + super(FasFailureControlHost.Type); + this._fasFailureControlHost = new Sprite(); + this.fasFailureControlHostTextures = fasFailureControlHostTextures; + this._fasFailureControlHost.anchor.set(0.5); + this.addChild(this._fasFailureControlHost); + this._fasFailureControlHost.texture = + this.fasFailureControlHostTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IFasFailureControlHostData { + return this.getDatas(); + } + + doRepaint(): void { + // this._fasFailureControlHost.texture = + // this.fasFailureControlHostTextures.normal; + } +} + +export class FasFailureControlHostTemplate extends JlGraphicTemplate { + fasFailureControlHostTextures?: FasFailureControlHostTextures; + constructor(dataTemplate: IFasFailureControlHostData) { + super(FasFailureControlHost.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FasFailureControlHost { + if (this.fasFailureControlHostTextures) { + const g = new FasFailureControlHost(this.fasFailureControlHostTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasFailureControlHostAssets); + const fasFailureControlHostSheet = new Spritesheet( + texture, + FasFailureControlHostJson + ); + const result = await fasFailureControlHostSheet.parse(); + this.fasFailureControlHostTextures = { + normal: result['normal.png'], + }; + return this.fasFailureControlHostTextures as FasFailureControlHostTextures; + } +} diff --git a/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal.ts b/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal.ts new file mode 100644 index 0000000..985c73f --- /dev/null +++ b/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal.ts @@ -0,0 +1,75 @@ +import { Graphics } from 'pixi.js'; +import { + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; + +export interface IFireIntercommunicationSignalData extends GraphicData { + get code(): string; // 编号 + set code(v: string); + clone(): IFireIntercommunicationSignalData; + copyFrom(data: IFireIntercommunicationSignalData): void; + eq(other: IFireIntercommunicationSignalData): boolean; +} + +const fireIntercommunicationSignalConsts = { + rectWidth: 64, + rectHeight: 24, + rectBackground: '0x99ccff', + textColor: '0x33cc00', + text: '2号线', + fontSize: 12, +}; + +export class FireIntercommunicationSignal extends JlGraphic { + static Type = 'FireIntercommunicationSignal'; + rectGraphic: Graphics = new Graphics(); + textGraphic: VectorText = new VectorText(); + constructor() { + super(FireIntercommunicationSignal.Type); + this.addChild(this.rectGraphic); + this.addChild(this.textGraphic); + } + + get datas(): IFireIntercommunicationSignalData { + return this.getDatas(); + } + doRepaint(): void { + const rectGraphic = this.rectGraphic; + rectGraphic.clear(); + rectGraphic.beginFill(fireIntercommunicationSignalConsts.rectBackground); + rectGraphic.drawRect( + 0, + 0, + fireIntercommunicationSignalConsts.rectWidth, + fireIntercommunicationSignalConsts.rectHeight + ); + rectGraphic.endFill(); + + this.textGraphic.text = fireIntercommunicationSignalConsts.text; + this.textGraphic.setVectorFontSize( + fireIntercommunicationSignalConsts.fontSize + ); + this.textGraphic.anchor.set(0.5); + this.textGraphic.style.fill = fireIntercommunicationSignalConsts.textColor; + this.textGraphic.position.set( + fireIntercommunicationSignalConsts.rectWidth / 2, + fireIntercommunicationSignalConsts.rectHeight / 2 + ); + } +} + +export class FireIntercommunicationSignalTemplate extends JlGraphicTemplate { + constructor(dataTemplate: IFireIntercommunicationSignalData) { + super(FireIntercommunicationSignal.Type, { + dataTemplate, + }); + } + new(): FireIntercommunicationSignal { + const fireIntercommunicationSignal = new FireIntercommunicationSignal(); + fireIntercommunicationSignal.loadData(this.datas); + return fireIntercommunicationSignal; + } +} diff --git a/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignalAssistant.ts b/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignalAssistant.ts new file mode 100644 index 0000000..1632918 --- /dev/null +++ b/src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignalAssistant.ts @@ -0,0 +1,135 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IFireIntercommunicationSignalData, + FireIntercommunicationSignal, + FireIntercommunicationSignalTemplate, +} from './FireIntercommunicationSignal'; + +export class FireIntercommunicationSignalDraw extends GraphicDrawAssistant< + FireIntercommunicationSignalTemplate, + IFireIntercommunicationSignalData +> { + _fireIntercommunicationSignal: FireIntercommunicationSignal | null = null; + constructor(app: IDrawApp, template: FireIntercommunicationSignalTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-fire-intercommunication-signal', + '火灾互联互通信号' + ); + FireIntercommunicationSignalInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._fireIntercommunicationSignal) { + this._fireIntercommunicationSignal = this.graphicTemplate.new(); + this.container.addChild(this._fireIntercommunicationSignal); + this._fireIntercommunicationSignal.doRepaint(); + } + } + + public get fireIntercommunicationSignal(): FireIntercommunicationSignal { + if (!this._fireIntercommunicationSignal) { + this._fireIntercommunicationSignal = this.graphicTemplate.new(); + this.container.addChild(this._fireIntercommunicationSignal); + } + return this._fireIntercommunicationSignal; + } + + redraw(cp: Point): void { + this.fireIntercommunicationSignal.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.fireIntercommunicationSignal.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IFireIntercommunicationSignalData): boolean { + data.transform = this.fireIntercommunicationSignal.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param fireIntercommunicationSignal + */ +function buildAbsorbablePositions( + fireIntercommunicationSignal: FireIntercommunicationSignal +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const fireIntercommunicationSignals = + fireIntercommunicationSignal.queryStore.queryByType( + FireIntercommunicationSignal.Type + ); + const canvas = fireIntercommunicationSignal.getCanvas(); + fireIntercommunicationSignals.forEach((item) => { + if (item.id === fireIntercommunicationSignal.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FireIntercommunicationSignalInteraction extends GraphicInteractionPlugin { + static Name = 'fire_intercommunication_signal_transform'; + constructor(app: IDrawApp) { + super(FireIntercommunicationSignalInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FireIntercommunicationSignalInteraction(app); + } + filter(...grahpics: JlGraphic[]): FireIntercommunicationSignal[] | undefined { + return grahpics + .filter((g) => g.type === FireIntercommunicationSignal.Type) + .map((g) => g as FireIntercommunicationSignal); + } + bind(g: FireIntercommunicationSignal): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FireIntercommunicationSignal): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const fireIntercommunicationSignal = + target.getGraphic() as FireIntercommunicationSignal; + fireIntercommunicationSignal.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions( + fireIntercommunicationSignal + ), + }); + } +} diff --git a/src/graphics/FAS/firePump/FirePump.ts b/src/graphics/FAS/firePump/FirePump.ts new file mode 100644 index 0000000..222ec30 --- /dev/null +++ b/src/graphics/FAS/firePump/FirePump.ts @@ -0,0 +1,69 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IFirePumpData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FirePumpTextures { + run: Texture; + stop: Texture; + fault: Texture; + interruption: Texture; +} + +export class FirePump extends JlGraphic { + static Type = 'FirePump'; + _firePump: Sprite; + firePumpTextures: FirePumpTextures; + __state = 0; + + constructor(firePumpTextures: FirePumpTextures) { + super(FirePump.Type); + this._firePump = new Sprite(); + this.firePumpTextures = firePumpTextures; + this._firePump.anchor.set(0.5); + this.addChild(this._firePump); + this._firePump.texture = this.firePumpTextures.run; + } + get code(): string { + return this.datas.code; + } + get datas(): IFirePumpData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class FirePumpTemplate extends JlGraphicTemplate { + firePumpTextures?: FirePumpTextures; + constructor(dataTemplate: IFirePumpData) { + super(FirePump.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FirePump { + if (this.firePumpTextures) { + const g = new FirePump(this.firePumpTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const firePumpSheet = new Spritesheet(texture, FasDeviceJson); + const result = await firePumpSheet.parse(); + this.firePumpTextures = { + run: result['firePumpRun.png'], + stop: result['firePumpStop.png'], + fault: result['firePumpFault.png'], + interruption: result['firePumpInterruption.png'], + }; + return this.firePumpTextures as FirePumpTextures; + } +} diff --git a/src/graphics/FAS/firePump/FirePumpAssistant.ts b/src/graphics/FAS/firePump/FirePumpAssistant.ts new file mode 100644 index 0000000..6a5a79d --- /dev/null +++ b/src/graphics/FAS/firePump/FirePumpAssistant.ts @@ -0,0 +1,115 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IFirePumpData, FirePump, FirePumpTemplate } from './FirePump'; + +export class FirePumpDraw extends GraphicDrawAssistant< + FirePumpTemplate, + IFirePumpData +> { + _firePump: FirePump | null = null; + constructor(app: IDrawApp, template: FirePumpTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-fire-pump', '消防泵'); + FirePumpInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._firePump) { + this._firePump = this.graphicTemplate.new(); + this.container.addChild(this._firePump); + } + } + + public get firePump(): FirePump { + if (!this._firePump) { + this._firePump = this.graphicTemplate.new(); + this.container.addChild(this._firePump); + } + return this._firePump; + } + + redraw(cp: Point): void { + this.firePump.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.firePump.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IFirePumpData): boolean { + data.transform = this.firePump.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param firePump + */ +function buildAbsorbablePositions(firePump: FirePump): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const firePumps = firePump.queryStore.queryByType(FirePump.Type); + const canvas = firePump.getCanvas(); + firePumps.forEach((item) => { + if (item.id === firePump.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FirePumpInteraction extends GraphicInteractionPlugin { + static Name = 'fire_pump_transform'; + constructor(app: IDrawApp) { + super(FirePumpInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FirePumpInteraction(app); + } + filter(...grahpics: JlGraphic[]): FirePump[] | undefined { + return grahpics + .filter((g) => g.type === FirePump.Type) + .map((g) => g as FirePump); + } + bind(g: FirePump): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FirePump): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const firePump = target.getGraphic() as FirePump; + firePump.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(firePump), + }); + } +} diff --git a/src/graphics/FAS/fireShutter/FireShutter.ts b/src/graphics/FAS/fireShutter/FireShutter.ts new file mode 100644 index 0000000..cabeb67 --- /dev/null +++ b/src/graphics/FAS/fireShutter/FireShutter.ts @@ -0,0 +1,71 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IFireShutterData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FireShutterTextures { + normal: Texture; + alarm: Texture; + fall: Texture; + interruption: Texture; + halfFall: Texture; +} + +export class FireShutter extends JlGraphic { + static Type = 'FireShutter'; + _fireShutter: Sprite; + fireShutterTextures: FireShutterTextures; + __state = 0; + + constructor(fireShutterTextures: FireShutterTextures) { + super(FireShutter.Type); + this._fireShutter = new Sprite(); + this.fireShutterTextures = fireShutterTextures; + this._fireShutter.anchor.set(0.5); + this.addChild(this._fireShutter); + this._fireShutter.texture = this.fireShutterTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IFireShutterData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class FireShutterTemplate extends JlGraphicTemplate { + fireShutterTextures?: FireShutterTextures; + constructor(dataTemplate: IFireShutterData) { + super(FireShutter.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FireShutter { + if (this.fireShutterTextures) { + const g = new FireShutter(this.fireShutterTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const fireShutterSheet = new Spritesheet(texture, FasDeviceJson); + const result = await fireShutterSheet.parse(); + this.fireShutterTextures = { + normal: result['fireShutterNormal.png'], + alarm: result['fireShutterAlarm.png'], + fall: result['fireShutterFall.png'], + interruption: result['fireShutterInterruption.png'], + halfFall: result['fireShutterHalfFall.png'], + }; + return this.fireShutterTextures as FireShutterTextures; + } +} diff --git a/src/graphics/FAS/fireShutter/FireShutterAssistant.ts b/src/graphics/FAS/fireShutter/FireShutterAssistant.ts new file mode 100644 index 0000000..dc4c3b2 --- /dev/null +++ b/src/graphics/FAS/fireShutter/FireShutterAssistant.ts @@ -0,0 +1,128 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IFireShutterData, + FireShutter, + FireShutterTemplate, +} from './FireShutter'; + +export class FireShutterDraw extends GraphicDrawAssistant< + FireShutterTemplate, + IFireShutterData +> { + _fireShutter: FireShutter | null = null; + constructor(app: IDrawApp, template: FireShutterTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-fire-shutter', + '防火卷帘' + ); + FireShutterInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._fireShutter) { + this._fireShutter = this.graphicTemplate.new(); + this.container.addChild(this._fireShutter); + } + } + + public get fireShutter(): FireShutter { + if (!this._fireShutter) { + this._fireShutter = this.graphicTemplate.new(); + this.container.addChild(this._fireShutter); + } + return this._fireShutter; + } + + redraw(cp: Point): void { + this.fireShutter.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.fireShutter.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IFireShutterData): boolean { + data.transform = this.fireShutter.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param fireShutter + */ +function buildAbsorbablePositions( + fireShutter: FireShutter +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const fireShutters = fireShutter.queryStore.queryByType( + FireShutter.Type + ); + const canvas = fireShutter.getCanvas(); + fireShutters.forEach((item) => { + if (item.id === fireShutter.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FireShutterInteraction extends GraphicInteractionPlugin { + static Name = 'fas_alarm_transform'; + constructor(app: IDrawApp) { + super(FireShutterInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FireShutterInteraction(app); + } + filter(...grahpics: JlGraphic[]): FireShutter[] | undefined { + return grahpics + .filter((g) => g.type === FireShutter.Type) + .map((g) => g as FireShutter); + } + bind(g: FireShutter): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FireShutter): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const fireShutter = target.getGraphic() as FireShutter; + fireShutter.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(fireShutter), + }); + } +} diff --git a/src/graphics/FAS/fireValve/FireValve.ts b/src/graphics/FAS/fireValve/FireValve.ts new file mode 100644 index 0000000..7a691d0 --- /dev/null +++ b/src/graphics/FAS/fireValve/FireValve.ts @@ -0,0 +1,70 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IFireValveData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface FireValveTextures { + normal: Texture; + fireAlarm: Texture; + fault: Texture; + interruption: Texture; + isolate: Texture; +} + +export class FireValve extends JlGraphic { + static Type = 'FireValve'; + _fireValve: Sprite; + fireValveTextures: FireValveTextures; + __state = 0; + + constructor(fireValveTextures: FireValveTextures) { + super(FireValve.Type); + this._fireValve = new Sprite(); + this.fireValveTextures = fireValveTextures; + this._fireValve.anchor.set(0.5); + this.addChild(this._fireValve); + this._fireValve.texture = this.fireValveTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IFireValveData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class FireValveTemplate extends JlGraphicTemplate { + fireValveTextures?: FireValveTextures; + constructor(dataTemplate: IFireValveData) { + super(FireValve.Type, { dataTemplate }); + this.loadAssets(); + } + new(): FireValve { + if (this.fireValveTextures) { + const g = new FireValve(this.fireValveTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const fireValveSheet = new Spritesheet(texture, FasDeviceJson); + const result = await fireValveSheet.parse(); + this.fireValveTextures = { + normal: result['fireValveNormal.png'], + fireAlarm: result['fireValveFireAlarm.png'], + fault: result['fireValveFault.png'], + interruption: result['fireValveInterruption.png'], + isolate: result['fireValveIsolate.png'], + }; + return this.fireValveTextures as FireValveTextures; + } +} diff --git a/src/graphics/FAS/fireValve/FireValveAssistant.ts b/src/graphics/FAS/fireValve/FireValveAssistant.ts new file mode 100644 index 0000000..106530a --- /dev/null +++ b/src/graphics/FAS/fireValve/FireValveAssistant.ts @@ -0,0 +1,117 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { IFireValveData, FireValve, FireValveTemplate } from './FireValve'; + +export class FireValveDraw extends GraphicDrawAssistant< + FireValveTemplate, + IFireValveData +> { + _fireValve: FireValve | null = null; + constructor(app: IDrawApp, template: FireValveTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-fire-valve', '防火阀'); + FireValveInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._fireValve) { + this._fireValve = this.graphicTemplate.new(); + this.container.addChild(this._fireValve); + } + } + + public get fireValve(): FireValve { + if (!this._fireValve) { + this._fireValve = this.graphicTemplate.new(); + this.container.addChild(this._fireValve); + } + return this._fireValve; + } + + redraw(cp: Point): void { + this.fireValve.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.fireValve.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IFireValveData): boolean { + data.transform = this.fireValve.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param fireValve + */ +function buildAbsorbablePositions(fireValve: FireValve): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const fireValves = fireValve.queryStore.queryByType( + FireValve.Type + ); + const canvas = fireValve.getCanvas(); + fireValves.forEach((item) => { + if (item.id === fireValve.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class FireValveInteraction extends GraphicInteractionPlugin { + static Name = 'fire_valve_transform'; + constructor(app: IDrawApp) { + super(FireValveInteraction.Name, app); + } + static init(app: IDrawApp) { + return new FireValveInteraction(app); + } + filter(...grahpics: JlGraphic[]): FireValve[] | undefined { + return grahpics + .filter((g) => g.type === FireValve.Type) + .map((g) => g as FireValve); + } + bind(g: FireValve): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: FireValve): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const fireValve = target.getGraphic() as FireValve; + fireValve.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(fireValve), + }); + } +} diff --git a/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.json b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.json new file mode 100644 index 0000000..8225724 --- /dev/null +++ b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.json @@ -0,0 +1,21 @@ +{ + "frames": { + "normal.png": { + "frame": { "x": 0, "y": 0, "w": 26, "h": 24 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 26, "h": 24 }, + "sourceSize": { "w": 26, "h": 24 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "ManualAlarmButton.png", + "format": "RGBA8888", + "size": { "w": 32, "h": 53 }, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.png b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.png new file mode 100644 index 0000000..1450d17 Binary files /dev/null and b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.png differ diff --git a/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.ts b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.ts new file mode 100644 index 0000000..8a95c46 --- /dev/null +++ b/src/graphics/FAS/manualAlarmButton/ManualAlarmButton.ts @@ -0,0 +1,66 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import ManualAlarmButtonJson from './ManualAlarmButton.json'; +import ManualAlarmButtonAssets from './ManualAlarmButton.png'; + +export interface IManualAlarmButtonData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface ManualAlarmButtonTextures { + normal: Texture; +} + +export class ManualAlarmButton extends JlGraphic { + static Type = 'ManualAlarmButton'; + _manualAlarmButton: Sprite; + manualAlarmButtonTextures: ManualAlarmButtonTextures; + __state = 0; + + constructor(manualAlarmButtonTextures: ManualAlarmButtonTextures) { + super(ManualAlarmButton.Type); + this._manualAlarmButton = new Sprite(); + this.manualAlarmButtonTextures = manualAlarmButtonTextures; + this._manualAlarmButton.anchor.set(0.5); + this.addChild(this._manualAlarmButton); + this._manualAlarmButton.texture = this.manualAlarmButtonTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IManualAlarmButtonData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class ManualAlarmButtonTemplate extends JlGraphicTemplate { + manualAlarmButtonTextures?: ManualAlarmButtonTextures; + constructor(dataTemplate: IManualAlarmButtonData) { + super(ManualAlarmButton.Type, { dataTemplate }); + this.loadAssets(); + } + new(): ManualAlarmButton { + if (this.manualAlarmButtonTextures) { + const g = new ManualAlarmButton(this.manualAlarmButtonTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(ManualAlarmButtonAssets); + const manualAlarmButtonSheet = new Spritesheet( + texture, + ManualAlarmButtonJson + ); + const result = await manualAlarmButtonSheet.parse(); + this.manualAlarmButtonTextures = { + normal: result['normal.png'], + }; + return this.manualAlarmButtonTextures as ManualAlarmButtonTextures; + } +} diff --git a/src/graphics/FAS/manualAlarmButton/ManualAlarmButtonAssistant.ts b/src/graphics/FAS/manualAlarmButton/ManualAlarmButtonAssistant.ts new file mode 100644 index 0000000..edf6d51 --- /dev/null +++ b/src/graphics/FAS/manualAlarmButton/ManualAlarmButtonAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IManualAlarmButtonData, + ManualAlarmButton, + ManualAlarmButtonTemplate, +} from './ManualAlarmButton'; + +export class ManualAlarmButtonDraw extends GraphicDrawAssistant< + ManualAlarmButtonTemplate, + IManualAlarmButtonData +> { + _manualAlarmButton: ManualAlarmButton | null = null; + constructor(app: IDrawApp, template: ManualAlarmButtonTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-manual-alarm-button', + '手动火灾报警按钮' + ); + ManualAlarmButtonInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._manualAlarmButton) { + this._manualAlarmButton = this.graphicTemplate.new(); + this.container.addChild(this._manualAlarmButton); + } + } + + public get manualAlarmButton(): ManualAlarmButton { + if (!this._manualAlarmButton) { + this._manualAlarmButton = this.graphicTemplate.new(); + this.container.addChild(this._manualAlarmButton); + } + return this._manualAlarmButton; + } + + redraw(cp: Point): void { + this.manualAlarmButton.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.manualAlarmButton.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IManualAlarmButtonData): boolean { + data.transform = this.manualAlarmButton.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param manualAlarmButton + */ +function buildAbsorbablePositions( + manualAlarmButton: ManualAlarmButton +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const manualAlarmButtons = + manualAlarmButton.queryStore.queryByType( + ManualAlarmButton.Type + ); + const canvas = manualAlarmButton.getCanvas(); + manualAlarmButtons.forEach((item) => { + if (item.id === manualAlarmButton.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class ManualAlarmButtonInteraction extends GraphicInteractionPlugin { + static Name = 'manual_alarm_button_transform'; + constructor(app: IDrawApp) { + super(ManualAlarmButtonInteraction.Name, app); + } + static init(app: IDrawApp) { + return new ManualAlarmButtonInteraction(app); + } + filter(...grahpics: JlGraphic[]): ManualAlarmButton[] | undefined { + return grahpics + .filter((g) => g.type === ManualAlarmButton.Type) + .map((g) => g as ManualAlarmButton); + } + bind(g: ManualAlarmButton): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: ManualAlarmButton): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const manualAlarmButton = target.getGraphic() as ManualAlarmButton; + manualAlarmButton.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(manualAlarmButton), + }); + } +} diff --git a/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply.ts b/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply.ts new file mode 100644 index 0000000..540a247 --- /dev/null +++ b/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply.ts @@ -0,0 +1,68 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface INonFirePowerSupplyData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface NonFirePowerSupplyTextures { + normal: Texture; + run: Texture; + fault: Texture; + interruption: Texture; +} + +export class NonFirePowerSupply extends JlGraphic { + static Type = 'NonFirePowerSupply'; + _nonFirePowerSupply: Sprite; + nonFirePowerSupplyTextures: NonFirePowerSupplyTextures; + __state = 0; + + constructor(nonFirePowerSupplyTextures: NonFirePowerSupplyTextures) { + super(NonFirePowerSupply.Type); + this._nonFirePowerSupply = new Sprite(); + this.nonFirePowerSupplyTextures = nonFirePowerSupplyTextures; + this._nonFirePowerSupply.anchor.set(0.5); + this.addChild(this._nonFirePowerSupply); + this._nonFirePowerSupply.texture = this.nonFirePowerSupplyTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): INonFirePowerSupplyData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class NonFirePowerSupplyTemplate extends JlGraphicTemplate { + nonFirePowerSupplyTextures?: NonFirePowerSupplyTextures; + constructor(dataTemplate: INonFirePowerSupplyData) { + super(NonFirePowerSupply.Type, { dataTemplate }); + this.loadAssets(); + } + new(): NonFirePowerSupply { + if (this.nonFirePowerSupplyTextures) { + const g = new NonFirePowerSupply(this.nonFirePowerSupplyTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const nonFirePowerSupplySheet = new Spritesheet(texture, FasDeviceJson); + const result = await nonFirePowerSupplySheet.parse(); + this.nonFirePowerSupplyTextures = { + normal: result['nonFirePowerSupplyNormal.png'], + run: result['nonFirePowerSupplyRun.png'], + fault: result['nonFirePowerSupplyFault.png'], + interruption: result['nonFirePowerSupplyInterruption.png'], + }; + return this.nonFirePowerSupplyTextures as NonFirePowerSupplyTextures; + } +} diff --git a/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupplyAssistant.ts b/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupplyAssistant.ts new file mode 100644 index 0000000..237b221 --- /dev/null +++ b/src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupplyAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + INonFirePowerSupplyData, + NonFirePowerSupply, + NonFirePowerSupplyTemplate, +} from './NonFirePowerSupply'; + +export class NonFirePowerSupplyDraw extends GraphicDrawAssistant< + NonFirePowerSupplyTemplate, + INonFirePowerSupplyData +> { + _nonFirePowerSupply: NonFirePowerSupply | null = null; + constructor(app: IDrawApp, template: NonFirePowerSupplyTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-non-fire-power-supply', + '非消防电源' + ); + NonFirePowerSupplyInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._nonFirePowerSupply) { + this._nonFirePowerSupply = this.graphicTemplate.new(); + this.container.addChild(this._nonFirePowerSupply); + } + } + + public get nonFirePowerSupply(): NonFirePowerSupply { + if (!this._nonFirePowerSupply) { + this._nonFirePowerSupply = this.graphicTemplate.new(); + this.container.addChild(this._nonFirePowerSupply); + } + return this._nonFirePowerSupply; + } + + redraw(cp: Point): void { + this.nonFirePowerSupply.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.nonFirePowerSupply.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: INonFirePowerSupplyData): boolean { + data.transform = this.nonFirePowerSupply.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param nonFirePowerSupply + */ +function buildAbsorbablePositions( + nonFirePowerSupply: NonFirePowerSupply +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const nonFirePowerSupplys = + nonFirePowerSupply.queryStore.queryByType( + NonFirePowerSupply.Type + ); + const canvas = nonFirePowerSupply.getCanvas(); + nonFirePowerSupplys.forEach((item) => { + if (item.id === nonFirePowerSupply.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class NonFirePowerSupplyInteraction extends GraphicInteractionPlugin { + static Name = 'non_fire_power_supply_transform'; + constructor(app: IDrawApp) { + super(NonFirePowerSupplyInteraction.Name, app); + } + static init(app: IDrawApp) { + return new NonFirePowerSupplyInteraction(app); + } + filter(...grahpics: JlGraphic[]): NonFirePowerSupply[] | undefined { + return grahpics + .filter((g) => g.type === NonFirePowerSupply.Type) + .map((g) => g as NonFirePowerSupply); + } + bind(g: NonFirePowerSupply): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: NonFirePowerSupply): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const nonFirePowerSupply = target.getGraphic() as NonFirePowerSupply; + nonFirePowerSupply.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(nonFirePowerSupply), + }); + } +} diff --git a/src/graphics/FAS/pndDevice/FasDevice.png b/src/graphics/FAS/pndDevice/FasDevice.png new file mode 100644 index 0000000..5afbae5 Binary files /dev/null and b/src/graphics/FAS/pndDevice/FasDevice.png differ diff --git a/src/graphics/FAS/pndDevice/PngDevice.json b/src/graphics/FAS/pndDevice/PngDevice.json new file mode 100644 index 0000000..b412b54 --- /dev/null +++ b/src/graphics/FAS/pndDevice/PngDevice.json @@ -0,0 +1,725 @@ +{ + "frames": { + "fasFailureControlHostNormal.png": { + "frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasFailureControlHostFault.png": { + "frame": { "x": 32, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasFailureControlHostInterruption.png": { + "frame": { "x": 64, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorFireAlarm.png": { + "frame": { "x": 96, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorNormal.png": { + "frame": { "x": 128, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorIsolate.png": { + "frame": { "x": 160, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorFault.png": { + "frame": { "x": 192, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorForewarning.png": { + "frame": { "x": 224, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "smokeDetectorInterruption.png": { + "frame": { "x": 256, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorFireAlarm.png": { + "frame": { "x": 288, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorNormal.png": { + "frame": { "x": 320, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorIsolate.png": { + "frame": { "x": 352, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorFault.png": { + "frame": { "x": 384, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorForewarning.png": { + "frame": { "x": 416, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "temperatureDetectorInterruption.png": { + "frame": { "x": 448, "y": 0, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "manualAlarmButtonFireAlarm.png": { + "frame": { "x": 0, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "manualAlarmButtonNormal.png": { + "frame": { "x": 32, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "manualAlarmButtonIsolate.png": { + "frame": { "x": 64, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "manualAlarmButtonFault.png": { + "frame": { "x": 96, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "manualAlarmButtonInterruption.png": { + "frame": { "x": 128, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingNormal.png": { + "frame": { "x": 160, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingFault.png": { + "frame": { "x": 192, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingIsolate.png": { + "frame": { "x": 224, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingForewarning.png": { + "frame": { "x": 256, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingAlarm.png": { + "frame": { "x": 288, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "gasExtinguishingInterruption.png": { + "frame": { "x": 320, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasAlarmAlarm.png": { + "frame": { "x": 352, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasAlarmNormal.png": { + "frame": { "x": 384, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasAlarmIsolate.png": { + "frame": { "x": 416, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasAlarmFault.png": { + "frame": { "x": 448, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fasAlarmInterruption.png": { + "frame": { "x": 480, "y": 32, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireShutterNormal.png": { + "frame": { "x": 0, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireShutterAlarm.png": { + "frame": { "x": 32, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireShutterFall.png": { + "frame": { "x": 64, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireShutterInterruption.png": { + "frame": { "x": 96, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireShutterHalfFall.png": { + "frame": { "x": 128, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "firePumpRun.png": { + "frame": { "x": 160, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "firePumpStop.png": { + "frame": { "x": 192, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "firePumpFault.png": { + "frame": { "x": 224, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "firePumpInterruption.png": { + "frame": { "x": 256, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "sprayPumpRun.png": { + "frame": { "x": 288, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "sprayPumpStop.png": { + "frame": { "x": 320, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "sprayPumpFault.png": { + "frame": { "x": 356, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "sprayPumpInterruption.png": { + "frame": { "x": 388, "y": 64, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "stabilizedPressurePumpRun.png": { + "frame": { "x": 0, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "stabilizedPressurePumpStop.png": { + "frame": { "x": 32, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "stabilizedPressurePumpFault.png": { + "frame": { "x": 64, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "stabilizedPressurePumpInterruption.png": { + "frame": { "x": 96, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "nonFirePowerSupplyRun.png": { + "frame": { "x": 128, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "nonFirePowerSupplyNormal.png": { + "frame": { "x": 160, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "nonFirePowerSupplyFault.png": { + "frame": { "x": 192, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "nonFirePowerSupplyInterruption.png": { + "frame": { "x": 224, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "waterFlowIndicatorRun.png": { + "frame": { "x": 256, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "waterFlowIndicatorNormal.png": { + "frame": { "x": 288, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "waterFlowIndicatorStop.png": { + "frame": { "x": 320, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "waterFlowIndicatorInterruption.png": { + "frame": { "x": 352, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "signalButterflyValveRun.png": { + "frame": { "x": 384, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "signalButterflyValveNormal.png": { + "frame": { "x": 384, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "signalButterflyValveStop.png": { + "frame": { "x": 384, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "signalButterflyValveInterruption.png": { + "frame": { "x": 384, "y": 96, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "pressureSwitchRun.png": { + "frame": { "x": 0, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "pressureSwitchNormal.png": { + "frame": { "x": 32, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "pressureSwitchFault.png": { + "frame": { "x": 64, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "pressureSwitchInterruption.png": { + "frame": { "x": 96, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "faultValveRun.png": { + "frame": { "x": 128, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "faultValveNormal.png": { + "frame": { "x": 160, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "faultValveFault.png": { + "frame": { "x": 192, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "faultValveInterruption.png": { + "frame": { "x": 224, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "emergencyLightingRun.png": { + "frame": { "x": 256, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "emergencyLightingNormal.png": { + "frame": { "x": 288, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "emergencyLightingFault.png": { + "frame": { "x": 320, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "emergencyLightingInterruption.png": { + "frame": { "x": 352, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "elevatorLiftToTopFireFault.png": { + "frame": { "x": 384, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "elevatorLiftToTopNormal.png": { + "frame": { "x": 416, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "elevatorLiftToTopFault.png": { + "frame": { "x": 448, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "elevatorLiftToTopInterruption.png": { + "frame": { "x": 480, "y": 128, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricButterflyValveFireAlarm.png": { + "frame": { "x": 0, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricButterflyValveNormal.png": { + "frame": { "x": 32, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricButterflyValveFault.png": { + "frame": { "x": 64, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricButterflyValveInterruption.png": { + "frame": { "x": 96, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireValveFireAlarm.png": { + "frame": { "x": 128, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireValveNormal.png": { + "frame": { "x": 160, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireValveIsolate.png": { + "frame": { "x": 192, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireValveFault.png": { + "frame": { "x": 224, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "fireValveInterruption.png": { + "frame": { "x": 256, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricFireExtinguishingValveFireAlarm.png": { + "frame": { "x": 288, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricFireExtinguishingValveNormal.png": { + "frame": { "x": 320, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricFireExtinguishingValveFault.png": { + "frame": { "x": 352, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + }, + "electricFireExtinguishingValveInterruption.png": { + "frame": { "x": 384, "y": 160, "w": 32, "h": 32 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 512, "h": 194 }, + "sourceSize": { "w": 512, "h": 194 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "FasDevice.png", + "format": "RGBA8888", + "size": { "w": 512, "h": 194 }, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/FAS/pressureSwitch/PressureSwitch.ts b/src/graphics/FAS/pressureSwitch/PressureSwitch.ts new file mode 100644 index 0000000..f2316ab --- /dev/null +++ b/src/graphics/FAS/pressureSwitch/PressureSwitch.ts @@ -0,0 +1,68 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IPressureSwitchData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface PressureSwitchTextures { + normal: Texture; + run: Texture; + fault: Texture; + interruption: Texture; +} + +export class PressureSwitch extends JlGraphic { + static Type = 'PressureSwitch'; + _pressureSwitch: Sprite; + pressureSwitchTextures: PressureSwitchTextures; + __state = 0; + + constructor(pressureSwitchTextures: PressureSwitchTextures) { + super(PressureSwitch.Type); + this._pressureSwitch = new Sprite(); + this.pressureSwitchTextures = pressureSwitchTextures; + this._pressureSwitch.anchor.set(0.5); + this.addChild(this._pressureSwitch); + this._pressureSwitch.texture = this.pressureSwitchTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IPressureSwitchData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class PressureSwitchTemplate extends JlGraphicTemplate { + pressureSwitchTextures?: PressureSwitchTextures; + constructor(dataTemplate: IPressureSwitchData) { + super(PressureSwitch.Type, { dataTemplate }); + this.loadAssets(); + } + new(): PressureSwitch { + if (this.pressureSwitchTextures) { + const g = new PressureSwitch(this.pressureSwitchTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const pressureSwitchSheet = new Spritesheet(texture, FasDeviceJson); + const result = await pressureSwitchSheet.parse(); + this.pressureSwitchTextures = { + normal: result['pressureSwitchNormal.png'], + run: result['pressureSwitchRun.png'], + fault: result['pressureSwitchFault.png'], + interruption: result['pressureSwitchInterruption.png'], + }; + return this.pressureSwitchTextures as PressureSwitchTextures; + } +} diff --git a/src/graphics/FAS/pressureSwitch/PressureSwitchAssistant.ts b/src/graphics/FAS/pressureSwitch/PressureSwitchAssistant.ts new file mode 100644 index 0000000..9406eb0 --- /dev/null +++ b/src/graphics/FAS/pressureSwitch/PressureSwitchAssistant.ts @@ -0,0 +1,123 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IPressureSwitchData, + PressureSwitch, + PressureSwitchTemplate, +} from './PressureSwitch'; + +export class PressureSwitchDraw extends GraphicDrawAssistant< + PressureSwitchTemplate, + IPressureSwitchData +> { + _pressureSwitch: PressureSwitch | null = null; + constructor(app: IDrawApp, template: PressureSwitchTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-fault-valve', '压力开关'); + PressureSwitchInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._pressureSwitch) { + this._pressureSwitch = this.graphicTemplate.new(); + this.container.addChild(this._pressureSwitch); + } + } + + public get pressureSwitch(): PressureSwitch { + if (!this._pressureSwitch) { + this._pressureSwitch = this.graphicTemplate.new(); + this.container.addChild(this._pressureSwitch); + } + return this._pressureSwitch; + } + + redraw(cp: Point): void { + this.pressureSwitch.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.pressureSwitch.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IPressureSwitchData): boolean { + data.transform = this.pressureSwitch.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param pressureSwitch + */ +function buildAbsorbablePositions( + pressureSwitch: PressureSwitch +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const pressureSwitchs = pressureSwitch.queryStore.queryByType( + PressureSwitch.Type + ); + const canvas = pressureSwitch.getCanvas(); + pressureSwitchs.forEach((item) => { + if (item.id === pressureSwitch.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class PressureSwitchInteraction extends GraphicInteractionPlugin { + static Name = 'pressure_switch_transform'; + constructor(app: IDrawApp) { + super(PressureSwitchInteraction.Name, app); + } + static init(app: IDrawApp) { + return new PressureSwitchInteraction(app); + } + filter(...grahpics: JlGraphic[]): PressureSwitch[] | undefined { + return grahpics + .filter((g) => g.type === PressureSwitch.Type) + .map((g) => g as PressureSwitch); + } + bind(g: PressureSwitch): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: PressureSwitch): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const pressureSwitch = target.getGraphic() as PressureSwitch; + pressureSwitch.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(pressureSwitch), + }); + } +} diff --git a/src/graphics/FAS/signalButterflyValve/SignalButterflyValve.ts b/src/graphics/FAS/signalButterflyValve/SignalButterflyValve.ts new file mode 100644 index 0000000..9cb80fb --- /dev/null +++ b/src/graphics/FAS/signalButterflyValve/SignalButterflyValve.ts @@ -0,0 +1,69 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface ISignalButterflyValveData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface SignalButterflyValveTextures { + normal: Texture; + run: Texture; + stop: Texture; + interruption: Texture; +} + +export class SignalButterflyValve extends JlGraphic { + static Type = 'SignalButterflyValve'; + _signalButterflyValve: Sprite; + signalButterflyValveTextures: SignalButterflyValveTextures; + __state = 0; + + constructor(signalButterflyValveTextures: SignalButterflyValveTextures) { + super(SignalButterflyValve.Type); + this._signalButterflyValve = new Sprite(); + this.signalButterflyValveTextures = signalButterflyValveTextures; + this._signalButterflyValve.anchor.set(0.5); + this.addChild(this._signalButterflyValve); + this._signalButterflyValve.texture = + this.signalButterflyValveTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): ISignalButterflyValveData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class SignalButterflyValveTemplate extends JlGraphicTemplate { + signalButterflyValveTextures?: SignalButterflyValveTextures; + constructor(dataTemplate: ISignalButterflyValveData) { + super(SignalButterflyValve.Type, { dataTemplate }); + this.loadAssets(); + } + new(): SignalButterflyValve { + if (this.signalButterflyValveTextures) { + const g = new SignalButterflyValve(this.signalButterflyValveTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const signalButterflyValveSheet = new Spritesheet(texture, FasDeviceJson); + const result = await signalButterflyValveSheet.parse(); + this.signalButterflyValveTextures = { + normal: result['signalButterflyValveNormal.png'], + run: result['signalButterflyValveRun.png'], + stop: result['signalButterflyValveStop.png'], + interruption: result['signalButterflyValveInterruption.png'], + }; + return this.signalButterflyValveTextures as SignalButterflyValveTextures; + } +} diff --git a/src/graphics/FAS/signalButterflyValve/SignalButterflyValveAssistant.ts b/src/graphics/FAS/signalButterflyValve/SignalButterflyValveAssistant.ts new file mode 100644 index 0000000..678059e --- /dev/null +++ b/src/graphics/FAS/signalButterflyValve/SignalButterflyValveAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ISignalButterflyValveData, + SignalButterflyValve, + SignalButterflyValveTemplate, +} from './SignalButterflyValve'; + +export class SignalButterflyValveDraw extends GraphicDrawAssistant< + SignalButterflyValveTemplate, + ISignalButterflyValveData +> { + _signalButterflyValve: SignalButterflyValve | null = null; + constructor(app: IDrawApp, template: SignalButterflyValveTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-signal-butterfly-valve', + '信号蝶阀' + ); + SignalButterflyValveInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._signalButterflyValve) { + this._signalButterflyValve = this.graphicTemplate.new(); + this.container.addChild(this._signalButterflyValve); + } + } + + public get signalButterflyValve(): SignalButterflyValve { + if (!this._signalButterflyValve) { + this._signalButterflyValve = this.graphicTemplate.new(); + this.container.addChild(this._signalButterflyValve); + } + return this._signalButterflyValve; + } + + redraw(cp: Point): void { + this.signalButterflyValve.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.signalButterflyValve.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: ISignalButterflyValveData): boolean { + data.transform = this.signalButterflyValve.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param signalButterflyValve + */ +function buildAbsorbablePositions( + signalButterflyValve: SignalButterflyValve +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const signalButterflyValves = + signalButterflyValve.queryStore.queryByType( + SignalButterflyValve.Type + ); + const canvas = signalButterflyValve.getCanvas(); + signalButterflyValves.forEach((item) => { + if (item.id === signalButterflyValve.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class SignalButterflyValveInteraction extends GraphicInteractionPlugin { + static Name = 'signal_butterfly_valve_transform'; + constructor(app: IDrawApp) { + super(SignalButterflyValveInteraction.Name, app); + } + static init(app: IDrawApp) { + return new SignalButterflyValveInteraction(app); + } + filter(...grahpics: JlGraphic[]): SignalButterflyValve[] | undefined { + return grahpics + .filter((g) => g.type === SignalButterflyValve.Type) + .map((g) => g as SignalButterflyValve); + } + bind(g: SignalButterflyValve): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: SignalButterflyValve): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const signalButterflyValve = target.getGraphic() as SignalButterflyValve; + signalButterflyValve.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(signalButterflyValve), + }); + } +} diff --git a/src/graphics/FAS/smokeDetector/SmokeDetector.ts b/src/graphics/FAS/smokeDetector/SmokeDetector.ts new file mode 100644 index 0000000..514be5a --- /dev/null +++ b/src/graphics/FAS/smokeDetector/SmokeDetector.ts @@ -0,0 +1,73 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface ISmokeDetectorData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface SmokeDetectorTextures { + normal: Texture; + fireAlarm: Texture; + isolate: Texture; + fault: Texture; + forewarning: Texture; + interruption: Texture; +} + +export class SmokeDetector extends JlGraphic { + static Type = 'SmokeDetector'; + _smokeDetector: Sprite; + smokeDetectorTextures: SmokeDetectorTextures; + __state = 0; + + constructor(smokeDetectorTextures: SmokeDetectorTextures) { + super(SmokeDetector.Type); + this._smokeDetector = new Sprite(); + this.smokeDetectorTextures = smokeDetectorTextures; + this._smokeDetector.anchor.set(0.5); + this.addChild(this._smokeDetector); + this._smokeDetector.texture = this.smokeDetectorTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): ISmokeDetectorData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class SmokeDetectorTemplate extends JlGraphicTemplate { + smokeDetectorTextures?: SmokeDetectorTextures; + constructor(dataTemplate: ISmokeDetectorData) { + super(SmokeDetector.Type, { dataTemplate }); + this.loadAssets(); + } + new(): SmokeDetector { + if (this.smokeDetectorTextures) { + const g = new SmokeDetector(this.smokeDetectorTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const smokeDetectorSheet = new Spritesheet(texture, FasDeviceJson); + const result = await smokeDetectorSheet.parse(); + this.smokeDetectorTextures = { + normal: result['smokeDetectorNormal.png'], + fireAlarm: result['smokeDetectorFireAlarm.png'], + isolate: result['smokeDetectorIsolate.png'], + fault: result['smokeDetectorFault.png'], + forewarning: result['smokeDetectorForewarning.png'], + interruption: result['smokeDetectorInterruption.png'], + }; + return this.smokeDetectorTextures as SmokeDetectorTextures; + } +} diff --git a/src/graphics/FAS/smokeDetector/SmokeDetectorAssistant.ts b/src/graphics/FAS/smokeDetector/SmokeDetectorAssistant.ts new file mode 100644 index 0000000..b82ec90 --- /dev/null +++ b/src/graphics/FAS/smokeDetector/SmokeDetectorAssistant.ts @@ -0,0 +1,123 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ISmokeDetectorData, + SmokeDetector, + SmokeDetectorTemplate, +} from './SmokeDetector'; + +export class SmokeDetectorDraw extends GraphicDrawAssistant< + SmokeDetectorTemplate, + ISmokeDetectorData +> { + _smokeDetector: SmokeDetector | null = null; + constructor(app: IDrawApp, template: SmokeDetectorTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-smoke-detector', '烟感'); + SmokeDetectorInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._smokeDetector) { + this._smokeDetector = this.graphicTemplate.new(); + this.container.addChild(this._smokeDetector); + } + } + + public get smokeDetector(): SmokeDetector { + if (!this._smokeDetector) { + this._smokeDetector = this.graphicTemplate.new(); + this.container.addChild(this._smokeDetector); + } + return this._smokeDetector; + } + + redraw(cp: Point): void { + this.smokeDetector.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.smokeDetector.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: ISmokeDetectorData): boolean { + data.transform = this.smokeDetector.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param smokeDetector + */ +function buildAbsorbablePositions( + smokeDetector: SmokeDetector +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const smokeDetectors = smokeDetector.queryStore.queryByType( + SmokeDetector.Type + ); + const canvas = smokeDetector.getCanvas(); + smokeDetectors.forEach((item) => { + if (item.id === smokeDetector.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class SmokeDetectorInteraction extends GraphicInteractionPlugin { + static Name = 'smoke_detector_transform'; + constructor(app: IDrawApp) { + super(SmokeDetectorInteraction.Name, app); + } + static init(app: IDrawApp) { + return new SmokeDetectorInteraction(app); + } + filter(...grahpics: JlGraphic[]): SmokeDetector[] | undefined { + return grahpics + .filter((g) => g.type === SmokeDetector.Type) + .map((g) => g as SmokeDetector); + } + bind(g: SmokeDetector): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: SmokeDetector): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const smokeDetector = target.getGraphic() as SmokeDetector; + smokeDetector.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(smokeDetector), + }); + } +} diff --git a/src/graphics/FAS/sprayPump/SprayPump.ts b/src/graphics/FAS/sprayPump/SprayPump.ts new file mode 100644 index 0000000..a340adf --- /dev/null +++ b/src/graphics/FAS/sprayPump/SprayPump.ts @@ -0,0 +1,69 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface ISprayPumpData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface SprayPumpTextures { + run: Texture; + stop: Texture; + fault: Texture; + interruption: Texture; +} + +export class SprayPump extends JlGraphic { + static Type = 'SprayPump'; + _sprayPump: Sprite; + sprayPumpTextures: SprayPumpTextures; + __state = 0; + + constructor(sprayPumpTextures: SprayPumpTextures) { + super(SprayPump.Type); + this._sprayPump = new Sprite(); + this.sprayPumpTextures = sprayPumpTextures; + this._sprayPump.anchor.set(0.5); + this.addChild(this._sprayPump); + this._sprayPump.texture = this.sprayPumpTextures.run; + } + get code(): string { + return this.datas.code; + } + get datas(): ISprayPumpData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class SprayPumpTemplate extends JlGraphicTemplate { + sprayPumpTextures?: SprayPumpTextures; + constructor(dataTemplate: ISprayPumpData) { + super(SprayPump.Type, { dataTemplate }); + this.loadAssets(); + } + new(): SprayPump { + if (this.sprayPumpTextures) { + const g = new SprayPump(this.sprayPumpTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const sprayPumpSheet = new Spritesheet(texture, FasDeviceJson); + const result = await sprayPumpSheet.parse(); + this.sprayPumpTextures = { + run: result['sprayPumpRun.png'], + stop: result['sprayPumpStop.png'], + fault: result['sprayPumpFault.png'], + interruption: result['sprayPumpInterruption.png'], + }; + return this.sprayPumpTextures as SprayPumpTextures; + } +} diff --git a/src/graphics/FAS/sprayPump/SprayPumpAssistant.ts b/src/graphics/FAS/sprayPump/SprayPumpAssistant.ts new file mode 100644 index 0000000..a58adf4 --- /dev/null +++ b/src/graphics/FAS/sprayPump/SprayPumpAssistant.ts @@ -0,0 +1,117 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { ISprayPumpData, SprayPump, SprayPumpTemplate } from './SprayPump'; + +export class SprayPumpDraw extends GraphicDrawAssistant< + SprayPumpTemplate, + ISprayPumpData +> { + _sprayPump: SprayPump | null = null; + constructor(app: IDrawApp, template: SprayPumpTemplate) { + super(app, template, 'svguse:../drawIcon.svg#icon-spray-pump', '喷淋泵'); + SprayPumpInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._sprayPump) { + this._sprayPump = this.graphicTemplate.new(); + this.container.addChild(this._sprayPump); + } + } + + public get sprayPump(): SprayPump { + if (!this._sprayPump) { + this._sprayPump = this.graphicTemplate.new(); + this.container.addChild(this._sprayPump); + } + return this._sprayPump; + } + + redraw(cp: Point): void { + this.sprayPump.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.sprayPump.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: ISprayPumpData): boolean { + data.transform = this.sprayPump.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param sprayPump + */ +function buildAbsorbablePositions(sprayPump: SprayPump): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const sprayPumps = sprayPump.queryStore.queryByType( + SprayPump.Type + ); + const canvas = sprayPump.getCanvas(); + sprayPumps.forEach((item) => { + if (item.id === sprayPump.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class SprayPumpInteraction extends GraphicInteractionPlugin { + static Name = 'spary_pump_transform'; + constructor(app: IDrawApp) { + super(SprayPumpInteraction.Name, app); + } + static init(app: IDrawApp) { + return new SprayPumpInteraction(app); + } + filter(...grahpics: JlGraphic[]): SprayPump[] | undefined { + return grahpics + .filter((g) => g.type === SprayPump.Type) + .map((g) => g as SprayPump); + } + bind(g: SprayPump): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: SprayPump): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const sprayPump = target.getGraphic() as SprayPump; + sprayPump.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(sprayPump), + }); + } +} diff --git a/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.json b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.json new file mode 100644 index 0000000..b05230f --- /dev/null +++ b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.json @@ -0,0 +1,21 @@ +{ + "frames": { + "normal.png": { + "frame": { "x": 0, "y": 0, "w": 36, "h": 25 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 25 }, + "sourceSize": { "w": 27, "h": 26 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "StabilizedPressurePump.png", + "format": "RGBA8888", + "size": { "w": 36, "h": 25 }, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.png b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.png new file mode 100644 index 0000000..b36ecb0 Binary files /dev/null and b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.png differ diff --git a/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.ts b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.ts new file mode 100644 index 0000000..7211862 --- /dev/null +++ b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump.ts @@ -0,0 +1,68 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import StabilizedPressurePumpJson from './StabilizedPressurePump.json'; +import StabilizedPressurePumpAssets from './StabilizedPressurePump.png'; + +export interface IStabilizedPressurePumpData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface StabilizedPressurePumpTextures { + normal: Texture; +} + +export class StabilizedPressurePump extends JlGraphic { + static Type = 'StabilizedPressurePump'; + _stabilizedPressurePump: Sprite; + stabilizedPressurePumpTextures: StabilizedPressurePumpTextures; + __state = 0; + + constructor(stabilizedPressurePumpTextures: StabilizedPressurePumpTextures) { + super(StabilizedPressurePump.Type); + this._stabilizedPressurePump = new Sprite(); + this.stabilizedPressurePumpTextures = stabilizedPressurePumpTextures; + this._stabilizedPressurePump.anchor.set(0.5); + this.addChild(this._stabilizedPressurePump); + this._stabilizedPressurePump.texture = + this.stabilizedPressurePumpTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IStabilizedPressurePumpData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class StabilizedPressurePumpTemplate extends JlGraphicTemplate { + stabilizedPressurePumpTextures?: StabilizedPressurePumpTextures; + constructor(dataTemplate: IStabilizedPressurePumpData) { + super(StabilizedPressurePump.Type, { dataTemplate }); + this.loadAssets(); + } + new(): StabilizedPressurePump { + if (this.stabilizedPressurePumpTextures) { + const g = new StabilizedPressurePump(this.stabilizedPressurePumpTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(StabilizedPressurePumpAssets); + const stabilizedPressurePumpSheet = new Spritesheet( + texture, + StabilizedPressurePumpJson + ); + const result = await stabilizedPressurePumpSheet.parse(); + this.stabilizedPressurePumpTextures = { + normal: result['normal.png'], + }; + return this + .stabilizedPressurePumpTextures as StabilizedPressurePumpTextures; + } +} diff --git a/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePumpAssistant.ts b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePumpAssistant.ts new file mode 100644 index 0000000..20fc1a7 --- /dev/null +++ b/src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePumpAssistant.ts @@ -0,0 +1,132 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + StabilizedPressurePump, + IStabilizedPressurePumpData, + StabilizedPressurePumpTemplate, +} from './StabilizedPressurePump'; + +export class StabilizedPressurePumpDraw extends GraphicDrawAssistant< + StabilizedPressurePumpTemplate, + IStabilizedPressurePumpData +> { + _stabilizedPressurePump: StabilizedPressurePump | null = null; + constructor(app: IDrawApp, template: StabilizedPressurePumpTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-stabilized-pressure-pump', + '稳压泵' + ); + StabilizedPressurePumpInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._stabilizedPressurePump) { + this._stabilizedPressurePump = this.graphicTemplate.new(); + this.container.addChild(this._stabilizedPressurePump); + } + } + + public get stabilizedPressurePump(): StabilizedPressurePump { + if (!this._stabilizedPressurePump) { + this._stabilizedPressurePump = this.graphicTemplate.new(); + this.container.addChild(this._stabilizedPressurePump); + } + return this._stabilizedPressurePump; + } + + redraw(cp: Point): void { + this.stabilizedPressurePump.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.stabilizedPressurePump.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IStabilizedPressurePumpData): boolean { + data.transform = this.stabilizedPressurePump.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param stabilizedPressurePump + */ +function buildAbsorbablePositions( + stabilizedPressurePump: StabilizedPressurePump +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const stabilizedPressurePumps = + stabilizedPressurePump.queryStore.queryByType( + StabilizedPressurePump.Type + ); + const canvas = stabilizedPressurePump.getCanvas(); + stabilizedPressurePumps.forEach((item) => { + if (item.id === stabilizedPressurePump.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class StabilizedPressurePumpInteraction extends GraphicInteractionPlugin { + static Name = 'stabilized_pressure_pump_transform'; + constructor(app: IDrawApp) { + super(StabilizedPressurePumpInteraction.Name, app); + } + static init(app: IDrawApp) { + return new StabilizedPressurePumpInteraction(app); + } + filter(...grahpics: JlGraphic[]): StabilizedPressurePump[] | undefined { + return grahpics + .filter((g) => g.type === StabilizedPressurePump.Type) + .map((g) => g as StabilizedPressurePump); + } + bind(g: StabilizedPressurePump): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: StabilizedPressurePump): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const stabilizedPressurePump = + target.getGraphic() as StabilizedPressurePump; + stabilizedPressurePump.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(stabilizedPressurePump), + }); + } +} diff --git a/src/graphics/FAS/startPumpButton/StartPumpButton.ts b/src/graphics/FAS/startPumpButton/StartPumpButton.ts new file mode 100644 index 0000000..e33dbb9 --- /dev/null +++ b/src/graphics/FAS/startPumpButton/StartPumpButton.ts @@ -0,0 +1,65 @@ +import { + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; +import { Graphics } from 'pixi.js'; + +export interface IStartPumpButtonData extends GraphicData { + get code(): string; + set code(v: string); +} + +const startPumpConsts = { + circleR: 16, + circleBackground: '0x99ccff', + textColor: '0xffffff', + text: 'ON', + fontSize: 18, +}; + +export class StartPumpButton extends JlGraphic { + static Type = 'StartPumpButton'; + circleGraphic: Graphics = new Graphics(); + textGraphic: VectorText = new VectorText(); + + constructor() { + super(StartPumpButton.Type); + this.addChild(this.circleGraphic); + this.addChild(this.textGraphic); + } + get code(): string { + return this.datas.code; + } + get datas(): IStartPumpButtonData { + return this.getDatas(); + } + + doRepaint(): void { + const circleGraphic = this.circleGraphic; + circleGraphic.clear(); + circleGraphic.beginFill(startPumpConsts.circleBackground); + circleGraphic.drawCircle(0, 0, startPumpConsts.circleR); + circleGraphic.endFill(); + + this.textGraphic.text = startPumpConsts.text; + this.textGraphic.setVectorFontSize(startPumpConsts.fontSize); + this.textGraphic.anchor.set(0.5); + this.textGraphic.style.fill = startPumpConsts.textColor; + this.textGraphic.position.set(0, 0); + } +} + +export class StartPumpButtonTemplate extends JlGraphicTemplate { + constructor(dataTemplate: IStartPumpButtonData) { + super(StartPumpButton.Type, { + dataTemplate, + }); + } + new(): StartPumpButton { + const startPumpButton = new StartPumpButton(); + startPumpButton.loadData(this.datas); + return startPumpButton; + } +} diff --git a/src/graphics/FAS/startPumpButton/StartPumpButtonAssistant.ts b/src/graphics/FAS/startPumpButton/StartPumpButtonAssistant.ts new file mode 100644 index 0000000..9c5a331 --- /dev/null +++ b/src/graphics/FAS/startPumpButton/StartPumpButtonAssistant.ts @@ -0,0 +1,130 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IStartPumpButtonData, + StartPumpButton, + StartPumpButtonTemplate, +} from './StartPumpButton'; + +export class StartPumpButtonDraw extends GraphicDrawAssistant< + StartPumpButtonTemplate, + IStartPumpButtonData +> { + _startPumpButton: StartPumpButton | null = null; + constructor(app: IDrawApp, template: StartPumpButtonTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-start-pump-button', + '启泵按钮' + ); + StartPumpButtonInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._startPumpButton) { + this._startPumpButton = this.graphicTemplate.new(); + this.container.addChild(this._startPumpButton); + this._startPumpButton.doRepaint(); + } + } + + public get startPumpButton(): StartPumpButton { + if (!this._startPumpButton) { + this._startPumpButton = this.graphicTemplate.new(); + this.container.addChild(this._startPumpButton); + } + return this._startPumpButton; + } + + redraw(cp: Point): void { + this.startPumpButton.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.startPumpButton.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: IStartPumpButtonData): boolean { + data.transform = this.startPumpButton.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param startPumpButton + */ +function buildAbsorbablePositions( + startPumpButton: StartPumpButton +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const startPumpButtons = + startPumpButton.queryStore.queryByType( + StartPumpButton.Type + ); + const canvas = startPumpButton.getCanvas(); + startPumpButtons.forEach((item) => { + if (item.id === startPumpButton.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class StartPumpButtonInteraction extends GraphicInteractionPlugin { + static Name = 'start_pump_button_transform'; + constructor(app: IDrawApp) { + super(StartPumpButtonInteraction.Name, app); + } + static init(app: IDrawApp) { + return new StartPumpButtonInteraction(app); + } + filter(...grahpics: JlGraphic[]): StartPumpButton[] | undefined { + return grahpics + .filter((g) => g.type === StartPumpButton.Type) + .map((g) => g as StartPumpButton); + } + bind(g: StartPumpButton): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: StartPumpButton): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const startPumpButton = target.getGraphic() as StartPumpButton; + startPumpButton.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(startPumpButton), + }); + } +} diff --git a/src/graphics/FAS/temperatureCable/TemperatureCable.ts b/src/graphics/FAS/temperatureCable/TemperatureCable.ts new file mode 100644 index 0000000..093c204 --- /dev/null +++ b/src/graphics/FAS/temperatureCable/TemperatureCable.ts @@ -0,0 +1,73 @@ +import { Graphics } from 'pixi.js'; +import { + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; + +export interface ITemperatureCableData extends GraphicData { + get code(): string; // 编号 + set code(v: string); + clone(): ITemperatureCableData; + copyFrom(data: ITemperatureCableData): void; + eq(other: ITemperatureCableData): boolean; +} + +const temperatureCableConsts = { + rectWidth: 64, + rectHeight: 24, + rectBackground: '0x99ccff', + textColor: '0x33cc00', + text: '电缆', + fontSize: 12, +}; + +export class TemperatureCable extends JlGraphic { + static Type = 'TemperatureCable'; + rectGraphic: Graphics = new Graphics(); + textGraphic: VectorText = new VectorText(); + constructor() { + super(TemperatureCable.Type); + this.addChild(this.rectGraphic); + this.addChild(this.textGraphic); + } + + get datas(): ITemperatureCableData { + return this.getDatas(); + } + doRepaint(): void { + const rectGraphic = this.rectGraphic; + rectGraphic.clear(); + rectGraphic.beginFill(temperatureCableConsts.rectBackground); + rectGraphic.drawRect( + 0, + 0, + temperatureCableConsts.rectWidth, + temperatureCableConsts.rectHeight + ); + rectGraphic.endFill(); + + this.textGraphic.text = temperatureCableConsts.text; + this.textGraphic.setVectorFontSize(temperatureCableConsts.fontSize); + this.textGraphic.anchor.set(0.5); + this.textGraphic.style.fill = temperatureCableConsts.textColor; + this.textGraphic.position.set( + temperatureCableConsts.rectWidth / 2, + temperatureCableConsts.rectHeight / 2 + ); + } +} + +export class TemperatureCableTemplate extends JlGraphicTemplate { + constructor(dataTemplate: ITemperatureCableData) { + super(TemperatureCable.Type, { + dataTemplate, + }); + } + new(): TemperatureCable { + const temperatureCable = new TemperatureCable(); + temperatureCable.loadData(this.datas); + return temperatureCable; + } +} diff --git a/src/graphics/FAS/temperatureCable/TemperatureCableAssistant.ts b/src/graphics/FAS/temperatureCable/TemperatureCableAssistant.ts new file mode 100644 index 0000000..0ee33d7 --- /dev/null +++ b/src/graphics/FAS/temperatureCable/TemperatureCableAssistant.ts @@ -0,0 +1,130 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ITemperatureCableData, + TemperatureCable, + TemperatureCableTemplate, +} from './TemperatureCable'; + +export class TemperatureCableDraw extends GraphicDrawAssistant< + TemperatureCableTemplate, + ITemperatureCableData +> { + _temperatureCable: TemperatureCable | null = null; + constructor(app: IDrawApp, template: TemperatureCableTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-temperature-cable', + '感温电缆' + ); + TemperatureCableInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._temperatureCable) { + this._temperatureCable = this.graphicTemplate.new(); + this.container.addChild(this._temperatureCable); + this._temperatureCable.doRepaint(); + } + } + + public get temperatureCable(): TemperatureCable { + if (!this._temperatureCable) { + this._temperatureCable = this.graphicTemplate.new(); + this.container.addChild(this._temperatureCable); + } + return this._temperatureCable; + } + + redraw(cp: Point): void { + this.temperatureCable.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.temperatureCable.position.copyFrom(this.toCanvasCoordinates(e.global)); + this.createAndStore(true); + } + prepareData(data: ITemperatureCableData): boolean { + data.transform = this.temperatureCable.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param temperatureCable + */ +function buildAbsorbablePositions( + temperatureCable: TemperatureCable +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const temperatureCables = + temperatureCable.queryStore.queryByType( + TemperatureCable.Type + ); + const canvas = temperatureCable.getCanvas(); + temperatureCables.forEach((item) => { + if (item.id === temperatureCable.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class TemperatureCableInteraction extends GraphicInteractionPlugin { + static Name = 'temperature_cable_transform'; + constructor(app: IDrawApp) { + super(TemperatureCableInteraction.Name, app); + } + static init(app: IDrawApp) { + return new TemperatureCableInteraction(app); + } + filter(...grahpics: JlGraphic[]): TemperatureCable[] | undefined { + return grahpics + .filter((g) => g.type === TemperatureCable.Type) + .map((g) => g as TemperatureCable); + } + bind(g: TemperatureCable): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: TemperatureCable): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const temperatureCable = target.getGraphic() as TemperatureCable; + temperatureCable.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(temperatureCable), + }); + } +} diff --git a/src/graphics/FAS/temperatureDetector/TemperatureDetector.json b/src/graphics/FAS/temperatureDetector/TemperatureDetector.json new file mode 100644 index 0000000..47369d4 --- /dev/null +++ b/src/graphics/FAS/temperatureDetector/TemperatureDetector.json @@ -0,0 +1,21 @@ +{ + "frames": { + "normal.png": { + "frame": { "x": 0, "y": 0, "w": 21, "h": 11 }, + "rotated": false, + "trimmed": false, + "spriteSourceSize": { "x": 0, "y": 0, "w": 21, "h": 11 }, + "sourceSize": { "w": 21, "h": 11 }, + "anchor": { "x": 0.5, "y": 0.5 } + } + }, + "meta": { + "app": "https://www.codeandweb.com/texturepacker", + "version": "1.1", + "image": "TemperatureDetector.png", + "format": "RGBA8888", + "size": { "w": 21, "h": 11 }, + "scale": "1", + "smartupdate": "$TexturePacker:SmartUpdate:e7620bd2d73cc0b3e2deea9704e7eefc:f129a1d9e4b9ba57720b3861c22b155b:eb2d421f7759984b7713aa4aa5354134$" + } +} diff --git a/src/graphics/FAS/temperatureDetector/TemperatureDetector.png b/src/graphics/FAS/temperatureDetector/TemperatureDetector.png new file mode 100644 index 0000000..a3e24cf Binary files /dev/null and b/src/graphics/FAS/temperatureDetector/TemperatureDetector.png differ diff --git a/src/graphics/FAS/temperatureDetector/TemperatureDetector.ts b/src/graphics/FAS/temperatureDetector/TemperatureDetector.ts new file mode 100644 index 0000000..c83c9d5 --- /dev/null +++ b/src/graphics/FAS/temperatureDetector/TemperatureDetector.ts @@ -0,0 +1,66 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import TemperatureDetectorJson from './TemperatureDetector.json'; +import TemperatureDetectorAsset from './TemperatureDetector.png'; + +export interface ITemperatureDetectorData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface TemperatureDetectorTextures { + normal: Texture; +} + +export class TemperatureDetector extends JlGraphic { + static Type = 'TemperatureDetector'; + _temperatureDetector: Sprite; + temperatureDetectorTextures: TemperatureDetectorTextures; + __state = 0; + + constructor(temperatureDetectorTextures: TemperatureDetectorTextures) { + super(TemperatureDetector.Type); + this._temperatureDetector = new Sprite(); + this.temperatureDetectorTextures = temperatureDetectorTextures; + this._temperatureDetector.anchor.set(0.5); + this.addChild(this._temperatureDetector); + this._temperatureDetector.texture = this.temperatureDetectorTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): ITemperatureDetectorData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class TemperatureDetectorTemplate extends JlGraphicTemplate { + temperatureDetectorTextures?: TemperatureDetectorTextures; + constructor(dataTemplate: ITemperatureDetectorData) { + super(TemperatureDetector.Type, { dataTemplate }); + this.loadAssets(); + } + new(): TemperatureDetector { + if (this.temperatureDetectorTextures) { + const g = new TemperatureDetector(this.temperatureDetectorTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(TemperatureDetectorAsset); + const temperatureDetectorSheet = new Spritesheet( + texture, + TemperatureDetectorJson + ); + const result = await temperatureDetectorSheet.parse(); + this.temperatureDetectorTextures = { + normal: result['normal.png'], + }; + return this.temperatureDetectorTextures as TemperatureDetectorTextures; + } +} diff --git a/src/graphics/FAS/temperatureDetector/TemperatureDetectorAssistant.ts b/src/graphics/FAS/temperatureDetector/TemperatureDetectorAssistant.ts new file mode 100644 index 0000000..16eb0d2 --- /dev/null +++ b/src/graphics/FAS/temperatureDetector/TemperatureDetectorAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + ITemperatureDetectorData, + TemperatureDetector, + TemperatureDetectorTemplate, +} from './TemperatureDetector'; + +export class TemperatureDetectorDraw extends GraphicDrawAssistant< + TemperatureDetectorTemplate, + ITemperatureDetectorData +> { + _temperatureDetector: TemperatureDetector | null = null; + constructor(app: IDrawApp, template: TemperatureDetectorTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-temperature-detector', + '温感' + ); + TemperatureDetectorInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._temperatureDetector) { + this._temperatureDetector = this.graphicTemplate.new(); + this.container.addChild(this._temperatureDetector); + } + } + + public get temperatureDetector(): TemperatureDetector { + if (!this._temperatureDetector) { + this._temperatureDetector = this.graphicTemplate.new(); + this.container.addChild(this._temperatureDetector); + } + return this._temperatureDetector; + } + + redraw(cp: Point): void { + this.temperatureDetector.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.temperatureDetector.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: ITemperatureDetectorData): boolean { + data.transform = this.temperatureDetector.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param temperatureDetector + */ +function buildAbsorbablePositions( + temperatureDetector: TemperatureDetector +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const temperatureDetectors = + temperatureDetector.queryStore.queryByType( + TemperatureDetector.Type + ); + const canvas = temperatureDetector.getCanvas(); + temperatureDetectors.forEach((item) => { + if (item.id === temperatureDetector.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class TemperatureDetectorInteraction extends GraphicInteractionPlugin { + static Name = 'temperature_detector_transform'; + constructor(app: IDrawApp) { + super(TemperatureDetectorInteraction.Name, app); + } + static init(app: IDrawApp) { + return new TemperatureDetectorInteraction(app); + } + filter(...grahpics: JlGraphic[]): TemperatureDetector[] | undefined { + return grahpics + .filter((g) => g.type === TemperatureDetector.Type) + .map((g) => g as TemperatureDetector); + } + bind(g: TemperatureDetector): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: TemperatureDetector): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const temperatureDetector = target.getGraphic() as TemperatureDetector; + temperatureDetector.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(temperatureDetector), + }); + } +} diff --git a/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator.ts b/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator.ts new file mode 100644 index 0000000..e9d403f --- /dev/null +++ b/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator.ts @@ -0,0 +1,69 @@ +import { GraphicData, JlGraphic, JlGraphicTemplate } from 'jl-graphic'; +import { Assets, Sprite, Spritesheet, Texture } from 'pixi.js'; +// import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; +import FasDeviceJson from '../pndDevice/PngDevice.json'; +import FasDeviceAssets from '../pndDevice/FasDevice.png'; + +export interface IWaterFlowIndicatorData extends GraphicData { + get code(): string; + set code(v: string); +} + +interface WaterFlowIndicatorTextures { + normal: Texture; + run: Texture; + stop: Texture; + interruption: Texture; +} + +export class WaterFlowIndicator extends JlGraphic { + static Type = 'WaterFlowIndicator'; + _waterFlowIndicator: Sprite; + waterFlowIndicatorTextures: WaterFlowIndicatorTextures; + __state = 0; + + constructor(waterFlowIndicatorTextures: WaterFlowIndicatorTextures) { + super(WaterFlowIndicator.Type); + this._waterFlowIndicator = new Sprite(); + this.waterFlowIndicatorTextures = waterFlowIndicatorTextures; + this._waterFlowIndicator.anchor.set(0.5); + this.addChild(this._waterFlowIndicator); + this._waterFlowIndicator.texture = this.waterFlowIndicatorTextures.normal; + } + get code(): string { + return this.datas.code; + } + get datas(): IWaterFlowIndicatorData { + return this.getDatas(); + } + + doRepaint(): void {} +} + +export class WaterFlowIndicatorTemplate extends JlGraphicTemplate { + waterFlowIndicatorTextures?: WaterFlowIndicatorTextures; + constructor(dataTemplate: IWaterFlowIndicatorData) { + super(WaterFlowIndicator.Type, { dataTemplate }); + this.loadAssets(); + } + new(): WaterFlowIndicator { + if (this.waterFlowIndicatorTextures) { + const g = new WaterFlowIndicator(this.waterFlowIndicatorTextures); + g.loadData(this.datas); + return g; + } + throw new Error('资源未加载/加载失败'); + } + async loadAssets(): Promise { + const texture = await Assets.load(FasDeviceAssets); + const waterFlowIndicatorSheet = new Spritesheet(texture, FasDeviceJson); + const result = await waterFlowIndicatorSheet.parse(); + this.waterFlowIndicatorTextures = { + normal: result['waterFlowIndicatorNormal.png'], + run: result['waterFlowIndicatorRun.png'], + stop: result['waterFlowIndicatorStop.png'], + interruption: result['waterFlowIndicatorInterruption.png'], + }; + return this.waterFlowIndicatorTextures as WaterFlowIndicatorTextures; + } +} diff --git a/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicatorAssistant.ts b/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicatorAssistant.ts new file mode 100644 index 0000000..06155ad --- /dev/null +++ b/src/graphics/FAS/waterFlowIndicator/WaterFlowIndicatorAssistant.ts @@ -0,0 +1,131 @@ +import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js'; +import { + AbsorbableLine, + AbsorbablePosition, + GraphicDrawAssistant, + GraphicInteractionPlugin, + GraphicTransformEvent, + IDrawApp, + JlGraphic, +} from 'jl-graphic'; +import { + IWaterFlowIndicatorData, + WaterFlowIndicator, + WaterFlowIndicatorTemplate, +} from './WaterFlowIndicator'; + +export class WaterFlowIndicatorDraw extends GraphicDrawAssistant< + WaterFlowIndicatorTemplate, + IWaterFlowIndicatorData +> { + _waterFlowIndicator: WaterFlowIndicator | null = null; + constructor(app: IDrawApp, template: WaterFlowIndicatorTemplate) { + super( + app, + template, + 'svguse:../drawIcon.svg#icon-water-flow-indicator', + '水流指示器' + ); + WaterFlowIndicatorInteraction.init(app); + } + + bind(): void { + super.bind(); + if (!this._waterFlowIndicator) { + this._waterFlowIndicator = this.graphicTemplate.new(); + this.container.addChild(this._waterFlowIndicator); + } + } + + public get waterFlowIndicator(): WaterFlowIndicator { + if (!this._waterFlowIndicator) { + this._waterFlowIndicator = this.graphicTemplate.new(); + this.container.addChild(this._waterFlowIndicator); + } + return this._waterFlowIndicator; + } + + redraw(cp: Point): void { + this.waterFlowIndicator.position.copyFrom(cp); + } + onLeftUp(e: FederatedMouseEvent): void { + this.waterFlowIndicator.position.copyFrom( + this.toCanvasCoordinates(e.global) + ); + this.createAndStore(true); + } + prepareData(data: IWaterFlowIndicatorData): boolean { + data.transform = this.waterFlowIndicator.saveTransform(); + return true; + } + onEsc(): void { + this.finish(); + } +} + +/** + * 构建吸附线 + * @param waterFlowIndicator + */ +function buildAbsorbablePositions( + waterFlowIndicator: WaterFlowIndicator +): AbsorbablePosition[] { + const aps: AbsorbablePosition[] = []; + const waterFlowIndicators = + waterFlowIndicator.queryStore.queryByType( + WaterFlowIndicator.Type + ); + const canvas = waterFlowIndicator.getCanvas(); + waterFlowIndicators.forEach((item) => { + if (item.id === waterFlowIndicator.id) { + return; + } + const ala = new AbsorbableLine( + new Point(item.x, 0), + new Point(item.x, canvas.height) + ); + const alb = new AbsorbableLine( + new Point(0, item.y), + new Point(canvas.width, item.y) + ); + aps.push(ala); + aps.push(alb); + }); + + return aps; +} + +export class WaterFlowIndicatorInteraction extends GraphicInteractionPlugin { + static Name = 'water_flow_indicator_transform'; + constructor(app: IDrawApp) { + super(WaterFlowIndicatorInteraction.Name, app); + } + static init(app: IDrawApp) { + return new WaterFlowIndicatorInteraction(app); + } + filter(...grahpics: JlGraphic[]): WaterFlowIndicator[] | undefined { + return grahpics + .filter((g) => g.type === WaterFlowIndicator.Type) + .map((g) => g as WaterFlowIndicator); + } + bind(g: WaterFlowIndicator): void { + g.eventMode = 'static'; + g.cursor = 'pointer'; + g.scalable = true; + g.rotatable = true; + g.on('transformstart', this.transformstart, this); + } + unbind(g: WaterFlowIndicator): void { + g.eventMode = 'none'; + g.scalable = false; + g.rotatable = false; + g.off('transformstart', this.transformstart, this); + } + transformstart(e: GraphicTransformEvent) { + const target = e.target as DisplayObject; + const waterFlowIndicator = target.getGraphic() as WaterFlowIndicator; + waterFlowIndicator.getGraphicApp().setOptions({ + absorbablePositions: buildAbsorbablePositions(waterFlowIndicator), + }); + } +} diff --git a/src/graphics/button/Button.ts b/src/graphics/button/Button.ts new file mode 100644 index 0000000..5d18d87 --- /dev/null +++ b/src/graphics/button/Button.ts @@ -0,0 +1,203 @@ +import { + getRectangleCenter, + GraphicData, + JlGraphic, + JlGraphicTemplate, + VectorText, +} from 'jl-graphic'; +import CCTV_Button_Assets from './cctv-button-spritesheet.png'; +import CCTV_Button_JSON from './cctv-button-data.json'; +import { + Assets, + Color, + Graphics, + Rectangle, + Sprite, + Spritesheet, + Texture, +} from 'pixi.js'; +import { iscsGraphicData } from 'src/protos/iscs_graphic_data'; + +interface ButtonTextures { + rectPressBtn: Texture; + rectBtn: Texture; + monitorBtn: Texture; + semicircleBtn: Texture; +} + +export const buttonConsts = { + width: 60, + height: 30, + radius: 2, + fillColor: '0x1976D2', + alpha: 1, + codeColor: '#000', + codeFontSize: 16, +}; + +export interface IButtonData extends GraphicData { + get code(): string; + set code(v: string); + get codeColor(): string; // 填充色 + set codeColor(v: string); + get codeFontSize(): number; // 宽度 + set codeFontSize(v: number); + get belongSubMenu(): string; // 所属子菜单 + set belongSubMenu(v: string); + get buttonType(): iscsGraphicData.Button.ButtonType; + set buttonType(v: iscsGraphicData.Button.ButtonType); + get width(): number; // 宽度 + set width(v: number); + get height(): number; // 高度 + set height(v: number); + get radius(): number; // 圆角半径 + set radius(v: number); + get fillColor(): string; // 填充色 + set fillColor(v: string); + get alpha(): number; // 透明度 + set alpha(v: number); +} + +export class Button extends JlGraphic { + static Type = 'Button'; + _buttonIcon: Sprite; + labelGraphic = new VectorText(); + buttonTextures: ButtonTextures; + buttonBackground: Graphics = new Graphics(); + __state = 0; + + constructor(buttonTextures: ButtonTextures) { + super(Button.Type); + this.buttonTextures = buttonTextures; + this._buttonIcon = new Sprite(); + this._buttonIcon.anchor.set(0.5); + this.addChild(this.buttonBackground); + } + get code(): string { + return this.datas.code; + } + get datas(): IButtonData { + return this.getDatas(); + } + + doRepaint(): void { + this.buttonBackground.clear(); + if (this.datas.width > 0 && this.datas.height > 0) { + this.drawRect(); + } else { + this.removeChild(this.buttonBackground); + } + + if (this.datas.buttonType !== iscsGraphicData.Button.ButtonType.noIcon) { + this.addChild(this._buttonIcon); + this._buttonIcon.transformSave = true; + this._buttonIcon.name = 'buttonIcon'; + if (this.datas.buttonType == iscsGraphicData.Button.ButtonType.cctvRect) { + this._buttonIcon.texture = this.buttonTextures.rectBtn; + } else if ( + this.datas.buttonType == iscsGraphicData.Button.ButtonType.cctvMonitor + ) { + this._buttonIcon.texture = this.buttonTextures.monitorBtn; + } + if ( + this.datas.buttonType == + iscsGraphicData.Button.ButtonType.cctvSemicircle + ) { + this._buttonIcon.texture = this.buttonTextures.semicircleBtn; + } + const iconPosition = this.datas.childTransforms?.find( + (t) => t.name === this._buttonIcon.name + )?.transform.position; + if (iconPosition) { + this._buttonIcon.position.set(iconPosition.x, iconPosition.y); + } else { + this._buttonIcon.position.set(0, 0); + } + const iconScale = this.datas.childTransforms?.find( + (t) => t.name === this._buttonIcon.name + )?.transform.scale; + if (iconScale) { + this._buttonIcon.scale.set(iconScale.x, iconScale.y); + } else { + this._buttonIcon.scale.set(1, 1); + } + } else { + this.removeChild(this._buttonIcon); + } + + if (this.datas.code) { + this.labelGraphic.text = this.datas.code; + this.datas.codeFontSize = + this.datas.codeFontSize || buttonConsts.codeFontSize; + this.datas.codeColor = this.datas.codeColor || buttonConsts.codeColor; + this.setTextGraphic(this.labelGraphic, 'label'); + const labelPosition = this.datas.childTransforms?.find( + (t) => t.name === this.labelGraphic.name + )?.transform.position; + if (labelPosition) { + this.labelGraphic.position.set(labelPosition.x, labelPosition.y); + } else { + this.labelGraphic.position.set(0, 0); + } + this.addChild(this.labelGraphic); + } else { + this.removeChild(this.labelGraphic); + } + } + + drawRect(): void { + const buttonBackground = this.buttonBackground; + const width = this.datas.width || buttonConsts.width; + const height = this.datas.height || buttonConsts.height; + const radius = this.datas?.radius || buttonConsts.radius; + const fillColor = this.datas.fillColor || buttonConsts.fillColor; + buttonBackground.lineStyle(1, new Color(fillColor)); + buttonBackground.beginFill( + fillColor, + this.datas.alpha || buttonConsts.alpha + ); + buttonBackground.drawRoundedRect(0, 0, width, height, radius); + buttonBackground.endFill; + buttonBackground.pivot = getRectangleCenter( + new Rectangle(0, 0, width, height) + ); + } + + setTextGraphic(g: VectorText, name: string) { + const fontSize = this.datas.codeFontSize; + g.setVectorFontSize(fontSize); + g.anchor.set(0.5); + g.style.fill = this.datas.codeColor; + g.transformSave = true; + g.name = name; + } +} + +export class ButtonTemplate extends JlGraphicTemplate
@@ -256,7 +292,7 @@ import { onMounted, onUnmounted, reactive, ref, watch } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import { date, useQuasar } from 'quasar'; import { useDrawStore } from 'src/stores/draw-store'; -import { CCTVButton } from 'src/graphics/CCTV/cctvButton/CCTVButton'; +import { Button } from 'src/graphics/button/Button'; import { Arrow } from 'src/graphics/arrow/Arrow'; import { TextContent } from 'src/graphics/textContent/TextContent'; import { Rect } from 'src/graphics/rect/Rect'; @@ -278,6 +314,35 @@ import { common } from 'src/protos/common'; import { toStorageTransform } from 'src/drawApp/graphics/GraphicDataBase'; import { Circle } from 'src/graphics/circle/Circle'; import IscsBottomAlarm from 'src/components/Iscs/IscsBottomAlarm.vue'; +import CCTVMonitoring from 'src/components/Iscs/CCTVMonitoring.vue'; +import PSD from 'src/components/Iscs/PSD.vue'; +import ModeControl from 'src/components/Iscs/ModeControl.vue'; +import FASPlaneGraph from 'src/components/Iscs/FASPlaneGraph.vue'; +import { FasFailureControlHost } from 'src/graphics/FAS/fireFailureControlHost/FasFailureControlHost'; +import { FasAlarm } from 'src/graphics/FAS/fasAlarm/FasAlarm'; +import { ManualAlarmButton } from 'src/graphics/FAS/manualAlarmButton/ManualAlarmButton'; +import { SmokeDetector } from 'src/graphics/FAS/smokeDetector/SmokeDetector'; +import { Escalator } from 'src/graphics/BAS/escalator/Escalator'; +import { TemperatureDetector } from 'src/graphics/FAS/temperatureDetector/TemperatureDetector'; +import { FireShutter } from 'src/graphics/FAS/fireShutter/FireShutter'; +import { FirePump } from 'src/graphics/FAS/firePump/FirePump'; +import { SprayPump } from 'src/graphics/FAS/sprayPump/SprayPump'; +import { StabilizedPressurePump } from 'src/graphics/FAS/stabilizedPressurePump/StabilizedPressurePump'; +import { Acs } from 'src/graphics/FAS/acs/Acs'; +import { VerticalElevator } from 'src/graphics/BAS/verticalElevator/VerticalElevator'; +import { Afc } from 'src/graphics/FAS/afc/Afc'; +import { NonFirePowerSupply } from 'src/graphics/FAS/nonFirePowerSupply/NonFirePowerSupply'; +import { WaterFlowIndicator } from 'src/graphics/FAS/waterFlowIndicator/WaterFlowIndicator'; +import { SignalButterflyValve } from 'src/graphics/FAS/signalButterflyValve/SignalButterflyValve'; +import { PressureSwitch } from 'src/graphics/FAS/pressureSwitch/PressureSwitch'; +import { FaultValve } from 'src/graphics/FAS/faultValve/FaultValve'; +import { StartPumpButton } from 'src/graphics/FAS/startPumpButton/StartPumpButton'; +import { TemperatureCable } from 'src/graphics/FAS/temperatureCable/TemperatureCable'; +import { ElevatorLiftToTop } from 'src/graphics/FAS/elevatorLiftToTop/ElevatorLiftToTop'; +import { ElectricButterflyValve } from 'src/graphics/FAS/electricButterflyValve/ElectricButterflyValve'; +import { FireValve } from 'src/graphics/FAS/fireValve/FireValve'; +import { ElectricFireExtinguishingValve } from 'src/graphics/FAS/electricFireExtinguishingValve/ElectricFireExtinguishingValve'; +import { FireIntercommunicationSignal } from 'src/graphics/FAS/fireIntercommunicationSignal/FireIntercommunicationSignal'; const $q = useQuasar(); const route = useRoute(); @@ -355,10 +420,36 @@ function handleUtilsOption() { Circle.Type, Rect.Type, Line.Type, + Button.Type, ]; switch (drawStore.selectSubmenuAndStation.submenu) { - case '监控布局图': - drawAssistantsTypes.push(CCTVButton.Type); + case '电扶梯': + drawAssistantsTypes.push(...[Escalator.Type, VerticalElevator.Type]); + break; + case '火灾报警平面图': + drawAssistantsTypes.push(FasFailureControlHost.Type); + drawAssistantsTypes.push(FasAlarm.Type); + drawAssistantsTypes.push(ManualAlarmButton.Type); + drawAssistantsTypes.push(SmokeDetector.Type); + drawAssistantsTypes.push(TemperatureDetector.Type); + drawAssistantsTypes.push(FireShutter.Type); + drawAssistantsTypes.push(FirePump.Type); + drawAssistantsTypes.push(SprayPump.Type); + drawAssistantsTypes.push(StabilizedPressurePump.Type); + drawAssistantsTypes.push(Acs.Type); + drawAssistantsTypes.push(Afc.Type); + drawAssistantsTypes.push(NonFirePowerSupply.Type); + drawAssistantsTypes.push(WaterFlowIndicator.Type); + drawAssistantsTypes.push(SignalButterflyValve.Type); + drawAssistantsTypes.push(PressureSwitch.Type); + drawAssistantsTypes.push(FaultValve.Type); + drawAssistantsTypes.push(StartPumpButton.Type); + drawAssistantsTypes.push(TemperatureCable.Type); + drawAssistantsTypes.push(ElevatorLiftToTop.Type); + drawAssistantsTypes.push(ElectricButterflyValve.Type); + drawAssistantsTypes.push(FireValve.Type); + drawAssistantsTypes.push(ElectricFireExtinguishingValve.Type); + drawAssistantsTypes.push(FireIntercommunicationSignal.Type); break; } drawAssistantsTypes.forEach((type) => { @@ -377,10 +468,20 @@ function handleUtilsOption() { drawDialogHeight.value = 44 * Math.ceil(utilsOption.length / 2); } //左侧功能按钮 +const fabPos = ref([18, 18]); +const draggingFab = ref(false); const leftMenuConfig = [ { label: '保存', click: saveAllDrawDatas }, - { label: '另存为', click: () => (saveAsDialog.value = true) }, + { label: '另存', click: () => (saveAsDialog.value = true) }, ]; +function moveFab(ev: { + isFirst: boolean; + isFinal: boolean; + delta: { x: number; y: number }; +}) { + draggingFab.value = ev.isFirst !== true && ev.isFinal !== true; + fabPos.value = [fabPos.value[0] - ev.delta.x, fabPos.value[1] - ev.delta.y]; +} onMounted(() => { console.log('绘制应用layout mounted'); @@ -522,6 +623,10 @@ const canvasHeight = ref(0); const headerHeight = ref(0); const footerHeight = ref(0); const rightWidth = ref(0); +const showComponent = reactive({ + width: 0, + height: 0, +}); function onHeaderResize(size: { height: number; width: number }) { headerHeight.value = size.height; @@ -545,16 +650,23 @@ function onResize() { clientWidth - (rightDrawerOpen.value ? rightWidth.value : 0); canvasHeight.value = clientHeight - headerHeight.value - footerHeight.value; const dom = document.getElementById('draw-app-container'); + const componentDom = document.getElementById('component-container'); if (dom) { + dom.style.width = canvasWidth.value + 'px'; + showComponent.width = canvasWidth.value; if (subMenuDisplayForm.value == DisplayForm.draw) { - dom.style.width = canvasWidth.value + 'px'; dom.style.height = canvasHeight.value + 'px'; } else if (subMenuDisplayForm.value == DisplayForm.drawAndComponent) { const heightPercent = subMenuOption.value.find( (subMenu) => subMenu.value == selectSubMenuName.value ).heightPercent; - dom.style.width = canvasWidth.value + 'px'; dom.style.height = (heightPercent / 100) * canvasHeight.value + 'px'; + const height = (1 - heightPercent / 100) * canvasHeight.value - 1; + componentDom.style.height = height + 'px'; + showComponent.height = height; + } else { + componentDom.style.height = canvasHeight.value + 'px'; + showComponent.height = canvasHeight.value; } } } @@ -630,16 +742,26 @@ const subMenuOption = ref< }[] >([]); function selectedSubMenu(subName: string) { + if (selectSubMenuName.value !== subName) { + selectSubMenuName.value = subName; + } drawStore.selectSubmenuAndStation.submenu = subName; + if (drawStore.selectSubmenuAndStation.submenu === '火灾报警平面图') { + drawStore.selectSubmenuAndStation.partition = '设备分区一'; + } else { + drawStore.selectSubmenuAndStation.partition = ''; + } subMenuDisplayForm.value = subMenuOption.value.find( (subMenu) => subMenu.value == subName ).displayForm; if (subMenuDisplayForm.value !== DisplayForm.component) { showDrawTool.value = true; + rightDrawerOpen.value = true; forceReloadDate(); handleUtilsOption(); } else { showDrawTool.value = false; + rightDrawerOpen.value = false; } onResize(); } @@ -951,4 +1073,9 @@ onUnmounted(() => { } } } +.show-component { + display: flex; + justify-content: center; + overflow: auto; +} diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index d87dc03..a407731 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -72,7 +72,7 @@ ID: - {{ userInfo?.id }} + {{ userInfo.id }} @@ -80,7 +80,15 @@ 用户名: - {{ userInfo?.name }} + {{ userInfo.username }} + + + + + 昵称: + + + {{ userInfo.nickname }} @@ -89,7 +97,7 @@ - {{ getRoleName(userInfo?.roles) }} + {{ getRoleName(userInfo.roles) }} @@ -98,15 +106,27 @@ 电话: - {{ userInfo?.mobile }} + {{ userInfo.mobile }} - 注册时间: + 创建时间: - {{ userInfo?.register_time }} + {{ + formatTime(userInfo.createdAt) + }} + + + + + 更新时间: + + + {{ + formatTime(userInfo.updatedAt) + }} @@ -123,23 +143,13 @@ diff --git a/src/pages/ElectronicMapDraftManage.vue b/src/pages/ElectronicMapDraftManage.vue new file mode 100644 index 0000000..0cf95fc --- /dev/null +++ b/src/pages/ElectronicMapDraftManage.vue @@ -0,0 +1,838 @@ + + + +src/api/ElectronicMapDraftApi diff --git a/src/pages/ElectronicMapPublishManage.vue b/src/pages/ElectronicMapPublishManage.vue new file mode 100644 index 0000000..828807b --- /dev/null +++ b/src/pages/ElectronicMapPublishManage.vue @@ -0,0 +1,544 @@ + + + diff --git a/src/pages/IscsDraftManage.vue b/src/pages/IscsDraftManage.vue index a5ee606..57db263 100644 --- a/src/pages/IscsDraftManage.vue +++ b/src/pages/IscsDraftManage.vue @@ -41,7 +41,14 @@ color="primary" v-if="route.name == 'iscsDraft'" label="新建" - @click="createFormShow = true" + @click="showCreateDialog" + /> +
@@ -436,6 +443,11 @@ const isSharedOption = ['全部', '共享', '不共享']; //新建相关 const createFormShow = ref(false); +function showCreateDialog() { + createFormShow.value = true; + createForm.draftName = ''; + createForm.style = IscsStyle.DA_SHI_ZHI_NENG; +} const createForm = reactive({ draftName: '', style: IscsStyle.DA_SHI_ZHI_NENG, diff --git a/src/pages/IscsPublishManage.vue b/src/pages/IscsPublishManage.vue index c1f03cf..dc2f7f4 100644 --- a/src/pages/IscsPublishManage.vue +++ b/src/pages/IscsPublishManage.vue @@ -39,6 +39,7 @@ label="上下架" style="width: 130px" /> + @@ -246,7 +247,6 @@ const pagination = ref({ let allRequestData: PublishIscsDataDto[] = []; async function onRequest(props: any) { const { page, rowsPerPage } = props.pagination; - const filter = props.filter; loading.value = true; const variables = { diff --git a/src/pages/UserLogin.vue b/src/pages/UserLogin.vue new file mode 100644 index 0000000..803e453 --- /dev/null +++ b/src/pages/UserLogin.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/src/pages/UserManage.vue b/src/pages/UserManage.vue index 9b053af..9c02e2d 100644 --- a/src/pages/UserManage.vue +++ b/src/pages/UserManage.vue @@ -17,7 +17,12 @@ > @@ -53,7 +52,56 @@ + + + + + + +
修改用户角色
+ + + + + + + +
+
+
+
@@ -62,10 +110,13 @@ import { ref, reactive, onMounted, computed } from 'vue'; import { useQuasar, type QTableColumn } from 'quasar'; import { PagingQueryParams, + rolesOptions, + updateUserRoles, + User, userPageQuery, - syncUsersInfo, } from '../api/UserApi'; import { ApiError } from 'src/boot/axios'; +import { successNotify } from 'src/utils/CommonNotify'; const $q = useQuasar(); @@ -86,9 +137,16 @@ onMounted(() => { const columnDefs: QTableColumn[] = [ { name: 'id', label: '用户ID', field: 'id', align: 'center' }, { - name: 'name', + name: 'username', label: '用户名', - field: 'name', + field: 'username', + required: true, + align: 'center', + }, + { + name: 'nickname', + label: '昵称', + field: 'nickname', required: true, align: 'center', }, @@ -123,12 +181,18 @@ const columnDefs: QTableColumn[] = [ field: (row) => new Date(row.updatedAt).toLocaleString(), align: 'center', }, + { + name: 'operations', + label: '操作', + field: 'operations', + align: 'center', + }, ]; const tableRef = ref(); const rows = reactive([]); const filter = reactive({ - name: '', + username: '', roles: [], }); const loading = ref(false); @@ -153,8 +217,8 @@ async function onRequest(props: any) { }, query: {}, }; - if (filter.name) { - Object.assign(variables.query, { name: filter.name }); + if (filter.username) { + Object.assign(variables.query, { username: filter.username }); } if (filter.roles) { Object.assign(variables.query, { roles: filter.roles }); @@ -176,10 +240,6 @@ async function onRequest(props: any) { } } -const rolesOptions = [ - { label: '管理员', value: 'ADMIN' }, - { label: '用户', value: 'USER' }, -]; function getRolesName(role: string) { for (let i = 0; i < rolesOptions.length; i++) { if (rolesOptions[i].value == role) { @@ -188,12 +248,38 @@ function getRolesName(role: string) { } } +const editFormShow = ref(false); +const userInfo = reactive({ + id: 0, + username: '', + nickname: '', + roles: [], +}); const operateDisabled = ref(false); -async function syncUsersInfoFn() { +function edieUserData(row: User) { + userInfo.id = row.id; + userInfo.username = row.username; + if (row?.roles) { + userInfo.roles = row.roles; + } else { + userInfo.roles = []; + } + editFormShow.value = true; +} +async function edieUserRole() { operateDisabled.value = true; - const res = await syncUsersInfo(); + const res = await updateUserRoles({ + userId: userInfo.id, + roles: userInfo.roles, + }); operateDisabled.value = false; - if (res.syncUser) { + if (res.data?.errors && res.data?.errors.length) { + $q.notify({ + type: 'negative', + message: res.data.errors[0].message, + }); + } else { + successNotify('修改成功'); tableRef.value.requestServerInteraction(); } } diff --git a/src/pages/UserRegister.vue b/src/pages/UserRegister.vue new file mode 100644 index 0000000..817e998 --- /dev/null +++ b/src/pages/UserRegister.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/protos/common.ts b/src/protos/common.ts index 8b500a6..87f4635 100644 --- a/src/protos/common.ts +++ b/src/protos/common.ts @@ -8,13 +8,23 @@ export namespace common { export enum Role { Role_Unknown = 0, Role_Admin = 1, - Role_User = 2 + Role_User = 2, + Role_OrgManager = 11, + Role_OrgTeacher = 12, + Role_OrgStudent = 13, + Role_OrgGuest = 14 } export enum DataType { DataType_Unknown = 0, DataType_Em = 1, DataType_Iscs = 4 } + export enum LineType { + LineType_Unknown = 0, + LineType_Ur = 1, + LineType_Ir = 2, + LineType_Cr = 3 + } export enum IscsStyle { IscsStyle_Unknown = 0, IscsStyle_DaShiZhiNeng = 1 diff --git a/src/protos/electronicMap_graphic_data.ts b/src/protos/electronicMap_graphic_data.ts new file mode 100644 index 0000000..e5d244c --- /dev/null +++ b/src/protos/electronicMap_graphic_data.ts @@ -0,0 +1,2459 @@ +/** + * Generated by the protoc-gen-ts. DO NOT EDIT! + * compiler version: 5.27.4 + * source: electronicMap_graphic_data.proto + * git: https://github.com/thesayyn/protoc-gen-ts */ +import * as dependency_1 from "./common"; +import * as pb_1 from "google-protobuf"; +export namespace electronicMapGraphicData { + export enum Direction { + UP = 0, + DOWN = 1 + } + export class ElectronicMapGraphicStorage extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + canvas?: dependency_1.common.Canvas; + stations?: Station[]; + Platforms?: Platform[]; + screenDoors?: ScreenDoor[]; + section?: Section[]; + turnouts?: Turnout[]; + signals?: Signal[]; + axleCountings?: AxleCounting[]; + generateAxleCountingConfig?: GenerateAxleCountingConfig; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3, 4, 5, 6, 7, 8], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("canvas" in data && data.canvas != undefined) { + this.canvas = data.canvas; + } + if ("stations" in data && data.stations != undefined) { + this.stations = data.stations; + } + if ("Platforms" in data && data.Platforms != undefined) { + this.Platforms = data.Platforms; + } + if ("screenDoors" in data && data.screenDoors != undefined) { + this.screenDoors = data.screenDoors; + } + if ("section" in data && data.section != undefined) { + this.section = data.section; + } + if ("turnouts" in data && data.turnouts != undefined) { + this.turnouts = data.turnouts; + } + if ("signals" in data && data.signals != undefined) { + this.signals = data.signals; + } + if ("axleCountings" in data && data.axleCountings != undefined) { + this.axleCountings = data.axleCountings; + } + if ("generateAxleCountingConfig" in data && data.generateAxleCountingConfig != undefined) { + this.generateAxleCountingConfig = data.generateAxleCountingConfig; + } + } + } + get canvas() { + return pb_1.Message.getWrapperField(this, dependency_1.common.Canvas, 1) as dependency_1.common.Canvas; + } + set canvas(value: dependency_1.common.Canvas) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_canvas() { + return pb_1.Message.getField(this, 1) != null; + } + get stations() { + return pb_1.Message.getRepeatedWrapperField(this, Station, 2) as Station[]; + } + set stations(value: Station[]) { + pb_1.Message.setRepeatedWrapperField(this, 2, value); + } + get Platforms() { + return pb_1.Message.getRepeatedWrapperField(this, Platform, 3) as Platform[]; + } + set Platforms(value: Platform[]) { + pb_1.Message.setRepeatedWrapperField(this, 3, value); + } + get screenDoors() { + return pb_1.Message.getRepeatedWrapperField(this, ScreenDoor, 4) as ScreenDoor[]; + } + set screenDoors(value: ScreenDoor[]) { + pb_1.Message.setRepeatedWrapperField(this, 4, value); + } + get section() { + return pb_1.Message.getRepeatedWrapperField(this, Section, 5) as Section[]; + } + set section(value: Section[]) { + pb_1.Message.setRepeatedWrapperField(this, 5, value); + } + get turnouts() { + return pb_1.Message.getRepeatedWrapperField(this, Turnout, 6) as Turnout[]; + } + set turnouts(value: Turnout[]) { + pb_1.Message.setRepeatedWrapperField(this, 6, value); + } + get signals() { + return pb_1.Message.getRepeatedWrapperField(this, Signal, 7) as Signal[]; + } + set signals(value: Signal[]) { + pb_1.Message.setRepeatedWrapperField(this, 7, value); + } + get axleCountings() { + return pb_1.Message.getRepeatedWrapperField(this, AxleCounting, 8) as AxleCounting[]; + } + set axleCountings(value: AxleCounting[]) { + pb_1.Message.setRepeatedWrapperField(this, 8, value); + } + get generateAxleCountingConfig() { + return pb_1.Message.getWrapperField(this, GenerateAxleCountingConfig, 9) as GenerateAxleCountingConfig; + } + set generateAxleCountingConfig(value: GenerateAxleCountingConfig) { + pb_1.Message.setWrapperField(this, 9, value); + } + get has_generateAxleCountingConfig() { + return pb_1.Message.getField(this, 9) != null; + } + static fromObject(data: { + canvas?: ReturnType; + stations?: ReturnType[]; + Platforms?: ReturnType[]; + screenDoors?: ReturnType[]; + section?: ReturnType[]; + turnouts?: ReturnType[]; + signals?: ReturnType[]; + axleCountings?: ReturnType[]; + generateAxleCountingConfig?: ReturnType; + }): ElectronicMapGraphicStorage { + const message = new ElectronicMapGraphicStorage({}); + if (data.canvas != null) { + message.canvas = dependency_1.common.Canvas.fromObject(data.canvas); + } + if (data.stations != null) { + message.stations = data.stations.map(item => Station.fromObject(item)); + } + if (data.Platforms != null) { + message.Platforms = data.Platforms.map(item => Platform.fromObject(item)); + } + if (data.screenDoors != null) { + message.screenDoors = data.screenDoors.map(item => ScreenDoor.fromObject(item)); + } + if (data.section != null) { + message.section = data.section.map(item => Section.fromObject(item)); + } + if (data.turnouts != null) { + message.turnouts = data.turnouts.map(item => Turnout.fromObject(item)); + } + if (data.signals != null) { + message.signals = data.signals.map(item => Signal.fromObject(item)); + } + if (data.axleCountings != null) { + message.axleCountings = data.axleCountings.map(item => AxleCounting.fromObject(item)); + } + if (data.generateAxleCountingConfig != null) { + message.generateAxleCountingConfig = GenerateAxleCountingConfig.fromObject(data.generateAxleCountingConfig); + } + return message; + } + toObject() { + const data: { + canvas?: ReturnType; + stations?: ReturnType[]; + Platforms?: ReturnType[]; + screenDoors?: ReturnType[]; + section?: ReturnType[]; + turnouts?: ReturnType[]; + signals?: ReturnType[]; + axleCountings?: ReturnType[]; + generateAxleCountingConfig?: ReturnType; + } = {}; + if (this.canvas != null) { + data.canvas = this.canvas.toObject(); + } + if (this.stations != null) { + data.stations = this.stations.map((item: Station) => item.toObject()); + } + if (this.Platforms != null) { + data.Platforms = this.Platforms.map((item: Platform) => item.toObject()); + } + if (this.screenDoors != null) { + data.screenDoors = this.screenDoors.map((item: ScreenDoor) => item.toObject()); + } + if (this.section != null) { + data.section = this.section.map((item: Section) => item.toObject()); + } + if (this.turnouts != null) { + data.turnouts = this.turnouts.map((item: Turnout) => item.toObject()); + } + if (this.signals != null) { + data.signals = this.signals.map((item: Signal) => item.toObject()); + } + if (this.axleCountings != null) { + data.axleCountings = this.axleCountings.map((item: AxleCounting) => item.toObject()); + } + if (this.generateAxleCountingConfig != null) { + data.generateAxleCountingConfig = this.generateAxleCountingConfig.toObject(); + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_canvas) + writer.writeMessage(1, this.canvas, () => this.canvas.serialize(writer)); + if (this.stations.length) + writer.writeRepeatedMessage(2, this.stations, (item: Station) => item.serialize(writer)); + if (this.Platforms.length) + writer.writeRepeatedMessage(3, this.Platforms, (item: Platform) => item.serialize(writer)); + if (this.screenDoors.length) + writer.writeRepeatedMessage(4, this.screenDoors, (item: ScreenDoor) => item.serialize(writer)); + if (this.section.length) + writer.writeRepeatedMessage(5, this.section, (item: Section) => item.serialize(writer)); + if (this.turnouts.length) + writer.writeRepeatedMessage(6, this.turnouts, (item: Turnout) => item.serialize(writer)); + if (this.signals.length) + writer.writeRepeatedMessage(7, this.signals, (item: Signal) => item.serialize(writer)); + if (this.axleCountings.length) + writer.writeRepeatedMessage(8, this.axleCountings, (item: AxleCounting) => item.serialize(writer)); + if (this.has_generateAxleCountingConfig) + writer.writeMessage(9, this.generateAxleCountingConfig, () => this.generateAxleCountingConfig.serialize(writer)); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElectronicMapGraphicStorage { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElectronicMapGraphicStorage(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.canvas, () => message.canvas = dependency_1.common.Canvas.deserialize(reader)); + break; + case 2: + reader.readMessage(message.stations, () => pb_1.Message.addToRepeatedWrapperField(message, 2, Station.deserialize(reader), Station)); + break; + case 3: + reader.readMessage(message.Platforms, () => pb_1.Message.addToRepeatedWrapperField(message, 3, Platform.deserialize(reader), Platform)); + break; + case 4: + reader.readMessage(message.screenDoors, () => pb_1.Message.addToRepeatedWrapperField(message, 4, ScreenDoor.deserialize(reader), ScreenDoor)); + break; + case 5: + reader.readMessage(message.section, () => pb_1.Message.addToRepeatedWrapperField(message, 5, Section.deserialize(reader), Section)); + break; + case 6: + reader.readMessage(message.turnouts, () => pb_1.Message.addToRepeatedWrapperField(message, 6, Turnout.deserialize(reader), Turnout)); + break; + case 7: + reader.readMessage(message.signals, () => pb_1.Message.addToRepeatedWrapperField(message, 7, Signal.deserialize(reader), Signal)); + break; + case 8: + reader.readMessage(message.axleCountings, () => pb_1.Message.addToRepeatedWrapperField(message, 8, AxleCounting.deserialize(reader), AxleCounting)); + break; + case 9: + reader.readMessage(message.generateAxleCountingConfig, () => message.generateAxleCountingConfig = GenerateAxleCountingConfig.deserialize(reader)); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElectronicMapGraphicStorage { + return ElectronicMapGraphicStorage.deserialize(bytes); + } + } + export class Station extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + concentrationStations?: boolean; + kilometerSystem?: KilometerSystem; + stationName?: string; + stationNameAcronym?: string; + depots?: boolean; + manageStations?: number[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("concentrationStations" in data && data.concentrationStations != undefined) { + this.concentrationStations = data.concentrationStations; + } + if ("kilometerSystem" in data && data.kilometerSystem != undefined) { + this.kilometerSystem = data.kilometerSystem; + } + if ("stationName" in data && data.stationName != undefined) { + this.stationName = data.stationName; + } + if ("stationNameAcronym" in data && data.stationNameAcronym != undefined) { + this.stationNameAcronym = data.stationNameAcronym; + } + if ("depots" in data && data.depots != undefined) { + this.depots = data.depots; + } + if ("manageStations" in data && data.manageStations != undefined) { + this.manageStations = data.manageStations; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get concentrationStations() { + return pb_1.Message.getFieldWithDefault(this, 3, false) as boolean; + } + set concentrationStations(value: boolean) { + pb_1.Message.setField(this, 3, value); + } + get kilometerSystem() { + return pb_1.Message.getWrapperField(this, KilometerSystem, 4) as KilometerSystem; + } + set kilometerSystem(value: KilometerSystem) { + pb_1.Message.setWrapperField(this, 4, value); + } + get has_kilometerSystem() { + return pb_1.Message.getField(this, 4) != null; + } + get stationName() { + return pb_1.Message.getFieldWithDefault(this, 5, "") as string; + } + set stationName(value: string) { + pb_1.Message.setField(this, 5, value); + } + get stationNameAcronym() { + return pb_1.Message.getFieldWithDefault(this, 6, "") as string; + } + set stationNameAcronym(value: string) { + pb_1.Message.setField(this, 6, value); + } + get depots() { + return pb_1.Message.getFieldWithDefault(this, 7, false) as boolean; + } + set depots(value: boolean) { + pb_1.Message.setField(this, 7, value); + } + get manageStations() { + return pb_1.Message.getFieldWithDefault(this, 8, []) as number[]; + } + set manageStations(value: number[]) { + pb_1.Message.setField(this, 8, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + concentrationStations?: boolean; + kilometerSystem?: ReturnType; + stationName?: string; + stationNameAcronym?: string; + depots?: boolean; + manageStations?: number[]; + }): Station { + const message = new Station({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.concentrationStations != null) { + message.concentrationStations = data.concentrationStations; + } + if (data.kilometerSystem != null) { + message.kilometerSystem = KilometerSystem.fromObject(data.kilometerSystem); + } + if (data.stationName != null) { + message.stationName = data.stationName; + } + if (data.stationNameAcronym != null) { + message.stationNameAcronym = data.stationNameAcronym; + } + if (data.depots != null) { + message.depots = data.depots; + } + if (data.manageStations != null) { + message.manageStations = data.manageStations; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + concentrationStations?: boolean; + kilometerSystem?: ReturnType; + stationName?: string; + stationNameAcronym?: string; + depots?: boolean; + manageStations?: number[]; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.concentrationStations != null) { + data.concentrationStations = this.concentrationStations; + } + if (this.kilometerSystem != null) { + data.kilometerSystem = this.kilometerSystem.toObject(); + } + if (this.stationName != null) { + data.stationName = this.stationName; + } + if (this.stationNameAcronym != null) { + data.stationNameAcronym = this.stationNameAcronym; + } + if (this.depots != null) { + data.depots = this.depots; + } + if (this.manageStations != null) { + data.manageStations = this.manageStations; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.concentrationStations != false) + writer.writeBool(3, this.concentrationStations); + if (this.has_kilometerSystem) + writer.writeMessage(4, this.kilometerSystem, () => this.kilometerSystem.serialize(writer)); + if (this.stationName.length) + writer.writeString(5, this.stationName); + if (this.stationNameAcronym.length) + writer.writeString(6, this.stationNameAcronym); + if (this.depots != false) + writer.writeBool(7, this.depots); + if (this.manageStations.length) + writer.writePackedUint32(8, this.manageStations); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Station { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Station(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.concentrationStations = reader.readBool(); + break; + case 4: + reader.readMessage(message.kilometerSystem, () => message.kilometerSystem = KilometerSystem.deserialize(reader)); + break; + case 5: + message.stationName = reader.readString(); + break; + case 6: + message.stationNameAcronym = reader.readString(); + break; + case 7: + message.depots = reader.readBool(); + break; + case 8: + message.manageStations = reader.readPackedUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Station { + return Station.deserialize(bytes); + } + } + export class Platform extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + refEsbRelayCode?: string; + type?: Platform.TypeOfPlatform; + refStationId?: number; + refSectionId?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("refEsbRelayCode" in data && data.refEsbRelayCode != undefined) { + this.refEsbRelayCode = data.refEsbRelayCode; + } + if ("type" in data && data.type != undefined) { + this.type = data.type; + } + if ("refStationId" in data && data.refStationId != undefined) { + this.refStationId = data.refStationId; + } + if ("refSectionId" in data && data.refSectionId != undefined) { + this.refSectionId = data.refSectionId; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get refEsbRelayCode() { + return pb_1.Message.getFieldWithDefault(this, 3, "") as string; + } + set refEsbRelayCode(value: string) { + pb_1.Message.setField(this, 3, value); + } + get type() { + return pb_1.Message.getFieldWithDefault(this, 4, Platform.TypeOfPlatform.Unknown) as Platform.TypeOfPlatform; + } + set type(value: Platform.TypeOfPlatform) { + pb_1.Message.setField(this, 4, value); + } + get refStationId() { + return pb_1.Message.getFieldWithDefault(this, 5, 0) as number; + } + set refStationId(value: number) { + pb_1.Message.setField(this, 5, value); + } + get refSectionId() { + return pb_1.Message.getFieldWithDefault(this, 6, 0) as number; + } + set refSectionId(value: number) { + pb_1.Message.setField(this, 6, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + refEsbRelayCode?: string; + type?: Platform.TypeOfPlatform; + refStationId?: number; + refSectionId?: number; + }): Platform { + const message = new Platform({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.refEsbRelayCode != null) { + message.refEsbRelayCode = data.refEsbRelayCode; + } + if (data.type != null) { + message.type = data.type; + } + if (data.refStationId != null) { + message.refStationId = data.refStationId; + } + if (data.refSectionId != null) { + message.refSectionId = data.refSectionId; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + refEsbRelayCode?: string; + type?: Platform.TypeOfPlatform; + refStationId?: number; + refSectionId?: number; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.refEsbRelayCode != null) { + data.refEsbRelayCode = this.refEsbRelayCode; + } + if (this.type != null) { + data.type = this.type; + } + if (this.refStationId != null) { + data.refStationId = this.refStationId; + } + if (this.refSectionId != null) { + data.refSectionId = this.refSectionId; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.refEsbRelayCode.length) + writer.writeString(3, this.refEsbRelayCode); + if (this.type != Platform.TypeOfPlatform.Unknown) + writer.writeEnum(4, this.type); + if (this.refStationId != 0) + writer.writeUint32(5, this.refStationId); + if (this.refSectionId != 0) + writer.writeUint32(6, this.refSectionId); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Platform { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Platform(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.refEsbRelayCode = reader.readString(); + break; + case 4: + message.type = reader.readEnum(); + break; + case 5: + message.refStationId = reader.readUint32(); + break; + case 6: + message.refSectionId = reader.readUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Platform { + return Platform.deserialize(bytes); + } + } + export namespace Platform { + export enum TypeOfPlatform { + Unknown = 0, + up = 1, + down = 2 + } + } + export class ScreenDoor extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + refPlatformId?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("refPlatformId" in data && data.refPlatformId != undefined) { + this.refPlatformId = data.refPlatformId; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get refPlatformId() { + return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; + } + set refPlatformId(value: number) { + pb_1.Message.setField(this, 3, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + refPlatformId?: number; + }): ScreenDoor { + const message = new ScreenDoor({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.refPlatformId != null) { + message.refPlatformId = data.refPlatformId; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + refPlatformId?: number; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.refPlatformId != null) { + data.refPlatformId = this.refPlatformId; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.refPlatformId != 0) + writer.writeUint32(3, this.refPlatformId); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ScreenDoor { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ScreenDoor(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.refPlatformId = reader.readUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ScreenDoor { + return ScreenDoor.deserialize(bytes); + } + } + export class Section extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + points?: dependency_1.common.Point[]; + paRef?: RelatedRef; + pbRef?: RelatedRef; + sectionType?: Section.SectionType; + isCurve?: boolean; + segmentsCount?: number; + normalRunningDirection?: Section.RunningDirection; + isTurnBackZone?: boolean; + direction?: Direction; + axleCountings?: number[]; + trackSectionId?: number; + centralizedStations?: number[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 12, 14], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("points" in data && data.points != undefined) { + this.points = data.points; + } + if ("paRef" in data && data.paRef != undefined) { + this.paRef = data.paRef; + } + if ("pbRef" in data && data.pbRef != undefined) { + this.pbRef = data.pbRef; + } + if ("sectionType" in data && data.sectionType != undefined) { + this.sectionType = data.sectionType; + } + if ("isCurve" in data && data.isCurve != undefined) { + this.isCurve = data.isCurve; + } + if ("segmentsCount" in data && data.segmentsCount != undefined) { + this.segmentsCount = data.segmentsCount; + } + if ("normalRunningDirection" in data && data.normalRunningDirection != undefined) { + this.normalRunningDirection = data.normalRunningDirection; + } + if ("isTurnBackZone" in data && data.isTurnBackZone != undefined) { + this.isTurnBackZone = data.isTurnBackZone; + } + if ("direction" in data && data.direction != undefined) { + this.direction = data.direction; + } + if ("axleCountings" in data && data.axleCountings != undefined) { + this.axleCountings = data.axleCountings; + } + if ("trackSectionId" in data && data.trackSectionId != undefined) { + this.trackSectionId = data.trackSectionId; + } + if ("centralizedStations" in data && data.centralizedStations != undefined) { + this.centralizedStations = data.centralizedStations; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get points() { + return pb_1.Message.getRepeatedWrapperField(this, dependency_1.common.Point, 3) as dependency_1.common.Point[]; + } + set points(value: dependency_1.common.Point[]) { + pb_1.Message.setRepeatedWrapperField(this, 3, value); + } + get paRef() { + return pb_1.Message.getWrapperField(this, RelatedRef, 4) as RelatedRef; + } + set paRef(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 4, value); + } + get has_paRef() { + return pb_1.Message.getField(this, 4) != null; + } + get pbRef() { + return pb_1.Message.getWrapperField(this, RelatedRef, 5) as RelatedRef; + } + set pbRef(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 5, value); + } + get has_pbRef() { + return pb_1.Message.getField(this, 5) != null; + } + get sectionType() { + return pb_1.Message.getFieldWithDefault(this, 6, Section.SectionType.Physical) as Section.SectionType; + } + set sectionType(value: Section.SectionType) { + pb_1.Message.setField(this, 6, value); + } + get isCurve() { + return pb_1.Message.getFieldWithDefault(this, 7, false) as boolean; + } + set isCurve(value: boolean) { + pb_1.Message.setField(this, 7, value); + } + get segmentsCount() { + return pb_1.Message.getFieldWithDefault(this, 8, 0) as number; + } + set segmentsCount(value: number) { + pb_1.Message.setField(this, 8, value); + } + get normalRunningDirection() { + return pb_1.Message.getFieldWithDefault(this, 9, Section.RunningDirection.AtoB) as Section.RunningDirection; + } + set normalRunningDirection(value: Section.RunningDirection) { + pb_1.Message.setField(this, 9, value); + } + get isTurnBackZone() { + return pb_1.Message.getFieldWithDefault(this, 10, false) as boolean; + } + set isTurnBackZone(value: boolean) { + pb_1.Message.setField(this, 10, value); + } + get direction() { + return pb_1.Message.getFieldWithDefault(this, 11, Direction.UP) as Direction; + } + set direction(value: Direction) { + pb_1.Message.setField(this, 11, value); + } + get axleCountings() { + return pb_1.Message.getFieldWithDefault(this, 12, []) as number[]; + } + set axleCountings(value: number[]) { + pb_1.Message.setField(this, 12, value); + } + get trackSectionId() { + return pb_1.Message.getFieldWithDefault(this, 13, 0) as number; + } + set trackSectionId(value: number) { + pb_1.Message.setField(this, 13, value); + } + get centralizedStations() { + return pb_1.Message.getFieldWithDefault(this, 14, []) as number[]; + } + set centralizedStations(value: number[]) { + pb_1.Message.setField(this, 14, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + points?: ReturnType[]; + paRef?: ReturnType; + pbRef?: ReturnType; + sectionType?: Section.SectionType; + isCurve?: boolean; + segmentsCount?: number; + normalRunningDirection?: Section.RunningDirection; + isTurnBackZone?: boolean; + direction?: Direction; + axleCountings?: number[]; + trackSectionId?: number; + centralizedStations?: number[]; + }): Section { + const message = new Section({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.points != null) { + message.points = data.points.map(item => dependency_1.common.Point.fromObject(item)); + } + if (data.paRef != null) { + message.paRef = RelatedRef.fromObject(data.paRef); + } + if (data.pbRef != null) { + message.pbRef = RelatedRef.fromObject(data.pbRef); + } + if (data.sectionType != null) { + message.sectionType = data.sectionType; + } + if (data.isCurve != null) { + message.isCurve = data.isCurve; + } + if (data.segmentsCount != null) { + message.segmentsCount = data.segmentsCount; + } + if (data.normalRunningDirection != null) { + message.normalRunningDirection = data.normalRunningDirection; + } + if (data.isTurnBackZone != null) { + message.isTurnBackZone = data.isTurnBackZone; + } + if (data.direction != null) { + message.direction = data.direction; + } + if (data.axleCountings != null) { + message.axleCountings = data.axleCountings; + } + if (data.trackSectionId != null) { + message.trackSectionId = data.trackSectionId; + } + if (data.centralizedStations != null) { + message.centralizedStations = data.centralizedStations; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + points?: ReturnType[]; + paRef?: ReturnType; + pbRef?: ReturnType; + sectionType?: Section.SectionType; + isCurve?: boolean; + segmentsCount?: number; + normalRunningDirection?: Section.RunningDirection; + isTurnBackZone?: boolean; + direction?: Direction; + axleCountings?: number[]; + trackSectionId?: number; + centralizedStations?: number[]; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.points != null) { + data.points = this.points.map((item: dependency_1.common.Point) => item.toObject()); + } + if (this.paRef != null) { + data.paRef = this.paRef.toObject(); + } + if (this.pbRef != null) { + data.pbRef = this.pbRef.toObject(); + } + if (this.sectionType != null) { + data.sectionType = this.sectionType; + } + if (this.isCurve != null) { + data.isCurve = this.isCurve; + } + if (this.segmentsCount != null) { + data.segmentsCount = this.segmentsCount; + } + if (this.normalRunningDirection != null) { + data.normalRunningDirection = this.normalRunningDirection; + } + if (this.isTurnBackZone != null) { + data.isTurnBackZone = this.isTurnBackZone; + } + if (this.direction != null) { + data.direction = this.direction; + } + if (this.axleCountings != null) { + data.axleCountings = this.axleCountings; + } + if (this.trackSectionId != null) { + data.trackSectionId = this.trackSectionId; + } + if (this.centralizedStations != null) { + data.centralizedStations = this.centralizedStations; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.points.length) + writer.writeRepeatedMessage(3, this.points, (item: dependency_1.common.Point) => item.serialize(writer)); + if (this.has_paRef) + writer.writeMessage(4, this.paRef, () => this.paRef.serialize(writer)); + if (this.has_pbRef) + writer.writeMessage(5, this.pbRef, () => this.pbRef.serialize(writer)); + if (this.sectionType != Section.SectionType.Physical) + writer.writeEnum(6, this.sectionType); + if (this.isCurve != false) + writer.writeBool(7, this.isCurve); + if (this.segmentsCount != 0) + writer.writeInt32(8, this.segmentsCount); + if (this.normalRunningDirection != Section.RunningDirection.AtoB) + writer.writeEnum(9, this.normalRunningDirection); + if (this.isTurnBackZone != false) + writer.writeBool(10, this.isTurnBackZone); + if (this.direction != Direction.UP) + writer.writeEnum(11, this.direction); + if (this.axleCountings.length) + writer.writePackedUint32(12, this.axleCountings); + if (this.trackSectionId != 0) + writer.writeUint32(13, this.trackSectionId); + if (this.centralizedStations.length) + writer.writePackedUint32(14, this.centralizedStations); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Section { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Section(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + reader.readMessage(message.points, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_1.common.Point.deserialize(reader), dependency_1.common.Point)); + break; + case 4: + reader.readMessage(message.paRef, () => message.paRef = RelatedRef.deserialize(reader)); + break; + case 5: + reader.readMessage(message.pbRef, () => message.pbRef = RelatedRef.deserialize(reader)); + break; + case 6: + message.sectionType = reader.readEnum(); + break; + case 7: + message.isCurve = reader.readBool(); + break; + case 8: + message.segmentsCount = reader.readInt32(); + break; + case 9: + message.normalRunningDirection = reader.readEnum(); + break; + case 10: + message.isTurnBackZone = reader.readBool(); + break; + case 11: + message.direction = reader.readEnum(); + break; + case 12: + message.axleCountings = reader.readPackedUint32(); + break; + case 13: + message.trackSectionId = reader.readUint32(); + break; + case 14: + message.centralizedStations = reader.readPackedUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Section { + return Section.deserialize(bytes); + } + } + export namespace Section { + export enum SectionType { + Physical = 0, + TurnoutPhysical = 1 + } + export enum RunningDirection { + AtoB = 0, + BtoA = 1, + BOTH = 2 + } + } + export class Turnout extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + pointA?: dependency_1.common.Point[]; + pointB?: dependency_1.common.Point[]; + pointC?: dependency_1.common.Point[]; + paRef?: RelatedRef; + pbRef?: RelatedRef; + pcRef?: RelatedRef; + kilometerSystem?: KilometerSystem[]; + switchMachineType?: Turnout.SwitchMachineType; + centralizedStations?: number[]; + paTrackSectionId?: number; + pbTrackSectionId?: number; + pcTrackSectionId?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 4, 5, 9, 11], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("pointA" in data && data.pointA != undefined) { + this.pointA = data.pointA; + } + if ("pointB" in data && data.pointB != undefined) { + this.pointB = data.pointB; + } + if ("pointC" in data && data.pointC != undefined) { + this.pointC = data.pointC; + } + if ("paRef" in data && data.paRef != undefined) { + this.paRef = data.paRef; + } + if ("pbRef" in data && data.pbRef != undefined) { + this.pbRef = data.pbRef; + } + if ("pcRef" in data && data.pcRef != undefined) { + this.pcRef = data.pcRef; + } + if ("kilometerSystem" in data && data.kilometerSystem != undefined) { + this.kilometerSystem = data.kilometerSystem; + } + if ("switchMachineType" in data && data.switchMachineType != undefined) { + this.switchMachineType = data.switchMachineType; + } + if ("centralizedStations" in data && data.centralizedStations != undefined) { + this.centralizedStations = data.centralizedStations; + } + if ("paTrackSectionId" in data && data.paTrackSectionId != undefined) { + this.paTrackSectionId = data.paTrackSectionId; + } + if ("pbTrackSectionId" in data && data.pbTrackSectionId != undefined) { + this.pbTrackSectionId = data.pbTrackSectionId; + } + if ("pcTrackSectionId" in data && data.pcTrackSectionId != undefined) { + this.pcTrackSectionId = data.pcTrackSectionId; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get pointA() { + return pb_1.Message.getRepeatedWrapperField(this, dependency_1.common.Point, 3) as dependency_1.common.Point[]; + } + set pointA(value: dependency_1.common.Point[]) { + pb_1.Message.setRepeatedWrapperField(this, 3, value); + } + get pointB() { + return pb_1.Message.getRepeatedWrapperField(this, dependency_1.common.Point, 4) as dependency_1.common.Point[]; + } + set pointB(value: dependency_1.common.Point[]) { + pb_1.Message.setRepeatedWrapperField(this, 4, value); + } + get pointC() { + return pb_1.Message.getRepeatedWrapperField(this, dependency_1.common.Point, 5) as dependency_1.common.Point[]; + } + set pointC(value: dependency_1.common.Point[]) { + pb_1.Message.setRepeatedWrapperField(this, 5, value); + } + get paRef() { + return pb_1.Message.getWrapperField(this, RelatedRef, 6) as RelatedRef; + } + set paRef(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 6, value); + } + get has_paRef() { + return pb_1.Message.getField(this, 6) != null; + } + get pbRef() { + return pb_1.Message.getWrapperField(this, RelatedRef, 7) as RelatedRef; + } + set pbRef(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 7, value); + } + get has_pbRef() { + return pb_1.Message.getField(this, 7) != null; + } + get pcRef() { + return pb_1.Message.getWrapperField(this, RelatedRef, 8) as RelatedRef; + } + set pcRef(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 8, value); + } + get has_pcRef() { + return pb_1.Message.getField(this, 8) != null; + } + get kilometerSystem() { + return pb_1.Message.getRepeatedWrapperField(this, KilometerSystem, 9) as KilometerSystem[]; + } + set kilometerSystem(value: KilometerSystem[]) { + pb_1.Message.setRepeatedWrapperField(this, 9, value); + } + get switchMachineType() { + return pb_1.Message.getFieldWithDefault(this, 10, Turnout.SwitchMachineType.Unknown) as Turnout.SwitchMachineType; + } + set switchMachineType(value: Turnout.SwitchMachineType) { + pb_1.Message.setField(this, 10, value); + } + get centralizedStations() { + return pb_1.Message.getFieldWithDefault(this, 11, []) as number[]; + } + set centralizedStations(value: number[]) { + pb_1.Message.setField(this, 11, value); + } + get paTrackSectionId() { + return pb_1.Message.getFieldWithDefault(this, 12, 0) as number; + } + set paTrackSectionId(value: number) { + pb_1.Message.setField(this, 12, value); + } + get pbTrackSectionId() { + return pb_1.Message.getFieldWithDefault(this, 13, 0) as number; + } + set pbTrackSectionId(value: number) { + pb_1.Message.setField(this, 13, value); + } + get pcTrackSectionId() { + return pb_1.Message.getFieldWithDefault(this, 14, 0) as number; + } + set pcTrackSectionId(value: number) { + pb_1.Message.setField(this, 14, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + pointA?: ReturnType[]; + pointB?: ReturnType[]; + pointC?: ReturnType[]; + paRef?: ReturnType; + pbRef?: ReturnType; + pcRef?: ReturnType; + kilometerSystem?: ReturnType[]; + switchMachineType?: Turnout.SwitchMachineType; + centralizedStations?: number[]; + paTrackSectionId?: number; + pbTrackSectionId?: number; + pcTrackSectionId?: number; + }): Turnout { + const message = new Turnout({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.pointA != null) { + message.pointA = data.pointA.map(item => dependency_1.common.Point.fromObject(item)); + } + if (data.pointB != null) { + message.pointB = data.pointB.map(item => dependency_1.common.Point.fromObject(item)); + } + if (data.pointC != null) { + message.pointC = data.pointC.map(item => dependency_1.common.Point.fromObject(item)); + } + if (data.paRef != null) { + message.paRef = RelatedRef.fromObject(data.paRef); + } + if (data.pbRef != null) { + message.pbRef = RelatedRef.fromObject(data.pbRef); + } + if (data.pcRef != null) { + message.pcRef = RelatedRef.fromObject(data.pcRef); + } + if (data.kilometerSystem != null) { + message.kilometerSystem = data.kilometerSystem.map(item => KilometerSystem.fromObject(item)); + } + if (data.switchMachineType != null) { + message.switchMachineType = data.switchMachineType; + } + if (data.centralizedStations != null) { + message.centralizedStations = data.centralizedStations; + } + if (data.paTrackSectionId != null) { + message.paTrackSectionId = data.paTrackSectionId; + } + if (data.pbTrackSectionId != null) { + message.pbTrackSectionId = data.pbTrackSectionId; + } + if (data.pcTrackSectionId != null) { + message.pcTrackSectionId = data.pcTrackSectionId; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + pointA?: ReturnType[]; + pointB?: ReturnType[]; + pointC?: ReturnType[]; + paRef?: ReturnType; + pbRef?: ReturnType; + pcRef?: ReturnType; + kilometerSystem?: ReturnType[]; + switchMachineType?: Turnout.SwitchMachineType; + centralizedStations?: number[]; + paTrackSectionId?: number; + pbTrackSectionId?: number; + pcTrackSectionId?: number; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.pointA != null) { + data.pointA = this.pointA.map((item: dependency_1.common.Point) => item.toObject()); + } + if (this.pointB != null) { + data.pointB = this.pointB.map((item: dependency_1.common.Point) => item.toObject()); + } + if (this.pointC != null) { + data.pointC = this.pointC.map((item: dependency_1.common.Point) => item.toObject()); + } + if (this.paRef != null) { + data.paRef = this.paRef.toObject(); + } + if (this.pbRef != null) { + data.pbRef = this.pbRef.toObject(); + } + if (this.pcRef != null) { + data.pcRef = this.pcRef.toObject(); + } + if (this.kilometerSystem != null) { + data.kilometerSystem = this.kilometerSystem.map((item: KilometerSystem) => item.toObject()); + } + if (this.switchMachineType != null) { + data.switchMachineType = this.switchMachineType; + } + if (this.centralizedStations != null) { + data.centralizedStations = this.centralizedStations; + } + if (this.paTrackSectionId != null) { + data.paTrackSectionId = this.paTrackSectionId; + } + if (this.pbTrackSectionId != null) { + data.pbTrackSectionId = this.pbTrackSectionId; + } + if (this.pcTrackSectionId != null) { + data.pcTrackSectionId = this.pcTrackSectionId; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.pointA.length) + writer.writeRepeatedMessage(3, this.pointA, (item: dependency_1.common.Point) => item.serialize(writer)); + if (this.pointB.length) + writer.writeRepeatedMessage(4, this.pointB, (item: dependency_1.common.Point) => item.serialize(writer)); + if (this.pointC.length) + writer.writeRepeatedMessage(5, this.pointC, (item: dependency_1.common.Point) => item.serialize(writer)); + if (this.has_paRef) + writer.writeMessage(6, this.paRef, () => this.paRef.serialize(writer)); + if (this.has_pbRef) + writer.writeMessage(7, this.pbRef, () => this.pbRef.serialize(writer)); + if (this.has_pcRef) + writer.writeMessage(8, this.pcRef, () => this.pcRef.serialize(writer)); + if (this.kilometerSystem.length) + writer.writeRepeatedMessage(9, this.kilometerSystem, (item: KilometerSystem) => item.serialize(writer)); + if (this.switchMachineType != Turnout.SwitchMachineType.Unknown) + writer.writeEnum(10, this.switchMachineType); + if (this.centralizedStations.length) + writer.writePackedUint32(11, this.centralizedStations); + if (this.paTrackSectionId != 0) + writer.writeUint32(12, this.paTrackSectionId); + if (this.pbTrackSectionId != 0) + writer.writeUint32(13, this.pbTrackSectionId); + if (this.pcTrackSectionId != 0) + writer.writeUint32(14, this.pcTrackSectionId); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Turnout { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Turnout(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + reader.readMessage(message.pointA, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_1.common.Point.deserialize(reader), dependency_1.common.Point)); + break; + case 4: + reader.readMessage(message.pointB, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_1.common.Point.deserialize(reader), dependency_1.common.Point)); + break; + case 5: + reader.readMessage(message.pointC, () => pb_1.Message.addToRepeatedWrapperField(message, 5, dependency_1.common.Point.deserialize(reader), dependency_1.common.Point)); + break; + case 6: + reader.readMessage(message.paRef, () => message.paRef = RelatedRef.deserialize(reader)); + break; + case 7: + reader.readMessage(message.pbRef, () => message.pbRef = RelatedRef.deserialize(reader)); + break; + case 8: + reader.readMessage(message.pcRef, () => message.pcRef = RelatedRef.deserialize(reader)); + break; + case 9: + reader.readMessage(message.kilometerSystem, () => pb_1.Message.addToRepeatedWrapperField(message, 9, KilometerSystem.deserialize(reader), KilometerSystem)); + break; + case 10: + message.switchMachineType = reader.readEnum(); + break; + case 11: + message.centralizedStations = reader.readPackedUint32(); + break; + case 12: + message.paTrackSectionId = reader.readUint32(); + break; + case 13: + message.pbTrackSectionId = reader.readUint32(); + break; + case 14: + message.pcTrackSectionId = reader.readUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Turnout { + return Turnout.deserialize(bytes); + } + } + export namespace Turnout { + export enum SwitchMachineType { + Unknown = 0, + ZDJ9_Single = 1, + ZDJ9_Double = 2 + } + } + export class Signal extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + mirror?: boolean; + kilometerSystem?: KilometerSystem; + refDev?: RelatedRef; + mt?: Signal.Model; + direction?: Direction; + centralizedStations?: number[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("mirror" in data && data.mirror != undefined) { + this.mirror = data.mirror; + } + if ("kilometerSystem" in data && data.kilometerSystem != undefined) { + this.kilometerSystem = data.kilometerSystem; + } + if ("refDev" in data && data.refDev != undefined) { + this.refDev = data.refDev; + } + if ("mt" in data && data.mt != undefined) { + this.mt = data.mt; + } + if ("direction" in data && data.direction != undefined) { + this.direction = data.direction; + } + if ("centralizedStations" in data && data.centralizedStations != undefined) { + this.centralizedStations = data.centralizedStations; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get mirror() { + return pb_1.Message.getFieldWithDefault(this, 3, false) as boolean; + } + set mirror(value: boolean) { + pb_1.Message.setField(this, 3, value); + } + get kilometerSystem() { + return pb_1.Message.getWrapperField(this, KilometerSystem, 4) as KilometerSystem; + } + set kilometerSystem(value: KilometerSystem) { + pb_1.Message.setWrapperField(this, 4, value); + } + get has_kilometerSystem() { + return pb_1.Message.getField(this, 4) != null; + } + get refDev() { + return pb_1.Message.getWrapperField(this, RelatedRef, 5) as RelatedRef; + } + set refDev(value: RelatedRef) { + pb_1.Message.setWrapperField(this, 5, value); + } + get has_refDev() { + return pb_1.Message.getField(this, 5) != null; + } + get mt() { + return pb_1.Message.getFieldWithDefault(this, 6, Signal.Model.HL) as Signal.Model; + } + set mt(value: Signal.Model) { + pb_1.Message.setField(this, 6, value); + } + get direction() { + return pb_1.Message.getFieldWithDefault(this, 7, Direction.UP) as Direction; + } + set direction(value: Direction) { + pb_1.Message.setField(this, 7, value); + } + get centralizedStations() { + return pb_1.Message.getFieldWithDefault(this, 8, []) as number[]; + } + set centralizedStations(value: number[]) { + pb_1.Message.setField(this, 8, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + mirror?: boolean; + kilometerSystem?: ReturnType; + refDev?: ReturnType; + mt?: Signal.Model; + direction?: Direction; + centralizedStations?: number[]; + }): Signal { + const message = new Signal({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.mirror != null) { + message.mirror = data.mirror; + } + if (data.kilometerSystem != null) { + message.kilometerSystem = KilometerSystem.fromObject(data.kilometerSystem); + } + if (data.refDev != null) { + message.refDev = RelatedRef.fromObject(data.refDev); + } + if (data.mt != null) { + message.mt = data.mt; + } + if (data.direction != null) { + message.direction = data.direction; + } + if (data.centralizedStations != null) { + message.centralizedStations = data.centralizedStations; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + mirror?: boolean; + kilometerSystem?: ReturnType; + refDev?: ReturnType; + mt?: Signal.Model; + direction?: Direction; + centralizedStations?: number[]; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.mirror != null) { + data.mirror = this.mirror; + } + if (this.kilometerSystem != null) { + data.kilometerSystem = this.kilometerSystem.toObject(); + } + if (this.refDev != null) { + data.refDev = this.refDev.toObject(); + } + if (this.mt != null) { + data.mt = this.mt; + } + if (this.direction != null) { + data.direction = this.direction; + } + if (this.centralizedStations != null) { + data.centralizedStations = this.centralizedStations; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.mirror != false) + writer.writeBool(3, this.mirror); + if (this.has_kilometerSystem) + writer.writeMessage(4, this.kilometerSystem, () => this.kilometerSystem.serialize(writer)); + if (this.has_refDev) + writer.writeMessage(5, this.refDev, () => this.refDev.serialize(writer)); + if (this.mt != Signal.Model.HL) + writer.writeEnum(6, this.mt); + if (this.direction != Direction.UP) + writer.writeEnum(7, this.direction); + if (this.centralizedStations.length) + writer.writePackedUint32(8, this.centralizedStations); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Signal { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Signal(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.mirror = reader.readBool(); + break; + case 4: + reader.readMessage(message.kilometerSystem, () => message.kilometerSystem = KilometerSystem.deserialize(reader)); + break; + case 5: + reader.readMessage(message.refDev, () => message.refDev = RelatedRef.deserialize(reader)); + break; + case 6: + message.mt = reader.readEnum(); + break; + case 7: + message.direction = reader.readEnum(); + break; + case 8: + message.centralizedStations = reader.readPackedUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Signal { + return Signal.deserialize(bytes); + } + } + export namespace Signal { + export enum Model { + HL = 0, + HLU_FU = 1, + HLU_DU_YY = 2, + HLU_YY = 3, + HLU_FL_DU_YY = 4, + HLU_DU = 5, + AB = 6, + HBU_DU = 7 + } + } + export class AxleCounting extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + kilometerSystem?: KilometerSystem; + axleCountingRef?: RelatedRef[]; + type?: AxleCounting.TypeDetectionPoint; + centralizedStations?: number[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 6], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("kilometerSystem" in data && data.kilometerSystem != undefined) { + this.kilometerSystem = data.kilometerSystem; + } + if ("axleCountingRef" in data && data.axleCountingRef != undefined) { + this.axleCountingRef = data.axleCountingRef; + } + if ("type" in data && data.type != undefined) { + this.type = data.type; + } + if ("centralizedStations" in data && data.centralizedStations != undefined) { + this.centralizedStations = data.centralizedStations; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get kilometerSystem() { + return pb_1.Message.getWrapperField(this, KilometerSystem, 3) as KilometerSystem; + } + set kilometerSystem(value: KilometerSystem) { + pb_1.Message.setWrapperField(this, 3, value); + } + get has_kilometerSystem() { + return pb_1.Message.getField(this, 3) != null; + } + get axleCountingRef() { + return pb_1.Message.getRepeatedWrapperField(this, RelatedRef, 4) as RelatedRef[]; + } + set axleCountingRef(value: RelatedRef[]) { + pb_1.Message.setRepeatedWrapperField(this, 4, value); + } + get type() { + return pb_1.Message.getFieldWithDefault(this, 5, AxleCounting.TypeDetectionPoint.AxleCounting) as AxleCounting.TypeDetectionPoint; + } + set type(value: AxleCounting.TypeDetectionPoint) { + pb_1.Message.setField(this, 5, value); + } + get centralizedStations() { + return pb_1.Message.getFieldWithDefault(this, 6, []) as number[]; + } + set centralizedStations(value: number[]) { + pb_1.Message.setField(this, 6, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + kilometerSystem?: ReturnType; + axleCountingRef?: ReturnType[]; + type?: AxleCounting.TypeDetectionPoint; + centralizedStations?: number[]; + }): AxleCounting { + const message = new AxleCounting({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.kilometerSystem != null) { + message.kilometerSystem = KilometerSystem.fromObject(data.kilometerSystem); + } + if (data.axleCountingRef != null) { + message.axleCountingRef = data.axleCountingRef.map(item => RelatedRef.fromObject(item)); + } + if (data.type != null) { + message.type = data.type; + } + if (data.centralizedStations != null) { + message.centralizedStations = data.centralizedStations; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + kilometerSystem?: ReturnType; + axleCountingRef?: ReturnType[]; + type?: AxleCounting.TypeDetectionPoint; + centralizedStations?: number[]; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.kilometerSystem != null) { + data.kilometerSystem = this.kilometerSystem.toObject(); + } + if (this.axleCountingRef != null) { + data.axleCountingRef = this.axleCountingRef.map((item: RelatedRef) => item.toObject()); + } + if (this.type != null) { + data.type = this.type; + } + if (this.centralizedStations != null) { + data.centralizedStations = this.centralizedStations; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.has_kilometerSystem) + writer.writeMessage(3, this.kilometerSystem, () => this.kilometerSystem.serialize(writer)); + if (this.axleCountingRef.length) + writer.writeRepeatedMessage(4, this.axleCountingRef, (item: RelatedRef) => item.serialize(writer)); + if (this.type != AxleCounting.TypeDetectionPoint.AxleCounting) + writer.writeEnum(5, this.type); + if (this.centralizedStations.length) + writer.writePackedUint32(6, this.centralizedStations); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AxleCounting { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AxleCounting(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + reader.readMessage(message.kilometerSystem, () => message.kilometerSystem = KilometerSystem.deserialize(reader)); + break; + case 4: + reader.readMessage(message.axleCountingRef, () => pb_1.Message.addToRepeatedWrapperField(message, 4, RelatedRef.deserialize(reader), RelatedRef)); + break; + case 5: + message.type = reader.readEnum(); + break; + case 6: + message.centralizedStations = reader.readPackedUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): AxleCounting { + return AxleCounting.deserialize(bytes); + } + } + export namespace AxleCounting { + export enum TypeDetectionPoint { + AxleCounting = 0, + SectionBoundary = 1 + } + } + export class KilometerSystem extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + kilometer?: number; + coordinateSystem?: string; + direction?: KilometerSystem.Direction; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("kilometer" in data && data.kilometer != undefined) { + this.kilometer = data.kilometer; + } + if ("coordinateSystem" in data && data.coordinateSystem != undefined) { + this.coordinateSystem = data.coordinateSystem; + } + if ("direction" in data && data.direction != undefined) { + this.direction = data.direction; + } + } + } + get kilometer() { + return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; + } + set kilometer(value: number) { + pb_1.Message.setField(this, 1, value); + } + get coordinateSystem() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set coordinateSystem(value: string) { + pb_1.Message.setField(this, 2, value); + } + get direction() { + return pb_1.Message.getFieldWithDefault(this, 3, KilometerSystem.Direction.LEFT) as KilometerSystem.Direction; + } + set direction(value: KilometerSystem.Direction) { + pb_1.Message.setField(this, 3, value); + } + static fromObject(data: { + kilometer?: number; + coordinateSystem?: string; + direction?: KilometerSystem.Direction; + }): KilometerSystem { + const message = new KilometerSystem({}); + if (data.kilometer != null) { + message.kilometer = data.kilometer; + } + if (data.coordinateSystem != null) { + message.coordinateSystem = data.coordinateSystem; + } + if (data.direction != null) { + message.direction = data.direction; + } + return message; + } + toObject() { + const data: { + kilometer?: number; + coordinateSystem?: string; + direction?: KilometerSystem.Direction; + } = {}; + if (this.kilometer != null) { + data.kilometer = this.kilometer; + } + if (this.coordinateSystem != null) { + data.coordinateSystem = this.coordinateSystem; + } + if (this.direction != null) { + data.direction = this.direction; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.kilometer != 0) + writer.writeInt64(1, this.kilometer); + if (this.coordinateSystem.length) + writer.writeString(2, this.coordinateSystem); + if (this.direction != KilometerSystem.Direction.LEFT) + writer.writeEnum(3, this.direction); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KilometerSystem { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new KilometerSystem(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.kilometer = reader.readInt64(); + break; + case 2: + message.coordinateSystem = reader.readString(); + break; + case 3: + message.direction = reader.readEnum(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): KilometerSystem { + return KilometerSystem.deserialize(bytes); + } + } + export namespace KilometerSystem { + export enum Direction { + LEFT = 0, + RIGHT = 1 + } + } + export class SimpleRef extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + deviceType?: SimpleRef.DeviceType; + id?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("deviceType" in data && data.deviceType != undefined) { + this.deviceType = data.deviceType; + } + if ("id" in data && data.id != undefined) { + this.id = data.id; + } + } + } + get deviceType() { + return pb_1.Message.getFieldWithDefault(this, 1, SimpleRef.DeviceType.Turnout) as SimpleRef.DeviceType; + } + set deviceType(value: SimpleRef.DeviceType) { + pb_1.Message.setField(this, 1, value); + } + get id() { + return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; + } + set id(value: number) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + deviceType?: SimpleRef.DeviceType; + id?: number; + }): SimpleRef { + const message = new SimpleRef({}); + if (data.deviceType != null) { + message.deviceType = data.deviceType; + } + if (data.id != null) { + message.id = data.id; + } + return message; + } + toObject() { + const data: { + deviceType?: SimpleRef.DeviceType; + id?: number; + } = {}; + if (this.deviceType != null) { + data.deviceType = this.deviceType; + } + if (this.id != null) { + data.id = this.id; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.deviceType != SimpleRef.DeviceType.Turnout) + writer.writeEnum(1, this.deviceType); + if (this.id != 0) + writer.writeUint32(2, this.id); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SimpleRef { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SimpleRef(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.deviceType = reader.readEnum(); + break; + case 2: + message.id = reader.readUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SimpleRef { + return SimpleRef.deserialize(bytes); + } + } + export namespace SimpleRef { + export enum DeviceType { + Turnout = 0, + AxleCounting = 1 + } + } + export class RelatedRef extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + deviceType?: RelatedRef.DeviceType; + devicePort?: RelatedRef.DevicePort; + id?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("deviceType" in data && data.deviceType != undefined) { + this.deviceType = data.deviceType; + } + if ("devicePort" in data && data.devicePort != undefined) { + this.devicePort = data.devicePort; + } + if ("id" in data && data.id != undefined) { + this.id = data.id; + } + } + } + get deviceType() { + return pb_1.Message.getFieldWithDefault(this, 1, RelatedRef.DeviceType.station) as RelatedRef.DeviceType; + } + set deviceType(value: RelatedRef.DeviceType) { + pb_1.Message.setField(this, 1, value); + } + get devicePort() { + return pb_1.Message.getFieldWithDefault(this, 2, RelatedRef.DevicePort.A) as RelatedRef.DevicePort; + } + set devicePort(value: RelatedRef.DevicePort) { + pb_1.Message.setField(this, 2, value); + } + get id() { + return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; + } + set id(value: number) { + pb_1.Message.setField(this, 3, value); + } + static fromObject(data: { + deviceType?: RelatedRef.DeviceType; + devicePort?: RelatedRef.DevicePort; + id?: number; + }): RelatedRef { + const message = new RelatedRef({}); + if (data.deviceType != null) { + message.deviceType = data.deviceType; + } + if (data.devicePort != null) { + message.devicePort = data.devicePort; + } + if (data.id != null) { + message.id = data.id; + } + return message; + } + toObject() { + const data: { + deviceType?: RelatedRef.DeviceType; + devicePort?: RelatedRef.DevicePort; + id?: number; + } = {}; + if (this.deviceType != null) { + data.deviceType = this.deviceType; + } + if (this.devicePort != null) { + data.devicePort = this.devicePort; + } + if (this.id != null) { + data.id = this.id; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.deviceType != RelatedRef.DeviceType.station) + writer.writeEnum(1, this.deviceType); + if (this.devicePort != RelatedRef.DevicePort.A) + writer.writeEnum(2, this.devicePort); + if (this.id != 0) + writer.writeUint32(3, this.id); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RelatedRef { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RelatedRef(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.deviceType = reader.readEnum(); + break; + case 2: + message.devicePort = reader.readEnum(); + break; + case 3: + message.id = reader.readUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): RelatedRef { + return RelatedRef.deserialize(bytes); + } + } + export namespace RelatedRef { + export enum DeviceType { + station = 0, + ScreenDoor = 1, + Section = 2, + Turnout = 3, + signal = 4, + AxleCounting = 5 + } + export enum DevicePort { + A = 0, + B = 1, + C = 2 + } + } + export class GenerateAxleCountingConfig extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + bbConnect?: number[]; + noGenerateGroup?: number[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("bbConnect" in data && data.bbConnect != undefined) { + this.bbConnect = data.bbConnect; + } + if ("noGenerateGroup" in data && data.noGenerateGroup != undefined) { + this.noGenerateGroup = data.noGenerateGroup; + } + } + } + get bbConnect() { + return pb_1.Message.getFieldWithDefault(this, 1, []) as number[]; + } + set bbConnect(value: number[]) { + pb_1.Message.setField(this, 1, value); + } + get noGenerateGroup() { + return pb_1.Message.getFieldWithDefault(this, 2, []) as number[]; + } + set noGenerateGroup(value: number[]) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + bbConnect?: number[]; + noGenerateGroup?: number[]; + }): GenerateAxleCountingConfig { + const message = new GenerateAxleCountingConfig({}); + if (data.bbConnect != null) { + message.bbConnect = data.bbConnect; + } + if (data.noGenerateGroup != null) { + message.noGenerateGroup = data.noGenerateGroup; + } + return message; + } + toObject() { + const data: { + bbConnect?: number[]; + noGenerateGroup?: number[]; + } = {}; + if (this.bbConnect != null) { + data.bbConnect = this.bbConnect; + } + if (this.noGenerateGroup != null) { + data.noGenerateGroup = this.noGenerateGroup; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.bbConnect.length) + writer.writePackedUint32(1, this.bbConnect); + if (this.noGenerateGroup.length) + writer.writePackedUint32(2, this.noGenerateGroup); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GenerateAxleCountingConfig { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GenerateAxleCountingConfig(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.bbConnect = reader.readPackedUint32(); + break; + case 2: + message.noGenerateGroup = reader.readPackedUint32(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): GenerateAxleCountingConfig { + return GenerateAxleCountingConfig.deserialize(bytes); + } + } +} diff --git a/src/protos/em_data.ts b/src/protos/em_data.ts deleted file mode 100644 index bdb0c3b..0000000 --- a/src/protos/em_data.ts +++ /dev/null @@ -1,426 +0,0 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 5.27.4 - * source: em_data.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./common"; -import * as pb_1 from "google-protobuf"; -export namespace em_data { - export class Em extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - canvas?: dependency_1.common.Canvas; - stations?: Station[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("canvas" in data && data.canvas != undefined) { - this.canvas = data.canvas; - } - if ("stations" in data && data.stations != undefined) { - this.stations = data.stations; - } - } - } - get canvas() { - return pb_1.Message.getWrapperField(this, dependency_1.common.Canvas, 1) as dependency_1.common.Canvas; - } - set canvas(value: dependency_1.common.Canvas) { - pb_1.Message.setWrapperField(this, 1, value); - } - get has_canvas() { - return pb_1.Message.getField(this, 1) != null; - } - get stations() { - return pb_1.Message.getRepeatedWrapperField(this, Station, 2) as Station[]; - } - set stations(value: Station[]) { - pb_1.Message.setRepeatedWrapperField(this, 2, value); - } - static fromObject(data: { - canvas?: ReturnType; - stations?: ReturnType[]; - }): Em { - const message = new Em({}); - if (data.canvas != null) { - message.canvas = dependency_1.common.Canvas.fromObject(data.canvas); - } - if (data.stations != null) { - message.stations = data.stations.map(item => Station.fromObject(item)); - } - return message; - } - toObject() { - const data: { - canvas?: ReturnType; - stations?: ReturnType[]; - } = {}; - if (this.canvas != null) { - data.canvas = this.canvas.toObject(); - } - if (this.stations != null) { - data.stations = this.stations.map((item: Station) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.has_canvas) - writer.writeMessage(1, this.canvas, () => this.canvas.serialize(writer)); - if (this.stations.length) - writer.writeRepeatedMessage(2, this.stations, (item: Station) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Em { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Em(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.canvas, () => message.canvas = dependency_1.common.Canvas.deserialize(reader)); - break; - case 2: - reader.readMessage(message.stations, () => pb_1.Message.addToRepeatedWrapperField(message, 2, Station.deserialize(reader), Station)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Em { - return Em.deserialize(bytes); - } - } - export class KilometerMark extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - coordinate?: string; - value?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("coordinate" in data && data.coordinate != undefined) { - this.coordinate = data.coordinate; - } - if ("value" in data && data.value != undefined) { - this.value = data.value; - } - } - } - get coordinate() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set coordinate(value: string) { - pb_1.Message.setField(this, 1, value); - } - get value() { - return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; - } - set value(value: number) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - coordinate?: string; - value?: number; - }): KilometerMark { - const message = new KilometerMark({}); - if (data.coordinate != null) { - message.coordinate = data.coordinate; - } - if (data.value != null) { - message.value = data.value; - } - return message; - } - toObject() { - const data: { - coordinate?: string; - value?: number; - } = {}; - if (this.coordinate != null) { - data.coordinate = this.coordinate; - } - if (this.value != null) { - data.value = this.value; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.coordinate.length) - writer.writeString(1, this.coordinate); - if (this.value != 0) - writer.writeInt64(2, this.value); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KilometerMark { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new KilometerMark(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.coordinate = reader.readString(); - break; - case 2: - message.value = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): KilometerMark { - return KilometerMark.deserialize(bytes); - } - } - export class Station extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - common?: dependency_1.common.CommonInfo; - name?: string; - zhanName?: string; - namePinyin?: string; - km?: KilometerMark; - concentration?: boolean; - depots?: boolean; - manageStationIds?: number[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("common" in data && data.common != undefined) { - this.common = data.common; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("zhanName" in data && data.zhanName != undefined) { - this.zhanName = data.zhanName; - } - if ("namePinyin" in data && data.namePinyin != undefined) { - this.namePinyin = data.namePinyin; - } - if ("km" in data && data.km != undefined) { - this.km = data.km; - } - if ("concentration" in data && data.concentration != undefined) { - this.concentration = data.concentration; - } - if ("depots" in data && data.depots != undefined) { - this.depots = data.depots; - } - if ("manageStationIds" in data && data.manageStationIds != undefined) { - this.manageStationIds = data.manageStationIds; - } - } - } - get common() { - return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; - } - set common(value: dependency_1.common.CommonInfo) { - pb_1.Message.setWrapperField(this, 1, value); - } - get has_common() { - return pb_1.Message.getField(this, 1) != null; - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get zhanName() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set zhanName(value: string) { - pb_1.Message.setField(this, 3, value); - } - get namePinyin() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set namePinyin(value: string) { - pb_1.Message.setField(this, 4, value); - } - get km() { - return pb_1.Message.getWrapperField(this, KilometerMark, 6) as KilometerMark; - } - set km(value: KilometerMark) { - pb_1.Message.setWrapperField(this, 6, value); - } - get has_km() { - return pb_1.Message.getField(this, 6) != null; - } - get concentration() { - return pb_1.Message.getFieldWithDefault(this, 10, false) as boolean; - } - set concentration(value: boolean) { - pb_1.Message.setField(this, 10, value); - } - get depots() { - return pb_1.Message.getFieldWithDefault(this, 11, false) as boolean; - } - set depots(value: boolean) { - pb_1.Message.setField(this, 11, value); - } - get manageStationIds() { - return pb_1.Message.getFieldWithDefault(this, 13, []) as number[]; - } - set manageStationIds(value: number[]) { - pb_1.Message.setField(this, 13, value); - } - static fromObject(data: { - common?: ReturnType; - name?: string; - zhanName?: string; - namePinyin?: string; - km?: ReturnType; - concentration?: boolean; - depots?: boolean; - manageStationIds?: number[]; - }): Station { - const message = new Station({}); - if (data.common != null) { - message.common = dependency_1.common.CommonInfo.fromObject(data.common); - } - if (data.name != null) { - message.name = data.name; - } - if (data.zhanName != null) { - message.zhanName = data.zhanName; - } - if (data.namePinyin != null) { - message.namePinyin = data.namePinyin; - } - if (data.km != null) { - message.km = KilometerMark.fromObject(data.km); - } - if (data.concentration != null) { - message.concentration = data.concentration; - } - if (data.depots != null) { - message.depots = data.depots; - } - if (data.manageStationIds != null) { - message.manageStationIds = data.manageStationIds; - } - return message; - } - toObject() { - const data: { - common?: ReturnType; - name?: string; - zhanName?: string; - namePinyin?: string; - km?: ReturnType; - concentration?: boolean; - depots?: boolean; - manageStationIds?: number[]; - } = {}; - if (this.common != null) { - data.common = this.common.toObject(); - } - if (this.name != null) { - data.name = this.name; - } - if (this.zhanName != null) { - data.zhanName = this.zhanName; - } - if (this.namePinyin != null) { - data.namePinyin = this.namePinyin; - } - if (this.km != null) { - data.km = this.km.toObject(); - } - if (this.concentration != null) { - data.concentration = this.concentration; - } - if (this.depots != null) { - data.depots = this.depots; - } - if (this.manageStationIds != null) { - data.manageStationIds = this.manageStationIds; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.has_common) - writer.writeMessage(1, this.common, () => this.common.serialize(writer)); - if (this.name.length) - writer.writeString(2, this.name); - if (this.zhanName.length) - writer.writeString(3, this.zhanName); - if (this.namePinyin.length) - writer.writeString(4, this.namePinyin); - if (this.has_km) - writer.writeMessage(6, this.km, () => this.km.serialize(writer)); - if (this.concentration != false) - writer.writeBool(10, this.concentration); - if (this.depots != false) - writer.writeBool(11, this.depots); - if (this.manageStationIds.length) - writer.writePackedUint32(13, this.manageStationIds); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Station { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Station(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.zhanName = reader.readString(); - break; - case 4: - message.namePinyin = reader.readString(); - break; - case 6: - reader.readMessage(message.km, () => message.km = KilometerMark.deserialize(reader)); - break; - case 10: - message.concentration = reader.readBool(); - break; - case 11: - message.depots = reader.readBool(); - break; - case 13: - message.manageStationIds = reader.readPackedUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Station { - return Station.deserialize(bytes); - } - } -} diff --git a/src/protos/iscs_graphic_data.ts b/src/protos/iscs_graphic_data.ts index 3faa48c..d2130f5 100644 --- a/src/protos/iscs_graphic_data.ts +++ b/src/protos/iscs_graphic_data.ts @@ -9,24 +9,28 @@ export namespace iscsGraphicData { export class IscsGraphicStorage extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - cctvOfStationControlStorages?: CCTVOfStationControlStorage[]; + cctvOfEquipmentLayoutStorages?: CCTVOfEquipmentLayoutStorage[]; fasOfPlatformAlarmStorages?: FASOfPlatformAlarmStorage[]; + basOfEscalatorStorages?: BASOfEscalatorStorage[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("cctvOfStationControlStorages" in data && data.cctvOfStationControlStorages != undefined) { - this.cctvOfStationControlStorages = data.cctvOfStationControlStorages; + if ("cctvOfEquipmentLayoutStorages" in data && data.cctvOfEquipmentLayoutStorages != undefined) { + this.cctvOfEquipmentLayoutStorages = data.cctvOfEquipmentLayoutStorages; } if ("fasOfPlatformAlarmStorages" in data && data.fasOfPlatformAlarmStorages != undefined) { this.fasOfPlatformAlarmStorages = data.fasOfPlatformAlarmStorages; } + if ("basOfEscalatorStorages" in data && data.basOfEscalatorStorages != undefined) { + this.basOfEscalatorStorages = data.basOfEscalatorStorages; + } } } - get cctvOfStationControlStorages() { - return pb_1.Message.getRepeatedWrapperField(this, CCTVOfStationControlStorage, 1) as CCTVOfStationControlStorage[]; + get cctvOfEquipmentLayoutStorages() { + return pb_1.Message.getRepeatedWrapperField(this, CCTVOfEquipmentLayoutStorage, 1) as CCTVOfEquipmentLayoutStorage[]; } - set cctvOfStationControlStorages(value: CCTVOfStationControlStorage[]) { + set cctvOfEquipmentLayoutStorages(value: CCTVOfEquipmentLayoutStorage[]) { pb_1.Message.setRepeatedWrapperField(this, 1, value); } get fasOfPlatformAlarmStorages() { @@ -35,40 +39,56 @@ export namespace iscsGraphicData { set fasOfPlatformAlarmStorages(value: FASOfPlatformAlarmStorage[]) { pb_1.Message.setRepeatedWrapperField(this, 2, value); } + get basOfEscalatorStorages() { + return pb_1.Message.getRepeatedWrapperField(this, BASOfEscalatorStorage, 3) as BASOfEscalatorStorage[]; + } + set basOfEscalatorStorages(value: BASOfEscalatorStorage[]) { + pb_1.Message.setRepeatedWrapperField(this, 3, value); + } static fromObject(data: { - cctvOfStationControlStorages?: ReturnType[]; + cctvOfEquipmentLayoutStorages?: ReturnType[]; fasOfPlatformAlarmStorages?: ReturnType[]; + basOfEscalatorStorages?: ReturnType[]; }): IscsGraphicStorage { const message = new IscsGraphicStorage({}); - if (data.cctvOfStationControlStorages != null) { - message.cctvOfStationControlStorages = data.cctvOfStationControlStorages.map(item => CCTVOfStationControlStorage.fromObject(item)); + if (data.cctvOfEquipmentLayoutStorages != null) { + message.cctvOfEquipmentLayoutStorages = data.cctvOfEquipmentLayoutStorages.map(item => CCTVOfEquipmentLayoutStorage.fromObject(item)); } if (data.fasOfPlatformAlarmStorages != null) { message.fasOfPlatformAlarmStorages = data.fasOfPlatformAlarmStorages.map(item => FASOfPlatformAlarmStorage.fromObject(item)); } + if (data.basOfEscalatorStorages != null) { + message.basOfEscalatorStorages = data.basOfEscalatorStorages.map(item => BASOfEscalatorStorage.fromObject(item)); + } return message; } toObject() { const data: { - cctvOfStationControlStorages?: ReturnType[]; + cctvOfEquipmentLayoutStorages?: ReturnType[]; fasOfPlatformAlarmStorages?: ReturnType[]; + basOfEscalatorStorages?: ReturnType[]; } = {}; - if (this.cctvOfStationControlStorages != null) { - data.cctvOfStationControlStorages = this.cctvOfStationControlStorages.map((item: CCTVOfStationControlStorage) => item.toObject()); + if (this.cctvOfEquipmentLayoutStorages != null) { + data.cctvOfEquipmentLayoutStorages = this.cctvOfEquipmentLayoutStorages.map((item: CCTVOfEquipmentLayoutStorage) => item.toObject()); } if (this.fasOfPlatformAlarmStorages != null) { data.fasOfPlatformAlarmStorages = this.fasOfPlatformAlarmStorages.map((item: FASOfPlatformAlarmStorage) => item.toObject()); } + if (this.basOfEscalatorStorages != null) { + data.basOfEscalatorStorages = this.basOfEscalatorStorages.map((item: BASOfEscalatorStorage) => item.toObject()); + } return data; } serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.cctvOfStationControlStorages.length) - writer.writeRepeatedMessage(1, this.cctvOfStationControlStorages, (item: CCTVOfStationControlStorage) => item.serialize(writer)); + if (this.cctvOfEquipmentLayoutStorages.length) + writer.writeRepeatedMessage(1, this.cctvOfEquipmentLayoutStorages, (item: CCTVOfEquipmentLayoutStorage) => item.serialize(writer)); if (this.fasOfPlatformAlarmStorages.length) writer.writeRepeatedMessage(2, this.fasOfPlatformAlarmStorages, (item: FASOfPlatformAlarmStorage) => item.serialize(writer)); + if (this.basOfEscalatorStorages.length) + writer.writeRepeatedMessage(3, this.basOfEscalatorStorages, (item: BASOfEscalatorStorage) => item.serialize(writer)); if (!w) return writer.getResultBuffer(); } @@ -79,11 +99,14 @@ export namespace iscsGraphicData { break; switch (reader.getFieldNumber()) { case 1: - reader.readMessage(message.cctvOfStationControlStorages, () => pb_1.Message.addToRepeatedWrapperField(message, 1, CCTVOfStationControlStorage.deserialize(reader), CCTVOfStationControlStorage)); + reader.readMessage(message.cctvOfEquipmentLayoutStorages, () => pb_1.Message.addToRepeatedWrapperField(message, 1, CCTVOfEquipmentLayoutStorage.deserialize(reader), CCTVOfEquipmentLayoutStorage)); break; case 2: reader.readMessage(message.fasOfPlatformAlarmStorages, () => pb_1.Message.addToRepeatedWrapperField(message, 2, FASOfPlatformAlarmStorage.deserialize(reader), FASOfPlatformAlarmStorage)); break; + case 3: + reader.readMessage(message.basOfEscalatorStorages, () => pb_1.Message.addToRepeatedWrapperField(message, 3, BASOfEscalatorStorage.deserialize(reader), BASOfEscalatorStorage)); + break; default: reader.skipField(); } } @@ -217,9 +240,10 @@ export namespace iscsGraphicData { rects?: Rect[]; lines?: Line[]; circles?: Circle[]; + buttons?: Button[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5, 6], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("arrows" in data && data.arrows != undefined) { this.arrows = data.arrows; @@ -236,6 +260,9 @@ export namespace iscsGraphicData { if ("circles" in data && data.circles != undefined) { this.circles = data.circles; } + if ("buttons" in data && data.buttons != undefined) { + this.buttons = data.buttons; + } } } get arrows() { @@ -268,12 +295,19 @@ export namespace iscsGraphicData { set circles(value: Circle[]) { pb_1.Message.setRepeatedWrapperField(this, 5, value); } + get buttons() { + return pb_1.Message.getRepeatedWrapperField(this, Button, 6) as Button[]; + } + set buttons(value: Button[]) { + pb_1.Message.setRepeatedWrapperField(this, 6, value); + } static fromObject(data: { arrows?: ReturnType[]; texts?: ReturnType[]; rects?: ReturnType[]; lines?: ReturnType[]; circles?: ReturnType[]; + buttons?: ReturnType[]; }): CommonGraphicStorage { const message = new CommonGraphicStorage({}); if (data.arrows != null) { @@ -291,6 +325,9 @@ export namespace iscsGraphicData { if (data.circles != null) { message.circles = data.circles.map(item => Circle.fromObject(item)); } + if (data.buttons != null) { + message.buttons = data.buttons.map(item => Button.fromObject(item)); + } return message; } toObject() { @@ -300,6 +337,7 @@ export namespace iscsGraphicData { rects?: ReturnType[]; lines?: ReturnType[]; circles?: ReturnType[]; + buttons?: ReturnType[]; } = {}; if (this.arrows != null) { data.arrows = this.arrows.map((item: Arrow) => item.toObject()); @@ -316,6 +354,9 @@ export namespace iscsGraphicData { if (this.circles != null) { data.circles = this.circles.map((item: Circle) => item.toObject()); } + if (this.buttons != null) { + data.buttons = this.buttons.map((item: Button) => item.toObject()); + } return data; } serialize(): Uint8Array; @@ -332,6 +373,8 @@ export namespace iscsGraphicData { writer.writeRepeatedMessage(4, this.lines, (item: Line) => item.serialize(writer)); if (this.circles.length) writer.writeRepeatedMessage(5, this.circles, (item: Circle) => item.serialize(writer)); + if (this.buttons.length) + writer.writeRepeatedMessage(6, this.buttons, (item: Button) => item.serialize(writer)); if (!w) return writer.getResultBuffer(); } @@ -356,6 +399,9 @@ export namespace iscsGraphicData { case 5: reader.readMessage(message.circles, () => pb_1.Message.addToRepeatedWrapperField(message, 5, Circle.deserialize(reader), Circle)); break; + case 6: + reader.readMessage(message.buttons, () => pb_1.Message.addToRepeatedWrapperField(message, 6, Button.deserialize(reader), Button)); + break; default: reader.skipField(); } } @@ -1368,12 +1414,20 @@ export namespace iscsGraphicData { return Circle.deserialize(bytes); } } - export class CCTVButton extends pb_1.Message { + export class Button extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { common?: dependency_1.common.CommonInfo; code?: string; - buttonType?: CCTVButton.ButtonType; + codeColor?: string; + codeFontSize?: number; + belongSubMenu?: string; + buttonType?: Button.ButtonType; + width?: number; + height?: number; + radius?: number; + fillColor?: string; + alpha?: number; }) { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); @@ -1384,9 +1438,33 @@ export namespace iscsGraphicData { if ("code" in data && data.code != undefined) { this.code = data.code; } + if ("codeColor" in data && data.codeColor != undefined) { + this.codeColor = data.codeColor; + } + if ("codeFontSize" in data && data.codeFontSize != undefined) { + this.codeFontSize = data.codeFontSize; + } + if ("belongSubMenu" in data && data.belongSubMenu != undefined) { + this.belongSubMenu = data.belongSubMenu; + } if ("buttonType" in data && data.buttonType != undefined) { this.buttonType = data.buttonType; } + if ("width" in data && data.width != undefined) { + this.width = data.width; + } + if ("height" in data && data.height != undefined) { + this.height = data.height; + } + if ("radius" in data && data.radius != undefined) { + this.radius = data.radius; + } + if ("fillColor" in data && data.fillColor != undefined) { + this.fillColor = data.fillColor; + } + if ("alpha" in data && data.alpha != undefined) { + this.alpha = data.alpha; + } } } get common() { @@ -1404,34 +1482,122 @@ export namespace iscsGraphicData { set code(value: string) { pb_1.Message.setField(this, 2, value); } - get buttonType() { - return pb_1.Message.getFieldWithDefault(this, 3, CCTVButton.ButtonType.rect) as CCTVButton.ButtonType; + get codeColor() { + return pb_1.Message.getFieldWithDefault(this, 3, "") as string; } - set buttonType(value: CCTVButton.ButtonType) { + set codeColor(value: string) { pb_1.Message.setField(this, 3, value); } + get codeFontSize() { + return pb_1.Message.getFieldWithDefault(this, 4, 0) as number; + } + set codeFontSize(value: number) { + pb_1.Message.setField(this, 4, value); + } + get belongSubMenu() { + return pb_1.Message.getFieldWithDefault(this, 5, "") as string; + } + set belongSubMenu(value: string) { + pb_1.Message.setField(this, 5, value); + } + get buttonType() { + return pb_1.Message.getFieldWithDefault(this, 6, Button.ButtonType.noIcon) as Button.ButtonType; + } + set buttonType(value: Button.ButtonType) { + pb_1.Message.setField(this, 6, value); + } + get width() { + return pb_1.Message.getFieldWithDefault(this, 7, 0) as number; + } + set width(value: number) { + pb_1.Message.setField(this, 7, value); + } + get height() { + return pb_1.Message.getFieldWithDefault(this, 8, 0) as number; + } + set height(value: number) { + pb_1.Message.setField(this, 8, value); + } + get radius() { + return pb_1.Message.getFieldWithDefault(this, 9, 0) as number; + } + set radius(value: number) { + pb_1.Message.setField(this, 9, value); + } + get fillColor() { + return pb_1.Message.getFieldWithDefault(this, 10, "") as string; + } + set fillColor(value: string) { + pb_1.Message.setField(this, 10, value); + } + get alpha() { + return pb_1.Message.getFieldWithDefault(this, 11, 0) as number; + } + set alpha(value: number) { + pb_1.Message.setField(this, 11, value); + } static fromObject(data: { common?: ReturnType; code?: string; - buttonType?: CCTVButton.ButtonType; - }): CCTVButton { - const message = new CCTVButton({}); + codeColor?: string; + codeFontSize?: number; + belongSubMenu?: string; + buttonType?: Button.ButtonType; + width?: number; + height?: number; + radius?: number; + fillColor?: string; + alpha?: number; + }): Button { + const message = new Button({}); if (data.common != null) { message.common = dependency_1.common.CommonInfo.fromObject(data.common); } if (data.code != null) { message.code = data.code; } + if (data.codeColor != null) { + message.codeColor = data.codeColor; + } + if (data.codeFontSize != null) { + message.codeFontSize = data.codeFontSize; + } + if (data.belongSubMenu != null) { + message.belongSubMenu = data.belongSubMenu; + } if (data.buttonType != null) { message.buttonType = data.buttonType; } + if (data.width != null) { + message.width = data.width; + } + if (data.height != null) { + message.height = data.height; + } + if (data.radius != null) { + message.radius = data.radius; + } + if (data.fillColor != null) { + message.fillColor = data.fillColor; + } + if (data.alpha != null) { + message.alpha = data.alpha; + } return message; } toObject() { const data: { common?: ReturnType; code?: string; - buttonType?: CCTVButton.ButtonType; + codeColor?: string; + codeFontSize?: number; + belongSubMenu?: string; + buttonType?: Button.ButtonType; + width?: number; + height?: number; + radius?: number; + fillColor?: string; + alpha?: number; } = {}; if (this.common != null) { data.common = this.common.toObject(); @@ -1439,9 +1605,33 @@ export namespace iscsGraphicData { if (this.code != null) { data.code = this.code; } + if (this.codeColor != null) { + data.codeColor = this.codeColor; + } + if (this.codeFontSize != null) { + data.codeFontSize = this.codeFontSize; + } + if (this.belongSubMenu != null) { + data.belongSubMenu = this.belongSubMenu; + } if (this.buttonType != null) { data.buttonType = this.buttonType; } + if (this.width != null) { + data.width = this.width; + } + if (this.height != null) { + data.height = this.height; + } + if (this.radius != null) { + data.radius = this.radius; + } + if (this.fillColor != null) { + data.fillColor = this.fillColor; + } + if (this.alpha != null) { + data.alpha = this.alpha; + } return data; } serialize(): Uint8Array; @@ -1452,13 +1642,29 @@ export namespace iscsGraphicData { writer.writeMessage(1, this.common, () => this.common.serialize(writer)); if (this.code.length) writer.writeString(2, this.code); - if (this.buttonType != CCTVButton.ButtonType.rect) - writer.writeEnum(3, this.buttonType); + if (this.codeColor.length) + writer.writeString(3, this.codeColor); + if (this.codeFontSize != 0) + writer.writeInt32(4, this.codeFontSize); + if (this.belongSubMenu.length) + writer.writeString(5, this.belongSubMenu); + if (this.buttonType != Button.ButtonType.noIcon) + writer.writeEnum(6, this.buttonType); + if (this.width != 0) + writer.writeFloat(7, this.width); + if (this.height != 0) + writer.writeFloat(8, this.height); + if (this.radius != 0) + writer.writeInt32(9, this.radius); + if (this.fillColor.length) + writer.writeString(10, this.fillColor); + if (this.alpha != 0) + writer.writeFloat(11, this.alpha); if (!w) return writer.getResultBuffer(); } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CCTVButton { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CCTVButton(); + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Button { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Button(); while (reader.nextField()) { if (reader.isEndGroup()) break; @@ -1470,8 +1676,32 @@ export namespace iscsGraphicData { message.code = reader.readString(); break; case 3: + message.codeColor = reader.readString(); + break; + case 4: + message.codeFontSize = reader.readInt32(); + break; + case 5: + message.belongSubMenu = reader.readString(); + break; + case 6: message.buttonType = reader.readEnum(); break; + case 7: + message.width = reader.readFloat(); + break; + case 8: + message.height = reader.readFloat(); + break; + case 9: + message.radius = reader.readInt32(); + break; + case 10: + message.fillColor = reader.readString(); + break; + case 11: + message.alpha = reader.readFloat(); + break; default: reader.skipField(); } } @@ -1480,15 +1710,16 @@ export namespace iscsGraphicData { serializeBinary(): Uint8Array { return this.serialize(); } - static deserializeBinary(bytes: Uint8Array): CCTVButton { - return CCTVButton.deserialize(bytes); + static deserializeBinary(bytes: Uint8Array): Button { + return Button.deserialize(bytes); } } - export namespace CCTVButton { + export namespace Button { export enum ButtonType { - rect = 0, - monitor = 1, - semicircle = 2 + noIcon = 0, + cctvRect = 1, + cctvMonitor = 2, + cctvSemicircle = 3 } } export class ManualAlarmButton extends pb_1.Message { @@ -1956,16 +2187,17 @@ export namespace iscsGraphicData { return TemperatureDetector.deserialize(bytes); } } - export class CCTVOfStationControlStorage extends pb_1.Message { + export class BASOfEscalatorStorage extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { stationName?: string; canvas?: dependency_1.common.Canvas; commonGraphicStorage?: CommonGraphicStorage; - cctvButtons?: CCTVButton[]; + escalators?: Escalator[]; + verticalElevators?: VerticalElevator[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 5], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("stationName" in data && data.stationName != undefined) { this.stationName = data.stationName; @@ -1976,8 +2208,11 @@ export namespace iscsGraphicData { if ("commonGraphicStorage" in data && data.commonGraphicStorage != undefined) { this.commonGraphicStorage = data.commonGraphicStorage; } - if ("cctvButtons" in data && data.cctvButtons != undefined) { - this.cctvButtons = data.cctvButtons; + if ("escalators" in data && data.escalators != undefined) { + this.escalators = data.escalators; + } + if ("verticalElevators" in data && data.verticalElevators != undefined) { + this.verticalElevators = data.verticalElevators; } } } @@ -2005,19 +2240,26 @@ export namespace iscsGraphicData { get has_commonGraphicStorage() { return pb_1.Message.getField(this, 3) != null; } - get cctvButtons() { - return pb_1.Message.getRepeatedWrapperField(this, CCTVButton, 4) as CCTVButton[]; + get escalators() { + return pb_1.Message.getRepeatedWrapperField(this, Escalator, 4) as Escalator[]; } - set cctvButtons(value: CCTVButton[]) { + set escalators(value: Escalator[]) { pb_1.Message.setRepeatedWrapperField(this, 4, value); } + get verticalElevators() { + return pb_1.Message.getRepeatedWrapperField(this, VerticalElevator, 5) as VerticalElevator[]; + } + set verticalElevators(value: VerticalElevator[]) { + pb_1.Message.setRepeatedWrapperField(this, 5, value); + } static fromObject(data: { stationName?: string; canvas?: ReturnType; commonGraphicStorage?: ReturnType; - cctvButtons?: ReturnType[]; - }): CCTVOfStationControlStorage { - const message = new CCTVOfStationControlStorage({}); + escalators?: ReturnType[]; + verticalElevators?: ReturnType[]; + }): BASOfEscalatorStorage { + const message = new BASOfEscalatorStorage({}); if (data.stationName != null) { message.stationName = data.stationName; } @@ -2027,8 +2269,11 @@ export namespace iscsGraphicData { if (data.commonGraphicStorage != null) { message.commonGraphicStorage = CommonGraphicStorage.fromObject(data.commonGraphicStorage); } - if (data.cctvButtons != null) { - message.cctvButtons = data.cctvButtons.map(item => CCTVButton.fromObject(item)); + if (data.escalators != null) { + message.escalators = data.escalators.map(item => Escalator.fromObject(item)); + } + if (data.verticalElevators != null) { + message.verticalElevators = data.verticalElevators.map(item => VerticalElevator.fromObject(item)); } return message; } @@ -2037,7 +2282,8 @@ export namespace iscsGraphicData { stationName?: string; canvas?: ReturnType; commonGraphicStorage?: ReturnType; - cctvButtons?: ReturnType[]; + escalators?: ReturnType[]; + verticalElevators?: ReturnType[]; } = {}; if (this.stationName != null) { data.stationName = this.stationName; @@ -2048,8 +2294,11 @@ export namespace iscsGraphicData { if (this.commonGraphicStorage != null) { data.commonGraphicStorage = this.commonGraphicStorage.toObject(); } - if (this.cctvButtons != null) { - data.cctvButtons = this.cctvButtons.map((item: CCTVButton) => item.toObject()); + if (this.escalators != null) { + data.escalators = this.escalators.map((item: Escalator) => item.toObject()); + } + if (this.verticalElevators != null) { + data.verticalElevators = this.verticalElevators.map((item: VerticalElevator) => item.toObject()); } return data; } @@ -2063,13 +2312,15 @@ export namespace iscsGraphicData { writer.writeMessage(2, this.canvas, () => this.canvas.serialize(writer)); if (this.has_commonGraphicStorage) writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer)); - if (this.cctvButtons.length) - writer.writeRepeatedMessage(4, this.cctvButtons, (item: CCTVButton) => item.serialize(writer)); + if (this.escalators.length) + writer.writeRepeatedMessage(4, this.escalators, (item: Escalator) => item.serialize(writer)); + if (this.verticalElevators.length) + writer.writeRepeatedMessage(5, this.verticalElevators, (item: VerticalElevator) => item.serialize(writer)); if (!w) return writer.getResultBuffer(); } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CCTVOfStationControlStorage { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CCTVOfStationControlStorage(); + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BASOfEscalatorStorage { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BASOfEscalatorStorage(); while (reader.nextField()) { if (reader.isEndGroup()) break; @@ -2084,7 +2335,10 @@ export namespace iscsGraphicData { reader.readMessage(message.commonGraphicStorage, () => message.commonGraphicStorage = CommonGraphicStorage.deserialize(reader)); break; case 4: - reader.readMessage(message.cctvButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 4, CCTVButton.deserialize(reader), CCTVButton)); + reader.readMessage(message.escalators, () => pb_1.Message.addToRepeatedWrapperField(message, 4, Escalator.deserialize(reader), Escalator)); + break; + case 5: + reader.readMessage(message.verticalElevators, () => pb_1.Message.addToRepeatedWrapperField(message, 5, VerticalElevator.deserialize(reader), VerticalElevator)); break; default: reader.skipField(); } @@ -2094,16 +2348,203 @@ export namespace iscsGraphicData { serializeBinary(): Uint8Array { return this.serialize(); } - static deserializeBinary(bytes: Uint8Array): CCTVOfStationControlStorage { - return CCTVOfStationControlStorage.deserialize(bytes); + static deserializeBinary(bytes: Uint8Array): BASOfEscalatorStorage { + return BASOfEscalatorStorage.deserialize(bytes); } } - export class FASOfPlatformAlarmStorage extends pb_1.Message { + export class Escalator extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): Escalator { + const message = new Escalator({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Escalator { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Escalator(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Escalator { + return Escalator.deserialize(bytes); + } + } + export class VerticalElevator extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): VerticalElevator { + const message = new VerticalElevator({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VerticalElevator { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new VerticalElevator(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): VerticalElevator { + return VerticalElevator.deserialize(bytes); + } + } + export class CCTVOfEquipmentLayoutStorage extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { stationName?: string; canvas?: dependency_1.common.Canvas; commonGraphicStorage?: CommonGraphicStorage; + layer?: CCTVOfEquipmentLayoutStorage.LayerType; }) { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); @@ -2117,6 +2558,9 @@ export namespace iscsGraphicData { if ("commonGraphicStorage" in data && data.commonGraphicStorage != undefined) { this.commonGraphicStorage = data.commonGraphicStorage; } + if ("layer" in data && data.layer != undefined) { + this.layer = data.layer; + } } } get stationName() { @@ -2143,12 +2587,19 @@ export namespace iscsGraphicData { get has_commonGraphicStorage() { return pb_1.Message.getField(this, 3) != null; } + get layer() { + return pb_1.Message.getFieldWithDefault(this, 4, CCTVOfEquipmentLayoutStorage.LayerType.StationHall) as CCTVOfEquipmentLayoutStorage.LayerType; + } + set layer(value: CCTVOfEquipmentLayoutStorage.LayerType) { + pb_1.Message.setField(this, 4, value); + } static fromObject(data: { stationName?: string; canvas?: ReturnType; commonGraphicStorage?: ReturnType; - }): FASOfPlatformAlarmStorage { - const message = new FASOfPlatformAlarmStorage({}); + layer?: CCTVOfEquipmentLayoutStorage.LayerType; + }): CCTVOfEquipmentLayoutStorage { + const message = new CCTVOfEquipmentLayoutStorage({}); if (data.stationName != null) { message.stationName = data.stationName; } @@ -2158,6 +2609,9 @@ export namespace iscsGraphicData { if (data.commonGraphicStorage != null) { message.commonGraphicStorage = CommonGraphicStorage.fromObject(data.commonGraphicStorage); } + if (data.layer != null) { + message.layer = data.layer; + } return message; } toObject() { @@ -2165,6 +2619,7 @@ export namespace iscsGraphicData { stationName?: string; canvas?: ReturnType; commonGraphicStorage?: ReturnType; + layer?: CCTVOfEquipmentLayoutStorage.LayerType; } = {}; if (this.stationName != null) { data.stationName = this.stationName; @@ -2175,6 +2630,9 @@ export namespace iscsGraphicData { if (this.commonGraphicStorage != null) { data.commonGraphicStorage = this.commonGraphicStorage.toObject(); } + if (this.layer != null) { + data.layer = this.layer; + } return data; } serialize(): Uint8Array; @@ -2187,6 +2645,677 @@ export namespace iscsGraphicData { writer.writeMessage(2, this.canvas, () => this.canvas.serialize(writer)); if (this.has_commonGraphicStorage) writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer)); + if (this.layer != CCTVOfEquipmentLayoutStorage.LayerType.StationHall) + writer.writeEnum(4, this.layer); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CCTVOfEquipmentLayoutStorage { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CCTVOfEquipmentLayoutStorage(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.stationName = reader.readString(); + break; + case 2: + reader.readMessage(message.canvas, () => message.canvas = dependency_1.common.Canvas.deserialize(reader)); + break; + case 3: + reader.readMessage(message.commonGraphicStorage, () => message.commonGraphicStorage = CommonGraphicStorage.deserialize(reader)); + break; + case 4: + message.layer = reader.readEnum(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): CCTVOfEquipmentLayoutStorage { + return CCTVOfEquipmentLayoutStorage.deserialize(bytes); + } + } + export namespace CCTVOfEquipmentLayoutStorage { + export enum LayerType { + StationHall = 0, + platform = 1, + PTZ = 2 + } + } + export class FASOfPlatformAlarmStorage extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + stationName?: string; + canvas?: dependency_1.common.Canvas; + commonGraphicStorage?: CommonGraphicStorage; + partition?: string; + fasFailureControlHosts?: FasFailureControlHost[]; + fasAlarms?: FasAlarm[]; + manualAlarmButtons?: ManualAlarmButton[]; + hydrantAlarmButtons?: HydrantAlarmButton[]; + gasExtinguishings?: GasExtinguishing[]; + smokeDetectors?: SmokeDetector[]; + temperatureDetectors?: TemperatureDetector[]; + fireShutters?: FireShutter[]; + firePumps?: FirePump[]; + sprayPumps?: SprayPump[]; + stabilizedPressurePumps?: StabilizedPressurePump[]; + acs?: Acs[]; + afc?: Afc[]; + nonFirePowerSupplies?: NonFirePowerSupply[]; + waterFlowIndicators?: WaterFlowIndicator[]; + signalButterflyValves?: SignalButterflyValve[]; + pressureSwitches?: PressureSwitch[]; + faultValves?: FaultValve[]; + startPumpButtons?: StartPumpButton[]; + temperatureCables?: TemperatureCable[]; + emergencyLightings?: EmergencyLighting[]; + elevatorLiftToTops?: ElevatorLiftToTop[]; + electricButterflyValves?: ElectricButterflyValve[]; + fireValves?: FireValve[]; + electricFireExtinguishingValves?: ElectricFireExtinguishingValve[]; + fireIntercommunicationSignals?: FireIntercommunicationSignal[]; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("stationName" in data && data.stationName != undefined) { + this.stationName = data.stationName; + } + if ("canvas" in data && data.canvas != undefined) { + this.canvas = data.canvas; + } + if ("commonGraphicStorage" in data && data.commonGraphicStorage != undefined) { + this.commonGraphicStorage = data.commonGraphicStorage; + } + if ("partition" in data && data.partition != undefined) { + this.partition = data.partition; + } + if ("fasFailureControlHosts" in data && data.fasFailureControlHosts != undefined) { + this.fasFailureControlHosts = data.fasFailureControlHosts; + } + if ("fasAlarms" in data && data.fasAlarms != undefined) { + this.fasAlarms = data.fasAlarms; + } + if ("manualAlarmButtons" in data && data.manualAlarmButtons != undefined) { + this.manualAlarmButtons = data.manualAlarmButtons; + } + if ("hydrantAlarmButtons" in data && data.hydrantAlarmButtons != undefined) { + this.hydrantAlarmButtons = data.hydrantAlarmButtons; + } + if ("gasExtinguishings" in data && data.gasExtinguishings != undefined) { + this.gasExtinguishings = data.gasExtinguishings; + } + if ("smokeDetectors" in data && data.smokeDetectors != undefined) { + this.smokeDetectors = data.smokeDetectors; + } + if ("temperatureDetectors" in data && data.temperatureDetectors != undefined) { + this.temperatureDetectors = data.temperatureDetectors; + } + if ("fireShutters" in data && data.fireShutters != undefined) { + this.fireShutters = data.fireShutters; + } + if ("firePumps" in data && data.firePumps != undefined) { + this.firePumps = data.firePumps; + } + if ("sprayPumps" in data && data.sprayPumps != undefined) { + this.sprayPumps = data.sprayPumps; + } + if ("stabilizedPressurePumps" in data && data.stabilizedPressurePumps != undefined) { + this.stabilizedPressurePumps = data.stabilizedPressurePumps; + } + if ("acs" in data && data.acs != undefined) { + this.acs = data.acs; + } + if ("afc" in data && data.afc != undefined) { + this.afc = data.afc; + } + if ("nonFirePowerSupplies" in data && data.nonFirePowerSupplies != undefined) { + this.nonFirePowerSupplies = data.nonFirePowerSupplies; + } + if ("waterFlowIndicators" in data && data.waterFlowIndicators != undefined) { + this.waterFlowIndicators = data.waterFlowIndicators; + } + if ("signalButterflyValves" in data && data.signalButterflyValves != undefined) { + this.signalButterflyValves = data.signalButterflyValves; + } + if ("pressureSwitches" in data && data.pressureSwitches != undefined) { + this.pressureSwitches = data.pressureSwitches; + } + if ("faultValves" in data && data.faultValves != undefined) { + this.faultValves = data.faultValves; + } + if ("startPumpButtons" in data && data.startPumpButtons != undefined) { + this.startPumpButtons = data.startPumpButtons; + } + if ("temperatureCables" in data && data.temperatureCables != undefined) { + this.temperatureCables = data.temperatureCables; + } + if ("emergencyLightings" in data && data.emergencyLightings != undefined) { + this.emergencyLightings = data.emergencyLightings; + } + if ("elevatorLiftToTops" in data && data.elevatorLiftToTops != undefined) { + this.elevatorLiftToTops = data.elevatorLiftToTops; + } + if ("electricButterflyValves" in data && data.electricButterflyValves != undefined) { + this.electricButterflyValves = data.electricButterflyValves; + } + if ("fireValves" in data && data.fireValves != undefined) { + this.fireValves = data.fireValves; + } + if ("electricFireExtinguishingValves" in data && data.electricFireExtinguishingValves != undefined) { + this.electricFireExtinguishingValves = data.electricFireExtinguishingValves; + } + if ("fireIntercommunicationSignals" in data && data.fireIntercommunicationSignals != undefined) { + this.fireIntercommunicationSignals = data.fireIntercommunicationSignals; + } + } + } + get stationName() { + return pb_1.Message.getFieldWithDefault(this, 1, "") as string; + } + set stationName(value: string) { + pb_1.Message.setField(this, 1, value); + } + get canvas() { + return pb_1.Message.getWrapperField(this, dependency_1.common.Canvas, 2) as dependency_1.common.Canvas; + } + set canvas(value: dependency_1.common.Canvas) { + pb_1.Message.setWrapperField(this, 2, value); + } + get has_canvas() { + return pb_1.Message.getField(this, 2) != null; + } + get commonGraphicStorage() { + return pb_1.Message.getWrapperField(this, CommonGraphicStorage, 3) as CommonGraphicStorage; + } + set commonGraphicStorage(value: CommonGraphicStorage) { + pb_1.Message.setWrapperField(this, 3, value); + } + get has_commonGraphicStorage() { + return pb_1.Message.getField(this, 3) != null; + } + get partition() { + return pb_1.Message.getFieldWithDefault(this, 4, "") as string; + } + set partition(value: string) { + pb_1.Message.setField(this, 4, value); + } + get fasFailureControlHosts() { + return pb_1.Message.getRepeatedWrapperField(this, FasFailureControlHost, 5) as FasFailureControlHost[]; + } + set fasFailureControlHosts(value: FasFailureControlHost[]) { + pb_1.Message.setRepeatedWrapperField(this, 5, value); + } + get fasAlarms() { + return pb_1.Message.getRepeatedWrapperField(this, FasAlarm, 6) as FasAlarm[]; + } + set fasAlarms(value: FasAlarm[]) { + pb_1.Message.setRepeatedWrapperField(this, 6, value); + } + get manualAlarmButtons() { + return pb_1.Message.getRepeatedWrapperField(this, ManualAlarmButton, 7) as ManualAlarmButton[]; + } + set manualAlarmButtons(value: ManualAlarmButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 7, value); + } + get hydrantAlarmButtons() { + return pb_1.Message.getRepeatedWrapperField(this, HydrantAlarmButton, 8) as HydrantAlarmButton[]; + } + set hydrantAlarmButtons(value: HydrantAlarmButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 8, value); + } + get gasExtinguishings() { + return pb_1.Message.getRepeatedWrapperField(this, GasExtinguishing, 9) as GasExtinguishing[]; + } + set gasExtinguishings(value: GasExtinguishing[]) { + pb_1.Message.setRepeatedWrapperField(this, 9, value); + } + get smokeDetectors() { + return pb_1.Message.getRepeatedWrapperField(this, SmokeDetector, 10) as SmokeDetector[]; + } + set smokeDetectors(value: SmokeDetector[]) { + pb_1.Message.setRepeatedWrapperField(this, 10, value); + } + get temperatureDetectors() { + return pb_1.Message.getRepeatedWrapperField(this, TemperatureDetector, 11) as TemperatureDetector[]; + } + set temperatureDetectors(value: TemperatureDetector[]) { + pb_1.Message.setRepeatedWrapperField(this, 11, value); + } + get fireShutters() { + return pb_1.Message.getRepeatedWrapperField(this, FireShutter, 12) as FireShutter[]; + } + set fireShutters(value: FireShutter[]) { + pb_1.Message.setRepeatedWrapperField(this, 12, value); + } + get firePumps() { + return pb_1.Message.getRepeatedWrapperField(this, FirePump, 13) as FirePump[]; + } + set firePumps(value: FirePump[]) { + pb_1.Message.setRepeatedWrapperField(this, 13, value); + } + get sprayPumps() { + return pb_1.Message.getRepeatedWrapperField(this, SprayPump, 14) as SprayPump[]; + } + set sprayPumps(value: SprayPump[]) { + pb_1.Message.setRepeatedWrapperField(this, 14, value); + } + get stabilizedPressurePumps() { + return pb_1.Message.getRepeatedWrapperField(this, StabilizedPressurePump, 15) as StabilizedPressurePump[]; + } + set stabilizedPressurePumps(value: StabilizedPressurePump[]) { + pb_1.Message.setRepeatedWrapperField(this, 15, value); + } + get acs() { + return pb_1.Message.getRepeatedWrapperField(this, Acs, 16) as Acs[]; + } + set acs(value: Acs[]) { + pb_1.Message.setRepeatedWrapperField(this, 16, value); + } + get afc() { + return pb_1.Message.getRepeatedWrapperField(this, Afc, 17) as Afc[]; + } + set afc(value: Afc[]) { + pb_1.Message.setRepeatedWrapperField(this, 17, value); + } + get nonFirePowerSupplies() { + return pb_1.Message.getRepeatedWrapperField(this, NonFirePowerSupply, 18) as NonFirePowerSupply[]; + } + set nonFirePowerSupplies(value: NonFirePowerSupply[]) { + pb_1.Message.setRepeatedWrapperField(this, 18, value); + } + get waterFlowIndicators() { + return pb_1.Message.getRepeatedWrapperField(this, WaterFlowIndicator, 19) as WaterFlowIndicator[]; + } + set waterFlowIndicators(value: WaterFlowIndicator[]) { + pb_1.Message.setRepeatedWrapperField(this, 19, value); + } + get signalButterflyValves() { + return pb_1.Message.getRepeatedWrapperField(this, SignalButterflyValve, 20) as SignalButterflyValve[]; + } + set signalButterflyValves(value: SignalButterflyValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 20, value); + } + get pressureSwitches() { + return pb_1.Message.getRepeatedWrapperField(this, PressureSwitch, 21) as PressureSwitch[]; + } + set pressureSwitches(value: PressureSwitch[]) { + pb_1.Message.setRepeatedWrapperField(this, 21, value); + } + get faultValves() { + return pb_1.Message.getRepeatedWrapperField(this, FaultValve, 22) as FaultValve[]; + } + set faultValves(value: FaultValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 22, value); + } + get startPumpButtons() { + return pb_1.Message.getRepeatedWrapperField(this, StartPumpButton, 23) as StartPumpButton[]; + } + set startPumpButtons(value: StartPumpButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 23, value); + } + get temperatureCables() { + return pb_1.Message.getRepeatedWrapperField(this, TemperatureCable, 24) as TemperatureCable[]; + } + set temperatureCables(value: TemperatureCable[]) { + pb_1.Message.setRepeatedWrapperField(this, 24, value); + } + get emergencyLightings() { + return pb_1.Message.getRepeatedWrapperField(this, EmergencyLighting, 25) as EmergencyLighting[]; + } + set emergencyLightings(value: EmergencyLighting[]) { + pb_1.Message.setRepeatedWrapperField(this, 25, value); + } + get elevatorLiftToTops() { + return pb_1.Message.getRepeatedWrapperField(this, ElevatorLiftToTop, 26) as ElevatorLiftToTop[]; + } + set elevatorLiftToTops(value: ElevatorLiftToTop[]) { + pb_1.Message.setRepeatedWrapperField(this, 26, value); + } + get electricButterflyValves() { + return pb_1.Message.getRepeatedWrapperField(this, ElectricButterflyValve, 27) as ElectricButterflyValve[]; + } + set electricButterflyValves(value: ElectricButterflyValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 27, value); + } + get fireValves() { + return pb_1.Message.getRepeatedWrapperField(this, FireValve, 28) as FireValve[]; + } + set fireValves(value: FireValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 28, value); + } + get electricFireExtinguishingValves() { + return pb_1.Message.getRepeatedWrapperField(this, ElectricFireExtinguishingValve, 29) as ElectricFireExtinguishingValve[]; + } + set electricFireExtinguishingValves(value: ElectricFireExtinguishingValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 29, value); + } + get fireIntercommunicationSignals() { + return pb_1.Message.getRepeatedWrapperField(this, FireIntercommunicationSignal, 30) as FireIntercommunicationSignal[]; + } + set fireIntercommunicationSignals(value: FireIntercommunicationSignal[]) { + pb_1.Message.setRepeatedWrapperField(this, 30, value); + } + static fromObject(data: { + stationName?: string; + canvas?: ReturnType; + commonGraphicStorage?: ReturnType; + partition?: string; + fasFailureControlHosts?: ReturnType[]; + fasAlarms?: ReturnType[]; + manualAlarmButtons?: ReturnType[]; + hydrantAlarmButtons?: ReturnType[]; + gasExtinguishings?: ReturnType[]; + smokeDetectors?: ReturnType[]; + temperatureDetectors?: ReturnType[]; + fireShutters?: ReturnType[]; + firePumps?: ReturnType[]; + sprayPumps?: ReturnType[]; + stabilizedPressurePumps?: ReturnType[]; + acs?: ReturnType[]; + afc?: ReturnType[]; + nonFirePowerSupplies?: ReturnType[]; + waterFlowIndicators?: ReturnType[]; + signalButterflyValves?: ReturnType[]; + pressureSwitches?: ReturnType[]; + faultValves?: ReturnType[]; + startPumpButtons?: ReturnType[]; + temperatureCables?: ReturnType[]; + emergencyLightings?: ReturnType[]; + elevatorLiftToTops?: ReturnType[]; + electricButterflyValves?: ReturnType[]; + fireValves?: ReturnType[]; + electricFireExtinguishingValves?: ReturnType[]; + fireIntercommunicationSignals?: ReturnType[]; + }): FASOfPlatformAlarmStorage { + const message = new FASOfPlatformAlarmStorage({}); + if (data.stationName != null) { + message.stationName = data.stationName; + } + if (data.canvas != null) { + message.canvas = dependency_1.common.Canvas.fromObject(data.canvas); + } + if (data.commonGraphicStorage != null) { + message.commonGraphicStorage = CommonGraphicStorage.fromObject(data.commonGraphicStorage); + } + if (data.partition != null) { + message.partition = data.partition; + } + if (data.fasFailureControlHosts != null) { + message.fasFailureControlHosts = data.fasFailureControlHosts.map(item => FasFailureControlHost.fromObject(item)); + } + if (data.fasAlarms != null) { + message.fasAlarms = data.fasAlarms.map(item => FasAlarm.fromObject(item)); + } + if (data.manualAlarmButtons != null) { + message.manualAlarmButtons = data.manualAlarmButtons.map(item => ManualAlarmButton.fromObject(item)); + } + if (data.hydrantAlarmButtons != null) { + message.hydrantAlarmButtons = data.hydrantAlarmButtons.map(item => HydrantAlarmButton.fromObject(item)); + } + if (data.gasExtinguishings != null) { + message.gasExtinguishings = data.gasExtinguishings.map(item => GasExtinguishing.fromObject(item)); + } + if (data.smokeDetectors != null) { + message.smokeDetectors = data.smokeDetectors.map(item => SmokeDetector.fromObject(item)); + } + if (data.temperatureDetectors != null) { + message.temperatureDetectors = data.temperatureDetectors.map(item => TemperatureDetector.fromObject(item)); + } + if (data.fireShutters != null) { + message.fireShutters = data.fireShutters.map(item => FireShutter.fromObject(item)); + } + if (data.firePumps != null) { + message.firePumps = data.firePumps.map(item => FirePump.fromObject(item)); + } + if (data.sprayPumps != null) { + message.sprayPumps = data.sprayPumps.map(item => SprayPump.fromObject(item)); + } + if (data.stabilizedPressurePumps != null) { + message.stabilizedPressurePumps = data.stabilizedPressurePumps.map(item => StabilizedPressurePump.fromObject(item)); + } + if (data.acs != null) { + message.acs = data.acs.map(item => Acs.fromObject(item)); + } + if (data.afc != null) { + message.afc = data.afc.map(item => Afc.fromObject(item)); + } + if (data.nonFirePowerSupplies != null) { + message.nonFirePowerSupplies = data.nonFirePowerSupplies.map(item => NonFirePowerSupply.fromObject(item)); + } + if (data.waterFlowIndicators != null) { + message.waterFlowIndicators = data.waterFlowIndicators.map(item => WaterFlowIndicator.fromObject(item)); + } + if (data.signalButterflyValves != null) { + message.signalButterflyValves = data.signalButterflyValves.map(item => SignalButterflyValve.fromObject(item)); + } + if (data.pressureSwitches != null) { + message.pressureSwitches = data.pressureSwitches.map(item => PressureSwitch.fromObject(item)); + } + if (data.faultValves != null) { + message.faultValves = data.faultValves.map(item => FaultValve.fromObject(item)); + } + if (data.startPumpButtons != null) { + message.startPumpButtons = data.startPumpButtons.map(item => StartPumpButton.fromObject(item)); + } + if (data.temperatureCables != null) { + message.temperatureCables = data.temperatureCables.map(item => TemperatureCable.fromObject(item)); + } + if (data.emergencyLightings != null) { + message.emergencyLightings = data.emergencyLightings.map(item => EmergencyLighting.fromObject(item)); + } + if (data.elevatorLiftToTops != null) { + message.elevatorLiftToTops = data.elevatorLiftToTops.map(item => ElevatorLiftToTop.fromObject(item)); + } + if (data.electricButterflyValves != null) { + message.electricButterflyValves = data.electricButterflyValves.map(item => ElectricButterflyValve.fromObject(item)); + } + if (data.fireValves != null) { + message.fireValves = data.fireValves.map(item => FireValve.fromObject(item)); + } + if (data.electricFireExtinguishingValves != null) { + message.electricFireExtinguishingValves = data.electricFireExtinguishingValves.map(item => ElectricFireExtinguishingValve.fromObject(item)); + } + if (data.fireIntercommunicationSignals != null) { + message.fireIntercommunicationSignals = data.fireIntercommunicationSignals.map(item => FireIntercommunicationSignal.fromObject(item)); + } + return message; + } + toObject() { + const data: { + stationName?: string; + canvas?: ReturnType; + commonGraphicStorage?: ReturnType; + partition?: string; + fasFailureControlHosts?: ReturnType[]; + fasAlarms?: ReturnType[]; + manualAlarmButtons?: ReturnType[]; + hydrantAlarmButtons?: ReturnType[]; + gasExtinguishings?: ReturnType[]; + smokeDetectors?: ReturnType[]; + temperatureDetectors?: ReturnType[]; + fireShutters?: ReturnType[]; + firePumps?: ReturnType[]; + sprayPumps?: ReturnType[]; + stabilizedPressurePumps?: ReturnType[]; + acs?: ReturnType[]; + afc?: ReturnType[]; + nonFirePowerSupplies?: ReturnType[]; + waterFlowIndicators?: ReturnType[]; + signalButterflyValves?: ReturnType[]; + pressureSwitches?: ReturnType[]; + faultValves?: ReturnType[]; + startPumpButtons?: ReturnType[]; + temperatureCables?: ReturnType[]; + emergencyLightings?: ReturnType[]; + elevatorLiftToTops?: ReturnType[]; + electricButterflyValves?: ReturnType[]; + fireValves?: ReturnType[]; + electricFireExtinguishingValves?: ReturnType[]; + fireIntercommunicationSignals?: ReturnType[]; + } = {}; + if (this.stationName != null) { + data.stationName = this.stationName; + } + if (this.canvas != null) { + data.canvas = this.canvas.toObject(); + } + if (this.commonGraphicStorage != null) { + data.commonGraphicStorage = this.commonGraphicStorage.toObject(); + } + if (this.partition != null) { + data.partition = this.partition; + } + if (this.fasFailureControlHosts != null) { + data.fasFailureControlHosts = this.fasFailureControlHosts.map((item: FasFailureControlHost) => item.toObject()); + } + if (this.fasAlarms != null) { + data.fasAlarms = this.fasAlarms.map((item: FasAlarm) => item.toObject()); + } + if (this.manualAlarmButtons != null) { + data.manualAlarmButtons = this.manualAlarmButtons.map((item: ManualAlarmButton) => item.toObject()); + } + if (this.hydrantAlarmButtons != null) { + data.hydrantAlarmButtons = this.hydrantAlarmButtons.map((item: HydrantAlarmButton) => item.toObject()); + } + if (this.gasExtinguishings != null) { + data.gasExtinguishings = this.gasExtinguishings.map((item: GasExtinguishing) => item.toObject()); + } + if (this.smokeDetectors != null) { + data.smokeDetectors = this.smokeDetectors.map((item: SmokeDetector) => item.toObject()); + } + if (this.temperatureDetectors != null) { + data.temperatureDetectors = this.temperatureDetectors.map((item: TemperatureDetector) => item.toObject()); + } + if (this.fireShutters != null) { + data.fireShutters = this.fireShutters.map((item: FireShutter) => item.toObject()); + } + if (this.firePumps != null) { + data.firePumps = this.firePumps.map((item: FirePump) => item.toObject()); + } + if (this.sprayPumps != null) { + data.sprayPumps = this.sprayPumps.map((item: SprayPump) => item.toObject()); + } + if (this.stabilizedPressurePumps != null) { + data.stabilizedPressurePumps = this.stabilizedPressurePumps.map((item: StabilizedPressurePump) => item.toObject()); + } + if (this.acs != null) { + data.acs = this.acs.map((item: Acs) => item.toObject()); + } + if (this.afc != null) { + data.afc = this.afc.map((item: Afc) => item.toObject()); + } + if (this.nonFirePowerSupplies != null) { + data.nonFirePowerSupplies = this.nonFirePowerSupplies.map((item: NonFirePowerSupply) => item.toObject()); + } + if (this.waterFlowIndicators != null) { + data.waterFlowIndicators = this.waterFlowIndicators.map((item: WaterFlowIndicator) => item.toObject()); + } + if (this.signalButterflyValves != null) { + data.signalButterflyValves = this.signalButterflyValves.map((item: SignalButterflyValve) => item.toObject()); + } + if (this.pressureSwitches != null) { + data.pressureSwitches = this.pressureSwitches.map((item: PressureSwitch) => item.toObject()); + } + if (this.faultValves != null) { + data.faultValves = this.faultValves.map((item: FaultValve) => item.toObject()); + } + if (this.startPumpButtons != null) { + data.startPumpButtons = this.startPumpButtons.map((item: StartPumpButton) => item.toObject()); + } + if (this.temperatureCables != null) { + data.temperatureCables = this.temperatureCables.map((item: TemperatureCable) => item.toObject()); + } + if (this.emergencyLightings != null) { + data.emergencyLightings = this.emergencyLightings.map((item: EmergencyLighting) => item.toObject()); + } + if (this.elevatorLiftToTops != null) { + data.elevatorLiftToTops = this.elevatorLiftToTops.map((item: ElevatorLiftToTop) => item.toObject()); + } + if (this.electricButterflyValves != null) { + data.electricButterflyValves = this.electricButterflyValves.map((item: ElectricButterflyValve) => item.toObject()); + } + if (this.fireValves != null) { + data.fireValves = this.fireValves.map((item: FireValve) => item.toObject()); + } + if (this.electricFireExtinguishingValves != null) { + data.electricFireExtinguishingValves = this.electricFireExtinguishingValves.map((item: ElectricFireExtinguishingValve) => item.toObject()); + } + if (this.fireIntercommunicationSignals != null) { + data.fireIntercommunicationSignals = this.fireIntercommunicationSignals.map((item: FireIntercommunicationSignal) => item.toObject()); + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.stationName.length) + writer.writeString(1, this.stationName); + if (this.has_canvas) + writer.writeMessage(2, this.canvas, () => this.canvas.serialize(writer)); + if (this.has_commonGraphicStorage) + writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer)); + if (this.partition.length) + writer.writeString(4, this.partition); + if (this.fasFailureControlHosts.length) + writer.writeRepeatedMessage(5, this.fasFailureControlHosts, (item: FasFailureControlHost) => item.serialize(writer)); + if (this.fasAlarms.length) + writer.writeRepeatedMessage(6, this.fasAlarms, (item: FasAlarm) => item.serialize(writer)); + if (this.manualAlarmButtons.length) + writer.writeRepeatedMessage(7, this.manualAlarmButtons, (item: ManualAlarmButton) => item.serialize(writer)); + if (this.hydrantAlarmButtons.length) + writer.writeRepeatedMessage(8, this.hydrantAlarmButtons, (item: HydrantAlarmButton) => item.serialize(writer)); + if (this.gasExtinguishings.length) + writer.writeRepeatedMessage(9, this.gasExtinguishings, (item: GasExtinguishing) => item.serialize(writer)); + if (this.smokeDetectors.length) + writer.writeRepeatedMessage(10, this.smokeDetectors, (item: SmokeDetector) => item.serialize(writer)); + if (this.temperatureDetectors.length) + writer.writeRepeatedMessage(11, this.temperatureDetectors, (item: TemperatureDetector) => item.serialize(writer)); + if (this.fireShutters.length) + writer.writeRepeatedMessage(12, this.fireShutters, (item: FireShutter) => item.serialize(writer)); + if (this.firePumps.length) + writer.writeRepeatedMessage(13, this.firePumps, (item: FirePump) => item.serialize(writer)); + if (this.sprayPumps.length) + writer.writeRepeatedMessage(14, this.sprayPumps, (item: SprayPump) => item.serialize(writer)); + if (this.stabilizedPressurePumps.length) + writer.writeRepeatedMessage(15, this.stabilizedPressurePumps, (item: StabilizedPressurePump) => item.serialize(writer)); + if (this.acs.length) + writer.writeRepeatedMessage(16, this.acs, (item: Acs) => item.serialize(writer)); + if (this.afc.length) + writer.writeRepeatedMessage(17, this.afc, (item: Afc) => item.serialize(writer)); + if (this.nonFirePowerSupplies.length) + writer.writeRepeatedMessage(18, this.nonFirePowerSupplies, (item: NonFirePowerSupply) => item.serialize(writer)); + if (this.waterFlowIndicators.length) + writer.writeRepeatedMessage(19, this.waterFlowIndicators, (item: WaterFlowIndicator) => item.serialize(writer)); + if (this.signalButterflyValves.length) + writer.writeRepeatedMessage(20, this.signalButterflyValves, (item: SignalButterflyValve) => item.serialize(writer)); + if (this.pressureSwitches.length) + writer.writeRepeatedMessage(21, this.pressureSwitches, (item: PressureSwitch) => item.serialize(writer)); + if (this.faultValves.length) + writer.writeRepeatedMessage(22, this.faultValves, (item: FaultValve) => item.serialize(writer)); + if (this.startPumpButtons.length) + writer.writeRepeatedMessage(23, this.startPumpButtons, (item: StartPumpButton) => item.serialize(writer)); + if (this.temperatureCables.length) + writer.writeRepeatedMessage(24, this.temperatureCables, (item: TemperatureCable) => item.serialize(writer)); + if (this.emergencyLightings.length) + writer.writeRepeatedMessage(25, this.emergencyLightings, (item: EmergencyLighting) => item.serialize(writer)); + if (this.elevatorLiftToTops.length) + writer.writeRepeatedMessage(26, this.elevatorLiftToTops, (item: ElevatorLiftToTop) => item.serialize(writer)); + if (this.electricButterflyValves.length) + writer.writeRepeatedMessage(27, this.electricButterflyValves, (item: ElectricButterflyValve) => item.serialize(writer)); + if (this.fireValves.length) + writer.writeRepeatedMessage(28, this.fireValves, (item: FireValve) => item.serialize(writer)); + if (this.electricFireExtinguishingValves.length) + writer.writeRepeatedMessage(29, this.electricFireExtinguishingValves, (item: ElectricFireExtinguishingValve) => item.serialize(writer)); + if (this.fireIntercommunicationSignals.length) + writer.writeRepeatedMessage(30, this.fireIntercommunicationSignals, (item: FireIntercommunicationSignal) => item.serialize(writer)); if (!w) return writer.getResultBuffer(); } @@ -2205,6 +3334,87 @@ export namespace iscsGraphicData { case 3: reader.readMessage(message.commonGraphicStorage, () => message.commonGraphicStorage = CommonGraphicStorage.deserialize(reader)); break; + case 4: + message.partition = reader.readString(); + break; + case 5: + reader.readMessage(message.fasFailureControlHosts, () => pb_1.Message.addToRepeatedWrapperField(message, 5, FasFailureControlHost.deserialize(reader), FasFailureControlHost)); + break; + case 6: + reader.readMessage(message.fasAlarms, () => pb_1.Message.addToRepeatedWrapperField(message, 6, FasAlarm.deserialize(reader), FasAlarm)); + break; + case 7: + reader.readMessage(message.manualAlarmButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ManualAlarmButton.deserialize(reader), ManualAlarmButton)); + break; + case 8: + reader.readMessage(message.hydrantAlarmButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 8, HydrantAlarmButton.deserialize(reader), HydrantAlarmButton)); + break; + case 9: + reader.readMessage(message.gasExtinguishings, () => pb_1.Message.addToRepeatedWrapperField(message, 9, GasExtinguishing.deserialize(reader), GasExtinguishing)); + break; + case 10: + reader.readMessage(message.smokeDetectors, () => pb_1.Message.addToRepeatedWrapperField(message, 10, SmokeDetector.deserialize(reader), SmokeDetector)); + break; + case 11: + reader.readMessage(message.temperatureDetectors, () => pb_1.Message.addToRepeatedWrapperField(message, 11, TemperatureDetector.deserialize(reader), TemperatureDetector)); + break; + case 12: + reader.readMessage(message.fireShutters, () => pb_1.Message.addToRepeatedWrapperField(message, 12, FireShutter.deserialize(reader), FireShutter)); + break; + case 13: + reader.readMessage(message.firePumps, () => pb_1.Message.addToRepeatedWrapperField(message, 13, FirePump.deserialize(reader), FirePump)); + break; + case 14: + reader.readMessage(message.sprayPumps, () => pb_1.Message.addToRepeatedWrapperField(message, 14, SprayPump.deserialize(reader), SprayPump)); + break; + case 15: + reader.readMessage(message.stabilizedPressurePumps, () => pb_1.Message.addToRepeatedWrapperField(message, 15, StabilizedPressurePump.deserialize(reader), StabilizedPressurePump)); + break; + case 16: + reader.readMessage(message.acs, () => pb_1.Message.addToRepeatedWrapperField(message, 16, Acs.deserialize(reader), Acs)); + break; + case 17: + reader.readMessage(message.afc, () => pb_1.Message.addToRepeatedWrapperField(message, 17, Afc.deserialize(reader), Afc)); + break; + case 18: + reader.readMessage(message.nonFirePowerSupplies, () => pb_1.Message.addToRepeatedWrapperField(message, 18, NonFirePowerSupply.deserialize(reader), NonFirePowerSupply)); + break; + case 19: + reader.readMessage(message.waterFlowIndicators, () => pb_1.Message.addToRepeatedWrapperField(message, 19, WaterFlowIndicator.deserialize(reader), WaterFlowIndicator)); + break; + case 20: + reader.readMessage(message.signalButterflyValves, () => pb_1.Message.addToRepeatedWrapperField(message, 20, SignalButterflyValve.deserialize(reader), SignalButterflyValve)); + break; + case 21: + reader.readMessage(message.pressureSwitches, () => pb_1.Message.addToRepeatedWrapperField(message, 21, PressureSwitch.deserialize(reader), PressureSwitch)); + break; + case 22: + reader.readMessage(message.faultValves, () => pb_1.Message.addToRepeatedWrapperField(message, 22, FaultValve.deserialize(reader), FaultValve)); + break; + case 23: + reader.readMessage(message.startPumpButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 23, StartPumpButton.deserialize(reader), StartPumpButton)); + break; + case 24: + reader.readMessage(message.temperatureCables, () => pb_1.Message.addToRepeatedWrapperField(message, 24, TemperatureCable.deserialize(reader), TemperatureCable)); + break; + case 25: + reader.readMessage(message.emergencyLightings, () => pb_1.Message.addToRepeatedWrapperField(message, 25, EmergencyLighting.deserialize(reader), EmergencyLighting)); + break; + case 26: + reader.readMessage(message.elevatorLiftToTops, () => pb_1.Message.addToRepeatedWrapperField(message, 26, ElevatorLiftToTop.deserialize(reader), ElevatorLiftToTop)); + break; + case 27: + reader.readMessage(message.electricButterflyValves, () => pb_1.Message.addToRepeatedWrapperField(message, 27, ElectricButterflyValve.deserialize(reader), ElectricButterflyValve)); + break; + case 28: + reader.readMessage(message.fireValves, () => pb_1.Message.addToRepeatedWrapperField(message, 28, FireValve.deserialize(reader), FireValve)); + break; + case 29: + reader.readMessage(message.electricFireExtinguishingValves, () => pb_1.Message.addToRepeatedWrapperField(message, 29, ElectricFireExtinguishingValve.deserialize(reader), ElectricFireExtinguishingValve)); + break; + case 30: + reader.readMessage(message.fireIntercommunicationSignals, () => pb_1.Message.addToRepeatedWrapperField(message, 30, FireIntercommunicationSignal.deserialize(reader), FireIntercommunicationSignal)); + break; default: reader.skipField(); } } @@ -2217,4 +3427,1986 @@ export namespace iscsGraphicData { return FASOfPlatformAlarmStorage.deserialize(bytes); } } + export class FasFailureControlHost extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FasFailureControlHost { + const message = new FasFailureControlHost({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FasFailureControlHost { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FasFailureControlHost(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FasFailureControlHost { + return FasFailureControlHost.deserialize(bytes); + } + } + export class FasAlarm extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FasAlarm { + const message = new FasAlarm({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FasAlarm { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FasAlarm(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FasAlarm { + return FasAlarm.deserialize(bytes); + } + } + export class FireShutter extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + type?: FireShutter.ShutterType; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("type" in data && data.type != undefined) { + this.type = data.type; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get type() { + return pb_1.Message.getFieldWithDefault(this, 3, FireShutter.ShutterType.partition) as FireShutter.ShutterType; + } + set type(value: FireShutter.ShutterType) { + pb_1.Message.setField(this, 3, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + type?: FireShutter.ShutterType; + }): FireShutter { + const message = new FireShutter({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.type != null) { + message.type = data.type; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + type?: FireShutter.ShutterType; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.type != null) { + data.type = this.type; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.type != FireShutter.ShutterType.partition) + writer.writeEnum(3, this.type); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireShutter { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireShutter(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.type = reader.readEnum(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireShutter { + return FireShutter.deserialize(bytes); + } + } + export namespace FireShutter { + export enum ShutterType { + partition = 0, + dispersal = 1 + } + } + export class FirePump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FirePump { + const message = new FirePump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FirePump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FirePump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FirePump { + return FirePump.deserialize(bytes); + } + } + export class SprayPump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): SprayPump { + const message = new SprayPump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SprayPump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SprayPump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SprayPump { + return SprayPump.deserialize(bytes); + } + } + export class StabilizedPressurePump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): StabilizedPressurePump { + const message = new StabilizedPressurePump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StabilizedPressurePump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StabilizedPressurePump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): StabilizedPressurePump { + return StabilizedPressurePump.deserialize(bytes); + } + } + export class Acs extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): Acs { + const message = new Acs({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Acs { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Acs(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Acs { + return Acs.deserialize(bytes); + } + } + export class Afc extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): Afc { + const message = new Afc({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Afc { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Afc(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Afc { + return Afc.deserialize(bytes); + } + } + export class NonFirePowerSupply extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): NonFirePowerSupply { + const message = new NonFirePowerSupply({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NonFirePowerSupply { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NonFirePowerSupply(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): NonFirePowerSupply { + return NonFirePowerSupply.deserialize(bytes); + } + } + export class WaterFlowIndicator extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): WaterFlowIndicator { + const message = new WaterFlowIndicator({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WaterFlowIndicator { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WaterFlowIndicator(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): WaterFlowIndicator { + return WaterFlowIndicator.deserialize(bytes); + } + } + export class SignalButterflyValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): SignalButterflyValve { + const message = new SignalButterflyValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SignalButterflyValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SignalButterflyValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SignalButterflyValve { + return SignalButterflyValve.deserialize(bytes); + } + } + export class PressureSwitch extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): PressureSwitch { + const message = new PressureSwitch({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PressureSwitch { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PressureSwitch(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): PressureSwitch { + return PressureSwitch.deserialize(bytes); + } + } + export class FaultValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FaultValve { + const message = new FaultValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FaultValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FaultValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FaultValve { + return FaultValve.deserialize(bytes); + } + } + export class StartPumpButton extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): StartPumpButton { + const message = new StartPumpButton({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StartPumpButton { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StartPumpButton(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): StartPumpButton { + return StartPumpButton.deserialize(bytes); + } + } + export class TemperatureCable extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): TemperatureCable { + const message = new TemperatureCable({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TemperatureCable { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TemperatureCable(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): TemperatureCable { + return TemperatureCable.deserialize(bytes); + } + } + export class EmergencyLighting extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): EmergencyLighting { + const message = new EmergencyLighting({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EmergencyLighting { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new EmergencyLighting(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): EmergencyLighting { + return EmergencyLighting.deserialize(bytes); + } + } + export class ElevatorLiftToTop extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElevatorLiftToTop { + const message = new ElevatorLiftToTop({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElevatorLiftToTop { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElevatorLiftToTop(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElevatorLiftToTop { + return ElevatorLiftToTop.deserialize(bytes); + } + } + export class ElectricButterflyValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElectricButterflyValve { + const message = new ElectricButterflyValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElectricButterflyValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElectricButterflyValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElectricButterflyValve { + return ElectricButterflyValve.deserialize(bytes); + } + } + export class FireValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FireValve { + const message = new FireValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireValve { + return FireValve.deserialize(bytes); + } + } + export class ElectricFireExtinguishingValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElectricFireExtinguishingValve { + const message = new ElectricFireExtinguishingValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElectricFireExtinguishingValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElectricFireExtinguishingValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElectricFireExtinguishingValve { + return ElectricFireExtinguishingValve.deserialize(bytes); + } + } + export class FireIntercommunicationSignal extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FireIntercommunicationSignal { + const message = new FireIntercommunicationSignal({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireIntercommunicationSignal { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireIntercommunicationSignal(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireIntercommunicationSignal { + return FireIntercommunicationSignal.deserialize(bytes); + } + } } diff --git a/src/protos/picture.ts b/src/protos/picture.ts deleted file mode 100644 index ba6f447..0000000 --- a/src/protos/picture.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 5.27.4 - * source: picture.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as pb_1 from "google-protobuf"; -export enum PictureType { - FireAlarm = 0, - Electromechanical = 1, - Broadcast = 2, - PassengerInformation = 3, - CCTV = 4, - PSD = 5, - TicketSalesAndChecking = 6, - AccessControl = 7, - FloodGate = 8, - NetworkStatus = 9 -} diff --git a/src/protos/simulation.ts b/src/protos/simulation.ts new file mode 100644 index 0000000..aa14f80 --- /dev/null +++ b/src/protos/simulation.ts @@ -0,0 +1,187 @@ +/** + * Generated by the protoc-gen-ts. DO NOT EDIT! + * compiler version: 5.27.4 + * source: simulation.proto + * git: https://github.com/thesayyn/protoc-gen-ts */ +import * as dependency_1 from "./google\\protobuf\\any"; +import * as pb_1 from "google-protobuf"; +export namespace simulation { + export enum OperationType { + Unknown = 0, + Pause = 1, + Unpause = 2, + Reset = 3, + SetSpeed = 4, + Destroy = 5 + } + export class Operation extends pb_1.Message { + #one_of_decls: number[][] = [[2]]; + constructor(data?: any[] | ({ + otype?: OperationType; + } & (({ + setSpeedParam?: SetSpeedParam; + })))) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("otype" in data && data.otype != undefined) { + this.otype = data.otype; + } + if ("setSpeedParam" in data && data.setSpeedParam != undefined) { + this.setSpeedParam = data.setSpeedParam; + } + } + } + get otype() { + return pb_1.Message.getFieldWithDefault(this, 1, OperationType.Unknown) as OperationType; + } + set otype(value: OperationType) { + pb_1.Message.setField(this, 1, value); + } + get setSpeedParam() { + return pb_1.Message.getWrapperField(this, SetSpeedParam, 2) as SetSpeedParam; + } + set setSpeedParam(value: SetSpeedParam) { + pb_1.Message.setOneofWrapperField(this, 2, this.#one_of_decls[0], value); + } + get has_setSpeedParam() { + return pb_1.Message.getField(this, 2) != null; + } + get param() { + const cases: { + [index: number]: "none" | "setSpeedParam"; + } = { + 0: "none", + 2: "setSpeedParam" + }; + return cases[pb_1.Message.computeOneofCase(this, [2])]; + } + static fromObject(data: { + otype?: OperationType; + setSpeedParam?: ReturnType; + }): Operation { + const message = new Operation({}); + if (data.otype != null) { + message.otype = data.otype; + } + if (data.setSpeedParam != null) { + message.setSpeedParam = SetSpeedParam.fromObject(data.setSpeedParam); + } + return message; + } + toObject() { + const data: { + otype?: OperationType; + setSpeedParam?: ReturnType; + } = {}; + if (this.otype != null) { + data.otype = this.otype; + } + if (this.setSpeedParam != null) { + data.setSpeedParam = this.setSpeedParam.toObject(); + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.otype != OperationType.Unknown) + writer.writeEnum(1, this.otype); + if (this.has_setSpeedParam) + writer.writeMessage(2, this.setSpeedParam, () => this.setSpeedParam.serialize(writer)); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Operation { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Operation(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.otype = reader.readEnum(); + break; + case 2: + reader.readMessage(message.setSpeedParam, () => message.setSpeedParam = SetSpeedParam.deserialize(reader)); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Operation { + return Operation.deserialize(bytes); + } + } + export class SetSpeedParam extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + speed?: number; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("speed" in data && data.speed != undefined) { + this.speed = data.speed; + } + } + } + get speed() { + return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; + } + set speed(value: number) { + pb_1.Message.setField(this, 1, value); + } + static fromObject(data: { + speed?: number; + }): SetSpeedParam { + const message = new SetSpeedParam({}); + if (data.speed != null) { + message.speed = data.speed; + } + return message; + } + toObject() { + const data: { + speed?: number; + } = {}; + if (this.speed != null) { + data.speed = this.speed; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.speed != 0) + writer.writeFloat(1, this.speed); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SetSpeedParam { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SetSpeedParam(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + message.speed = reader.readFloat(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SetSpeedParam { + return SetSpeedParam.deserialize(bytes); + } + } +} diff --git a/src/router/routes.ts b/src/router/routes.ts index 8581e32..6ca18ed 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -3,18 +3,28 @@ import { RouteRecordRaw } from 'vue-router'; const routes: RouteRecordRaw[] = [ { path: '/', - redirect: '/home/b82f4bb0398b01263b6ef12764c6eb20', + name: 'home', + redirect: '/login', meta: { hidden: true, }, }, { - path: '/home/:token', - component: () => import('layouts/MainLayout.vue'), + path: '/login', + name: 'login', + component: () => import('pages/UserLogin.vue'), + meta: { + hidden: true, + }, + }, + + { + path: '/register', + name: 'register', + component: () => import('pages/UserRegister.vue'), meta: { hidden: true, }, - // children: [{ path: '', component: () => import('pages/IndexPage.vue') }], }, { @@ -39,8 +49,8 @@ const routes: RouteRecordRaw[] = [ }, { - path: '/dataManage', - name: 'dataManage', + path: '/iscsDataManage', + name: 'iscsDataManage', component: () => import('layouts/MainLayout.vue'), meta: { label: 'ISCS数据管理', @@ -76,6 +86,44 @@ const routes: RouteRecordRaw[] = [ }, ], }, + { + path: '/emDataManage', + name: 'emDataManage', + component: () => import('layouts/MainLayout.vue'), + meta: { + label: '电子地图数据管理', + icon: 'list_alt', + }, + children: [ + { + path: 'emDraft', + name: 'emDraft', + component: () => import('pages/ElectronicMapDraftManage.vue'), + meta: { + label: '草稿数据', + icon: 'app_registration', + }, + }, + { + path: 'emSharedDraft', + name: 'emSharedDraft', + component: () => import('pages/ElectronicMapDraftManage.vue'), + meta: { + label: '共享草稿数据', + icon: 'app_registration', + }, + }, + { + path: 'emPublish', + name: 'emPublish', + component: () => import('pages/ElectronicMapPublishManage.vue'), + meta: { + label: '发布数据', + icon: 'playlist_add_check', + }, + }, + ], + }, { path: '/iscsPainting/:id', name: 'iscsPainting', @@ -84,6 +132,14 @@ const routes: RouteRecordRaw[] = [ hidden: true, }, }, + { + path: '/emPainting/:id', + name: 'emPainting', + component: () => import('layouts/electronicMapDrawLayout.vue'), + meta: { + hidden: true, + }, + }, { path: '/:catchAll(.*)*', meta: { diff --git a/src/stores/draw-store.ts b/src/stores/draw-store.ts index adf467e..a158596 100644 --- a/src/stores/draw-store.ts +++ b/src/stores/draw-store.ts @@ -12,15 +12,13 @@ import { JlGraphic, } from 'jl-graphic'; import { markRaw } from 'vue'; -import { PictureType } from 'src/protos/picture'; export const useDrawStore = defineStore('draw', { state: () => ({ drawAssistant: null as DrawAssistant | null, selectedGraphics: null as JlGraphic[] | null, draftId: null as number | null, - drawPictureType: null as PictureType | null, - selectSubmenuAndStation: { submenu: '', station: '' }, + selectSubmenuAndStation: { submenu: '', station: '', partition: '' }, }), getters: { drawMode: (state) => state.drawAssistant != null, diff --git a/src/stores/electronicMap-draw-store.ts b/src/stores/electronicMap-draw-store.ts new file mode 100644 index 0000000..ba625e3 --- /dev/null +++ b/src/stores/electronicMap-draw-store.ts @@ -0,0 +1,107 @@ +import { defineStore } from 'pinia'; +import { + initElectronicMapDrawApp, + destroyElectronicMapDrawApp, + getElectronicMapDrawApp, +} from 'src/drawApp/electronicMapApp'; +import { + DrawAssistant, + GraphicData, + IDrawApp, + IJlCanvas, + JlGraphic, +} from 'jl-graphic'; +import { markRaw } from 'vue'; + +export const useDrawStore = defineStore('draw', { + state: () => ({ + drawAssistant: null as DrawAssistant | null, + selectedGraphics: null as JlGraphic[] | null, + draftId: null as number | null, + oneClickType: '', + }), + getters: { + drawMode: (state) => state.drawAssistant != null, + drawGraphicType: (state) => state.drawAssistant?.type, + drawGraphicName: (state) => state.drawAssistant?.description, + drawGraphicTemplate: (state) => state.drawAssistant?.graphicTemplate, + selectedGraphicType: (state) => { + if (state.selectedGraphics) { + if (state.selectedGraphics.length === 1) { + return state.selectedGraphics[0].type; + } + } + }, + selectedObjName(state): string { + if (state.selectedGraphics) { + if (state.selectedGraphics.length == 0) { + return '画布'; + } else if (state.selectedGraphics.length == 1) { + const name = getElectronicMapDrawApp()?.getDrawAssistant( + state.selectedGraphics[0].type + ).description; + return name || ''; + } + return '批量设置'; + } + return ''; + }, + selectedGraphic: (state) => { + if (state.selectedGraphics) { + if (state.selectedGraphics.length === 1) { + return state.selectedGraphics[0]; + } + } + return null; + }, + }, + actions: { + getDrawApp(): IDrawApp { + const app = getElectronicMapDrawApp(); + if (app == null) { + throw new Error('未初始化app'); + } + return app; + }, + getJlCanvas(): IJlCanvas { + return this.getDrawApp().canvas; + }, + bindFormData(form: GraphicData): void { + const app = this.getDrawApp(); + app.bindFormData(form); + }, + unbindFormData(form: GraphicData): void { + const app = this.getDrawApp(); + app.unbindFormData(form); + }, + initDrawApp() { + const app = initElectronicMapDrawApp(); + if (app == null) { + throw new Error('未初始化app'); + } + app.on('interaction-plugin-resume', (plugin) => { + if (plugin.isAppPlugin()) { + if (Object.hasOwn(plugin, '__GraphicDrawAssistant')) { + this.drawAssistant = plugin as DrawAssistant; + } else { + this.drawAssistant = null; + } + } + }); + app.on('graphicselected', (graphics) => { + this.selectedGraphics = markRaw(graphics); + }); + this.selectedGraphics = []; + return app; + }, + destroy() { + // console.log('绘制状态清空,绘制应用销毁'); + this.drawAssistant = null; + this.selectedGraphics = null; + destroyElectronicMapDrawApp(); + }, + setDraftId(id: number | null) { + this.draftId = id; + }, + }, +}); diff --git a/yarn.lock b/yarn.lock index 8e0a362..979fbcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4,7 +4,7 @@ "@babel/code-frame@^7.12.13": version "7.24.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" + resolved "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.24.7.tgz" integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== dependencies: "@babel/highlight" "^7.24.7" @@ -12,17 +12,17 @@ "@babel/helper-string-parser@^7.24.8": version "7.24.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + resolved "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz" integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== "@babel/helper-validator-identifier@^7.24.7": version "7.24.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" + resolved "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz" integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== "@babel/highlight@^7.24.7": version "7.24.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" + resolved "https://registry.npmmirror.com/@babel/highlight/-/highlight-7.24.7.tgz" integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== dependencies: "@babel/helper-validator-identifier" "^7.24.7" @@ -32,47 +32,42 @@ "@babel/parser@^7.25.3": version "7.25.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" + resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.25.6.tgz" integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== dependencies: "@babel/types" "^7.25.6" "@babel/runtime@^7.23.8", "@babel/runtime@^7.24.5": version "7.25.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/runtime/-/runtime-7.25.6.tgz#9afc3289f7184d8d7f98b099884c26317b9264d2" + resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.25.6.tgz" integrity sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ== dependencies: regenerator-runtime "^0.14.0" "@babel/types@^7.25.6": version "7.25.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" + resolved "https://registry.npmmirror.com/@babel/types/-/types-7.25.6.tgz" integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" -"@esbuild/linux-loong64@0.14.54": - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz#de2a4be678bd4d0d1ffbb86e6de779cde5999028" - integrity sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw== - "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + resolved "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== dependencies: eslint-visitor-keys "^3.3.0" "@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1": - version "4.11.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@eslint-community/regexpp/-/regexpp-4.11.1.tgz#a547badfc719eb3e5f4b556325e542fbe9d7a18f" - integrity sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q== + version "4.11.0" + resolved "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz" + integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A== "@eslint/eslintrc@^2.1.4": version "2.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + resolved "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz" integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== dependencies: ajv "^6.12.4" @@ -85,33 +80,33 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.57.1": - version "8.57.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" - integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== +"@eslint/js@8.57.0": + version "8.57.0" + resolved "https://registry.npmmirror.com/@eslint/js/-/js-8.57.0.tgz" + integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g== -"@humanwhocodes/config-array@^0.13.0": - version "0.13.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" - integrity sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw== +"@humanwhocodes/config-array@^0.11.14": + version "0.11.14" + resolved "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== dependencies: - "@humanwhocodes/object-schema" "^2.0.3" + "@humanwhocodes/object-schema" "^2.0.2" debug "^4.3.1" minimatch "^3.0.5" "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + resolved "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^2.0.3": +"@humanwhocodes/object-schema@^2.0.2": version "2.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" + resolved "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz" integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== "@jridgewell/gen-mapping@^0.3.5": version "0.3.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + resolved "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz" integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== dependencies: "@jridgewell/set-array" "^1.2.1" @@ -120,17 +115,17 @@ "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + resolved "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/set-array@^1.2.1": version "1.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + resolved "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz" integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== "@jridgewell/source-map@^0.3.3": version "0.3.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/source-map/-/source-map-0.3.6.tgz#9d71ca886e32502eb9362c9a74a46787c36df81a" + resolved "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.6.tgz" integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== dependencies: "@jridgewell/gen-mapping" "^0.3.5" @@ -138,12 +133,12 @@ "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": version "1.5.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + resolved "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz" integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" - resolved "https://mirrors.huaweicloud.com/repository/npm/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + resolved "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== dependencies: "@jridgewell/resolve-uri" "^3.1.0" @@ -151,20 +146,20 @@ "@nodelib/fs.scandir@2.1.5": version "2.1.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + resolved "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": +"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": version "2.0.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + resolved "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== "@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": version "1.2.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + resolved "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== dependencies: "@nodelib/fs.scandir" "2.1.5" @@ -172,46 +167,46 @@ "@pixi/accessibility@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/accessibility/-/accessibility-7.4.2.tgz#8c7105bd19b979330baea36cc09f7c367975812e" + resolved "https://registry.npmmirror.com/@pixi/accessibility/-/accessibility-7.4.2.tgz" integrity sha512-R6VEolm8uyy1FB1F2qaLKxVbzXAFTZCF2ka8fl9lsz7We6ZfO4QpXv9ur7DvzratjCQUQVCKo0/V7xL5q1EV/g== "@pixi/app@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/app/-/app-7.4.2.tgz#f1d9c9c52ff1d4133766590fbda677a23658fec7" + resolved "https://registry.npmmirror.com/@pixi/app/-/app-7.4.2.tgz" integrity sha512-ugkH3kOgjT8P1mTMY29yCOgEh+KuVMAn8uBxeY0aMqaUgIMysfpnFv+Aepp2CtvI9ygr22NC+OiKl+u+eEaQHw== "@pixi/assets@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/assets/-/assets-7.4.2.tgz#1df0c38c4fb64c391202cea8768e81eaa42de221" + resolved "https://registry.npmmirror.com/@pixi/assets/-/assets-7.4.2.tgz" integrity sha512-anxho59H9egZwoaEdM5aLvYyxoz6NCy3CaQIvNHD1bbGg8L16Ih0e26QSBR5fu53jl8OjT6M7s+p6n7uu4+fGA== dependencies: "@types/css-font-loading-module" "^0.0.12" "@pixi/color@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/color/-/color-7.4.2.tgz#d564a0b589166afb1c4a0e85c968b7375dbfc06f" + resolved "https://registry.npmmirror.com/@pixi/color/-/color-7.4.2.tgz" integrity sha512-av1LOvhHsiaW8+T4n/FgnOKHby55/w7VcA1HzPIHRBtEcsmxvSCDanT1HU2LslNhrxLPzyVx18nlmalOyt5OBg== dependencies: "@pixi/colord" "^2.9.6" "@pixi/colord@^2.9.6": version "2.9.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/colord/-/colord-2.9.6.tgz#7e4e7851480da6fd3cef4e331f008d60be7e1204" + resolved "https://registry.npmmirror.com/@pixi/colord/-/colord-2.9.6.tgz" integrity sha512-nezytU2pw587fQstUu1AsJZDVEynjskwOL+kibwcdxsMBFqPsFFNA7xl0ii/gXuDi6M0xj3mfRJj8pBSc2jCfA== "@pixi/compressed-textures@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/compressed-textures/-/compressed-textures-7.4.2.tgz#5c256d3a2071848e7503d499aae22684bbd69529" + resolved "https://registry.npmmirror.com/@pixi/compressed-textures/-/compressed-textures-7.4.2.tgz" integrity sha512-VJrt7el6O4ZJSWkeOGXwrhJaiLg1UBhHB3fj42VR4YloYkAxpfd9K6s6IcbcVz7n9L48APKBMgHyaB2pX2Ck/A== "@pixi/constants@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/constants/-/constants-7.4.2.tgz#e1b12316e1c637f3ebe80b599a707de4bdc4ab9b" + resolved "https://registry.npmmirror.com/@pixi/constants/-/constants-7.4.2.tgz" integrity sha512-N9vn6Wpz5WIQg7ugUg2+SdqD2u2+NM0QthE8YzLJ4tLH2Iz+/TrnPKUJzeyIqbg3sxJG5ZpGGPiacqIBpy1KyA== "@pixi/core@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/core/-/core-7.4.2.tgz#521de6fe99d48ffffef7e79d4dfde5c5055e8a13" + resolved "https://registry.npmmirror.com/@pixi/core/-/core-7.4.2.tgz" integrity sha512-UbMtgSEnyCOFPzbE6ThB9qopXxbZ5GCof2ArB4FXOC5Xi/83MOIIYg5kf5M8689C5HJMhg2SrJu3xLKppF+CMg== dependencies: "@pixi/color" "7.4.2" @@ -225,112 +220,112 @@ "@pixi/display@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/display/-/display-7.4.2.tgz#f0b7db822fba80cd2e8c28f6f489244360a578ba" + resolved "https://registry.npmmirror.com/@pixi/display/-/display-7.4.2.tgz" integrity sha512-DaD0J7gIlNlzO0Fdlby/0OH+tB5LtCY6rgFeCBKVDnzmn8wKW3zYZRenWBSFJ0Psx6vLqXYkSIM/rcokaKviIw== "@pixi/events@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/events/-/events-7.4.2.tgz#efd3361f7a78161aa0dffb484ea4ce3b7a0043c4" + resolved "https://registry.npmmirror.com/@pixi/events/-/events-7.4.2.tgz" integrity sha512-Jw/w57heZjzZShIXL0bxOvKB+XgGIevyezhGtfF2ZSzQoSBWo+Fj1uE0QwKd0RIaXegZw/DhSmiMJSbNmcjifA== "@pixi/extensions@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/extensions/-/extensions-7.4.2.tgz#4e939e3670ca66fdcd2590e8ab90a6a04a176dec" + resolved "https://registry.npmmirror.com/@pixi/extensions/-/extensions-7.4.2.tgz" integrity sha512-Hmx2+O0yZ8XIvgomHM9GZEGcy9S9Dd8flmtOK5Aa3fXs/8v7xD08+ANQpN9ZqWU2Xs+C6UBlpqlt2BWALvKKKA== "@pixi/extract@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/extract/-/extract-7.4.2.tgz#0e52446202bc8521ca9821a276e919020b0688f4" + resolved "https://registry.npmmirror.com/@pixi/extract/-/extract-7.4.2.tgz" integrity sha512-JOX27TRWjVEjauGBbF8PU7/g6LYXnivehdgqS5QlVDv1CNHTOrz/j3MdKcVWOhyZPbH5c9sh7lxyRxvd9AIuTQ== "@pixi/filter-alpha@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-alpha/-/filter-alpha-7.4.2.tgz#0cd7bccadb91109cdb05679a17f8ba4d5281d0ec" + resolved "https://registry.npmmirror.com/@pixi/filter-alpha/-/filter-alpha-7.4.2.tgz" integrity sha512-9OsKJ+yvY2wIcQXwswj5HQBiwNGymwmqdxfp7mo+nZSBoDmxUqvMZzE9UNJ3eUlswuNvNRO8zNOsQvwdz7WFww== "@pixi/filter-blur@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-blur/-/filter-blur-7.4.2.tgz#89458c467a553ec62ce799b4e68c6c574ba3a5bb" + resolved "https://registry.npmmirror.com/@pixi/filter-blur/-/filter-blur-7.4.2.tgz" integrity sha512-gOXBbIUx6CRZP1fmsis2wLzzSsofrqmIHhbf1gIkZMIQaLsc9T7brj+PaLTTiOiyJgnvGN5j20RZnkERWWKV0Q== "@pixi/filter-color-matrix@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-color-matrix/-/filter-color-matrix-7.4.2.tgz#b792d6624a1b019edcc7f96e131078f8bc21c6d1" + resolved "https://registry.npmmirror.com/@pixi/filter-color-matrix/-/filter-color-matrix-7.4.2.tgz" integrity sha512-ykZiR59Gvj80UKs9qm7jeUTKvn+wWk6HBVJOmJbK9jFK5juakDWp7BbH26U78Q61EWj97kI1FdfcbMkuQ7rqkA== "@pixi/filter-displacement@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-displacement/-/filter-displacement-7.4.2.tgz#e001f66c7f8bf02241c468cb33a01d21090ee09a" + resolved "https://registry.npmmirror.com/@pixi/filter-displacement/-/filter-displacement-7.4.2.tgz" integrity sha512-QS/eWp/ivsxef3xapNeGwpPX7vrqQQeo99Fux4k5zsvplnNEsf91t6QYJLG776AbZEu/qh8VYRBA5raIVY/REw== "@pixi/filter-fxaa@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-fxaa/-/filter-fxaa-7.4.2.tgz#d11d6ee1fd098a8a6bee49b804d3b3ff087af1bf" + resolved "https://registry.npmmirror.com/@pixi/filter-fxaa/-/filter-fxaa-7.4.2.tgz" integrity sha512-U/ptJgDsfs/r8y2a6gCaiPfDu2IFAxpQ4wtfmBpz6vRhqeE4kI8yNIUx5dZbui57zlsJaW0BNacOQxHU0vLkyQ== "@pixi/filter-noise@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/filter-noise/-/filter-noise-7.4.2.tgz#99aebe14d0f52aaa8509e2531f1a4e658a702da9" + resolved "https://registry.npmmirror.com/@pixi/filter-noise/-/filter-noise-7.4.2.tgz" integrity sha512-Vy9ViBFhZEGh6xKkd3kFWErolZTwv1Y5Qb1bV7qPIYbvBECYsqzlR4uCrrjBV6KKm0PufpG/+NKC5vICZaqKzg== "@pixi/graphics-extras@^7.3.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/graphics-extras/-/graphics-extras-7.4.2.tgz#17ac16d1a021d870e31f9c18d2252a4312c05041" + resolved "https://registry.npmmirror.com/@pixi/graphics-extras/-/graphics-extras-7.4.2.tgz" integrity sha512-X4tHRIhbatT/kUQJ0PAquuo19eAK8S9NDbqxtHv9AWgYnDlhdvWFPqd16xkPvq8POadaRyLzfwwcYYeNWLQEig== "@pixi/graphics@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/graphics/-/graphics-7.4.2.tgz#b4fcc39f6a0af4c74d66b3d45b6728c33467bc78" + resolved "https://registry.npmmirror.com/@pixi/graphics/-/graphics-7.4.2.tgz" integrity sha512-jH4/Tum2RqWzHGzvlwEr7HIVduoLO57Ze705N2zQPkUD57TInn5911aGUeoua7f/wK8cTLGzgB9BzSo2kTdcHw== "@pixi/math@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/math/-/math-7.4.2.tgz#473b400c89ac8fcdf6e09259ab097ce35cd8ac68" + resolved "https://registry.npmmirror.com/@pixi/math/-/math-7.4.2.tgz" integrity sha512-7jHmCQoYk6e0rfSKjdNFOPl0wCcdgoraxgteXJTTHv3r0bMNx2pHD9FJ0VvocEUG7XHfj55O3+u7yItOAx0JaQ== "@pixi/mesh-extras@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/mesh-extras/-/mesh-extras-7.4.2.tgz#92eb4f41fd08907f6118dbfcb4b65fc5642d14d3" + resolved "https://registry.npmmirror.com/@pixi/mesh-extras/-/mesh-extras-7.4.2.tgz" integrity sha512-vNR/7wjxjs7sv9fGoKkHyU91ZAD+7EnMHBS5F3CVISlOIFxLi96NNZCB81oUIdky/90pHw40johd/4izR5zTyw== "@pixi/mesh@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/mesh/-/mesh-7.4.2.tgz#f2095eb8ec792a102c76f18838f75d860bd42dff" + resolved "https://registry.npmmirror.com/@pixi/mesh/-/mesh-7.4.2.tgz" integrity sha512-mEkKyQvvMrYXC3pahvH5WBIKtrtB63WixRr91ANFI7zXD+ESG6Ap6XtxMCJmXDQPwBDNk7SWVMiCflYuchG7kA== "@pixi/mixin-cache-as-bitmap@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/mixin-cache-as-bitmap/-/mixin-cache-as-bitmap-7.4.2.tgz#288f9700a2bbb524798cea86b06bd1be36f90659" + resolved "https://registry.npmmirror.com/@pixi/mixin-cache-as-bitmap/-/mixin-cache-as-bitmap-7.4.2.tgz" integrity sha512-6dgthi2ruUT/lervSrFDQ7vXkEsHo6CxdgV7W/wNdW1dqgQlKfDvO6FhjXzyIMRLSooUf5FoeluVtfsjkUIYrw== "@pixi/mixin-get-child-by-name@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/mixin-get-child-by-name/-/mixin-get-child-by-name-7.4.2.tgz#d8671526637c09a87502466e27066049aebd240f" + resolved "https://registry.npmmirror.com/@pixi/mixin-get-child-by-name/-/mixin-get-child-by-name-7.4.2.tgz" integrity sha512-0Cfw8JpQhsixprxiYph4Lj+B5n83Kk4ftNMXgM5xtZz+tVLz5s91qR0MqcdzwTGTJ7utVygiGmS4/3EfR/duRQ== "@pixi/mixin-get-global-position@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/mixin-get-global-position/-/mixin-get-global-position-7.4.2.tgz#9dcc9f49fa8001103ceadb1061efe03a71761952" + resolved "https://registry.npmmirror.com/@pixi/mixin-get-global-position/-/mixin-get-global-position-7.4.2.tgz" integrity sha512-LcsahbVdX4DFS2IcGfNp4KaXuu7SjAwUp/flZSGIfstyKOKb5FWFgihtqcc9ZT4coyri3gs2JbILZub/zPZj1w== "@pixi/particle-container@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/particle-container/-/particle-container-7.4.2.tgz#f829caaa724be10b7e0a04fca89a68f64e80012a" + resolved "https://registry.npmmirror.com/@pixi/particle-container/-/particle-container-7.4.2.tgz" integrity sha512-B78Qq86kt0lEa5WtB2YFIm3+PjhKfw9La9R++GBSgABl+g13s2UaZ6BIPxvY3JxWMdxPm4iPrQPFX1QWRN68mw== "@pixi/prepare@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/prepare/-/prepare-7.4.2.tgz#36fa8f5a044e6c4f46e7d2df1bef82dce7d40455" + resolved "https://registry.npmmirror.com/@pixi/prepare/-/prepare-7.4.2.tgz" integrity sha512-PugyMzReCHXUzc3so9PPJj2OdHwibpUNWyqG4mWY2UUkb6c8NAGK1AnAPiscOvLilJcv/XQSFoNhX+N1jrvJEg== "@pixi/runner@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/runner/-/runner-7.4.2.tgz#92b9748a2f85b9835bb36ce196a37215b8396392" + resolved "https://registry.npmmirror.com/@pixi/runner/-/runner-7.4.2.tgz" integrity sha512-LPBpwym4vdyyDY5ucF4INQccaGyxztERyLTY1YN6aqJyyMmnc7iqXlIKt+a0euMBtNoLoxy6MWMvIuZj0JfFPA== "@pixi/settings@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/settings/-/settings-7.4.2.tgz#36ebeec5f15bc9c538399e0692363be00a7bf28e" + resolved "https://registry.npmmirror.com/@pixi/settings/-/settings-7.4.2.tgz" integrity sha512-pMN+L6aWgvUbwhFIL/BTHKe2ShYGPZ8h9wlVBnFHMtUcJcFLMF1B3lzuvCayZRepOphs6RY0TqvnDvVb585JhQ== dependencies: "@pixi/constants" "7.4.2" @@ -339,51 +334,51 @@ "@pixi/sprite-animated@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/sprite-animated/-/sprite-animated-7.4.2.tgz#c28a3b2a8ee986517657ad5a1406fdddd610f56b" + resolved "https://registry.npmmirror.com/@pixi/sprite-animated/-/sprite-animated-7.4.2.tgz" integrity sha512-QPT6yxCUGOBN+98H3pyIZ1ZO6Y7BN1o0Q2IMZEsD1rNfZJrTYS3Q8VlCG5t2YlFlcB8j5iBo24bZb6FUxLOmsQ== "@pixi/sprite-tiling@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/sprite-tiling/-/sprite-tiling-7.4.2.tgz#ba6e3c596cb6dadb21795153058a900dcb1cfd2b" + resolved "https://registry.npmmirror.com/@pixi/sprite-tiling/-/sprite-tiling-7.4.2.tgz" integrity sha512-Z8PP6ewy3nuDYL+NeEdltHAhuucVgia33uzAitvH3OqqRSx6a6YRBFbNLUM9Sx+fBO2Lk3PpV1g6QZX+NE5LOg== "@pixi/sprite@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/sprite/-/sprite-7.4.2.tgz#beed8c2fd2e00a02e340eaba9844b180bf1f1b24" + resolved "https://registry.npmmirror.com/@pixi/sprite/-/sprite-7.4.2.tgz" integrity sha512-Ccf/OVQsB+HQV0Fyf5lwD+jk1jeU7uSIqEjbxenNNssmEdB7S5qlkTBV2EJTHT83+T6Z9OMOHsreJZerydpjeg== "@pixi/spritesheet@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/spritesheet/-/spritesheet-7.4.2.tgz#e95ee2814fdf41a0028530d3f942a2bdb75b5543" + resolved "https://registry.npmmirror.com/@pixi/spritesheet/-/spritesheet-7.4.2.tgz" integrity sha512-YIvHdpXW+AYp8vD0NkjJmrdnVHTZKidCnx6k8ATSuuvCT6O5Tuh2N/Ul2oDj4/QaePy0lVhyhAbZpJW00Jr7mQ== "@pixi/text-bitmap@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/text-bitmap/-/text-bitmap-7.4.2.tgz#0027f50025bbb13953c829200c99b5a6e212dee7" + resolved "https://registry.npmmirror.com/@pixi/text-bitmap/-/text-bitmap-7.4.2.tgz" integrity sha512-lPBMJ83JnpFVL+6ckQ8KO8QmwdPm0z9Zs/M0NgFKH2F+BcjelRNnk80NI3O0qBDYSEDQIE+cFbKoZ213kf7zwA== "@pixi/text-html@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/text-html/-/text-html-7.4.2.tgz#843e153d1f8c09fdf18c2527baa9f778061e94d3" + resolved "https://registry.npmmirror.com/@pixi/text-html/-/text-html-7.4.2.tgz" integrity sha512-duOu8oDYeDNuyPozj2DAsQ5VZBbRiwIXy78Gn7H2pCiEAefw/Uv5jJYwdgneKME0e1tOxz1eOUGKPcI6IJnZjw== "@pixi/text@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/text/-/text-7.4.2.tgz#ee9f54083ecbf5b07d4410ede0cd005a312d2e71" + resolved "https://registry.npmmirror.com/@pixi/text/-/text-7.4.2.tgz" integrity sha512-rZZWpJNsIQ8WoCWrcVg8Gi6L/PDakB941clo6dO3XjoII2ucoOUcnpe5HIkudxi2xPvS/8Bfq990gFEx50TP5A== "@pixi/ticker@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/ticker/-/ticker-7.4.2.tgz#804994ddd0c771bdf938c9eeb8ad5ed4a28c0374" + resolved "https://registry.npmmirror.com/@pixi/ticker/-/ticker-7.4.2.tgz" integrity sha512-cAvxCh/KI6IW4m3tp2b+GQIf+DoSj9NNmPJmsOeEJ7LzvruG8Ps7SKI6CdjQob5WbceL1apBTDbqZ/f77hFDiQ== dependencies: "@pixi/extensions" "7.4.2" "@pixi/settings" "7.4.2" "@pixi/utils" "7.4.2" -"@pixi/utils@7.4.2", "@pixi/utils@^7.3.2": +"@pixi/utils@^7.3.2", "@pixi/utils@7.4.2": version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/@pixi/utils/-/utils-7.4.2.tgz#bbbe60eec3d91fa294a0c3bb6410be6a85eaaadc" + resolved "https://registry.npmmirror.com/@pixi/utils/-/utils-7.4.2.tgz" integrity sha512-aU/itcyMC4TxFbmdngmak6ey4kC5c16Y5ntIYob9QnjNAfD/7GTsYIBnP6FqEAyO1eq0MjkAALxdONuay1BG3g== dependencies: "@pixi/color" "7.4.2" @@ -395,9 +390,9 @@ url "^0.11.0" "@quasar/app-vite@^1.9.0": - version "1.10.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@quasar/app-vite/-/app-vite-1.10.0.tgz#06cc410e23e7ab3ed0321ee3df6c37652a2af516" - integrity sha512-9zJfSBh1GtsmS1c3zIKa78gwPAMJoJ4AHv7KftkaaLQ4F1z2DpoqKbJG8YiXVR9STOronPAh+4JNypFP1RHFfQ== + version "1.9.5" + resolved "https://registry.npmmirror.com/@quasar/app-vite/-/app-vite-1.9.5.tgz" + integrity sha512-WO/S8Omav28BzV6BAOY9Gq5k/jmrIklZ+/rXtWqmW1OFIyyI9Gw62kGsVHgLQ0f1Jv1BNdaqWixD6fUcV+knTw== dependencies: "@quasar/render-ssr-error" "^1.0.3" "@quasar/vite-plugin" "^1.7.0" @@ -427,7 +422,7 @@ open "^8.4.0" register-service-worker "^1.7.2" rollup-plugin-visualizer "^5.5.4" - sass "^1.79.1" + sass "^1.33.0" semver "^7.3.5" serialize-javascript "^6.0.0" table "^6.8.0" @@ -436,37 +431,42 @@ "@quasar/extras@^1.16.4": version "1.16.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/@quasar/extras/-/extras-1.16.12.tgz#2dac82eac8bb6b069a677d2817e479261d51f234" + resolved "https://registry.npmmirror.com/@quasar/extras/-/extras-1.16.12.tgz" integrity sha512-hLlb3Buxo38Xg/2w0BTkz98RBh/VH8apZ2r6Fl8YpPgrVQ0diHyN/BVTvIOk5Kch2y38L2kvwOIddsB2UcCuIg== "@quasar/render-ssr-error@^1.0.3": version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/@quasar/render-ssr-error/-/render-ssr-error-1.0.3.tgz#33f27231007d1b222de41d3d70c29a6d14f9498a" + resolved "https://registry.npmmirror.com/@quasar/render-ssr-error/-/render-ssr-error-1.0.3.tgz" integrity sha512-A8RF99q6/sOSe1Ighnh5syEIbliD3qUYEJd2HyfFyBPSMF+WYGXon5dmzg4nUoK662NgOggInevkDyBDJcZugg== dependencies: stack-trace "^1.0.0-pre2" "@quasar/vite-plugin@^1.7.0": version "1.7.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@quasar/vite-plugin/-/vite-plugin-1.7.0.tgz#8873391ed7f69677948180f6eb14aa0821747478" + resolved "https://registry.npmmirror.com/@quasar/vite-plugin/-/vite-plugin-1.7.0.tgz" integrity sha512-ia4w1n4DuPYm92MQLPNpMqLJID1WGGRyVGxkVeg8V+V25Vh3p9QBo++iuXR4sW/bCmzzx66Ko6VStsr1zp90GQ== "@rollup/pluginutils@^4.1.2": version "4.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" + resolved "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz" integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== dependencies: estree-walker "^2.0.1" picomatch "^2.2.2" +"@rollup/rollup-win32-x64-msvc@4.21.2": + version "4.21.2" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.2.tgz" + integrity sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA== + "@stomp/stompjs@^7.0.0": version "7.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@stomp/stompjs/-/stompjs-7.0.0.tgz#46b5c454a9dc8262e0b20f3b3dbacaa113993077" + resolved "https://registry.npmmirror.com/@stomp/stompjs/-/stompjs-7.0.0.tgz" integrity sha512-fGdq4wPDnSV/KyOsjq4P+zLc8MFWC3lMmP5FBgLWKPJTYcuCbAIrnRGjB7q2jHZdYCOD5vxLuFoKIYLy5/u8Pw== "@types/body-parser@*": version "1.19.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4" + resolved "https://registry.npmmirror.com/@types/body-parser/-/body-parser-1.19.5.tgz" integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg== dependencies: "@types/connect" "*" @@ -474,7 +474,7 @@ "@types/chrome@^0.0.208": version "0.0.208" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/chrome/-/chrome-0.0.208.tgz#c52992e46723c783d3fd84a8b90dd8b3e87af67f" + resolved "https://registry.npmmirror.com/@types/chrome/-/chrome-0.0.208.tgz" integrity sha512-VDU/JnXkF5qaI7WBz14Azpa2VseZTgML0ia/g/B1sr9OfdOnHiH/zZ7P7qCDqxSlkqJh76/bPc8jLFcx8rHJmw== dependencies: "@types/filesystem" "*" @@ -482,36 +482,41 @@ "@types/compression@^1.7.2": version "1.7.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/compression/-/compression-1.7.5.tgz#0f80efef6eb031be57b12221c4ba6bc3577808f7" + resolved "https://registry.npmmirror.com/@types/compression/-/compression-1.7.5.tgz" integrity sha512-AAQvK5pxMpaT+nDvhHrsBhLSYG5yQdtkaJE1WYieSNY2mVFKAgmU4ks65rkZD5oqnGCFLyQpUr1CqI4DmUMyDg== dependencies: "@types/express" "*" "@types/connect@*": version "3.4.38" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858" + resolved "https://registry.npmmirror.com/@types/connect/-/connect-3.4.38.tgz" integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug== dependencies: "@types/node" "*" "@types/cordova@0.0.34": version "0.0.34" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/cordova/-/cordova-0.0.34.tgz#ea7addf74ecec3d7629827a0c39e2c9addc73d04" + resolved "https://registry.npmmirror.com/@types/cordova/-/cordova-0.0.34.tgz" integrity sha512-rkiiTuf/z2wTd4RxFOb+clE7PF4AEJU0hsczbUdkHHBtkUmpWQpEddynNfJYKYtZFJKbq4F+brfekt1kx85IZA== "@types/css-font-loading-module@^0.0.12": version "0.0.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/css-font-loading-module/-/css-font-loading-module-0.0.12.tgz#65494833928823f998fbe8e86312821875d80db5" + resolved "https://registry.npmmirror.com/@types/css-font-loading-module/-/css-font-loading-module-0.0.12.tgz" integrity sha512-x2tZZYkSxXqWvTDgveSynfjq/T2HyiZHXb00j/+gy19yp70PHCizM48XFdjBCWH7eHBD0R5i/pw9yMBP/BH5uA== "@types/earcut@^2.1.0": version "2.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/earcut/-/earcut-2.1.4.tgz#5811d7d333048f5a7573b22ddc84923e69596da6" + resolved "https://registry.npmmirror.com/@types/earcut/-/earcut-2.1.4.tgz" integrity sha512-qp3m9PPz4gULB9MhjGID7wpo3gJ4bTGXm7ltNDsmOvsPduTeHp8wSW9YckBj3mljeOh4F0m2z/0JKAALRKbmLQ== +"@types/estree@1.0.5": + version "1.0.5" + resolved "https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz" + integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== + "@types/express-serve-static-core@^4.17.33": version "4.19.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/express-serve-static-core/-/express-serve-static-core-4.19.5.tgz#218064e321126fcf9048d1ca25dd2465da55d9c6" + resolved "https://registry.npmmirror.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.5.tgz" integrity sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg== dependencies: "@types/node" "*" @@ -521,7 +526,7 @@ "@types/express@*", "@types/express@^4.17.13": version "4.17.21" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/express/-/express-4.17.21.tgz#c26d4a151e60efe0084b23dc3369ebc631ed192d" + resolved "https://registry.npmmirror.com/@types/express/-/express-4.17.21.tgz" integrity sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ== dependencies: "@types/body-parser" "*" @@ -531,61 +536,54 @@ "@types/filesystem@*": version "0.0.36" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/filesystem/-/filesystem-0.0.36.tgz#7227c2d76bfed1b21819db310816c7821d303857" + resolved "https://registry.npmmirror.com/@types/filesystem/-/filesystem-0.0.36.tgz" integrity sha512-vPDXOZuannb9FZdxgHnqSwAG/jvdGM8Wq+6N4D/d80z+D4HWH+bItqsZaVRQykAn6WEVeEkLm2oQigyHtgb0RA== dependencies: "@types/filewriter" "*" "@types/filewriter@*": version "0.0.33" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/filewriter/-/filewriter-0.0.33.tgz#d9d611db9d9cd99ae4e458de420eeb64ad604ea8" + resolved "https://registry.npmmirror.com/@types/filewriter/-/filewriter-0.0.33.tgz" integrity sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g== "@types/google-protobuf@^3.15.6": version "3.15.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/google-protobuf/-/google-protobuf-3.15.12.tgz#eb2ba0eddd65712211a2b455dc6071d665ccf49b" + resolved "https://registry.npmmirror.com/@types/google-protobuf/-/google-protobuf-3.15.12.tgz" integrity sha512-40um9QqwHjRS92qnOaDpL7RmDK15NuZYo9HihiJRbYkMQZlWnuH8AdvbMy8/o6lgLmKbDUKa+OALCltHdbOTpQ== "@types/har-format@*": version "1.2.15" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/har-format/-/har-format-1.2.15.tgz#f352493638c2f89d706438a19a9eb300b493b506" + resolved "https://registry.npmmirror.com/@types/har-format/-/har-format-1.2.15.tgz" integrity sha512-RpQH4rXLuvTXKR0zqHq3go0RVXYv/YVqv4TnPH95VbwUxZdQlK1EtcMvQvMpDngHbt13Csh9Z4qT9AbkiQH5BA== "@types/http-errors@*": version "2.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/http-errors/-/http-errors-2.0.4.tgz#7eb47726c391b7345a6ec35ad7f4de469cf5ba4f" + resolved "https://registry.npmmirror.com/@types/http-errors/-/http-errors-2.0.4.tgz" integrity sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA== "@types/mime@^1": version "1.3.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" + resolved "https://registry.npmmirror.com/@types/mime/-/mime-1.3.5.tgz" integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== -"@types/node@*": - version "22.6.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/node/-/node-22.6.1.tgz#e531a45f4d78f14a8468cb9cdc29dc9602afc7ac" - integrity sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw== - dependencies: - undici-types "~6.19.2" - -"@types/node@^12.20.21": +"@types/node@*", "@types/node@^12.20.21": version "12.20.55" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240" + resolved "https://registry.npmmirror.com/@types/node/-/node-12.20.55.tgz" integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ== "@types/qs@*": - version "6.9.16" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/qs/-/qs-6.9.16.tgz#52bba125a07c0482d26747d5d4947a64daf8f794" - integrity sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A== + version "6.9.15" + resolved "https://registry.npmmirror.com/@types/qs/-/qs-6.9.15.tgz" + integrity sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg== "@types/range-parser@*": version "1.2.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" + resolved "https://registry.npmmirror.com/@types/range-parser/-/range-parser-1.2.7.tgz" integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== "@types/readable-stream@^4.0.0", "@types/readable-stream@^4.0.5": version "4.0.15" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/readable-stream/-/readable-stream-4.0.15.tgz#e6ec26fe5b02f578c60baf1fa9452e90957d2bfb" + resolved "https://registry.npmmirror.com/@types/readable-stream/-/readable-stream-4.0.15.tgz" integrity sha512-oAZ3kw+kJFkEqyh7xORZOku1YAKvsFTogRY8kVl4vHpEKiDkfnSA/My8haRE7fvmix5Zyy+1pwzOi7yycGLBJw== dependencies: "@types/node" "*" @@ -593,7 +591,7 @@ "@types/send@*": version "0.17.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/send/-/send-0.17.4.tgz#6619cd24e7270793702e4e6a4b958a9010cfc57a" + resolved "https://registry.npmmirror.com/@types/send/-/send-0.17.4.tgz" integrity sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA== dependencies: "@types/mime" "^1" @@ -601,7 +599,7 @@ "@types/serve-static@*": version "1.15.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/serve-static/-/serve-static-1.15.7.tgz#22174bbd74fb97fe303109738e9b5c2f3064f714" + resolved "https://registry.npmmirror.com/@types/serve-static/-/serve-static-1.15.7.tgz" integrity sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw== dependencies: "@types/http-errors" "*" @@ -610,14 +608,14 @@ "@types/ws@^8.5.9": version "8.5.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/@types/ws/-/ws-8.5.12.tgz#619475fe98f35ccca2a2f6c137702d85ec247b7e" + resolved "https://registry.npmmirror.com/@types/ws/-/ws-8.5.12.tgz" integrity sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ== dependencies: "@types/node" "*" "@typescript-eslint/eslint-plugin@^7.16.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz#b16d3cf3ee76bf572fdf511e79c248bdec619ea3" + resolved "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz" integrity sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw== dependencies: "@eslint-community/regexpp" "^4.10.0" @@ -630,9 +628,9 @@ natural-compare "^1.4.0" ts-api-utils "^1.3.0" -"@typescript-eslint/parser@^7.16.0": +"@typescript-eslint/parser@^7.0.0", "@typescript-eslint/parser@^7.16.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/parser/-/parser-7.18.0.tgz#83928d0f1b7f4afa974098c64b5ce6f9051f96a0" + resolved "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.18.0.tgz" integrity sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg== dependencies: "@typescript-eslint/scope-manager" "7.18.0" @@ -643,7 +641,7 @@ "@typescript-eslint/scope-manager@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz#c928e7a9fc2c0b3ed92ab3112c614d6bd9951c83" + resolved "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz" integrity sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA== dependencies: "@typescript-eslint/types" "7.18.0" @@ -651,7 +649,7 @@ "@typescript-eslint/type-utils@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz#2165ffaee00b1fbbdd2d40aa85232dab6998f53b" + resolved "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz" integrity sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA== dependencies: "@typescript-eslint/typescript-estree" "7.18.0" @@ -661,12 +659,12 @@ "@typescript-eslint/types@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/types/-/types-7.18.0.tgz#b90a57ccdea71797ffffa0321e744f379ec838c9" + resolved "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.18.0.tgz" integrity sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ== "@typescript-eslint/typescript-estree@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz#b5868d486c51ce8f312309ba79bdb9f331b37931" + resolved "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz" integrity sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA== dependencies: "@typescript-eslint/types" "7.18.0" @@ -680,7 +678,7 @@ "@typescript-eslint/utils@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/utils/-/utils-7.18.0.tgz#bca01cde77f95fc6a8d5b0dbcbfb3d6ca4be451f" + resolved "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-7.18.0.tgz" integrity sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw== dependencies: "@eslint-community/eslint-utils" "^4.4.0" @@ -690,7 +688,7 @@ "@typescript-eslint/visitor-keys@7.18.0": version "7.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz#0564629b6124d67607378d0f0332a0495b25e7d7" + resolved "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz" integrity sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg== dependencies: "@typescript-eslint/types" "7.18.0" @@ -698,80 +696,80 @@ "@ungap/structured-clone@^1.2.0": version "1.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + resolved "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -"@vitejs/plugin-vue@^2.2.0": +"@vitejs/plugin-vue@^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", "@vitejs/plugin-vue@^2.2.0": version "2.3.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-2.3.4.tgz#966a6279060eb2d9d1a02ea1a331af071afdcf9e" + resolved "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-2.3.4.tgz" integrity sha512-IfFNbtkbIm36O9KB8QodlwwYvTEsJb4Lll4c2IwB3VHc2gie2mSPtSzL0eYay7X2jd/2WX02FjSGTWR6OPr/zg== -"@volar/language-core@2.4.5", "@volar/language-core@~2.4.0-alpha.18": - version "2.4.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@volar/language-core/-/language-core-2.4.5.tgz#af8ba724b05fc4dce2339c49662e732e9c22c897" - integrity sha512-F4tA0DCO5Q1F5mScHmca0umsi2ufKULAnMOVBfMsZdT4myhVl4WdKRwCaKcfOkIEuyrAVvtq1ESBdZ+rSyLVww== +"@volar/language-core@~2.4.0-alpha.18", "@volar/language-core@2.4.4": + version "2.4.4" + resolved "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.4.tgz" + integrity sha512-kO9k4kTLfxpg+6lq7/KAIv3m2d62IHuCL6GbVgYZTpfKvIGoAIlDxK7pFcB/eczN2+ydg/vnyaeZ6SGyZrJw2w== dependencies: - "@volar/source-map" "2.4.5" + "@volar/source-map" "2.4.4" -"@volar/source-map@2.4.5": - version "2.4.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@volar/source-map/-/source-map-2.4.5.tgz#81223a06321aaa067b40619189b44a9f0b7ac2d8" - integrity sha512-varwD7RaKE2J/Z+Zu6j3mNNJbNT394qIxXwdvz/4ao/vxOfyClZpSDtLKkwWmecinkOVos5+PWkWraelfMLfpw== +"@volar/source-map@2.4.4": + version "2.4.4" + resolved "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.4.tgz" + integrity sha512-xG3PZqOP2haG8XG4Pg3PD1UGDAdqZg24Ru8c/qYjYAnmcj6GBR64mstx+bZux5QOyRaJK+/lNM/RnpvBD3489g== "@volar/typescript@~2.4.0-alpha.18": - version "2.4.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/@volar/typescript/-/typescript-2.4.5.tgz#1210c1e8561ac20af46348ceaf8e6e96c797063f" - integrity sha512-mcT1mHvLljAEtHviVcBuOyAwwMKz1ibXTi5uYtP/pf4XxoAzpdkQ+Br2IC0NPCvLCbjPZmbf3I0udndkfB1CDg== + version "2.4.4" + resolved "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.4.tgz" + integrity sha512-QQMQRVj0fVHJ3XdRKiS1LclhG0VBXdFYlyuHRQF/xLk2PuJuHNWP26MDZNvEVCvnyUQuUQhIAfylwY5TGPgc6w== dependencies: - "@volar/language-core" "2.4.5" + "@volar/language-core" "2.4.4" path-browserify "^1.0.1" vscode-uri "^3.0.8" -"@vue/compiler-core@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/compiler-core/-/compiler-core-3.5.8.tgz#03ee4a2fa022c9bc3e59f789a1e14593b1e95b10" - integrity sha512-Uzlxp91EPjfbpeO5KtC0KnXPkuTfGsNDeaKQJxQN718uz+RqDYarEf7UhQJGK+ZYloD2taUbHTI2J4WrUaZQNA== +"@vue/compiler-core@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.4.tgz" + integrity sha512-oNwn+BAt3n9dK9uAYvI+XGlutwuTq/wfj4xCBaZCqwwVIGtD7D6ViihEbyYZrDHIHTDE3Q6oL3/hqmAyFEy9DQ== dependencies: "@babel/parser" "^7.25.3" - "@vue/shared" "3.5.8" + "@vue/shared" "3.5.4" entities "^4.5.0" estree-walker "^2.0.2" source-map-js "^1.2.0" -"@vue/compiler-dom@3.5.8", "@vue/compiler-dom@^3.4.0": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/compiler-dom/-/compiler-dom-3.5.8.tgz#03e4a6bef00a1979613a1db2ab39e9b2dced3373" - integrity sha512-GUNHWvoDSbSa5ZSHT9SnV5WkStWfzJwwTd6NMGzilOE/HM5j+9EB9zGXdtu/fCNEmctBqMs6C9SvVPpVPuk1Eg== +"@vue/compiler-dom@^3.4.0", "@vue/compiler-dom@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.4.tgz" + integrity sha512-yP9RRs4BDLOLfldn6ah+AGCNovGjMbL9uHvhDHf5wan4dAHLnFGOkqtfE7PPe4HTXIqE7l/NILdYw53bo1C8jw== dependencies: - "@vue/compiler-core" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/compiler-core" "3.5.4" + "@vue/shared" "3.5.4" -"@vue/compiler-sfc@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/compiler-sfc/-/compiler-sfc-3.5.8.tgz#b2091ec01c63ab02a1cd6783224322f245c6a308" - integrity sha512-taYpngQtSysrvO9GULaOSwcG5q821zCoIQBtQQSx7Uf7DxpR6CIHR90toPr9QfDD2mqHQPCSgoWBvJu0yV9zjg== +"@vue/compiler-sfc@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.4.tgz" + integrity sha512-P+yiPhL+NYH7m0ZgCq7AQR2q7OIE+mpAEgtkqEeH9oHSdIRvUO+4X6MPvblJIWcoe4YC5a2Gdf/RsoyP8FFiPQ== dependencies: "@babel/parser" "^7.25.3" - "@vue/compiler-core" "3.5.8" - "@vue/compiler-dom" "3.5.8" - "@vue/compiler-ssr" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/compiler-core" "3.5.4" + "@vue/compiler-dom" "3.5.4" + "@vue/compiler-ssr" "3.5.4" + "@vue/shared" "3.5.4" estree-walker "^2.0.2" magic-string "^0.30.11" - postcss "^8.4.47" + postcss "^8.4.44" source-map-js "^1.2.0" -"@vue/compiler-ssr@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/compiler-ssr/-/compiler-ssr-3.5.8.tgz#fbad34f8bbed15aa6e7b9d78324d93af93403145" - integrity sha512-W96PtryNsNG9u0ZnN5Q5j27Z/feGrFV6zy9q5tzJVyJaLiwYxvC0ek4IXClZygyhjm+XKM7WD9pdKi/wIRVC/Q== +"@vue/compiler-ssr@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.4.tgz" + integrity sha512-acESdTXsxPnYr2C4Blv0ggx5zIFMgOzZmYU2UgvIff9POdRGbRNBHRyzHAnizcItvpgerSKQbllUc9USp3V7eg== dependencies: - "@vue/compiler-dom" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/compiler-dom" "3.5.4" + "@vue/shared" "3.5.4" "@vue/compiler-vue2@^2.7.16": version "2.7.16" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz#2ba837cbd3f1b33c2bc865fbe1a3b53fb611e249" + resolved "https://registry.npmmirror.com/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz" integrity sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A== dependencies: de-indent "^1.0.2" @@ -779,12 +777,12 @@ "@vue/devtools-api@^6.6.3", "@vue/devtools-api@^6.6.4": version "6.6.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/devtools-api/-/devtools-api-6.6.4.tgz#cbe97fe0162b365edc1dba80e173f90492535343" + resolved "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz" integrity sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g== "@vue/language-core@2.0.29": version "2.0.29" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/language-core/-/language-core-2.0.29.tgz#19462d786cd7a1c21dbe575b46970a57094e0357" + resolved "https://registry.npmmirror.com/@vue/language-core/-/language-core-2.0.29.tgz" integrity sha512-o2qz9JPjhdoVj8D2+9bDXbaI4q2uZTHQA/dbyZT4Bj1FR9viZxDJnLcKVHfxdn6wsOzRgpqIzJEEmSSvgMvDTQ== dependencies: "@volar/language-core" "~2.4.0-alpha.18" @@ -796,54 +794,54 @@ muggle-string "^0.4.1" path-browserify "^1.0.1" -"@vue/reactivity@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/reactivity/-/reactivity-3.5.8.tgz#23e1bceceb9b94b136fa91f11b308e3f712dea6d" - integrity sha512-mlgUyFHLCUZcAYkqvzYnlBRCh0t5ZQfLYit7nukn1GR96gc48Bp4B7OIcSfVSvlG1k3BPfD+p22gi1t2n9tsXg== +"@vue/reactivity@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.4.tgz" + integrity sha512-HKKbEuP7tYSGCq4e4nK6ZW6l5hyG66OUetefBp4budUyjvAYsnQDf+bgFzg2RAgnH0CInyqXwD9y47jwJEHrQw== dependencies: - "@vue/shared" "3.5.8" + "@vue/shared" "3.5.4" -"@vue/runtime-core@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/runtime-core/-/runtime-core-3.5.8.tgz#235251fa40dae61db7becacf6bda5bc6561cbbc5" - integrity sha512-fJuPelh64agZ8vKkZgp5iCkPaEqFJsYzxLk9vSC0X3G8ppknclNDr61gDc45yBGTaN5Xqc1qZWU3/NoaBMHcjQ== +"@vue/runtime-core@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.4.tgz" + integrity sha512-f3ek2sTA0AFu0n+w+kCtz567Euqqa3eHewvo4klwS7mWfSj/A+UmYTwsnUFo35KeyAFY60JgrCGvEBsu1n/3LA== dependencies: - "@vue/reactivity" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/reactivity" "3.5.4" + "@vue/shared" "3.5.4" -"@vue/runtime-dom@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/runtime-dom/-/runtime-dom-3.5.8.tgz#9d3a4f4a9a9a0002b085a5e18a2ca16c009cb3ad" - integrity sha512-DpAUz+PKjTZPUOB6zJgkxVI3GuYc2iWZiNeeHQUw53kdrparSTG6HeXUrYDjaam8dVsCdvQxDz6ZWxnyjccUjQ== +"@vue/runtime-dom@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.4.tgz" + integrity sha512-ofyc0w6rbD5KtjhP1i9hGOKdxGpvmuB1jprP7Djlj0X7R5J/oLwuNuE98GJ8WW31Hu2VxQHtk/LYTAlW8xrJdw== dependencies: - "@vue/reactivity" "3.5.8" - "@vue/runtime-core" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/reactivity" "3.5.4" + "@vue/runtime-core" "3.5.4" + "@vue/shared" "3.5.4" csstype "^3.1.3" -"@vue/server-renderer@3.5.8": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/server-renderer/-/server-renderer-3.5.8.tgz#d6c292409e880db4151223c27fa0d1cd879cc239" - integrity sha512-7AmC9/mEeV9mmXNVyUIm1a1AjUhyeeGNbkLh39J00E7iPeGks8OGRB5blJiMmvqSh8SkaS7jkLWSpXtxUCeagA== +"@vue/server-renderer@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.4.tgz" + integrity sha512-FbjV6DJLgKRetMYFBA1UXCroCiED/Ckr53/ba9wivyd7D/Xw9fpo0T6zXzCnxQwyvkyrL7y6plgYhWhNjGxY5g== dependencies: - "@vue/compiler-ssr" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/compiler-ssr" "3.5.4" + "@vue/shared" "3.5.4" -"@vue/shared@3.5.8", "@vue/shared@^3.4.0": - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/@vue/shared/-/shared-3.5.8.tgz#6ef14933872dcc4f7b79fee3aaecf648ff807fed" - integrity sha512-mJleSWbAGySd2RJdX1RBtcrUBX6snyOc0qHpgk3lGi4l9/P/3ny3ELqFWqYdkXIwwNN/kdm8nD9ky8o6l/Lx2A== +"@vue/shared@^3.4.0", "@vue/shared@3.5.4": + version "3.5.4" + resolved "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.4.tgz" + integrity sha512-L2MCDD8l7yC62Te5UUyPVpmexhL9ipVnYRw9CsWfm/BGRL5FwDX4a25bcJ/OJSD3+Hx+k/a8LDKcG2AFdJV3BA== abort-controller@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" + resolved "https://registry.npmmirror.com/abort-controller/-/abort-controller-3.0.0.tgz" integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== dependencies: event-target-shim "^5.0.0" accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + resolved "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz" integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== dependencies: mime-types "~2.1.34" @@ -851,17 +849,17 @@ accepts@~1.3.5, accepts@~1.3.8: acorn-jsx@^5.3.2: version "5.3.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + resolved "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^8.8.2, acorn@^8.9.0: +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.8.2, acorn@^8.9.0: version "8.12.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + resolved "https://registry.npmmirror.com/acorn/-/acorn-8.12.1.tgz" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== ajv@^6.12.4: version "6.12.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + resolved "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== dependencies: fast-deep-equal "^3.1.1" @@ -871,7 +869,7 @@ ajv@^6.12.4: ajv@^8.0.1: version "8.17.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + resolved "https://registry.npmmirror.com/ajv/-/ajv-8.17.1.tgz" integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== dependencies: fast-deep-equal "^3.1.3" @@ -881,33 +879,33 @@ ajv@^8.0.1: ansi-escapes@^4.2.1, ansi-escapes@^4.3.0: version "4.3.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + resolved "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: type-fest "^0.21.3" ansi-regex@^5.0.1: version "5.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + resolved "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^3.2.1: version "3.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== dependencies: color-convert "^2.0.1" anymatch@~3.1.2: version "3.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + resolved "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz" integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: normalize-path "^3.0.0" @@ -915,7 +913,7 @@ anymatch@~3.1.2: archiver-utils@^2.1.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/archiver-utils/-/archiver-utils-2.1.0.tgz#e8a460e94b693c3e3da182a098ca6285ba9249e2" + resolved "https://registry.npmmirror.com/archiver-utils/-/archiver-utils-2.1.0.tgz" integrity sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw== dependencies: glob "^7.1.4" @@ -931,7 +929,7 @@ archiver-utils@^2.1.0: archiver-utils@^3.0.4: version "3.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/archiver-utils/-/archiver-utils-3.0.4.tgz#a0d201f1cf8fce7af3b5a05aea0a337329e96ec7" + resolved "https://registry.npmmirror.com/archiver-utils/-/archiver-utils-3.0.4.tgz" integrity sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw== dependencies: glob "^7.2.3" @@ -947,7 +945,7 @@ archiver-utils@^3.0.4: archiver@^5.3.0: version "5.3.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/archiver/-/archiver-5.3.2.tgz#99991d5957e53bd0303a392979276ac4ddccf3b0" + resolved "https://registry.npmmirror.com/archiver/-/archiver-5.3.2.tgz" integrity sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw== dependencies: archiver-utils "^2.1.0" @@ -960,37 +958,37 @@ archiver@^5.3.0: argparse@^2.0.1: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + resolved "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== array-flatten@1.1.1: version "1.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + resolved "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz" integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== array-union@^2.1.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + resolved "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== astral-regex@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + resolved "https://registry.npmmirror.com/astral-regex/-/astral-regex-2.0.0.tgz" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== async@^3.2.4: version "3.2.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce" + resolved "https://registry.npmmirror.com/async/-/async-3.2.6.tgz" integrity sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA== asynckit@^0.4.0: version "0.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + resolved "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== autoprefixer@^10.4.2: version "10.4.20" - resolved "https://mirrors.huaweicloud.com/repository/npm/autoprefixer/-/autoprefixer-10.4.20.tgz#5caec14d43976ef42e32dcb4bd62878e96be5b3b" + resolved "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.20.tgz" integrity sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g== dependencies: browserslist "^4.23.3" @@ -1002,7 +1000,7 @@ autoprefixer@^10.4.2: axios@^1.2.1: version "1.7.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/axios/-/axios-1.7.7.tgz#2f554296f9892a72ac8d8e4c5b79c14a91d0a47f" + resolved "https://registry.npmmirror.com/axios/-/axios-1.7.7.tgz" integrity sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q== dependencies: follow-redirects "^1.15.6" @@ -1011,22 +1009,22 @@ axios@^1.2.1: balanced-match@^1.0.0: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + resolved "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== base64-js@^1.3.1: version "1.5.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + resolved "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== binary-extensions@^2.0.0: version "2.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + resolved "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz" integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== bl@^4.0.3, bl@^4.1.0: version "4.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + resolved "https://registry.npmmirror.com/bl/-/bl-4.1.0.tgz" integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== dependencies: buffer "^5.5.0" @@ -1035,7 +1033,7 @@ bl@^4.0.3, bl@^4.1.0: bl@^6.0.8: version "6.0.15" - resolved "https://mirrors.huaweicloud.com/repository/npm/bl/-/bl-6.0.15.tgz#eeee4af50c6f16eb08fc5ddbca6f2d9f2ff12d78" + resolved "https://registry.npmmirror.com/bl/-/bl-6.0.15.tgz" integrity sha512-RGhjD1XCPS7ZdAH6cEJVaR3gLV4KJP2hvkQ49AH5kwScjiyd0jBM8RsP4oHKzcx+kNCON9752zPeRnuv0HHwzw== dependencies: "@types/readable-stream" "^4.0.0" @@ -1045,7 +1043,7 @@ bl@^6.0.8: body-parser@1.20.3: version "1.20.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/body-parser/-/body-parser-1.20.3.tgz#1953431221c6fb5cd63c4b36d53fab0928e548c6" + resolved "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.3.tgz" integrity sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g== dependencies: bytes "3.1.2" @@ -1063,12 +1061,12 @@ body-parser@1.20.3: boolbase@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + resolved "https://registry.npmmirror.com/boolbase/-/boolbase-1.0.0.tgz" integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== brace-expansion@^1.1.7: version "1.1.11" - resolved "https://mirrors.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + resolved "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz" integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" @@ -1076,21 +1074,21 @@ brace-expansion@^1.1.7: brace-expansion@^2.0.1: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + resolved "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz" integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== dependencies: balanced-match "^1.0.0" braces@^3.0.3, braces@~3.0.2: version "3.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + resolved "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz" integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== dependencies: fill-range "^7.1.1" -browserslist@^4.23.3: +browserslist@^4.23.3, "browserslist@>= 4.21.0": version "4.23.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" + resolved "https://registry.npmmirror.com/browserslist/-/browserslist-4.23.3.tgz" integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== dependencies: caniuse-lite "^1.0.30001646" @@ -1100,17 +1098,17 @@ browserslist@^4.23.3: buffer-crc32@^0.2.1, buffer-crc32@^0.2.13: version "0.2.13" - resolved "https://mirrors.huaweicloud.com/repository/npm/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + resolved "https://registry.npmmirror.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz" integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== buffer-from@^1.0.0: version "1.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + resolved "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== buffer@^5.5.0: version "5.7.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + resolved "https://registry.npmmirror.com/buffer/-/buffer-5.7.1.tgz" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== dependencies: base64-js "^1.3.1" @@ -1118,7 +1116,7 @@ buffer@^5.5.0: buffer@^6.0.3: version "6.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + resolved "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz" integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== dependencies: base64-js "^1.3.1" @@ -1126,17 +1124,17 @@ buffer@^6.0.3: bytes@3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + resolved "https://registry.npmmirror.com/bytes/-/bytes-3.0.0.tgz" integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== bytes@3.1.2: version "3.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + resolved "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== call-bind@^1.0.7: version "1.0.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + resolved "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.7.tgz" integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== dependencies: es-define-property "^1.0.0" @@ -1147,25 +1145,25 @@ call-bind@^1.0.7: callsites@^3.0.0: version "3.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + resolved "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== camel-case@^4.1.2: version "4.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a" + resolved "https://registry.npmmirror.com/camel-case/-/camel-case-4.1.2.tgz" integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw== dependencies: pascal-case "^3.1.2" tslib "^2.0.3" caniuse-lite@^1.0.30001646: - version "1.0.30001663" - resolved "https://mirrors.huaweicloud.com/repository/npm/caniuse-lite/-/caniuse-lite-1.0.30001663.tgz#1529a723505e429fdfd49532e9fc42273ba7fed7" - integrity sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA== + version "1.0.30001660" + resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz" + integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== chalk@^2.4.2: version "2.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + resolved "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: ansi-styles "^3.2.1" @@ -1174,7 +1172,7 @@ chalk@^2.4.2: chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: version "4.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + resolved "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" @@ -1182,12 +1180,12 @@ chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: chardet@^0.7.0: version "0.7.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + resolved "https://registry.npmmirror.com/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.5.1, chokidar@^3.5.3: +chokidar@^3.5.1, chokidar@^3.5.3, "chokidar@>=3.0.0 <4.0.0": version "3.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz" integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== dependencies: anymatch "~3.1.2" @@ -1200,45 +1198,38 @@ chokidar@^3.5.1, chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" -chokidar@^4.0.0: - version "4.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/chokidar/-/chokidar-4.0.1.tgz#4a6dff66798fb0f72a94f616abbd7e1a19f31d41" - integrity sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA== - dependencies: - readdirp "^4.0.1" - ci-info@^3.7.1: version "3.9.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" + resolved "https://registry.npmmirror.com/ci-info/-/ci-info-3.9.0.tgz" integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== clean-css@~5.3.2: version "5.3.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/clean-css/-/clean-css-5.3.3.tgz#b330653cd3bd6b75009cc25c714cae7b93351ccd" + resolved "https://registry.npmmirror.com/clean-css/-/clean-css-5.3.3.tgz" integrity sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg== dependencies: source-map "~0.6.0" cli-cursor@^3.1.0: version "3.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + resolved "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-3.1.0.tgz" integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== dependencies: restore-cursor "^3.1.0" cli-spinners@^2.5.0: version "2.9.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" + resolved "https://registry.npmmirror.com/cli-spinners/-/cli-spinners-2.9.2.tgz" integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== cli-width@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + resolved "https://registry.npmmirror.com/cli-width/-/cli-width-3.0.0.tgz" integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== cliui@^8.0.1: version "8.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + resolved "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz" integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== dependencies: string-width "^4.2.0" @@ -1247,7 +1238,7 @@ cliui@^8.0.1: clone-deep@^4.0.1: version "4.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" + resolved "https://registry.npmmirror.com/clone-deep/-/clone-deep-4.0.1.tgz" integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== dependencies: is-plain-object "^2.0.4" @@ -1256,63 +1247,63 @@ clone-deep@^4.0.1: clone@^1.0.2: version "1.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + resolved "https://registry.npmmirror.com/clone/-/clone-1.0.4.tgz" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== color-convert@^1.9.0: version "1.9.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + resolved "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: color-name "1.1.3" color-convert@^2.0.1: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + resolved "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz" integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - color-name@~1.1.4: version "1.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + resolved "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + combined-stream@^1.0.8: version "1.0.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + resolved "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== dependencies: delayed-stream "~1.0.0" commander@^10.0.0: version "10.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + resolved "https://registry.npmmirror.com/commander/-/commander-10.0.1.tgz" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== commander@^2.20.0: version "2.20.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + resolved "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== commander@^8.0.0: version "8.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" + resolved "https://registry.npmmirror.com/commander/-/commander-8.3.0.tgz" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== commist@^3.2.0: version "3.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/commist/-/commist-3.2.0.tgz#da9c8e5f245ac21510badc4b10c46b5bcc9b56cd" + resolved "https://registry.npmmirror.com/commist/-/commist-3.2.0.tgz" integrity sha512-4PIMoPniho+LqXmpS5d3NuGYncG6XWlkBSVGiWycL22dd42OYdUGil2CWuzklaJoNxyxUSpO4MKIBU94viWNAw== compress-commons@^4.1.2: version "4.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/compress-commons/-/compress-commons-4.1.2.tgz#6542e59cb63e1f46a8b21b0e06f9a32e4c8b06df" + resolved "https://registry.npmmirror.com/compress-commons/-/compress-commons-4.1.2.tgz" integrity sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg== dependencies: buffer-crc32 "^0.2.13" @@ -1322,14 +1313,14 @@ compress-commons@^4.1.2: compressible@~2.0.16: version "2.0.18" - resolved "https://mirrors.huaweicloud.com/repository/npm/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" + resolved "https://registry.npmmirror.com/compressible/-/compressible-2.0.18.tgz" integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== dependencies: mime-db ">= 1.43.0 < 2" compression@^1.7.4: version "1.7.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" + resolved "https://registry.npmmirror.com/compression/-/compression-1.7.4.tgz" integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== dependencies: accepts "~1.3.5" @@ -1342,17 +1333,17 @@ compression@^1.7.4: computeds@^0.0.1: version "0.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/computeds/-/computeds-0.0.1.tgz#215b08a4ba3e08a11ff6eee5d6d8d7166a97ce2e" + resolved "https://registry.npmmirror.com/computeds/-/computeds-0.0.1.tgz" integrity sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q== concat-map@0.0.1: version "0.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + resolved "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== concat-stream@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" + resolved "https://registry.npmmirror.com/concat-stream/-/concat-stream-2.0.0.tgz" integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== dependencies: buffer-from "^1.0.0" @@ -1362,39 +1353,39 @@ concat-stream@^2.0.0: content-disposition@0.5.4: version "0.5.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + resolved "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz" integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== dependencies: safe-buffer "5.2.1" content-type@~1.0.4, content-type@~1.0.5: version "1.0.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" + resolved "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz" integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== cookie-signature@1.0.6: version "1.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + resolved "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz" integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== cookie@0.6.0: version "0.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" + resolved "https://registry.npmmirror.com/cookie/-/cookie-0.6.0.tgz" integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== core-util-is@~1.0.0: version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + resolved "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz" integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== crc-32@^1.2.0: version "1.2.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" + resolved "https://registry.npmmirror.com/crc-32/-/crc-32-1.2.2.tgz" integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== crc32-stream@^4.0.2: version "4.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/crc32-stream/-/crc32-stream-4.0.3.tgz#85dd677eb78fa7cad1ba17cc506a597d41fc6f33" + resolved "https://registry.npmmirror.com/crc32-stream/-/crc32-stream-4.0.3.tgz" integrity sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw== dependencies: crc-32 "^1.2.0" @@ -1402,7 +1393,7 @@ crc32-stream@^4.0.2: cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + resolved "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: path-key "^3.1.0" @@ -1411,48 +1402,48 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: cssesc@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + resolved "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== csstype@^3.1.3: version "3.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" + resolved "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== de-indent@^1.0.2: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" + resolved "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz" integrity sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg== -debug@2.6.9: - version "2.6.9" - resolved "https://mirrors.huaweicloud.com/repository/npm/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: version "4.3.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + resolved "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz" integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== dependencies: ms "^2.1.3" +debug@2.6.9: + version "2.6.9" + resolved "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + deep-is@^0.1.3: version "0.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + resolved "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== defaults@^1.0.3: version "1.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" + resolved "https://registry.npmmirror.com/defaults/-/defaults-1.0.4.tgz" integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== dependencies: clone "^1.0.2" define-data-property@^1.1.4: version "1.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + resolved "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz" integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== dependencies: es-define-property "^1.0.0" @@ -1461,41 +1452,41 @@ define-data-property@^1.1.4: define-lazy-prop@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" + resolved "https://registry.npmmirror.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz" integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== delayed-stream@~1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + resolved "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== depd@2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + resolved "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== destroy@1.2.0: version "1.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + resolved "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== dir-glob@^3.0.1: version "3.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + resolved "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz" integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== dependencies: path-type "^4.0.0" doctrine@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + resolved "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz" integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: esutils "^2.0.2" dot-case@^3.0.4: version "3.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751" + resolved "https://registry.npmmirror.com/dot-case/-/dot-case-3.0.4.tgz" integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w== dependencies: no-case "^3.0.4" @@ -1503,280 +1494,85 @@ dot-case@^3.0.4: dot-prop@6.0.1: version "6.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" + resolved "https://registry.npmmirror.com/dot-prop/-/dot-prop-6.0.1.tgz" integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== dependencies: is-obj "^2.0.0" dotenv@^16.4.5: version "16.4.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f" + resolved "https://registry.npmmirror.com/dotenv/-/dotenv-16.4.5.tgz" integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg== earcut@^2.2.4: version "2.2.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/earcut/-/earcut-2.2.4.tgz#6d02fd4d68160c114825d06890a92ecaae60343a" + resolved "https://registry.npmmirror.com/earcut/-/earcut-2.2.4.tgz" integrity sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ== ee-first@1.1.1: version "1.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + resolved "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== electron-to-chromium@^1.5.4: - version "1.5.27" - resolved "https://mirrors.huaweicloud.com/repository/npm/electron-to-chromium/-/electron-to-chromium-1.5.27.tgz#5203ce5d6054857d84ba84d3681cbe59132ade78" - integrity sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw== + version "1.5.20" + resolved "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.20.tgz" + integrity sha512-74mdl6Fs1HHzK9SUX4CKFxAtAe3nUns48y79TskHNAG6fGOlLfyKA4j855x+0b5u8rWJIrlaG9tcTPstMlwjIw== elementtree@0.1.7: version "0.1.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/elementtree/-/elementtree-0.1.7.tgz#9ac91be6e52fb6e6244c4e54a4ac3ed8ae8e29c0" + resolved "https://registry.npmmirror.com/elementtree/-/elementtree-0.1.7.tgz" integrity sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg== dependencies: sax "1.1.4" emoji-regex@^8.0.0: version "8.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + resolved "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== encodeurl@~1.0.2: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + resolved "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz" integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== encodeurl@~2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" + resolved "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz" integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== end-of-stream@^1.4.1: version "1.4.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + resolved "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.4.tgz" integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== dependencies: once "^1.4.0" entities@^4.4.0, entities@^4.5.0: version "4.5.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + resolved "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz" integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== es-define-property@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + resolved "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.0.tgz" integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== dependencies: get-intrinsic "^1.2.4" es-errors@^1.3.0: version "1.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + resolved "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -esbuild-android-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-android-64/-/esbuild-android-64-0.14.51.tgz#414a087cb0de8db1e347ecca6c8320513de433db" - integrity sha512-6FOuKTHnC86dtrKDmdSj2CkcKF8PnqkaIXqvgydqfJmqBazCPdw+relrMlhGjkvVdiiGV70rpdnyFmA65ekBCQ== - -esbuild-android-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz#505f41832884313bbaffb27704b8bcaa2d8616be" - integrity sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ== - -esbuild-android-arm64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-android-arm64/-/esbuild-android-arm64-0.14.51.tgz#55de3bce2aab72bcd2b606da4318ad00fb9c8151" - integrity sha512-vBtp//5VVkZWmYYvHsqBRCMMi1MzKuMIn5XDScmnykMTu9+TD9v0NMEDqQxvtFToeYmojdo5UCV2vzMQWJcJ4A== - -esbuild-android-arm64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz#8ce69d7caba49646e009968fe5754a21a9871771" - integrity sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg== - -esbuild-darwin-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-darwin-64/-/esbuild-darwin-64-0.14.51.tgz#4259f23ed6b4cea2ec8a28d87b7fb9801f093754" - integrity sha512-YFmXPIOvuagDcwCejMRtCDjgPfnDu+bNeh5FU2Ryi68ADDVlWEpbtpAbrtf/lvFTWPexbgyKgzppNgsmLPr8PA== - -esbuild-darwin-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz#24ba67b9a8cb890a3c08d9018f887cc221cdda25" - integrity sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug== - -esbuild-darwin-arm64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.51.tgz#d77b4366a71d84e530ba019d540b538b295d494a" - integrity sha512-juYD0QnSKwAMfzwKdIF6YbueXzS6N7y4GXPDeDkApz/1RzlT42mvX9jgNmyOlWKN7YzQAYbcUEJmZJYQGdf2ow== - -esbuild-darwin-arm64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz#3f7cdb78888ee05e488d250a2bdaab1fa671bf73" - integrity sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw== - -esbuild-freebsd-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.51.tgz#27b6587b3639f10519c65e07219d249b01f2ad38" - integrity sha512-cLEI/aXjb6vo5O2Y8rvVSQ7smgLldwYY5xMxqh/dQGfWO+R1NJOFsiax3IS4Ng300SVp7Gz3czxT6d6qf2cw0g== - -esbuild-freebsd-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz#09250f997a56ed4650f3e1979c905ffc40bbe94d" - integrity sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg== - -esbuild-freebsd-arm64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.51.tgz#63c435917e566808c71fafddc600aca4d78be1ec" - integrity sha512-TcWVw/rCL2F+jUgRkgLa3qltd5gzKjIMGhkVybkjk6PJadYInPtgtUBp1/hG+mxyigaT7ib+od1Xb84b+L+1Mg== - -esbuild-freebsd-arm64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz#bafb46ed04fc5f97cbdb016d86947a79579f8e48" - integrity sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q== - -esbuild-linux-32@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-32/-/esbuild-linux-32-0.14.51.tgz#c3da774143a37e7f11559b9369d98f11f997a5d9" - integrity sha512-RFqpyC5ChyWrjx8Xj2K0EC1aN0A37H6OJfmUXIASEqJoHcntuV3j2Efr9RNmUhMfNE6yEj2VpYuDteZLGDMr0w== - -esbuild-linux-32@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz#e2a8c4a8efdc355405325033fcebeb941f781fe5" - integrity sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw== - -esbuild-linux-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-64/-/esbuild-linux-64-0.14.51.tgz#5d92b67f674e02ae0b4a9de9a757ba482115c4ae" - integrity sha512-dxjhrqo5i7Rq6DXwz5v+MEHVs9VNFItJmHBe1CxROWNf4miOGoQhqSG8StStbDkQ1Mtobg6ng+4fwByOhoQoeA== - -esbuild-linux-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz#de5fdba1c95666cf72369f52b40b03be71226652" - integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg== - -esbuild-linux-arm64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.51.tgz#dac84740516e859d8b14e1ecc478dd5241b10c93" - integrity sha512-D9rFxGutoqQX3xJPxqd6o+kvYKeIbM0ifW2y0bgKk5HPgQQOo2k9/2Vpto3ybGYaFPCE5qTGtqQta9PoP6ZEzw== - -esbuild-linux-arm64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz#dae4cd42ae9787468b6a5c158da4c84e83b0ce8b" - integrity sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig== - -esbuild-linux-arm@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-arm/-/esbuild-linux-arm-0.14.51.tgz#b3ae7000696cd53ed95b2b458554ff543a60e106" - integrity sha512-LsJynDxYF6Neg7ZC7748yweCDD+N8ByCv22/7IAZglIEniEkqdF4HCaa49JNDLw1UQGlYuhOB8ZT/MmcSWzcWg== - -esbuild-linux-arm@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz#a2c1dff6d0f21dbe8fc6998a122675533ddfcd59" - integrity sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw== - -esbuild-linux-mips64le@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.51.tgz#dad10770fac94efa092b5a0643821c955a9dd385" - integrity sha512-vS54wQjy4IinLSlb5EIlLoln8buh1yDgliP4CuEHumrPk4PvvP4kTRIG4SzMXm6t19N0rIfT4bNdAxzJLg2k6A== - -esbuild-linux-mips64le@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz#d9918e9e4cb972f8d6dae8e8655bf9ee131eda34" - integrity sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw== - -esbuild-linux-ppc64le@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.51.tgz#b68c2f8294d012a16a88073d67e976edd4850ae0" - integrity sha512-xcdd62Y3VfGoyphNP/aIV9LP+RzFw5M5Z7ja+zdpQHHvokJM7d0rlDRMN+iSSwvUymQkqZO+G/xjb4/75du8BQ== - -esbuild-linux-ppc64le@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz#3f9a0f6d41073fb1a640680845c7de52995f137e" - integrity sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ== - -esbuild-linux-riscv64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.51.tgz#608a318b8697123e44c1e185cdf6708e3df50b93" - integrity sha512-syXHGak9wkAnFz0gMmRBoy44JV0rp4kVCEA36P5MCeZcxFq8+fllBC2t6sKI23w3qd8Vwo9pTADCgjTSf3L3rA== - -esbuild-linux-riscv64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz#618853c028178a61837bc799d2013d4695e451c8" - integrity sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg== - -esbuild-linux-s390x@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.51.tgz#c9e7791170a3295dba79b93aa452beb9838a8625" - integrity sha512-kFAJY3dv+Wq8o28K/C7xkZk/X34rgTwhknSsElIqoEo8armCOjMJ6NsMxm48KaWY2h2RUYGtQmr+RGuUPKBhyw== - -esbuild-linux-s390x@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz#d1885c4c5a76bbb5a0fe182e2c8c60eb9e29f2a6" - integrity sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA== - -esbuild-netbsd-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.51.tgz#0abd40b8c2e37fda6f5cc41a04cb2b690823d891" - integrity sha512-ZZBI7qrR1FevdPBVHz/1GSk1x5GDL/iy42Zy8+neEm/HA7ma+hH/bwPEjeHXKWUDvM36CZpSL/fn1/y9/Hb+1A== - -esbuild-netbsd-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz#69ae917a2ff241b7df1dbf22baf04bd330349e81" - integrity sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w== - -esbuild-openbsd-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.51.tgz#4adba0b7ea7eb1428bb00d8e94c199a949b130e8" - integrity sha512-7R1/p39M+LSVQVgDVlcY1KKm6kFKjERSX1lipMG51NPcspJD1tmiZSmmBXoY5jhHIu6JL1QkFDTx94gMYK6vfA== - -esbuild-openbsd-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz#db4c8495287a350a6790de22edea247a57c5d47b" - integrity sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw== - -esbuild-sunos-64@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-sunos-64/-/esbuild-sunos-64-0.14.51.tgz#4b8a6d97dfedda30a6e39607393c5c90ebf63891" - integrity sha512-HoHaCswHxLEYN8eBTtyO0bFEWvA3Kdb++hSQ/lLG7TyKF69TeSG0RNoBRAs45x/oCeWaTDntEZlYwAfQlhEtJA== - -esbuild-sunos-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz#54287ee3da73d3844b721c21bc80c1dc7e1bf7da" - integrity sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw== - -esbuild-windows-32@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-32/-/esbuild-windows-32-0.14.51.tgz#d31d8ca0c1d314fb1edea163685a423b62e9ac17" - integrity sha512-4rtwSAM35A07CBt1/X8RWieDj3ZUHQqUOaEo5ZBs69rt5WAFjP4aqCIobdqOy4FdhYw1yF8Z0xFBTyc9lgPtEg== - -esbuild-windows-32@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz#f8aaf9a5667630b40f0fb3aa37bf01bbd340ce31" - integrity sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w== - esbuild-windows-64@0.14.51: version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-64/-/esbuild-windows-64-0.14.51.tgz#7d3c09c8652d222925625637bdc7e6c223e0085d" + resolved "https://registry.npmmirror.com/esbuild-windows-64/-/esbuild-windows-64-0.14.51.tgz" integrity sha512-HoN/5HGRXJpWODprGCgKbdMvrC3A2gqvzewu2eECRw2sYxOUoh2TV1tS+G7bHNapPGI79woQJGV6pFH7GH7qnA== -esbuild-windows-64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz#bf54b51bd3e9b0f1886ffdb224a4176031ea0af4" - integrity sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ== - -esbuild-windows-arm64@0.14.51: +esbuild@^0.14.27, esbuild@0.14.51: version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.51.tgz#0220d2304bfdc11bc27e19b2aaf56edf183e4ae9" - integrity sha512-JQDqPjuOH7o+BsKMSddMfmVJXrnYZxXDHsoLHc0xgmAZkOOCflRmC43q31pk79F9xuyWY45jDBPolb5ZgGOf9g== - -esbuild-windows-arm64@0.14.54: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz#937d15675a15e4b0e4fafdbaa3a01a776a2be982" - integrity sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg== - -esbuild@0.14.51: - version "0.14.51" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild/-/esbuild-0.14.51.tgz#1c8ecbc8db3710da03776211dc3ee3448f7aa51e" + resolved "https://registry.npmmirror.com/esbuild/-/esbuild-0.14.51.tgz" integrity sha512-+CvnDitD7Q5sT7F+FM65sWkF8wJRf+j9fPcprxYV4j+ohmzVj2W7caUqH2s5kCaCJAfcAICjSlKhDCcvDpU7nw== optionalDependencies: esbuild-android-64 "0.14.51" @@ -1800,61 +1596,34 @@ esbuild@0.14.51: esbuild-windows-64 "0.14.51" esbuild-windows-arm64 "0.14.51" -esbuild@^0.14.27: - version "0.14.54" - resolved "https://mirrors.huaweicloud.com/repository/npm/esbuild/-/esbuild-0.14.54.tgz#8b44dcf2b0f1a66fc22459943dccf477535e9aa2" - integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA== - optionalDependencies: - "@esbuild/linux-loong64" "0.14.54" - esbuild-android-64 "0.14.54" - esbuild-android-arm64 "0.14.54" - esbuild-darwin-64 "0.14.54" - esbuild-darwin-arm64 "0.14.54" - esbuild-freebsd-64 "0.14.54" - esbuild-freebsd-arm64 "0.14.54" - esbuild-linux-32 "0.14.54" - esbuild-linux-64 "0.14.54" - esbuild-linux-arm "0.14.54" - esbuild-linux-arm64 "0.14.54" - esbuild-linux-mips64le "0.14.54" - esbuild-linux-ppc64le "0.14.54" - esbuild-linux-riscv64 "0.14.54" - esbuild-linux-s390x "0.14.54" - esbuild-netbsd-64 "0.14.54" - esbuild-openbsd-64 "0.14.54" - esbuild-sunos-64 "0.14.54" - esbuild-windows-32 "0.14.54" - esbuild-windows-64 "0.14.54" - esbuild-windows-arm64 "0.14.54" - escalade@^3.1.1, escalade@^3.1.2: version "3.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + resolved "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz" integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-html@~1.0.3: version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + resolved "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== escape-string-regexp@^1.0.5: version "1.0.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== escape-string-regexp@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== eslint-config-prettier@^8.1.0: version "8.10.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11" + resolved "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz" integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg== eslint-plugin-vue@^9.0.0: version "9.28.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/eslint-plugin-vue/-/eslint-plugin-vue-9.28.0.tgz#e4412f0c1024bafd15ffeaa6f76f4c99152e2765" + resolved "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-9.28.0.tgz" integrity sha512-ShrihdjIhOTxs+MfWun6oJWuk+g/LAhN+CiuOl/jjkG3l0F2AuK5NMTaWqyvBgkFtpYmyks6P4603mLmhNJW8g== dependencies: "@eslint-community/eslint-utils" "^4.4.0" @@ -1868,7 +1637,7 @@ eslint-plugin-vue@^9.0.0: eslint-scope@^7.1.1, eslint-scope@^7.2.2: version "7.2.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + resolved "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz" integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== dependencies: esrecurse "^4.3.0" @@ -1876,19 +1645,19 @@ eslint-scope@^7.1.1, eslint-scope@^7.2.2: eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: version "3.4.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + resolved "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@^8.57.0: - version "8.57.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9" - integrity sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA== +"eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", eslint@^8.11.0, eslint@^8.56.0, eslint@^8.57.0, eslint@>=6.0.0, eslint@>=7, eslint@>=7.0.0: + version "8.57.0" + resolved "https://registry.npmmirror.com/eslint/-/eslint-8.57.0.tgz" + integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" "@eslint/eslintrc" "^2.1.4" - "@eslint/js" "8.57.1" - "@humanwhocodes/config-array" "^0.13.0" + "@eslint/js" "8.57.0" + "@humanwhocodes/config-array" "^0.11.14" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" "@ungap/structured-clone" "^1.2.0" @@ -1925,7 +1694,7 @@ eslint@^8.57.0: espree@^9.3.1, espree@^9.6.0, espree@^9.6.1: version "9.6.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + resolved "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz" integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== dependencies: acorn "^8.9.0" @@ -1934,56 +1703,56 @@ espree@^9.3.1, espree@^9.6.0, espree@^9.6.1: esquery@^1.4.0, esquery@^1.4.2: version "1.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" + resolved "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz" integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== dependencies: estraverse "^5.1.0" esrecurse@^4.3.0: version "4.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + resolved "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz" integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== dependencies: estraverse "^5.2.0" estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + resolved "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== estree-walker@^2.0.1, estree-walker@^2.0.2: version "2.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + resolved "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz" integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== esutils@^2.0.2: version "2.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + resolved "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== etag@~1.8.1: version "1.8.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + resolved "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== event-target-shim@^5.0.0: version "5.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" + resolved "https://registry.npmmirror.com/event-target-shim/-/event-target-shim-5.0.1.tgz" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== eventemitter3@^4.0.0: version "4.0.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + resolved "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== events@^3.3.0: version "3.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + resolved "https://registry.npmmirror.com/events/-/events-3.3.0.tgz" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== express@^4.17.3: version "4.21.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/express/-/express-4.21.0.tgz#d57cb706d49623d4ac27833f1cbc466b668eb915" + resolved "https://registry.npmmirror.com/express/-/express-4.21.0.tgz" integrity sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng== dependencies: accepts "~1.3.8" @@ -2020,7 +1789,7 @@ express@^4.17.3: external-editor@^3.0.3: version "3.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + resolved "https://registry.npmmirror.com/external-editor/-/external-editor-3.1.0.tgz" integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== dependencies: chardet "^0.7.0" @@ -2029,12 +1798,12 @@ external-editor@^3.0.3: fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + resolved "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-glob@3.2.12: +fast-glob@^3.2.7, fast-glob@^3.2.9, fast-glob@3.2.12: version "3.2.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" + resolved "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.2.12.tgz" integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== dependencies: "@nodelib/fs.stat" "^2.0.2" @@ -2043,30 +1812,19 @@ fast-glob@3.2.12: merge2 "^1.3.0" micromatch "^4.0.4" -fast-glob@^3.2.7, fast-glob@^3.2.9: - version "3.3.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" - integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - fast-json-stable-stringify@^2.0.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + resolved "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fast-levenshtein@^2.0.6: version "2.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + resolved "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== fast-unique-numbers@^8.0.13: version "8.0.13" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-unique-numbers/-/fast-unique-numbers-8.0.13.tgz#3c87232061ff5f408a216e1f0121232f76f695d7" + resolved "https://registry.npmmirror.com/fast-unique-numbers/-/fast-unique-numbers-8.0.13.tgz" integrity sha512-7OnTFAVPefgw2eBJ1xj2PGGR9FwYzSUso9decayHgCDX4sJkHLdcsYTytTg+tYv+wKF3U8gJuSBz2jJpQV4u/g== dependencies: "@babel/runtime" "^7.23.8" @@ -2074,40 +1832,40 @@ fast-unique-numbers@^8.0.13: fast-uri@^3.0.1: version "3.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/fast-uri/-/fast-uri-3.0.1.tgz#cddd2eecfc83a71c1be2cc2ef2061331be8a7134" + resolved "https://registry.npmmirror.com/fast-uri/-/fast-uri-3.0.1.tgz" integrity sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw== fastq@^1.6.0: version "1.17.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + resolved "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz" integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== dependencies: reusify "^1.0.4" figures@^3.0.0: version "3.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + resolved "https://registry.npmmirror.com/figures/-/figures-3.2.0.tgz" integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== dependencies: escape-string-regexp "^1.0.5" file-entry-cache@^6.0.1: version "6.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + resolved "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz" integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: flat-cache "^3.0.4" fill-range@^7.1.1: version "7.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + resolved "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz" integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== dependencies: to-regex-range "^5.0.1" finalhandler@1.3.1: version "1.3.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/finalhandler/-/finalhandler-1.3.1.tgz#0c575f1d1d324ddd1da35ad7ece3df7d19088019" + resolved "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.3.1.tgz" integrity sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ== dependencies: debug "2.6.9" @@ -2120,7 +1878,7 @@ finalhandler@1.3.1: find-up@^5.0.0: version "5.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + resolved "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz" integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== dependencies: locate-path "^6.0.0" @@ -2128,7 +1886,7 @@ find-up@^5.0.0: flat-cache@^3.0.4: version "3.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" + resolved "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz" integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== dependencies: flatted "^3.2.9" @@ -2137,22 +1895,22 @@ flat-cache@^3.0.4: flat@^5.0.2: version "5.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + resolved "https://registry.npmmirror.com/flat/-/flat-5.0.2.tgz" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== flatted@^3.2.9: version "3.3.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" + resolved "https://registry.npmmirror.com/flatted/-/flatted-3.3.1.tgz" integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== follow-redirects@^1.15.6: version "1.15.9" - resolved "https://mirrors.huaweicloud.com/repository/npm/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + resolved "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz" integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== form-data@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + resolved "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz" integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== dependencies: asynckit "^0.4.0" @@ -2161,27 +1919,27 @@ form-data@^4.0.0: forwarded@0.2.0: version "0.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + resolved "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz" integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== fraction.js@^4.3.7: version "4.3.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" + resolved "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.7.tgz" integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== fresh@0.5.2: version "0.5.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + resolved "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== fs-constants@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + resolved "https://registry.npmmirror.com/fs-constants/-/fs-constants-1.0.0.tgz" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== fs-extra@^11.1.0: version "11.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b" + resolved "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.2.0.tgz" integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw== dependencies: graceful-fs "^4.2.0" @@ -2190,27 +1948,22 @@ fs-extra@^11.1.0: fs.realpath@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + resolved "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@~2.3.2: - version "2.3.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + resolved "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== get-caller-file@^2.0.5: version "2.0.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + resolved "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: version "1.2.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + resolved "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz" integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== dependencies: es-errors "^1.3.0" @@ -2221,21 +1974,21 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: is-glob "^4.0.1" glob-parent@^6.0.2: version "6.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz" integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== dependencies: is-glob "^4.0.3" glob@^7.1.3, glob@^7.1.4, glob@^7.2.3: version "7.2.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + resolved "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== dependencies: fs.realpath "^1.0.0" @@ -2247,14 +2000,14 @@ glob@^7.1.3, glob@^7.1.4, glob@^7.2.3: globals@^13.19.0, globals@^13.24.0: version "13.24.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" + resolved "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz" integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== dependencies: type-fest "^0.20.2" globby@^11.1.0: version "11.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + resolved "https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== dependencies: array-union "^2.1.0" @@ -2266,73 +2019,73 @@ globby@^11.1.0: google-protobuf@^3.21.4: version "3.21.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/google-protobuf/-/google-protobuf-3.21.4.tgz#2f933e8b6e5e9f8edde66b7be0024b68f77da6c9" + resolved "https://registry.npmmirror.com/google-protobuf/-/google-protobuf-3.21.4.tgz" integrity sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ== gopd@^1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + resolved "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz" integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== dependencies: get-intrinsic "^1.1.3" graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.11" - resolved "https://mirrors.huaweicloud.com/repository/npm/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + resolved "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== graphemer@^1.4.0: version "1.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + resolved "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz" integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== has-flag@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + resolved "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz" integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== has-flag@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + resolved "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== has-property-descriptors@^1.0.2: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + resolved "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz" integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== dependencies: es-define-property "^1.0.0" has-proto@^1.0.1: version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + resolved "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.3.tgz" integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== has-symbols@^1.0.3: version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + resolved "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== hasown@^2.0.0, hasown@^2.0.2: version "2.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + resolved "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== dependencies: function-bind "^1.1.2" he@^1.2.0: version "1.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + resolved "https://registry.npmmirror.com/he/-/he-1.2.0.tgz" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== help-me@^5.0.0: version "5.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/help-me/-/help-me-5.0.0.tgz#b1ebe63b967b74060027c2ac61f9be12d354a6f6" + resolved "https://registry.npmmirror.com/help-me/-/help-me-5.0.0.tgz" integrity sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg== html-minifier-terser@^7.2.0: version "7.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/html-minifier-terser/-/html-minifier-terser-7.2.0.tgz#18752e23a2f0ed4b0f550f217bb41693e975b942" + resolved "https://registry.npmmirror.com/html-minifier-terser/-/html-minifier-terser-7.2.0.tgz" integrity sha512-tXgn3QfqPIpGl9o+K5tpcj3/MN4SfLtsx2GWwBC3SSd0tXQGyF3gsSqad8loJgKZGM3ZxbYDd5yhiBIdWpmvLA== dependencies: camel-case "^4.1.2" @@ -2345,7 +2098,7 @@ html-minifier-terser@^7.2.0: http-errors@2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + resolved "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz" integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== dependencies: depd "2.0.0" @@ -2354,31 +2107,31 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -iconv-lite@0.4.24, iconv-lite@^0.4.24: +iconv-lite@^0.4.24, iconv-lite@0.4.24: version "0.4.24" - resolved "https://mirrors.huaweicloud.com/repository/npm/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + resolved "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== dependencies: safer-buffer ">= 2.1.2 < 3" ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + resolved "https://registry.npmmirror.com/ieee754/-/ieee754-1.2.1.tgz" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== ignore@^5.2.0, ignore@^5.3.1: version "5.3.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" + resolved "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz" integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== immutable@^4.0.0: version "4.3.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381" + resolved "https://registry.npmmirror.com/immutable/-/immutable-4.3.7.tgz" integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw== import-fresh@^3.2.1: version "3.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + resolved "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== dependencies: parent-module "^1.0.0" @@ -2386,25 +2139,25 @@ import-fresh@^3.2.1: imurmurhash@^0.1.4: version "0.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + resolved "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== inflight@^1.0.4: version "1.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + resolved "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz" integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: +inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2, inherits@2.0.4: version "2.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + resolved "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== inquirer@^8.2.1: version "8.2.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/inquirer/-/inquirer-8.2.6.tgz#733b74888195d8d400a67ac332011b5fae5ea562" + resolved "https://registry.npmmirror.com/inquirer/-/inquirer-8.2.6.tgz" integrity sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg== dependencies: ansi-escapes "^4.2.1" @@ -2425,107 +2178,107 @@ inquirer@^8.2.1: ipaddr.js@1.9.1: version "1.9.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" + resolved "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== is-binary-path@~2.1.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + resolved "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz" integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== dependencies: binary-extensions "^2.0.0" is-core-module@^2.13.0: version "2.15.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + resolved "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.15.1.tgz" integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== dependencies: hasown "^2.0.2" is-docker@^2.0.0, is-docker@^2.1.1: version "2.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + resolved "https://registry.npmmirror.com/is-docker/-/is-docker-2.2.1.tgz" integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== is-extglob@^2.1.1: version "2.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + resolved "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== is-fullwidth-code-point@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + resolved "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + resolved "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: is-extglob "^2.1.1" is-interactive@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + resolved "https://registry.npmmirror.com/is-interactive/-/is-interactive-1.0.0.tgz" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== is-number@^7.0.0: version "7.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + resolved "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== is-obj@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + resolved "https://registry.npmmirror.com/is-obj/-/is-obj-2.0.0.tgz" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== is-path-inside@^3.0.3: version "3.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" + resolved "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== is-plain-object@^2.0.4: version "2.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + resolved "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz" integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== dependencies: isobject "^3.0.1" is-unicode-supported@^0.1.0: version "0.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + resolved "https://registry.npmmirror.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== is-wsl@^2.2.0: version "2.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + resolved "https://registry.npmmirror.com/is-wsl/-/is-wsl-2.2.0.tgz" integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== dependencies: is-docker "^2.0.0" isarray@~1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + resolved "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== isbinaryfile@^5.0.0: version "5.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/isbinaryfile/-/isbinaryfile-5.0.2.tgz#fe6e4dfe2e34e947ffa240c113444876ba393ae0" + resolved "https://registry.npmmirror.com/isbinaryfile/-/isbinaryfile-5.0.2.tgz" integrity sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg== isexe@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + resolved "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== ismobilejs@^1.1.0: version "1.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ismobilejs/-/ismobilejs-1.1.1.tgz#c56ca0ae8e52b24ca0f22ba5ef3215a2ddbbaa0e" + resolved "https://registry.npmmirror.com/ismobilejs/-/ismobilejs-1.1.1.tgz" integrity sha512-VaFW53yt8QO61k2WJui0dHf4SlL8lxBofUuUmwBo0ljPk0Drz2TiuDW4jo3wDcv41qy/SxrJ+VAzJ/qYqsmzRw== isobject@^3.0.1: version "3.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + resolved "https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== "jl-graphic@git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19": @@ -2541,49 +2294,49 @@ isobject@^3.0.1: js-base64@^3.7.5: version "3.7.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/js-base64/-/js-base64-3.7.7.tgz#e51b84bf78fbf5702b9541e2cb7bfcb893b43e79" + resolved "https://registry.npmmirror.com/js-base64/-/js-base64-3.7.7.tgz" integrity sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw== js-sdsl@4.3.0: version "4.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/js-sdsl/-/js-sdsl-4.3.0.tgz#aeefe32a451f7af88425b11fdb5f58c90ae1d711" + resolved "https://registry.npmmirror.com/js-sdsl/-/js-sdsl-4.3.0.tgz" integrity sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ== js-tokens@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== js-yaml@^4.1.0: version "4.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + resolved "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== dependencies: argparse "^2.0.1" json-buffer@3.0.1: version "3.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + resolved "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz" integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== json-schema-traverse@^0.4.1: version "0.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + resolved "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== json-schema-traverse@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + resolved "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + resolved "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== jsonfile@^6.0.1: version "6.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + resolved "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.1.0.tgz" integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== dependencies: universalify "^2.0.0" @@ -2592,31 +2345,31 @@ jsonfile@^6.0.1: keyv@^4.5.3: version "4.5.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + resolved "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz" integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== dependencies: json-buffer "3.0.1" kind-of@^6.0.2: version "6.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + resolved "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== kolorist@^1.5.1: version "1.8.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/kolorist/-/kolorist-1.8.0.tgz#edddbbbc7894bc13302cdf740af6374d4a04743c" + resolved "https://registry.npmmirror.com/kolorist/-/kolorist-1.8.0.tgz" integrity sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ== lazystream@^1.0.0: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/lazystream/-/lazystream-1.0.1.tgz#494c831062f1f9408251ec44db1cba29242a2638" + resolved "https://registry.npmmirror.com/lazystream/-/lazystream-1.0.1.tgz" integrity sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw== dependencies: readable-stream "^2.0.5" levn@^0.4.1: version "0.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + resolved "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz" integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: prelude-ls "^1.2.1" @@ -2624,54 +2377,54 @@ levn@^0.4.1: locate-path@^6.0.0: version "6.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + resolved "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz" integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== dependencies: p-locate "^5.0.0" lodash.defaults@^4.2.0: version "4.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" + resolved "https://registry.npmmirror.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz" integrity sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ== lodash.difference@^4.5.0: version "4.5.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.difference/-/lodash.difference-4.5.0.tgz#9ccb4e505d486b91651345772885a2df27fd017c" + resolved "https://registry.npmmirror.com/lodash.difference/-/lodash.difference-4.5.0.tgz" integrity sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA== lodash.flatten@^4.4.0: version "4.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" + resolved "https://registry.npmmirror.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz" integrity sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g== lodash.isplainobject@^4.0.6: version "4.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + resolved "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz" integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== lodash.merge@^4.6.2: version "4.6.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + resolved "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== lodash.truncate@^4.4.2: version "4.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + resolved "https://registry.npmmirror.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz" integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== lodash.union@^4.6.0: version "4.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" + resolved "https://registry.npmmirror.com/lodash.union/-/lodash.union-4.6.0.tgz" integrity sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw== lodash@^4.17.21: version "4.17.21" - resolved "https://mirrors.huaweicloud.com/repository/npm/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-symbols@^4.1.0: version "4.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + resolved "https://registry.npmmirror.com/log-symbols/-/log-symbols-4.1.0.tgz" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== dependencies: chalk "^4.1.0" @@ -2679,107 +2432,128 @@ log-symbols@^4.1.0: lower-case@^2.0.2: version "2.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" + resolved "https://registry.npmmirror.com/lower-case/-/lower-case-2.0.2.tgz" integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg== dependencies: tslib "^2.0.3" lru-cache@^10.0.1: version "10.4.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + resolved "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz" integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== magic-string@^0.30.11: version "0.30.11" - resolved "https://mirrors.huaweicloud.com/repository/npm/magic-string/-/magic-string-0.30.11.tgz#301a6f93b3e8c2cb13ac1a7a673492c0dfd12954" + resolved "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.11.tgz" integrity sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A== dependencies: "@jridgewell/sourcemap-codec" "^1.5.0" media-typer@0.3.0: version "0.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + resolved "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz" integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== merge-descriptors@1.0.3: version "1.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" + resolved "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz" integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + resolved "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== methods@~1.1.2: version "1.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + resolved "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz" integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== micromatch@^4.0.4: version "4.0.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + resolved "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz" integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" -mime-db@1.52.0: - version "1.52.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - "mime-db@>= 1.43.0 < 2": version "1.53.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447" + resolved "https://registry.npmmirror.com/mime-db/-/mime-db-1.53.0.tgz" integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + mime-types@^2.1.12, mime-types@~2.1.24, mime-types@~2.1.34: version "2.1.35" - resolved "https://mirrors.huaweicloud.com/repository/npm/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + resolved "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: mime-db "1.52.0" mime@1.6.0: version "1.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + resolved "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== mimic-fn@^2.1.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + resolved "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-2.1.0.tgz" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.4: version "3.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^3.0.5: + version "3.1.2" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^3.1.1: + version "3.1.2" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" minimatch@^5.1.0: version "5.1.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-5.1.6.tgz" integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== dependencies: brace-expansion "^2.0.1" minimatch@^9.0.3, minimatch@^9.0.4: version "9.0.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz" integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== dependencies: brace-expansion "^2.0.1" minimist@^1.2.6, minimist@^1.2.8: version "1.2.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + resolved "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== mqtt-packet@^9.0.0: version "9.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/mqtt-packet/-/mqtt-packet-9.0.0.tgz#fd841854d8c0f1f5211b00de388c4ced45b59216" + resolved "https://registry.npmmirror.com/mqtt-packet/-/mqtt-packet-9.0.0.tgz" integrity sha512-8v+HkX+fwbodsWAZIZTI074XIoxVBOmPeggQuDFCGg1SqNcC+uoRMWu7J6QlJPqIUIJXmjNYYHxBBLr1Y/Df4w== dependencies: bl "^6.0.8" @@ -2788,7 +2562,7 @@ mqtt-packet@^9.0.0: mqtt@^5.2.1: version "5.10.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/mqtt/-/mqtt-5.10.1.tgz#d4f45ffdd825bad331c18f08796a744dabbe16de" + resolved "https://registry.npmmirror.com/mqtt/-/mqtt-5.10.1.tgz" integrity sha512-hXCOki8sANoQ7w+2OzJzg6qMBxTtrH9RlnVNV8panLZgnl+Gh0J/t4k6r8Az8+C7y3KAcyXtn0mmLixyUom8Sw== dependencies: "@types/readable-stream" "^4.0.5" @@ -2808,44 +2582,44 @@ mqtt@^5.2.1: worker-timers "^7.1.4" ws "^8.17.1" +ms@^2.1.3, ms@2.1.3: + version "2.1.3" + resolved "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + ms@2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + resolved "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz" integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== -ms@2.1.3, ms@^2.1.3: - version "2.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - muggle-string@^0.4.1: version "0.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/muggle-string/-/muggle-string-0.4.1.tgz#3b366bd43b32f809dc20659534dd30e7c8a0d328" + resolved "https://registry.npmmirror.com/muggle-string/-/muggle-string-0.4.1.tgz" integrity sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ== mute-stream@0.0.8: version "0.0.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + resolved "https://registry.npmmirror.com/mute-stream/-/mute-stream-0.0.8.tgz" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== nanoid@^3.3.7: version "3.3.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + resolved "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz" integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== natural-compare@^1.4.0: version "1.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + resolved "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== negotiator@0.6.3: version "0.6.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + resolved "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== no-case@^3.0.4: version "3.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" + resolved "https://registry.npmmirror.com/no-case/-/no-case-3.0.4.tgz" integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg== dependencies: lower-case "^2.0.2" @@ -2853,36 +2627,36 @@ no-case@^3.0.4: node-releases@^2.0.18: version "2.0.18" - resolved "https://mirrors.huaweicloud.com/repository/npm/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + resolved "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.18.tgz" integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + resolved "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== normalize-range@^0.1.2: version "0.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + resolved "https://registry.npmmirror.com/normalize-range/-/normalize-range-0.1.2.tgz" integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== npm-run-path@^4.0.1: version "4.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + resolved "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-4.0.1.tgz" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== dependencies: path-key "^3.0.0" nth-check@^2.1.1: version "2.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" + resolved "https://registry.npmmirror.com/nth-check/-/nth-check-2.1.1.tgz" integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== dependencies: boolbase "^1.0.0" number-allocator@^1.0.14: version "1.0.14" - resolved "https://mirrors.huaweicloud.com/repository/npm/number-allocator/-/number-allocator-1.0.14.tgz#1f2e32855498a7740dcc8c78bed54592d930ee4d" + resolved "https://registry.npmmirror.com/number-allocator/-/number-allocator-1.0.14.tgz" integrity sha512-OrL44UTVAvkKdOdRQZIJpLkAdjXGTRda052sN4sO77bKEzYYqWKMBjQvrJFzqygI99gL6Z4u2xctPW1tB8ErvA== dependencies: debug "^4.3.1" @@ -2890,47 +2664,47 @@ number-allocator@^1.0.14: object-inspect@^1.13.1: version "1.13.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" + resolved "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.2.tgz" integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g== on-finished@2.4.1: version "2.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + resolved "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz" integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== dependencies: ee-first "1.1.1" on-headers@~1.0.2: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" + resolved "https://registry.npmmirror.com/on-headers/-/on-headers-1.0.2.tgz" integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== once@^1.3.0, once@^1.4.0: version "1.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + resolved "https://registry.npmmirror.com/once/-/once-1.4.0.tgz" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" onetime@^5.1.0: version "5.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + resolved "https://registry.npmmirror.com/onetime/-/onetime-5.1.2.tgz" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" open@^8.4.0: version "8.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" + resolved "https://registry.npmmirror.com/open/-/open-8.4.2.tgz" integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== dependencies: define-lazy-prop "^2.0.0" is-docker "^2.1.1" is-wsl "^2.2.0" -optionator@^0.9.3: +optionator@^0.9.1, optionator@^0.9.3: version "0.9.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" + resolved "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz" integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== dependencies: deep-is "^0.1.3" @@ -2942,7 +2716,7 @@ optionator@^0.9.3: ora@^5.4.1: version "5.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + resolved "https://registry.npmmirror.com/ora/-/ora-5.4.1.tgz" integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== dependencies: bl "^4.1.0" @@ -2957,26 +2731,26 @@ ora@^5.4.1: os-tmpdir@~1.0.2: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + resolved "https://registry.npmmirror.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz" integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== p-limit@^3.0.2: version "3.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + resolved "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== dependencies: yocto-queue "^0.1.0" p-locate@^5.0.0: version "5.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + resolved "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz" integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== dependencies: p-limit "^3.0.2" param-case@^3.0.4: version "3.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5" + resolved "https://registry.npmmirror.com/param-case/-/param-case-3.0.4.tgz" integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== dependencies: dot-case "^3.0.4" @@ -2984,19 +2758,19 @@ param-case@^3.0.4: parent-module@^1.0.0: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + resolved "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz" integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== dependencies: callsites "^3.0.0" parseurl@~1.3.3: version "1.3.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + resolved "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== pascal-case@^3.1.2: version "3.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb" + resolved "https://registry.npmmirror.com/pascal-case/-/pascal-case-3.1.2.tgz" integrity sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g== dependencies: no-case "^3.0.4" @@ -3004,52 +2778,52 @@ pascal-case@^3.1.2: path-browserify@^1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" + resolved "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== path-exists@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + resolved "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz" integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== path-is-absolute@^1.0.0: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + resolved "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + resolved "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== path-parse@^1.0.7: version "1.0.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + resolved "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== path-to-regexp@0.1.10: version "0.1.10" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-to-regexp/-/path-to-regexp-0.1.10.tgz#67e9108c5c0551b9e5326064387de4763c4d5f8b" + resolved "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.10.tgz" integrity sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w== path-type@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + resolved "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -picocolors@^1.0.0, picocolors@^1.0.1, picocolors@^1.1.0: +picocolors@^1.0.0, picocolors@^1.0.1: version "1.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + resolved "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.0.tgz" integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.3.1: version "2.3.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + resolved "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pinia@^2.0.11: +pinia@^2.0.0, pinia@^2.0.11: version "2.2.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/pinia/-/pinia-2.2.2.tgz#dcf576c9a778187d1542c5e6a9f8b8cd5b6aea14" + resolved "https://registry.npmmirror.com/pinia/-/pinia-2.2.2.tgz" integrity sha512-ja2XqFWZC36mupU4z1ZzxeTApV7DOw44cV4dhQ9sGwun+N89v/XP7+j7q6TanS1u1tdbK4r+1BUx7heMaIdagA== dependencies: "@vue/devtools-api" "^6.6.3" @@ -3057,12 +2831,12 @@ pinia@^2.0.11: pixi-viewport@^5.0.1: version "5.0.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/pixi-viewport/-/pixi-viewport-5.0.3.tgz#75708195f5913f3df2acf36a88da8dd323aa607a" + resolved "https://registry.npmmirror.com/pixi-viewport/-/pixi-viewport-5.0.3.tgz" integrity sha512-DGG7cg2vUltAiL2fanzYPLR+L6qBeoskPfbUXxN6CYKW+fkni5cF9J1t2WBTmyBnC3kVq3ATFE2KDi7zy2FY8A== pixi.js@^7.3.2: version "7.4.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/pixi.js/-/pixi.js-7.4.2.tgz#d0378706f3db6df9e3f8917e22be04a99559995c" + resolved "https://registry.npmmirror.com/pixi.js/-/pixi.js-7.4.2.tgz" integrity sha512-TifqgHGNofO7UCEbdZJOpUu7dUnpu4YZ0o76kfCqxDa4RS8ITc9zjECCbtalmuNXkVhSEZmBKQvE7qhHMqw/xg== dependencies: "@pixi/accessibility" "7.4.2" @@ -3098,7 +2872,7 @@ pixi.js@^7.3.2: postcss-selector-parser@^6.0.15: version "6.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de" + resolved "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz" integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg== dependencies: cssesc "^3.0.0" @@ -3106,41 +2880,41 @@ postcss-selector-parser@^6.0.15: postcss-value-parser@^4.2.0: version "4.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@^8.4.13, postcss@^8.4.47: - version "8.4.47" - resolved "https://mirrors.huaweicloud.com/repository/npm/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" - integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== +postcss@^8.1.0, postcss@^8.4.13, postcss@^8.4.44: + version "8.4.45" + resolved "https://registry.npmmirror.com/postcss/-/postcss-8.4.45.tgz" + integrity sha512-7KTLTdzdZZYscUc65XmjFiB73vBhBfbPztCYdUNvlaso9PrzjzcmjqBPR0lNGkcVlcO4BjiO5rK/qNz+XAen1Q== dependencies: nanoid "^3.3.7" - picocolors "^1.1.0" - source-map-js "^1.2.1" + picocolors "^1.0.1" + source-map-js "^1.2.0" prelude-ls@^1.2.1: version "1.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + resolved "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== prettier@^2.5.1: version "2.8.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + resolved "https://registry.npmmirror.com/prettier/-/prettier-2.8.8.tgz" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== process-nextick-args@^2.0.1, process-nextick-args@~2.0.0: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + resolved "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== process@^0.11.10: version "0.11.10" - resolved "https://mirrors.huaweicloud.com/repository/npm/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + resolved "https://registry.npmmirror.com/process/-/process-0.11.10.tgz" integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== proxy-addr@~2.0.7: version "2.0.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + resolved "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz" integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== dependencies: forwarded "0.2.0" @@ -3148,51 +2922,51 @@ proxy-addr@~2.0.7: proxy-from-env@^1.1.0: version "1.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + resolved "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== punycode@^1.4.1: version "1.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + resolved "https://registry.npmmirror.com/punycode/-/punycode-1.4.1.tgz" integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== punycode@^2.1.0: version "2.3.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" + resolved "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== -qs@6.13.0, qs@^6.12.3: +qs@^6.12.3, qs@6.13.0: version "6.13.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" + resolved "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz" integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== dependencies: side-channel "^1.0.6" quasar@^2.16.0: - version "2.17.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/quasar/-/quasar-2.17.0.tgz#af92f90e8d6571479745eeb6bed20b1e0a40e789" - integrity sha512-xFWwCt4FGuaC0M4/MA5drjBiCP7kj/5BsUPv2+dDIlyQG9YGvKIewCnWYYt02r4ijRqJSzPb7TsH89Gzkno1Mg== + version "2.16.11" + resolved "https://registry.npmmirror.com/quasar/-/quasar-2.16.11.tgz" + integrity sha512-64C03WzZTRlJFvn0xNG3xmq/4R97lqbZAbzNE19ObNeYSUbJzQ8xi4ft5YQDRfTTIJ7RxB3pNye/dOSb11qoxQ== queue-microtask@^1.2.2: version "1.2.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + resolved "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== randombytes@^2.1.0: version "2.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + resolved "https://registry.npmmirror.com/randombytes/-/randombytes-2.1.0.tgz" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== dependencies: safe-buffer "^5.1.0" range-parser@~1.2.1: version "1.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + resolved "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== raw-body@2.5.2: version "2.5.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + resolved "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz" integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== dependencies: bytes "3.1.2" @@ -3200,9 +2974,22 @@ raw-body@2.5.2: iconv-lite "0.4.24" unpipe "1.0.0" -readable-stream@^2.0.0, readable-stream@^2.0.5: +readable-stream@^2.0.0: version "2.3.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz" + integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^2.0.5: + version "2.3.8" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== dependencies: core-util-is "~1.0.0" @@ -3215,16 +3002,27 @@ readable-stream@^2.0.0, readable-stream@^2.0.5: readable-stream@^3.0.2, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0: version "3.6.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== dependencies: inherits "^2.0.3" string_decoder "^1.1.1" util-deprecate "^1.0.1" -readable-stream@^4.2.0, readable-stream@^4.4.2: +readable-stream@^4.2.0: version "4.5.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/readable-stream/-/readable-stream-4.5.2.tgz#9e7fc4c45099baeed934bff6eb97ba6cf2729e09" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz" + integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g== + dependencies: + abort-controller "^3.0.0" + buffer "^6.0.3" + events "^3.3.0" + process "^0.11.10" + string_decoder "^1.3.0" + +readable-stream@^4.4.2: + version "4.5.2" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.5.2.tgz" integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g== dependencies: abort-controller "^3.0.0" @@ -3235,61 +3033,56 @@ readable-stream@^4.2.0, readable-stream@^4.4.2: readdir-glob@^1.1.2: version "1.1.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/readdir-glob/-/readdir-glob-1.1.3.tgz#c3d831f51f5e7bfa62fa2ffbe4b508c640f09584" + resolved "https://registry.npmmirror.com/readdir-glob/-/readdir-glob-1.1.3.tgz" integrity sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA== dependencies: minimatch "^5.1.0" -readdirp@^4.0.1: - version "4.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/readdirp/-/readdirp-4.0.1.tgz#b2fe35f8dca63183cd3b86883ecc8f720ea96ae6" - integrity sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw== - readdirp@~3.6.0: version "3.6.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + resolved "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz" integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== dependencies: picomatch "^2.2.1" regenerator-runtime@^0.14.0: version "0.14.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" + resolved "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz" integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== register-service-worker@^1.7.2: version "1.7.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/register-service-worker/-/register-service-worker-1.7.2.tgz#6516983e1ef790a98c4225af1216bc80941a4bd2" + resolved "https://registry.npmmirror.com/register-service-worker/-/register-service-worker-1.7.2.tgz" integrity sha512-CiD3ZSanZqcMPRhtfct5K9f7i3OLCcBBWsJjLh1gW9RO/nS94sVzY59iS+fgYBOBqaBpf4EzfqUF3j9IG+xo8A== reinterval@^1.1.0: version "1.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/reinterval/-/reinterval-1.1.0.tgz#3361ecfa3ca6c18283380dd0bb9546f390f5ece7" + resolved "https://registry.npmmirror.com/reinterval/-/reinterval-1.1.0.tgz" integrity sha512-QIRet3SYrGp0HUHO88jVskiG6seqUGC5iAG7AwI/BV4ypGcuqk9Du6YQBUOUqm9c8pw1eyLoIaONifRua1lsEQ== relateurl@^0.2.7: version "0.2.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" + resolved "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz" integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== require-directory@^2.1.1: version "2.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + resolved "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== require-from-string@^2.0.2: version "2.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + resolved "https://registry.npmmirror.com/require-from-string/-/require-from-string-2.0.2.tgz" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== resolve-from@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + resolved "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== resolve@^1.22.0: version "1.22.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + resolved "https://registry.npmmirror.com/resolve/-/resolve-1.22.8.tgz" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== dependencies: is-core-module "^2.13.0" @@ -3298,7 +3091,7 @@ resolve@^1.22.0: restore-cursor@^3.1.0: version "3.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + resolved "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-3.1.0.tgz" integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== dependencies: onetime "^5.1.0" @@ -3306,24 +3099,24 @@ restore-cursor@^3.1.0: reusify@^1.0.4: version "1.0.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + resolved "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== rfdc@^1.3.0: version "1.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" + resolved "https://registry.npmmirror.com/rfdc/-/rfdc-1.4.1.tgz" integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== rimraf@^3.0.2: version "3.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + resolved "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== dependencies: glob "^7.1.3" rollup-plugin-visualizer@^5.5.4: version "5.12.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz#661542191ce78ee4f378995297260d0c1efb1302" + resolved "https://registry.npmmirror.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz" integrity sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ== dependencies: open "^8.4.0" @@ -3333,67 +3126,97 @@ rollup-plugin-visualizer@^5.5.4: "rollup@>=2.59.0 <2.78.0": version "2.77.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/rollup/-/rollup-2.77.3.tgz#8f00418d3a2740036e15deb653bed1a90ee0cc12" + resolved "https://registry.npmmirror.com/rollup/-/rollup-2.77.3.tgz" integrity sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g== optionalDependencies: fsevents "~2.3.2" +"rollup@2.x || 3.x || 4.x": + version "4.21.2" + resolved "https://registry.npmmirror.com/rollup/-/rollup-4.21.2.tgz" + integrity sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw== + dependencies: + "@types/estree" "1.0.5" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.21.2" + "@rollup/rollup-android-arm64" "4.21.2" + "@rollup/rollup-darwin-arm64" "4.21.2" + "@rollup/rollup-darwin-x64" "4.21.2" + "@rollup/rollup-linux-arm-gnueabihf" "4.21.2" + "@rollup/rollup-linux-arm-musleabihf" "4.21.2" + "@rollup/rollup-linux-arm64-gnu" "4.21.2" + "@rollup/rollup-linux-arm64-musl" "4.21.2" + "@rollup/rollup-linux-powerpc64le-gnu" "4.21.2" + "@rollup/rollup-linux-riscv64-gnu" "4.21.2" + "@rollup/rollup-linux-s390x-gnu" "4.21.2" + "@rollup/rollup-linux-x64-gnu" "4.21.2" + "@rollup/rollup-linux-x64-musl" "4.21.2" + "@rollup/rollup-win32-arm64-msvc" "4.21.2" + "@rollup/rollup-win32-ia32-msvc" "4.21.2" + "@rollup/rollup-win32-x64-msvc" "4.21.2" + fsevents "~2.3.2" + run-async@^2.4.0: version "2.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" + resolved "https://registry.npmmirror.com/run-async/-/run-async-2.4.1.tgz" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== run-parallel@^1.1.9: version "1.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + resolved "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz" integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: queue-microtask "^1.2.2" rxjs@^7.5.5: version "7.8.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" + resolved "https://registry.npmmirror.com/rxjs/-/rxjs-7.8.1.tgz" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== dependencies: tslib "^2.1.0" -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@^5.1.0, safe-buffer@~5.1.0, safe-buffer@~5.1.1, safe-buffer@5.1.2: version "5.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + resolved "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@5.2.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: +safe-buffer@~5.2.0: version "5.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + resolved "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@5.2.1: + version "5.2.1" + resolved "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== "safer-buffer@>= 2.1.2 < 3": version "2.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + resolved "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sass@^1.79.1: - version "1.79.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/sass/-/sass-1.79.3.tgz#7811b000eb68195fe51dea89177e73e7ef7f546f" - integrity sha512-m7dZxh0W9EZ3cw50Me5GOuYm/tVAJAn91SUnohLRo9cXBixGUOdvmryN+dXpwR831bhoY3Zv7rEFt85PUwTmzA== +sass@*, sass@^1.33.0: + version "1.78.0" + resolved "https://registry.npmmirror.com/sass/-/sass-1.78.0.tgz" + integrity sha512-AaIqGSrjo5lA2Yg7RvFZrlXDBCp3nV4XP73GrLGvdRWWwk+8H3l0SDvq/5bA4eF+0RFPLuWUk3E+P1U/YqnpsQ== dependencies: - chokidar "^4.0.0" + chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0" source-map-js ">=0.6.2 <2.0.0" sax@1.1.4: version "1.1.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/sax/-/sax-1.1.4.tgz#74b6d33c9ae1e001510f179a91168588f1aedaa9" + resolved "https://registry.npmmirror.com/sax/-/sax-1.1.4.tgz" integrity sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg== semver@^7.3.4, semver@^7.3.5, semver@^7.3.6, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3: version "7.6.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + resolved "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== send@0.19.0: version "0.19.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/send/-/send-0.19.0.tgz#bbc5a388c8ea6c048967049dbeac0e4a3f09d7f8" + resolved "https://registry.npmmirror.com/send/-/send-0.19.0.tgz" integrity sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw== dependencies: debug "2.6.9" @@ -3412,14 +3235,14 @@ send@0.19.0: serialize-javascript@^6.0.0: version "6.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" + resolved "https://registry.npmmirror.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz" integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== dependencies: randombytes "^2.1.0" serve-static@1.16.2: version "1.16.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/serve-static/-/serve-static-1.16.2.tgz#b6a5343da47f6bdd2673848bf45754941e803296" + resolved "https://registry.npmmirror.com/serve-static/-/serve-static-1.16.2.tgz" integrity sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw== dependencies: encodeurl "~2.0.0" @@ -3429,7 +3252,7 @@ serve-static@1.16.2: set-function-length@^1.2.1: version "1.2.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + resolved "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz" integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== dependencies: define-data-property "^1.1.4" @@ -3441,31 +3264,31 @@ set-function-length@^1.2.1: setprototypeof@1.2.0: version "1.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + resolved "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== shallow-clone@^3.0.0: version "3.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" + resolved "https://registry.npmmirror.com/shallow-clone/-/shallow-clone-3.0.1.tgz" integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== dependencies: kind-of "^6.0.2" shebang-command@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + resolved "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz" integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== dependencies: shebang-regex "^3.0.0" shebang-regex@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + resolved "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== side-channel@^1.0.6: version "1.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + resolved "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.6.tgz" integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== dependencies: call-bind "^1.0.7" @@ -3475,31 +3298,31 @@ side-channel@^1.0.6: signal-exit@^3.0.2: version "3.0.7" - resolved "https://mirrors.huaweicloud.com/repository/npm/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + resolved "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== slash@^3.0.0: version "3.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + resolved "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== slice-ansi@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + resolved "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-4.0.0.tgz" integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== dependencies: ansi-styles "^4.0.0" astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" -"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0, source-map-js@^1.2.1: +source-map-js@^1.2.0, "source-map-js@>=0.6.2 <2.0.0": version "1.2.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" + resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz" integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== source-map-support@~0.5.20: version "0.5.21" - resolved "https://mirrors.huaweicloud.com/repository/npm/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + resolved "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== dependencies: buffer-from "^1.0.0" @@ -3507,86 +3330,86 @@ source-map-support@~0.5.20: source-map@^0.6.0, source-map@~0.6.0: version "0.6.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + resolved "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== source-map@^0.7.4: version "0.7.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + resolved "https://registry.npmmirror.com/source-map/-/source-map-0.7.4.tgz" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== split2@^4.2.0: version "4.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4" + resolved "https://registry.npmmirror.com/split2/-/split2-4.2.0.tgz" integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== stack-trace@^1.0.0-pre2: version "1.0.0-pre2" - resolved "https://mirrors.huaweicloud.com/repository/npm/stack-trace/-/stack-trace-1.0.0-pre2.tgz#46a83a79f1b287807e9aaafc6a5dd8bcde626f9c" + resolved "https://registry.npmmirror.com/stack-trace/-/stack-trace-1.0.0-pre2.tgz" integrity sha512-2ztBJRek8IVofG9DBJqdy2N5kulaacX30Nz7xmkYF6ale9WBVmIy6mFBchvGX7Vx/MyjBhx+Rcxqrj+dbOnQ6A== statuses@2.0.1: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + resolved "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string_decoder@^1.1.1, string_decoder@^1.3.0: version "1.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + resolved "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.3.0.tgz" integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== dependencies: safe-buffer "~5.2.0" string_decoder@~1.1.1: version "1.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + resolved "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz" integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== dependencies: safe-buffer "~5.1.0" +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: ansi-regex "^5.0.1" strip-json-comments@^3.1.1: version "3.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + resolved "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== supports-color@^5.3.0: version "5.5.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + resolved "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz" integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: has-flag "^3.0.0" supports-color@^7.1.0: version "7.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + resolved "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + resolved "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== table@^6.8.0: version "6.8.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/table/-/table-6.8.2.tgz#c5504ccf201213fa227248bdc8c5569716ac6c58" + resolved "https://registry.npmmirror.com/table/-/table-6.8.2.tgz" integrity sha512-w2sfv80nrAh2VCbqR5AK27wswXhqcck2AhfnNW76beQXskGZ1V12GwS//yYVa3d3fcvAip2OUnbDAjW2k3v9fA== dependencies: ajv "^8.0.1" @@ -3597,7 +3420,7 @@ table@^6.8.0: tar-stream@^2.2.0: version "2.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" + resolved "https://registry.npmmirror.com/tar-stream/-/tar-stream-2.2.0.tgz" integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ== dependencies: bl "^4.0.3" @@ -3607,9 +3430,9 @@ tar-stream@^2.2.0: readable-stream "^3.1.1" terser@^5.15.1: - version "5.33.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/terser/-/terser-5.33.0.tgz#8f9149538c7468ffcb1246cfec603c16720d2db1" - integrity sha512-JuPVaB7s1gdFKPKTelwUyRq5Sid2A3Gko2S0PncwdBq7kN9Ti9HPWDQ06MPsEDGsZeVESjKEnyGy68quBk1w6g== + version "5.32.0" + resolved "https://registry.npmmirror.com/terser/-/terser-5.32.0.tgz" + integrity sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -3618,73 +3441,78 @@ terser@^5.15.1: text-table@^0.2.0: version "0.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + resolved "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== through@^2.3.6: version "2.3.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + resolved "https://registry.npmmirror.com/through/-/through-2.3.8.tgz" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== tiny-invariant@^1.1.0: version "1.3.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127" + resolved "https://registry.npmmirror.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz" integrity sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg== tmp@^0.0.33: version "0.0.33" - resolved "https://mirrors.huaweicloud.com/repository/npm/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + resolved "https://registry.npmmirror.com/tmp/-/tmp-0.0.33.tgz" integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== dependencies: os-tmpdir "~1.0.2" to-fast-properties@^2.0.0: version "2.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + resolved "https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz" integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== to-regex-range@^5.0.1: version "5.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + resolved "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz" integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== dependencies: is-number "^7.0.0" toidentifier@1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + resolved "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== ts-api-utils@^1.3.0: version "1.3.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" + resolved "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz" integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== +ts-md5@^1.3.1: + version "1.3.1" + resolved "https://registry.npmmirror.com/ts-md5/-/ts-md5-1.3.1.tgz" + integrity sha512-DiwiXfwvcTeZ5wCE0z+2A9EseZsztaiZtGrtSaY5JOD7ekPnR/GoIVD5gXZAlK9Na9Kvpo9Waz5rW64WKAWApg== + tslib@^2.0.3, tslib@^2.1.0, tslib@^2.6.2: version "2.7.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + resolved "https://registry.npmmirror.com/tslib/-/tslib-2.7.0.tgz" integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + resolved "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz" integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== dependencies: prelude-ls "^1.2.1" type-fest@^0.20.2: version "0.20.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + resolved "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== type-fest@^0.21.3: version "0.21.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + resolved "https://registry.npmmirror.com/type-fest/-/type-fest-0.21.3.tgz" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== type-is@~1.6.18: version "1.6.18" - resolved "https://mirrors.huaweicloud.com/repository/npm/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + resolved "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz" integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== dependencies: media-typer "0.3.0" @@ -3692,32 +3520,27 @@ type-is@~1.6.18: typedarray@^0.0.6: version "0.0.6" - resolved "https://mirrors.huaweicloud.com/repository/npm/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + resolved "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typescript@~5.5.4: +typescript@*, typescript@>=4.2.0, typescript@>=4.4.4, typescript@>=5.0.0, typescript@~5.5.4: version "5.5.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" + resolved "https://registry.npmmirror.com/typescript/-/typescript-5.5.4.tgz" integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== -undici-types@~6.19.2: - version "6.19.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== - universalify@^2.0.0: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" + resolved "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz" integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== -unpipe@1.0.0, unpipe@~1.0.0: +unpipe@~1.0.0, unpipe@1.0.0: version "1.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + resolved "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== update-browserslist-db@^1.1.0: version "1.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + resolved "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz" integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== dependencies: escalade "^3.1.2" @@ -3725,14 +3548,14 @@ update-browserslist-db@^1.1.0: uri-js@^4.2.2: version "4.4.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + resolved "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz" integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== dependencies: punycode "^2.1.0" url@^0.11.0: version "0.11.4" - resolved "https://mirrors.huaweicloud.com/repository/npm/url/-/url-0.11.4.tgz#adca77b3562d56b72746e76b330b7f27b6721f3c" + resolved "https://registry.npmmirror.com/url/-/url-0.11.4.tgz" integrity sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg== dependencies: punycode "^1.4.1" @@ -3740,22 +3563,22 @@ url@^0.11.0: util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + resolved "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== utils-merge@1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + resolved "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz" integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== vary@~1.1.2: version "1.1.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + resolved "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== vite-plugin-checker@^0.7.2: version "0.7.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/vite-plugin-checker/-/vite-plugin-checker-0.7.2.tgz#093ffdf9ccf51b2c9eab7101480bd0217ae99536" + resolved "https://registry.npmmirror.com/vite-plugin-checker/-/vite-plugin-checker-0.7.2.tgz" integrity sha512-xeYeJbG0gaCaT0QcUC4B2Zo4y5NR8ZhYenc5gPbttrZvraRFwkEADCYwq+BfEHl9zYz7yf85TxsiGoYwyyIjhw== dependencies: "@babel/code-frame" "^7.12.13" @@ -3773,9 +3596,9 @@ vite-plugin-checker@^0.7.2: vscode-languageserver-textdocument "^1.0.1" vscode-uri "^3.0.2" -vite@^2.9.13: +"vite@^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", vite@^2.5.10, vite@^2.9.13, vite@>=2.0.0: version "2.9.18" - resolved "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-2.9.18.tgz#74e2a83b29da81e602dac4c293312cc575f091c7" + resolved "https://registry.npmmirror.com/vite/-/vite-2.9.18.tgz" integrity sha512-sAOqI5wNM9QvSEE70W3UGMdT8cyEn0+PmJMTFvTB8wB0YbYUWw3gUbY62AOyrXosGieF2htmeLATvNxpv/zNyQ== dependencies: esbuild "^0.14.27" @@ -3787,12 +3610,12 @@ vite@^2.9.13: vscode-jsonrpc@6.0.0: version "6.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz#108bdb09b4400705176b957ceca9e0880e9b6d4e" + resolved "https://registry.npmmirror.com/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz" integrity sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg== vscode-languageclient@^7.0.0: version "7.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz#b505c22c21ffcf96e167799757fca07a6bad0fb2" + resolved "https://registry.npmmirror.com/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz" integrity sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg== dependencies: minimatch "^3.0.4" @@ -3801,7 +3624,7 @@ vscode-languageclient@^7.0.0: vscode-languageserver-protocol@3.16.0: version "3.16.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz#34135b61a9091db972188a07d337406a3cdbe821" + resolved "https://registry.npmmirror.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz" integrity sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A== dependencies: vscode-jsonrpc "6.0.0" @@ -3809,34 +3632,34 @@ vscode-languageserver-protocol@3.16.0: vscode-languageserver-textdocument@^1.0.1: version "1.0.12" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz#457ee04271ab38998a093c68c2342f53f6e4a631" + resolved "https://registry.npmmirror.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz" integrity sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA== vscode-languageserver-types@3.16.0: version "3.16.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz#ecf393fc121ec6974b2da3efb3155644c514e247" + resolved "https://registry.npmmirror.com/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz" integrity sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA== vscode-languageserver@^7.0.0: version "7.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz#49b068c87cfcca93a356969d20f5d9bdd501c6b0" + resolved "https://registry.npmmirror.com/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz" integrity sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw== dependencies: vscode-languageserver-protocol "3.16.0" vscode-uri@^3.0.2, vscode-uri@^3.0.8: version "3.0.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/vscode-uri/-/vscode-uri-3.0.8.tgz#1770938d3e72588659a172d0fd4642780083ff9f" + resolved "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.0.8.tgz" integrity sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw== vue-demi@^0.14.10: version "0.14.10" - resolved "https://mirrors.huaweicloud.com/repository/npm/vue-demi/-/vue-demi-0.14.10.tgz#afc78de3d6f9e11bf78c55e8510ee12814522f04" + resolved "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz" integrity sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg== vue-eslint-parser@^9.4.3: version "9.4.3" - resolved "https://mirrors.huaweicloud.com/repository/npm/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz#9b04b22c71401f1e8bca9be7c3e3416a4bde76a8" + resolved "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz" integrity sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg== dependencies: debug "^4.3.4" @@ -3848,42 +3671,42 @@ vue-eslint-parser@^9.4.3: semver "^7.3.6" vue-router@^4.0.12: - version "4.4.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/vue-router/-/vue-router-4.4.5.tgz#bdf535e4cf32414ebdea6b4b403593efdb541388" - integrity sha512-4fKZygS8cH1yCyuabAXGUAsyi1b2/o/OKgu/RUb+znIYOxPRxdkytJEx+0wGcpBE1pX6vUgh5jwWOKRGvuA/7Q== + version "4.4.4" + resolved "https://registry.npmmirror.com/vue-router/-/vue-router-4.4.4.tgz" + integrity sha512-3MlnDqwRwZwCQVbtVfpsU+nrNymNjnXSsQtXName5925NVC1+326VVfYH9vSrA0N13teGEo8z5x7gbRnGjCDiQ== dependencies: "@vue/devtools-api" "^6.6.4" -vue-tsc@2.0.29: +vue-tsc@>=2.0.0, vue-tsc@2.0.29: version "2.0.29" - resolved "https://mirrors.huaweicloud.com/repository/npm/vue-tsc/-/vue-tsc-2.0.29.tgz#bf7e9605af9fadec7fd6037d242217f5c6ad2c3b" + resolved "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.0.29.tgz" integrity sha512-MHhsfyxO3mYShZCGYNziSbc63x7cQ5g9kvijV7dRe1TTXBRLxXyL0FnXWpUF1xII2mJ86mwYpYsUmMwkmerq7Q== dependencies: "@volar/typescript" "~2.4.0-alpha.18" "@vue/language-core" "2.0.29" semver "^7.5.4" -vue@^3.4.18: - version "3.5.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/vue/-/vue-3.5.8.tgz#7d2fa98ea85228dcb90f897ef5df74df1d5825a1" - integrity sha512-hvuvuCy51nP/1fSRvrrIqTLSvrSyz2Pq+KQ8S8SXCxTWVE0nMaOnSDnSOxV1eYmGfvK7mqiwvd1C59CEEz7dAQ== +"vue@^2.6.14 || ^3.3.0", vue@^3.0.0, "vue@^3.0.0-0 || ^2.6.0", vue@^3.2.0, vue@^3.2.25, vue@^3.2.29, vue@^3.4.18, vue@3.5.4: + version "3.5.4" + resolved "https://registry.npmmirror.com/vue/-/vue-3.5.4.tgz" + integrity sha512-3yAj2gkmiY+i7+22A1PWM+kjOVXjU74UPINcTiN7grIVPyFFI0lpGwHlV/4xydDmobaBn7/xmi+YG8HeSlCTcg== dependencies: - "@vue/compiler-dom" "3.5.8" - "@vue/compiler-sfc" "3.5.8" - "@vue/runtime-dom" "3.5.8" - "@vue/server-renderer" "3.5.8" - "@vue/shared" "3.5.8" + "@vue/compiler-dom" "3.5.4" + "@vue/compiler-sfc" "3.5.4" + "@vue/runtime-dom" "3.5.4" + "@vue/server-renderer" "3.5.4" + "@vue/shared" "3.5.4" wcwidth@^1.0.1: version "1.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + resolved "https://registry.npmmirror.com/wcwidth/-/wcwidth-1.0.1.tgz" integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== dependencies: defaults "^1.0.3" webpack-merge@^5.8.0: version "5.10.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" + resolved "https://registry.npmmirror.com/webpack-merge/-/webpack-merge-5.10.0.tgz" integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== dependencies: clone-deep "^4.0.1" @@ -3892,24 +3715,24 @@ webpack-merge@^5.8.0: which@^2.0.1: version "2.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + resolved "https://registry.npmmirror.com/which/-/which-2.0.2.tgz" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== dependencies: isexe "^2.0.0" wildcard@^2.0.0: version "2.0.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" + resolved "https://registry.npmmirror.com/wildcard/-/wildcard-2.0.1.tgz" integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== word-wrap@^1.2.5: version "1.2.5" - resolved "https://mirrors.huaweicloud.com/repository/npm/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + resolved "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== worker-timers-broker@^6.1.8: version "6.1.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/worker-timers-broker/-/worker-timers-broker-6.1.8.tgz#08f64e5931b77fadc55f0c7388c077a7dd17e4c7" + resolved "https://registry.npmmirror.com/worker-timers-broker/-/worker-timers-broker-6.1.8.tgz" integrity sha512-FUCJu9jlK3A8WqLTKXM9E6kAmI/dR1vAJ8dHYLMisLNB/n3GuaFIjJ7pn16ZcD1zCOf7P6H62lWIEBi+yz/zQQ== dependencies: "@babel/runtime" "^7.24.5" @@ -3919,7 +3742,7 @@ worker-timers-broker@^6.1.8: worker-timers-worker@^7.0.71: version "7.0.71" - resolved "https://mirrors.huaweicloud.com/repository/npm/worker-timers-worker/-/worker-timers-worker-7.0.71.tgz#f96138bafbcfaabea116603ce23956e05e76db6a" + resolved "https://registry.npmmirror.com/worker-timers-worker/-/worker-timers-worker-7.0.71.tgz" integrity sha512-ks/5YKwZsto1c2vmljroppOKCivB/ma97g9y77MAAz2TBBjPPgpoOiS1qYQKIgvGTr2QYPT3XhJWIB6Rj2MVPQ== dependencies: "@babel/runtime" "^7.24.5" @@ -3927,7 +3750,7 @@ worker-timers-worker@^7.0.71: worker-timers@^7.1.4: version "7.1.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/worker-timers/-/worker-timers-7.1.8.tgz#f53072c396ac4264fd3027914f4ab793c92d90be" + resolved "https://registry.npmmirror.com/worker-timers/-/worker-timers-7.1.8.tgz" integrity sha512-R54psRKYVLuzff7c1OTFcq/4Hue5Vlz4bFtNEIarpSiCYhpifHU3aIQI29S84o1j87ePCYqbmEJPqwBTf+3sfw== dependencies: "@babel/runtime" "^7.24.5" @@ -3937,7 +3760,7 @@ worker-timers@^7.1.4: wrap-ansi@^6.0.1: version "6.2.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz" integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== dependencies: ansi-styles "^4.0.0" @@ -3946,7 +3769,7 @@ wrap-ansi@^6.0.1: wrap-ansi@^7.0.0: version "7.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: ansi-styles "^4.0.0" @@ -3955,32 +3778,32 @@ wrap-ansi@^7.0.0: wrappy@1: version "1.0.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + resolved "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== ws@^8.17.1: version "8.18.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + resolved "https://registry.npmmirror.com/ws/-/ws-8.18.0.tgz" integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== xml-name-validator@^4.0.0: version "4.0.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835" + resolved "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz" integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw== y18n@^5.0.5: version "5.0.8" - resolved "https://mirrors.huaweicloud.com/repository/npm/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + resolved "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== yargs-parser@^21.1.1: version "21.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + resolved "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^17.5.1: version "17.7.2" - resolved "https://mirrors.huaweicloud.com/repository/npm/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + resolved "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: cliui "^8.0.1" @@ -3993,12 +3816,12 @@ yargs@^17.5.1: yocto-queue@^0.1.0: version "0.1.0" - resolved "https://mirrors.huaweicloud.com/repository/npm/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + resolved "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== zip-stream@^4.1.0: version "4.1.1" - resolved "https://mirrors.huaweicloud.com/repository/npm/zip-stream/-/zip-stream-4.1.1.tgz#1337fe974dbaffd2fa9a1ba09662a66932bd7135" + resolved "https://registry.npmmirror.com/zip-stream/-/zip-stream-4.1.1.tgz" integrity sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ== dependencies: archiver-utils "^3.0.4"