@soonspacejs/plugin-cps-soonmanager 2.13.9 → 2.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import { Decrypt } from './types';
2
- export declare const decryptV1: Decrypt;
1
+ import { Decrypt } from './types';
2
+ export declare const decryptV1: Decrypt;
@@ -1,3 +1,3 @@
1
- import { Decrypt } from './types';
2
- export declare const decryptV2: Decrypt;
3
- export declare function decodeToBytes(input: string): Int8Array;
1
+ import { Decrypt } from './types';
2
+ export declare const decryptV2: Decrypt;
3
+ export declare function decodeToBytes(input: string): Int8Array<ArrayBuffer>;
@@ -1,16 +1,16 @@
1
- /**
2
- * BI编辑器中的SDK配置如下:
3
- * - 内置调试公钥,并将其作为SDK的应用公钥
4
- * - 关闭水印
5
- BI桌面软件中的SDK配置如下:
6
- * - 内置应用公钥
7
- */
8
- /**
9
- * 动态注入
10
- */
11
- declare const _default: {
12
- verifyKey: string;
13
- debugKey: string;
14
- key: string;
15
- };
16
- export default _default;
1
+ /**
2
+ * BI编辑器中的SDK配置如下:
3
+ * - 内置调试公钥,并将其作为SDK的应用公钥
4
+ * - 关闭水印
5
+ BI桌面软件中的SDK配置如下:
6
+ * - 内置应用公钥
7
+ */
8
+ /**
9
+ * 动态注入
10
+ */
11
+ declare const _default: {
12
+ verifyKey: string;
13
+ debugKey: string;
14
+ key: string;
15
+ };
16
+ export default _default;
@@ -1,8 +1,8 @@
1
- import NodeRSA from 'node-rsa';
2
- import { IInnerTreeData, TLicense } from '../types';
3
- export interface EncryptInfo {
4
- verifyKey: string;
5
- debugKey: string;
6
- key: string;
7
- }
8
- export type Decrypt = (license: TLicense, nodeRsa: NodeRSA) => IInnerTreeData[];
1
+ import NodeRSA from 'node-rsa';
2
+ import { IInnerTreeData, TLicense } from '../types';
3
+ export interface EncryptInfo {
4
+ verifyKey: string;
5
+ debugKey: string;
6
+ key: string;
7
+ }
8
+ export type Decrypt = (license: TLicense, nodeRsa: NodeRSA) => IInnerTreeData[];
@@ -1,31 +1,31 @@
1
- import { Object3D, OrthographicCamera, Vector4, Vector2 } from 'three';
2
- import SoonSpace from 'soonspacejs';
3
- declare class WaterMark extends Object3D {
4
- readonly viewport: SoonSpace['viewport'];
5
- fontSize: number;
6
- imageWidth: number;
7
- protected _size?: Vector2 | null;
8
- get size(): Vector2;
9
- set size(value: Vector2);
10
- camera: OrthographicCamera;
11
- direction: Vector2;
12
- speed: number;
13
- protected _velocity?: Vector2 | null;
14
- get velocity(): Vector2;
15
- set velocity(value: Vector2);
16
- currViewport: Vector4;
17
- constructor(viewport: SoonSpace['viewport']);
18
- lastRenderTime: number;
19
- autoRender: (time: number) => void;
20
- _generateMark(str?: number[] | string): void;
21
- _generateMarkForString(str?: number[] | string): void;
22
- _generateMarkForImage(url?: any, width?: number, height?: number): void;
23
- _calculateImageSize(canvasWidth: number, canvasHeight: number, imgWidth: number, imgHeight: number): {
24
- renderWidth: number;
25
- renderHeight: number;
26
- };
27
- render(): void;
28
- addToViewport(): void;
29
- removeFromViewport(): void;
30
- }
31
- export { WaterMark, };
1
+ import { Object3D, OrthographicCamera, Vector4, Vector2 } from 'three';
2
+ import SoonSpace from 'soonspacejs';
3
+ declare class WaterMark extends Object3D {
4
+ readonly viewport: SoonSpace['viewport'];
5
+ fontSize: number;
6
+ imageWidth: number;
7
+ protected _size?: Vector2 | null;
8
+ get size(): Vector2;
9
+ set size(value: Vector2);
10
+ camera: OrthographicCamera;
11
+ direction: Vector2;
12
+ speed: number;
13
+ protected _velocity?: Vector2 | null;
14
+ get velocity(): Vector2;
15
+ set velocity(value: Vector2);
16
+ currViewport: Vector4;
17
+ constructor(viewport: SoonSpace['viewport']);
18
+ lastRenderTime: number;
19
+ autoRender: (time: number) => void;
20
+ _generateMark(str?: number[] | string): void;
21
+ _generateMarkForString(str?: number[] | string): void;
22
+ _generateMarkForImage(url?: any, width?: number, height?: number): void;
23
+ _calculateImageSize(canvasWidth: number, canvasHeight: number, imgWidth: number, imgHeight: number): {
24
+ renderWidth: number;
25
+ renderHeight: number;
26
+ };
27
+ render(): void;
28
+ addToViewport(): void;
29
+ removeFromViewport(): void;
30
+ }
31
+ export { WaterMark, };
@@ -1,15 +1,15 @@
1
- import PoiRendererPlugin from '@soonspacejs/plugin-poi-renderer';
2
- import CpsManagerPlugin from '../';
3
- import { ITreeData } from '../types';
4
- import { SourceApiListInterface } from '../data-source/request-types';
5
- import { PoiList } from './types';
6
- declare class BatchUpdatePoi {
7
- #private;
8
- treeList: ITreeData[] | null;
9
- poiList: PoiList[] | null;
10
- plugin: PoiRendererPlugin;
11
- cpsPlugin: CpsManagerPlugin;
12
- constructor(treeList: ITreeData[] | null, poiList: PoiList[] | null, plugin: PoiRendererPlugin, cpsPlugin: CpsManagerPlugin);
13
- batchPoi(api: SourceApiListInterface, data: any): void;
14
- }
15
- export default BatchUpdatePoi;
1
+ import PoiRendererPlugin from '@soonspacejs/plugin-poi-renderer';
2
+ import CpsManagerPlugin from '../';
3
+ import { ITreeData } from '../types';
4
+ import { SourceApiListInterface } from '../data-source/request-types';
5
+ import { PoiList } from './types';
6
+ declare class BatchUpdatePoi {
7
+ #private;
8
+ treeList: ITreeData[] | null;
9
+ poiList: PoiList[] | null;
10
+ plugin: PoiRendererPlugin;
11
+ cpsPlugin: CpsManagerPlugin;
12
+ constructor(treeList: ITreeData[] | null, poiList: PoiList[] | null, plugin: PoiRendererPlugin, cpsPlugin: CpsManagerPlugin);
13
+ batchPoi(api: SourceApiListInterface, data: any): void;
14
+ }
15
+ export default BatchUpdatePoi;
@@ -1,16 +1,15 @@
1
- /// <reference types="node" />
2
- import { IPublishPacket } from 'mqtt';
3
- import { IPoiData, ITreeData, PoiContent } from '../types';
4
- export type TFlatTreeNode = Record<ITreeData['id'], ITreeData>;
5
- export type PoiList = IPoiData & {
6
- contentData?: PoiContent;
7
- };
8
- export type ResponseMqttType = {
9
- topic: string;
10
- payload: Buffer;
11
- packet: IPublishPacket;
12
- };
13
- export type ResponseSocketType = {
14
- event: string;
15
- message: any;
16
- };
1
+ import { IPublishPacket } from 'mqtt';
2
+ import { IPoiData, ITreeData, PoiContent } from '../types';
3
+ export type TFlatTreeNode = Record<ITreeData['id'], ITreeData>;
4
+ export type PoiList = IPoiData & {
5
+ contentData?: PoiContent;
6
+ };
7
+ export type ResponseMqttType = {
8
+ topic: string;
9
+ payload: Buffer;
10
+ packet: IPublishPacket;
11
+ };
12
+ export type ResponseSocketType = {
13
+ event: string;
14
+ message: any;
15
+ };
@@ -1,18 +1,18 @@
1
- import { ITreeData } from '../types';
2
- import { PoiList, TFlatTreeNode } from './types';
3
- /**
4
- * 重新生成树节点
5
- * @param modelTree
6
- */
7
- export declare const regenerateNodes: (modelTree: ITreeData[]) => {
8
- treeNodes: ITreeData[];
9
- flatNodes: TFlatTreeNode;
10
- };
11
- export declare const getPoiByNodeId: (id: string, poiList: PoiList[]) => PoiList[];
12
- /**
13
- * 捕获 JSON.parse 错误
14
- * @param str
15
- * @returns
16
- */
17
- export declare const safeParseJSON: <T = any>(str: string) => T | null;
18
- export declare const subjectTopicMqtt: (subject: string, topic: string) => boolean;
1
+ import { ITreeData } from '../types';
2
+ import { PoiList, TFlatTreeNode } from './types';
3
+ /**
4
+ * 重新生成树节点
5
+ * @param modelTree
6
+ */
7
+ export declare const regenerateNodes: (modelTree: ITreeData[]) => {
8
+ treeNodes: ITreeData[];
9
+ flatNodes: TFlatTreeNode;
10
+ };
11
+ export declare const getPoiByNodeId: (id: string, poiList: PoiList[]) => PoiList[];
12
+ /**
13
+ * 捕获 JSON.parse 错误
14
+ * @param str
15
+ * @returns
16
+ */
17
+ export declare const safeParseJSON: <T = any>(str: string) => T | null;
18
+ export declare const subjectTopicMqtt: (subject: string, topic: string) => boolean;
@@ -1,48 +1,48 @@
1
- /**
2
- * 场景元数据
3
- */
4
- export declare const META_DATA_FILE_PATH = "/SceneMetadata.json";
5
- /**
6
- * 模型树
7
- */
8
- export declare const TREE_DATA_FILE_PATH: string;
9
- /**
10
- * 扁平模型树
11
- */
12
- export declare const FLAT_DATA_FILE_PATH: string;
13
- /**
14
- * poi
15
- */
16
- export declare const POI_DATA_FILE_PATH: string;
17
- /**
18
- * poi
19
- */
20
- export declare const DATA_SOURCE_FILE_PATH: string;
21
- /**
22
- * 拓扑路径
23
- */
24
- export declare const TOPOLOGY_DATA_FILE_PATH: string;
25
- /**
26
- * 自定义属性
27
- */
28
- export declare const PROPERTIES_DATA_FLEE_PATH: string;
29
- /**
30
- * 帧动画
31
- */
32
- export declare const ANIMATIONS_DATA_FILE_PATH: string;
33
- /**
34
- * 模型视角
35
- */
36
- export declare const MODEL_VISIONS_DATA_FILE_PATH: string;
37
- /**
38
- * 空间
39
- */
40
- export declare const SPACES_DATA_FILE_PATH: string;
41
- /**
42
- * 自定义属性 key
43
- */
44
- export declare const PROPERTIES_KEY = "properties";
45
- /**
46
- * 自定义属性 key
47
- */
48
- export declare const POI_PLUGIN_NAME = "poiRenderer";
1
+ /**
2
+ * 场景元数据
3
+ */
4
+ export declare const META_DATA_FILE_PATH = "/SceneMetadata.json";
5
+ /**
6
+ * 模型树
7
+ */
8
+ export declare const TREE_DATA_FILE_PATH = "/db/tree_models";
9
+ /**
10
+ * 扁平模型树
11
+ */
12
+ export declare const FLAT_DATA_FILE_PATH = "/db/flat_models";
13
+ /**
14
+ * poi
15
+ */
16
+ export declare const POI_DATA_FILE_PATH = "/db/pois";
17
+ /**
18
+ * poi
19
+ */
20
+ export declare const DATA_SOURCE_FILE_PATH = "/db/data_source";
21
+ /**
22
+ * 拓扑路径
23
+ */
24
+ export declare const TOPOLOGY_DATA_FILE_PATH = "/db/topology_paths";
25
+ /**
26
+ * 自定义属性
27
+ */
28
+ export declare const PROPERTIES_DATA_FLEE_PATH = "/db/properties";
29
+ /**
30
+ * 帧动画
31
+ */
32
+ export declare const ANIMATIONS_DATA_FILE_PATH = "/db/animations";
33
+ /**
34
+ * 模型视角
35
+ */
36
+ export declare const MODEL_VISIONS_DATA_FILE_PATH = "/db/model_visions";
37
+ /**
38
+ * 空间
39
+ */
40
+ export declare const SPACES_DATA_FILE_PATH = "/db/spaces";
41
+ /**
42
+ * 自定义属性 key
43
+ */
44
+ export declare const PROPERTIES_KEY = "properties";
45
+ /**
46
+ * 自定义属性 key
47
+ */
48
+ export declare const POI_PLUGIN_NAME = "poiRenderer";
@@ -1,15 +1,15 @@
1
- import { ClientType, SourceOnEventType } from './types';
2
- import { SourceApiListInterface, SourceEnvListInterface } from './request-types';
3
- declare class DataSource {
4
- #private;
5
- sourceEnv: SourceEnvListInterface[];
6
- sourceApi: SourceApiListInterface[];
7
- constructor(sourceEnv: SourceEnvListInterface[], sourceApi: SourceApiListInterface[]);
8
- on<T extends keyof SourceOnEventType>(eventName: T, callback: SourceOnEventType[T]): void;
9
- getClientById(id: string): ClientType;
10
- requestAll(): void;
11
- requestById(ids: string[]): void;
12
- closeAll(): void;
13
- closeById(ids: string[]): void;
14
- }
15
- export default DataSource;
1
+ import { ClientType, SourceOnEventType } from './types';
2
+ import { SourceApiListInterface, SourceEnvListInterface } from './request-types';
3
+ declare class DataSource {
4
+ #private;
5
+ sourceEnv: SourceEnvListInterface[];
6
+ sourceApi: SourceApiListInterface[];
7
+ constructor(sourceEnv: SourceEnvListInterface[], sourceApi: SourceApiListInterface[]);
8
+ on<T extends keyof SourceOnEventType>(eventName: T, callback: SourceOnEventType[T]): void;
9
+ getClientById(id: string): ClientType;
10
+ requestAll(): void;
11
+ requestById(ids: string[]): void;
12
+ closeAll(): void;
13
+ closeById(ids: string[]): void;
14
+ }
15
+ export default DataSource;