@realsee/dnalogel 2.0.0-alpha.36 → 2.0.0-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ItemLabelPlugin/index.js +60 -36
- package/dist/ItemLabelPlugin/typings.d.ts +4 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +4 -4
- package/dist/ModelViewPlugin/index.js +2 -3
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/index.js +1006 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -1
- package/dist/floorplan/ModelFloorplanPlugin/index.js +8 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1036 -243
- package/dist/index.js +1037 -242
- package/dist/index.umd.js +1037 -242
- package/dist/shared-utils/logger.d.ts +16 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- 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 -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 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- 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/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/OpenParameter.html +2 -2
- 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/PanoMeasureParameterType.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/PanoRulerProPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginState.html +1 -0
- 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/modules.html +19 -17
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -21
- package/libs/ItemLabelPlugin/Plugin.js +16 -10
- package/libs/ItemLabelPlugin/typings.d.ts +4 -0
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -1
- package/libs/ModelViewPlugin/Plugin.d.ts +4 -4
- package/libs/ModelViewPlugin/Plugin.js +2 -3
- package/libs/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/libs/PanoRulerProPlugin/Controller.js +110 -0
- package/libs/PanoRulerProPlugin/RulerItem.js +314 -0
- package/libs/PanoRulerProPlugin/RulerItems.js +377 -0
- package/libs/PanoRulerProPlugin/index.d.ts +8 -0
- package/libs/PanoRulerProPlugin/index.js +8 -0
- package/libs/PanoRulerProPlugin/typings.d.ts +46 -0
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +8 -1
- package/libs/index.d.ts +2 -0
- package/libs/index.js +3 -0
- package/libs/shared-utils/logger.d.ts +16 -0
- package/libs/shared-utils/logger.js +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare type PanoRulerProPluginDatas = {
|
|
2
|
+
data: PanoRulerProPluginData[];
|
|
3
|
+
version: number;
|
|
4
|
+
};
|
|
5
|
+
export interface PanoRulerProPluginData {
|
|
6
|
+
panoIndex: number;
|
|
7
|
+
roomName: string;
|
|
8
|
+
lines: Line[];
|
|
9
|
+
}
|
|
10
|
+
interface Line {
|
|
11
|
+
start: number[];
|
|
12
|
+
end: number[];
|
|
13
|
+
state: boolean;
|
|
14
|
+
children?: Line[];
|
|
15
|
+
}
|
|
16
|
+
export interface PanoRulerProPluginOptions {
|
|
17
|
+
distanceText?: (distance: number) => string;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PanoRulerProPluginState {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
loaded: boolean;
|
|
23
|
+
options: PanoRulerProPluginOptions;
|
|
24
|
+
}
|
|
25
|
+
export interface PanoRulerProPluginParameterType {
|
|
26
|
+
data?: PanoRulerProPluginDatas;
|
|
27
|
+
options?: PanoRulerProPluginOptions;
|
|
28
|
+
}
|
|
29
|
+
export interface PanoRulerProPluginExportType {
|
|
30
|
+
enable: () => void;
|
|
31
|
+
disable: () => void;
|
|
32
|
+
load: (serverData: PanoRulerProPluginDatas) => void;
|
|
33
|
+
state: PanoRulerProPluginState;
|
|
34
|
+
}
|
|
35
|
+
export interface RulerItemProp {
|
|
36
|
+
width: number;
|
|
37
|
+
left: number;
|
|
38
|
+
top: number;
|
|
39
|
+
rotateDeg: number;
|
|
40
|
+
state: boolean;
|
|
41
|
+
children: any[];
|
|
42
|
+
labelOffset: number;
|
|
43
|
+
labelElement: string;
|
|
44
|
+
visible: boolean;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { BaseOptions } from '../../base/BasePlugin';
|
|
|
2
2
|
import type { Five } from '@realsee/five';
|
|
3
3
|
import type { ShowState } from '../utils/correctFiveState';
|
|
4
4
|
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
5
|
-
import type { State, EventMap, ShowOptions, HideOptions, Parameters, PluginData, PluginServerData } from './typing';
|
|
5
|
+
import type { State, Config, EventMap, ShowOptions, HideOptions, Parameters, PluginData, PluginServerData } from './typing';
|
|
6
6
|
import * as BasePlugin from '../../base/BasePluginWithData';
|
|
7
7
|
export declare class Controller extends BasePlugin.Controller<State, EventMap, PluginServerData, PluginData> {
|
|
8
8
|
name: string;
|
|
@@ -57,6 +57,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
|
|
|
57
57
|
hide: (options?: Partial<HideOptions>) => Promise<void>;
|
|
58
58
|
/** 更改插件 State */
|
|
59
59
|
setState(state: Partial<State>, options?: BaseOptions): void;
|
|
60
|
+
changeConfigs(_config: Partial<Config>, userAction?: boolean): void;
|
|
60
61
|
/** 更新户型图大小 */
|
|
61
62
|
updateSize: () => void;
|
|
62
63
|
protected formatData(serverData: PluginServerData): Promise<PluginData>;
|
|
@@ -4274,7 +4274,7 @@ class Controller extends Controller$1 {
|
|
|
4274
4274
|
const fiveCurrentState = this.five.getCurrentState();
|
|
4275
4275
|
if (shouldFloorplanHideWithPose(fiveCurrentState)) {
|
|
4276
4276
|
this.updateState({ visible: false }, userAction);
|
|
4277
|
-
this._hide({ userAction });
|
|
4277
|
+
this._hide({ userAction, isAutoHide: true });
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
4280
|
});
|
|
@@ -4447,6 +4447,13 @@ class Controller extends Controller$1 {
|
|
|
4447
4447
|
state.visible ? this._show(options) : this._hide(options);
|
|
4448
4448
|
}
|
|
4449
4449
|
}
|
|
4450
|
+
changeConfigs(_config, userAction = true) {
|
|
4451
|
+
const config = Object.assign(Object.assign({}, this.state.config), _config);
|
|
4452
|
+
this.updateState({ config }, userAction);
|
|
4453
|
+
if (!this.container)
|
|
4454
|
+
return;
|
|
4455
|
+
this.render();
|
|
4456
|
+
}
|
|
4450
4457
|
async formatData(serverData) {
|
|
4451
4458
|
return await formatData(serverData.data);
|
|
4452
4459
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,11 @@ export * from './ModelChassisCompassPlugin';
|
|
|
7
7
|
export * from './ModelEntryDoorGuidePlugin';
|
|
8
8
|
export * from './CameraMovementPlugin';
|
|
9
9
|
export * from './PanoRulerPlugin';
|
|
10
|
+
export * from './PanoRulerProPlugin';
|
|
10
11
|
export * from './PanoCompassPlugin';
|
|
11
12
|
export * from './PanoMeasurePlugin';
|
|
12
13
|
export * from './PanoSpatialTagPlugin';
|
|
13
14
|
export * from './ModelItemLabelPlugin';
|
|
14
15
|
export * from './ModelTVVideoPlugin';
|
|
15
16
|
export * from './ItemLabelPlugin';
|
|
17
|
+
export declare const DnalogelVersion = "2.0.0-alpha.38";
|