@soonspacejs/plugin-poi-renderer 2.11.12 → 2.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +3 -3
- package/dist/index.d.ts +0 -55
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# @soonspacejs/plugin-poi-renderer
|
|
2
|
-
|
|
3
|
-
> Poi-renderer plugin for SoonSpace.js
|
|
4
|
-
|
|
5
|
-
Document: [http://www.xwbuilders.com:8800/plugin/poi-renderer.html](http://www.xwbuilders.com:8800/plugin/poi-renderer.html)
|
|
1
|
+
# @soonspacejs/plugin-poi-renderer
|
|
2
|
+
|
|
3
|
+
> Poi-renderer plugin for SoonSpace.js
|
|
4
|
+
|
|
5
|
+
Document: [http://www.xwbuilders.com:8800/plugin/poi-renderer.html](http://www.xwbuilders.com:8800/plugin/poi-renderer.html)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-poi-renderer",
|
|
3
3
|
"pluginName": "PoiRendererPlugin",
|
|
4
|
-
"version": "2.11.
|
|
4
|
+
"version": "2.11.13",
|
|
5
5
|
"description": "Poi-renderer plugin for SoonSpace.js",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xunwei",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "0ecdef9d6546f8cd0e7f8ea38e7eb84fda951e4b",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"soonspacejs": "2.11.
|
|
18
|
+
"soonspacejs": "2.11.13"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"csstype": "^3.1.2"
|
package/dist/index.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import SoonSpace from 'soonspacejs';
|
|
2
|
-
import type { PoiNode, PoiNodeInfo } from 'soonspacejs/types/Library';
|
|
3
|
-
import * as CSS from 'csstype';
|
|
4
|
-
export type PoiNodeBaseOption = Omit<PoiNodeInfo, 'element'>;
|
|
5
|
-
export interface PoiNodeCustomOptions extends PoiNodeBaseOption {
|
|
6
|
-
tagName: keyof HTMLElementTagNameMap;
|
|
7
|
-
style?: CSS.Properties;
|
|
8
|
-
innerHTML?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PoiNodeVideoOptions extends PoiNodeBaseOption {
|
|
11
|
-
src?: string;
|
|
12
|
-
style?: CSS.Properties;
|
|
13
|
-
isLoop?: boolean;
|
|
14
|
-
autoPlay?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface PoiNodePanelDataSource {
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}
|
|
20
|
-
export interface PoiNodePanelOptions extends PoiNodeBaseOption {
|
|
21
|
-
dataSource: PoiNodePanelDataSource[];
|
|
22
|
-
style?: CSS.Properties;
|
|
23
|
-
rowStyle?: CSS.Properties;
|
|
24
|
-
labelStyle?: CSS.Properties;
|
|
25
|
-
valueStyle?: CSS.Properties;
|
|
26
|
-
}
|
|
27
|
-
export type PoiImageOptions = PoiNodeVideoOptions;
|
|
28
|
-
export declare const DefaultStyle: CSS.Properties;
|
|
29
|
-
export declare enum PoiContentTypeEnum {
|
|
30
|
-
PANEL = "PANEL",
|
|
31
|
-
VIDEO = "VIDEO",
|
|
32
|
-
VIDEO_STREAM = "VIDEO_STREAM"
|
|
33
|
-
}
|
|
34
|
-
export interface PoiNodeData extends PoiNodeBaseOption {
|
|
35
|
-
pid?: string;
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
dataSource: PoiNodePanelDataSource[];
|
|
39
|
-
fileUrl?: string;
|
|
40
|
-
contentType: PoiContentTypeEnum;
|
|
41
|
-
style: string;
|
|
42
|
-
}
|
|
43
|
-
export interface PoiNodeBatchOptions {
|
|
44
|
-
dataSource: PoiNodeData[];
|
|
45
|
-
}
|
|
46
|
-
export default class PatrolControlsPlugin {
|
|
47
|
-
readonly ssp: SoonSpace;
|
|
48
|
-
constructor(ssp: SoonSpace);
|
|
49
|
-
private resetStyleName;
|
|
50
|
-
private mergeElementStyle;
|
|
51
|
-
renderCustom(options: PoiNodeCustomOptions): PoiNode;
|
|
52
|
-
renderVideo(options: PoiNodeVideoOptions): PoiNode;
|
|
53
|
-
renderPanel(options: PoiNodePanelOptions): PoiNode;
|
|
54
|
-
batchRender(batchOptions: PoiNodeBatchOptions): void;
|
|
55
|
-
}
|