@realsee/dnalogel 2.0.0-alpha.29-beta → 2.0.0-alpha.30-beta
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/CHANGELOG.md +3 -0
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.js +703 -0
- package/dist/ItemLabelPlugin/typings.d.ts +54 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +829 -177
- package/dist/index.js +830 -176
- package/dist/index.umd.js +830 -176
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/PanoFloorplanRadarPluginController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +9 -9
- package/docs/modules.html +20 -20
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +414 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +173 -0
- package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/libs/ItemLabelPlugin/Plugin.js +117 -0
- package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.d.ts +9 -0
- package/libs/ItemLabelPlugin/index.js +8 -0
- package/libs/ItemLabelPlugin/typings.d.ts +54 -0
- package/libs/ItemLabelPlugin/typings.js +7 -0
- package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/index.d.ts +1 -0
- package/libs/index.js +2 -1
- package/package.json +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SubscribeEventMap } from '@realsee/five';
|
|
2
|
+
import type { ItemLabel } from "./typings";
|
|
3
|
+
export interface ItemLabelEvent extends SubscribeEventMap {
|
|
4
|
+
/**
|
|
5
|
+
* 点击标签
|
|
6
|
+
*/
|
|
7
|
+
onLabelClick: (itemLabel: ItemLabel) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare type PluginEvent = ItemLabelEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ItemLabelPlugin from './Plugin';
|
|
2
|
+
export { ItemLabelPlugin };
|
|
3
|
+
export default ItemLabelPlugin;
|
|
4
|
+
export declare const itemLabelPluginServerParams: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: number;
|
|
7
|
+
};
|
|
8
|
+
export type { ItemLabelPluginParametersType, ItemLabelPluginData, ItemLabelPluginExportReturnsType } from './typings';
|
|
9
|
+
export { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE } from './typings';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ItemLabelPlugin from './Plugin';
|
|
2
|
+
export { ItemLabelPlugin };
|
|
3
|
+
export default ItemLabelPlugin;
|
|
4
|
+
export const itemLabelPluginServerParams = {
|
|
5
|
+
name: 'ItemLabelPlugin',
|
|
6
|
+
version: 0,
|
|
7
|
+
};
|
|
8
|
+
export { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE } from './typings';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Subscribe } from "@realsee/five";
|
|
2
|
+
import type { PluginEvent } from "./events.type";
|
|
3
|
+
import type ItemLabelComponent from './ItemLabelComponent';
|
|
4
|
+
export declare enum ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE {
|
|
5
|
+
SMALL = "small",
|
|
6
|
+
MIDLLE = "middle",
|
|
7
|
+
LARGE = "large",
|
|
8
|
+
EXTRA_LARGE = "x-large"
|
|
9
|
+
}
|
|
10
|
+
export interface ItemLabelPluginParametersType {
|
|
11
|
+
modelOcclusionEnable?: boolean;
|
|
12
|
+
displayStrategyType?: Partial<ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE>;
|
|
13
|
+
}
|
|
14
|
+
export interface ItemLabelPluginData {
|
|
15
|
+
item_labels: Readonly<{
|
|
16
|
+
id: string;
|
|
17
|
+
code: string;
|
|
18
|
+
name: string;
|
|
19
|
+
position: [number, number, number];
|
|
20
|
+
type?: string[];
|
|
21
|
+
icon?: string;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>[];
|
|
24
|
+
}
|
|
25
|
+
export interface ItemLabel {
|
|
26
|
+
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
name: string;
|
|
29
|
+
position: [number, number, number];
|
|
30
|
+
modelPosition: [number, number, number];
|
|
31
|
+
type?: string[];
|
|
32
|
+
icon?: string;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export interface ItemLabelPluginExportReturnsType {
|
|
36
|
+
appendTo: (wrapper: Element) => void;
|
|
37
|
+
load: (data: ItemLabelPluginData) => void;
|
|
38
|
+
disable: () => void;
|
|
39
|
+
enable: () => void;
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
hooks: Subscribe<PluginEvent>;
|
|
42
|
+
}
|
|
43
|
+
export interface ItemLabelPluginState {
|
|
44
|
+
container: HTMLDivElement;
|
|
45
|
+
data: ItemLabelPluginData | null;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
itemLabels: ItemLabel[];
|
|
48
|
+
wrapper: HTMLElement | null;
|
|
49
|
+
fiveModeEnabled: boolean;
|
|
50
|
+
app?: ItemLabelComponent | undefined;
|
|
51
|
+
hooks: Subscribe<PluginEvent>;
|
|
52
|
+
modelOcclusionEnable: boolean;
|
|
53
|
+
displayStrategyType: Partial<ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE;
|
|
2
|
+
(function (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE) {
|
|
3
|
+
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
4
|
+
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
5
|
+
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
6
|
+
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
7
|
+
})(ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
|
package/libs/index.d.ts
CHANGED
package/libs/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// 方法导出
|
|
2
1
|
export * from './ModelViewPlugin';
|
|
3
2
|
export * from './CSS3DRenderPlugin';
|
|
4
3
|
export * from './PanoCursorRaycasterPlugin';
|
|
@@ -23,3 +22,5 @@ export * from './PanoSpatialTagPlugin';
|
|
|
23
22
|
export * from './ModelItemLabelPlugin';
|
|
24
23
|
// 模型电视插件
|
|
25
24
|
export * from './ModelTVVideoPlugin';
|
|
25
|
+
// 物品标签
|
|
26
|
+
export * from './ItemLabelPlugin';
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
9
|
"description": "如视 VR 看房插件合集",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "2.0.0-alpha.
|
|
11
|
+
"version": "2.0.0-alpha.30-beta",
|
|
12
12
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "yarn run tsb && yarn run build:rollup && yarn build:docs",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@tsconfig/svelte": "^2.0.1",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
38
38
|
"@typescript-eslint/parser": "^5.12.1",
|
|
39
|
+
"@vitejs/plugin-react-refresh": "^1.3.6",
|
|
39
40
|
"autoprefixer": "^10.4.2",
|
|
40
41
|
"classnames": "^2.3.1",
|
|
41
42
|
"eslint": "^8.9.0",
|