@realsee/dnalogel 2.0.2-alpha → 2.0.3
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/CSS3DRenderPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CSS3DRenderPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CameraMovementPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CameraMovementPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CruisePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CruisePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/GuideLinePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/GuideLinePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelChassisCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelChassisCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelEntryDoorGuidePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelEntryDoorGuidePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelRoomLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelRoomLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelRoomLabelPlugin/index.js +19 -22
- package/dist/ModelTVVideoPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelTVVideoPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelViewPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelViewPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelViewPlugin/index.js +53 -28
- package/dist/PanoCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoCursorRaycasterPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCursorRaycasterPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoDoorLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoDoorLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoMeasurePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoMeasurePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoRulerPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoRulerProPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerProPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoSpatialTagPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoSpatialTagPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +8 -1
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/PanoFloorplanRadarPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +11 -4
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/index.es.js +83 -48
- package/dist/index.js +91 -56
- package/dist/index.umd.js +94 -59
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- 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 +1 -1
- 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/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- 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/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- 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 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.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/modules.html +18 -18
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +19 -22
- package/libs/ModelViewPlugin/Plugin.d.ts +13 -2
- package/libs/ModelViewPlugin/Plugin.js +45 -20
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +8 -1
- package/libs/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +11 -4
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/typings/index.d.ts +117 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Camera as Camera$2, Subscribe, Five } from '@realsee/five';
|
|
1
2
|
import * as THREE from 'three';
|
|
2
3
|
import { Vector3 as Vector3$1, Scene, Group, Raycaster as Raycaster$1, MeshBasicMaterial, CanvasTexture, AnimationMixer, Color, TextureLoader, Vector2 as Vector2$1, PlaneGeometry, sRGBEncoding, Mesh, CurvePath, LineCurve3, TubeGeometry, ShaderMaterial, SphereGeometry, DoubleSide, RingGeometry, Quaternion, Euler } from 'three';
|
|
3
4
|
import { CSS3DRenderer, CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
@@ -7,7 +8,6 @@ import { onDestroy, onMount, afterUpdate, beforeUpdate } from 'svelte';
|
|
|
7
8
|
import { linear } from 'svelte/easing';
|
|
8
9
|
import { fade } from 'svelte/transition';
|
|
9
10
|
import { writable } from 'svelte/store';
|
|
10
|
-
import { Subscribe, Five } from '@realsee/five';
|
|
11
11
|
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
|
|
12
12
|
import * as TWEEN from '@tweenjs/tween.js';
|
|
13
13
|
import TWEEN__default from '@tweenjs/tween.js';
|
|
@@ -18,12 +18,21 @@ import classNames from 'classnames';
|
|
|
18
18
|
* Five 模型插件
|
|
19
19
|
* @template ExportType 导出方法
|
|
20
20
|
*/
|
|
21
|
-
const ModelViewPlugin = (five) => {
|
|
21
|
+
const ModelViewPlugin = (five, params) => {
|
|
22
22
|
let needsRender = true;
|
|
23
23
|
let renderer = null;
|
|
24
|
+
const defaultConfig = {
|
|
25
|
+
lookAtCurrentCamera: false,
|
|
26
|
+
lockedPanoIndex: null,
|
|
27
|
+
lockedLatitude: null,
|
|
28
|
+
lockedLongitude: null,
|
|
29
|
+
};
|
|
30
|
+
const config = Object.assign(Object.assign({}, defaultConfig), params === null || params === void 0 ? void 0 : params.config);
|
|
24
31
|
const scene = new THREE.Scene();
|
|
25
|
-
const camera = new
|
|
32
|
+
const camera = new Camera$2(60);
|
|
26
33
|
let model = new THREE.Object3D();
|
|
34
|
+
let distance;
|
|
35
|
+
let offset;
|
|
27
36
|
{
|
|
28
37
|
const light = new THREE.DirectionalLight(0xffffff, 0.5);
|
|
29
38
|
light.position.copy(new THREE.Vector3(1, 1, 1));
|
|
@@ -63,6 +72,8 @@ const ModelViewPlugin = (five) => {
|
|
|
63
72
|
update();
|
|
64
73
|
};
|
|
65
74
|
const handleModelLoaded = () => {
|
|
75
|
+
distance = getDistanceFromModel(five.model, camera.fov, camera.aspect);
|
|
76
|
+
offset = five.model.bounding.getCenter(new THREE.Vector3());
|
|
66
77
|
function cloneMaterial(_material) {
|
|
67
78
|
const material = _material.clone();
|
|
68
79
|
material.uniforms.modelAlpha.value = 1;
|
|
@@ -122,29 +133,36 @@ const ModelViewPlugin = (five) => {
|
|
|
122
133
|
}
|
|
123
134
|
update();
|
|
124
135
|
};
|
|
125
|
-
|
|
126
|
-
const bounding =
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
Math.pow(bounding.max.
|
|
130
|
-
Math.pow(bounding.max.z - bounding.min.z + 2, 2));
|
|
136
|
+
function getDistanceFromModel(model, fov, aspect) {
|
|
137
|
+
const bounding = model.bounding;
|
|
138
|
+
const radius = Math.pow(Math.pow(bounding.max.x - bounding.min.x + 1, 2) +
|
|
139
|
+
Math.pow(bounding.max.y - bounding.min.y + 1, 2) +
|
|
140
|
+
Math.pow(bounding.max.z - bounding.min.z + 1, 2), 1 / 2);
|
|
131
141
|
// fit screen
|
|
132
142
|
let distance = radius / 2 / Math.tan((Math.PI * fov) / 360);
|
|
133
143
|
if (aspect < 1)
|
|
134
144
|
distance = distance / aspect;
|
|
135
145
|
return isNaN(distance) ? radius : distance;
|
|
136
|
-
}
|
|
146
|
+
}
|
|
147
|
+
function getOffsetFromPanoIndex(panoIndex) {
|
|
148
|
+
return five.work.observers[panoIndex].standingPosition.clone();
|
|
149
|
+
}
|
|
137
150
|
const update = () => {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
if (!distance || !offset)
|
|
152
|
+
return;
|
|
153
|
+
const pose = five.getPose();
|
|
154
|
+
pose.fov = camera.fov;
|
|
155
|
+
pose.offset = offset;
|
|
156
|
+
pose.distance = distance;
|
|
157
|
+
if (typeof config.lockedLatitude === 'number')
|
|
158
|
+
pose.latitude = config.lockedLatitude;
|
|
159
|
+
if (typeof config.lockedLongitude === 'number')
|
|
160
|
+
pose.longitude = config.lockedLongitude;
|
|
161
|
+
if (typeof config.lockedPanoIndex === 'number')
|
|
162
|
+
pose.offset = getOffsetFromPanoIndex(config.lockedPanoIndex);
|
|
163
|
+
if (config.lookAtCurrentCamera)
|
|
164
|
+
pose.offset = five.camera.position.clone().setY(five.camera.position.y + 1);
|
|
165
|
+
camera.setFromPose(pose);
|
|
148
166
|
needsRender = true;
|
|
149
167
|
};
|
|
150
168
|
const render = () => {
|
|
@@ -165,12 +183,18 @@ const ModelViewPlugin = (five) => {
|
|
|
165
183
|
renderer.dispose();
|
|
166
184
|
renderer = null;
|
|
167
185
|
};
|
|
186
|
+
const changeConfigs = (userConfig) => {
|
|
187
|
+
Object.assign(config, userConfig);
|
|
188
|
+
update();
|
|
189
|
+
};
|
|
190
|
+
Object.assign(window, { camera });
|
|
168
191
|
five.on('modelLoaded', handleModelLoaded);
|
|
169
192
|
five.on('modelWillLoad', handleModelWillLoad);
|
|
170
193
|
five.on('cameraDirectionUpdate', update);
|
|
171
194
|
five.on('dispose', dispose);
|
|
172
195
|
five.on('renderFrame', render);
|
|
173
|
-
|
|
196
|
+
five.on('cameraPositionUpdate', update);
|
|
197
|
+
return { appendTo, refresh, changeConfigs };
|
|
174
198
|
};
|
|
175
199
|
|
|
176
200
|
function evenNumber(num, config) {
|
|
@@ -571,11 +595,11 @@ function add_css$p(target) {
|
|
|
571
595
|
|
|
572
596
|
function get_each_context$c(ctx, list, i) {
|
|
573
597
|
const child_ctx = ctx.slice();
|
|
574
|
-
child_ctx[
|
|
598
|
+
child_ctx[13] = list[i];
|
|
575
599
|
return child_ctx;
|
|
576
600
|
}
|
|
577
601
|
|
|
578
|
-
// (
|
|
602
|
+
// (79:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
|
|
579
603
|
function create_each_block$c(key_1, ctx) {
|
|
580
604
|
let first;
|
|
581
605
|
let roomlabelitem;
|
|
@@ -583,7 +607,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
583
607
|
|
|
584
608
|
roomlabelitem = new RoomLabelItem({
|
|
585
609
|
props: {
|
|
586
|
-
roomLabel: /*roomLableItem*/ ctx[
|
|
610
|
+
roomLabel: /*roomLableItem*/ ctx[13],
|
|
587
611
|
five: /*five*/ ctx[1]
|
|
588
612
|
}
|
|
589
613
|
});
|
|
@@ -604,7 +628,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
604
628
|
p(new_ctx, dirty) {
|
|
605
629
|
ctx = new_ctx;
|
|
606
630
|
const roomlabelitem_changes = {};
|
|
607
|
-
if (dirty & /*roomLabels*/ 1) roomlabelitem_changes.roomLabel = /*roomLableItem*/ ctx[
|
|
631
|
+
if (dirty & /*roomLabels*/ 1) roomlabelitem_changes.roomLabel = /*roomLableItem*/ ctx[13];
|
|
608
632
|
if (dirty & /*five*/ 2) roomlabelitem_changes.five = /*five*/ ctx[1];
|
|
609
633
|
roomlabelitem.$set(roomlabelitem_changes);
|
|
610
634
|
},
|
|
@@ -631,7 +655,7 @@ function create_fragment$u(ctx) {
|
|
|
631
655
|
let div_resize_listener;
|
|
632
656
|
let current;
|
|
633
657
|
let each_value = /*roomLabels*/ ctx[0];
|
|
634
|
-
const get_key = ctx => /*roomLableItem*/ ctx[
|
|
658
|
+
const get_key = ctx => /*roomLableItem*/ ctx[13].id;
|
|
635
659
|
|
|
636
660
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
637
661
|
let child_ctx = get_each_context$c(ctx, each_value, i);
|
|
@@ -698,13 +722,19 @@ function create_fragment$u(ctx) {
|
|
|
698
722
|
|
|
699
723
|
function instance$u($$self, $$props, $$invalidate) {
|
|
700
724
|
let rendererSize;
|
|
725
|
+
var _a;
|
|
701
726
|
let { five } = $$props;
|
|
702
727
|
let { roomLabels } = $$props;
|
|
703
728
|
let containerWidth;
|
|
704
729
|
let containerHeight;
|
|
705
|
-
|
|
730
|
+
|
|
731
|
+
let shownFloor = (_a = five.model.shownFloor) !== null && _a !== void 0
|
|
732
|
+
? _a
|
|
733
|
+
: null;
|
|
706
734
|
|
|
707
735
|
function getLabelVisible(item) {
|
|
736
|
+
const isLabelInFloor = shownFloor === null || item.floorIndex === shownFloor;
|
|
737
|
+
if (!isLabelInFloor) return false;
|
|
708
738
|
const raycaster = new Raycaster$1();
|
|
709
739
|
const cameraPosition = five.camera.position.clone();
|
|
710
740
|
const position = new Vector3$1(item.position.x, item.position.y, item.position.z);
|
|
@@ -723,7 +753,9 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
723
753
|
return `translate(${xOffset}px, ${yOffset}px)`;
|
|
724
754
|
}
|
|
725
755
|
|
|
726
|
-
function getFormatedRoomLabels(
|
|
756
|
+
function getFormatedRoomLabels(params) {
|
|
757
|
+
const { rendererSize, shownFloor } = params;
|
|
758
|
+
|
|
727
759
|
// 因为 item distance 需要重复计算,所以缓存一下
|
|
728
760
|
const distanceMap = new Map();
|
|
729
761
|
|
|
@@ -756,7 +788,7 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
756
788
|
}
|
|
757
789
|
|
|
758
790
|
function onFiveCameraUpdate() {
|
|
759
|
-
$$invalidate(0, roomLabels = getFormatedRoomLabels(rendererSize));
|
|
791
|
+
$$invalidate(0, roomLabels = getFormatedRoomLabels({ rendererSize, shownFloor }));
|
|
760
792
|
}
|
|
761
793
|
|
|
762
794
|
function onFiveModelShownFloorChange(floorIndex) {
|
|
@@ -788,21 +820,10 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
788
820
|
$$invalidate(5, rendererSize = { x: containerWidth, y: containerHeight });
|
|
789
821
|
}
|
|
790
822
|
|
|
791
|
-
if ($$self.$$.dirty & /*rendererSize*/
|
|
823
|
+
if ($$self.$$.dirty & /*rendererSize, shownFloor*/ 48) {
|
|
792
824
|
{
|
|
793
|
-
// rendererSize 变化时,触发 reRender
|
|
794
|
-
$$invalidate(0, roomLabels = getFormatedRoomLabels(rendererSize));
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
if ($$self.$$.dirty & /*roomLabels, shownFloor*/ 17) {
|
|
799
|
-
{
|
|
800
|
-
// shownFloor 变化时,更新 item visible
|
|
801
|
-
$$invalidate(0, roomLabels = roomLabels.map(item => {
|
|
802
|
-
const isLabelInFloor = shownFloor === null || item.floorIndex === shownFloor;
|
|
803
|
-
const visible = isLabelInFloor ? item.visible : false;
|
|
804
|
-
return Object.assign(Object.assign({}, item), { visible });
|
|
805
|
-
}));
|
|
825
|
+
// rendererSize 和 shownFloor 变化时,触发 reRender
|
|
826
|
+
$$invalidate(0, roomLabels = getFormatedRoomLabels({ rendererSize, shownFloor }));
|
|
806
827
|
}
|
|
807
828
|
}
|
|
808
829
|
};
|
|
@@ -6125,6 +6146,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6125
6146
|
attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6126
6147
|
getLabelElement: undefined,
|
|
6127
6148
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6149
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6150
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6128
6151
|
};
|
|
6129
6152
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6130
6153
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6198,6 +6221,10 @@ class Controller$4 extends Controller$6 {
|
|
|
6198
6221
|
state.visible ? this._show(options) : this._hide(options);
|
|
6199
6222
|
}
|
|
6200
6223
|
}
|
|
6224
|
+
changeConfigs(config, userAction = true) {
|
|
6225
|
+
this.updateState({ config }, userAction);
|
|
6226
|
+
this.render();
|
|
6227
|
+
}
|
|
6201
6228
|
/** 更新户型图位置 */
|
|
6202
6229
|
updatePosition() {
|
|
6203
6230
|
var _a;
|
|
@@ -6216,7 +6243,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6216
6243
|
}
|
|
6217
6244
|
updateState(state, userAction) {
|
|
6218
6245
|
const prevState = this.state;
|
|
6219
|
-
|
|
6246
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6247
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6220
6248
|
if (equal(this.state, prevState, { deep: true }))
|
|
6221
6249
|
return;
|
|
6222
6250
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6553,6 +6581,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6553
6581
|
attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6554
6582
|
getLabelElement: undefined,
|
|
6555
6583
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6584
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6585
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6556
6586
|
};
|
|
6557
6587
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6558
6588
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6654,6 +6684,10 @@ class Controller$3 extends Controller$6 {
|
|
|
6654
6684
|
state.visible ? this._show(options) : this._hide(options);
|
|
6655
6685
|
}
|
|
6656
6686
|
}
|
|
6687
|
+
changeConfigs(config, userAction = true) {
|
|
6688
|
+
this.updateState({ config }, userAction);
|
|
6689
|
+
this.render();
|
|
6690
|
+
}
|
|
6657
6691
|
async formatData(serverData) {
|
|
6658
6692
|
return await formatData(serverData.data);
|
|
6659
6693
|
}
|
|
@@ -6662,7 +6696,7 @@ class Controller$3 extends Controller$6 {
|
|
|
6662
6696
|
return;
|
|
6663
6697
|
this.isHiddenByHideFunc = false;
|
|
6664
6698
|
const { userAction } = options;
|
|
6665
|
-
this.hooks.emit('show', { userAction });
|
|
6699
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6666
6700
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6667
6701
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6668
6702
|
}
|
|
@@ -6672,14 +6706,14 @@ class Controller$3 extends Controller$6 {
|
|
|
6672
6706
|
const renderDuration = 500;
|
|
6673
6707
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6674
6708
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6675
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6709
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6676
6710
|
this.render();
|
|
6677
6711
|
}
|
|
6678
6712
|
async _hide(options) {
|
|
6679
6713
|
if (!this.state.enabled)
|
|
6680
6714
|
return;
|
|
6681
6715
|
const { userAction } = options;
|
|
6682
|
-
this.hooks.emit('hide', { userAction });
|
|
6716
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6683
6717
|
const modelOpacity = 1;
|
|
6684
6718
|
const renderDuration = 0;
|
|
6685
6719
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6696,7 +6730,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6696
6730
|
}
|
|
6697
6731
|
updateState(state, userAction) {
|
|
6698
6732
|
const prevState = this.state;
|
|
6699
|
-
|
|
6733
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6734
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6700
6735
|
if (equal(this.state, prevState, { deep: true }))
|
|
6701
6736
|
return;
|
|
6702
6737
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var five = require('@realsee/five');
|
|
5
6
|
var THREE = require('three');
|
|
6
7
|
var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
|
|
7
8
|
var line = require('@realsee/five/line');
|
|
@@ -10,7 +11,6 @@ var svelte = require('svelte');
|
|
|
10
11
|
var easing = require('svelte/easing');
|
|
11
12
|
var transition = require('svelte/transition');
|
|
12
13
|
var store = require('svelte/store');
|
|
13
|
-
var five = require('@realsee/five');
|
|
14
14
|
var FBXLoader = require('three/examples/jsm/loaders/FBXLoader');
|
|
15
15
|
var TWEEN = require('@tweenjs/tween.js');
|
|
16
16
|
var Hammer = require('hammerjs');
|
|
@@ -46,12 +46,21 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
46
46
|
* Five 模型插件
|
|
47
47
|
* @template ExportType 导出方法
|
|
48
48
|
*/
|
|
49
|
-
const ModelViewPlugin = (five) => {
|
|
49
|
+
const ModelViewPlugin = (five$1, params) => {
|
|
50
50
|
let needsRender = true;
|
|
51
51
|
let renderer = null;
|
|
52
|
+
const defaultConfig = {
|
|
53
|
+
lookAtCurrentCamera: false,
|
|
54
|
+
lockedPanoIndex: null,
|
|
55
|
+
lockedLatitude: null,
|
|
56
|
+
lockedLongitude: null,
|
|
57
|
+
};
|
|
58
|
+
const config = Object.assign(Object.assign({}, defaultConfig), params === null || params === void 0 ? void 0 : params.config);
|
|
52
59
|
const scene = new THREE__namespace.Scene();
|
|
53
|
-
const camera = new
|
|
60
|
+
const camera = new five.Camera(60);
|
|
54
61
|
let model = new THREE__namespace.Object3D();
|
|
62
|
+
let distance;
|
|
63
|
+
let offset;
|
|
55
64
|
{
|
|
56
65
|
const light = new THREE__namespace.DirectionalLight(0xffffff, 0.5);
|
|
57
66
|
light.position.copy(new THREE__namespace.Vector3(1, 1, 1));
|
|
@@ -67,11 +76,11 @@ const ModelViewPlugin = (five) => {
|
|
|
67
76
|
}
|
|
68
77
|
scene.add(model);
|
|
69
78
|
const initRendererIfNeeds = () => {
|
|
70
|
-
if (!five.renderer)
|
|
79
|
+
if (!five$1.renderer)
|
|
71
80
|
return;
|
|
72
81
|
if (!renderer) {
|
|
73
82
|
renderer = new THREE__namespace.WebGLRenderer({ antialias: false, alpha: true });
|
|
74
|
-
renderer.setPixelRatio(five.renderer.getPixelRatio());
|
|
83
|
+
renderer.setPixelRatio(five$1.renderer.getPixelRatio());
|
|
75
84
|
renderer.outputEncoding = THREE__namespace.sRGBEncoding;
|
|
76
85
|
renderer.setClearColor(0x181a1c, 0);
|
|
77
86
|
renderer.autoClear = true;
|
|
@@ -91,6 +100,8 @@ const ModelViewPlugin = (five) => {
|
|
|
91
100
|
update();
|
|
92
101
|
};
|
|
93
102
|
const handleModelLoaded = () => {
|
|
103
|
+
distance = getDistanceFromModel(five$1.model, camera.fov, camera.aspect);
|
|
104
|
+
offset = five$1.model.bounding.getCenter(new THREE__namespace.Vector3());
|
|
94
105
|
function cloneMaterial(_material) {
|
|
95
106
|
const material = _material.clone();
|
|
96
107
|
material.uniforms.modelAlpha.value = 1;
|
|
@@ -119,7 +130,7 @@ const ModelViewPlugin = (five) => {
|
|
|
119
130
|
}
|
|
120
131
|
}
|
|
121
132
|
scene.remove(model);
|
|
122
|
-
model = cloneModel(five.model);
|
|
133
|
+
model = cloneModel(five$1.model);
|
|
123
134
|
scene.add(model);
|
|
124
135
|
update();
|
|
125
136
|
};
|
|
@@ -150,29 +161,36 @@ const ModelViewPlugin = (five) => {
|
|
|
150
161
|
}
|
|
151
162
|
update();
|
|
152
163
|
};
|
|
153
|
-
|
|
154
|
-
const bounding =
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
Math.pow(bounding.max.
|
|
158
|
-
Math.pow(bounding.max.z - bounding.min.z + 2, 2));
|
|
164
|
+
function getDistanceFromModel(model, fov, aspect) {
|
|
165
|
+
const bounding = model.bounding;
|
|
166
|
+
const radius = Math.pow(Math.pow(bounding.max.x - bounding.min.x + 1, 2) +
|
|
167
|
+
Math.pow(bounding.max.y - bounding.min.y + 1, 2) +
|
|
168
|
+
Math.pow(bounding.max.z - bounding.min.z + 1, 2), 1 / 2);
|
|
159
169
|
// fit screen
|
|
160
170
|
let distance = radius / 2 / Math.tan((Math.PI * fov) / 360);
|
|
161
171
|
if (aspect < 1)
|
|
162
172
|
distance = distance / aspect;
|
|
163
173
|
return isNaN(distance) ? radius : distance;
|
|
164
|
-
}
|
|
174
|
+
}
|
|
175
|
+
function getOffsetFromPanoIndex(panoIndex) {
|
|
176
|
+
return five$1.work.observers[panoIndex].standingPosition.clone();
|
|
177
|
+
}
|
|
165
178
|
const update = () => {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
if (!distance || !offset)
|
|
180
|
+
return;
|
|
181
|
+
const pose = five$1.getPose();
|
|
182
|
+
pose.fov = camera.fov;
|
|
183
|
+
pose.offset = offset;
|
|
184
|
+
pose.distance = distance;
|
|
185
|
+
if (typeof config.lockedLatitude === 'number')
|
|
186
|
+
pose.latitude = config.lockedLatitude;
|
|
187
|
+
if (typeof config.lockedLongitude === 'number')
|
|
188
|
+
pose.longitude = config.lockedLongitude;
|
|
189
|
+
if (typeof config.lockedPanoIndex === 'number')
|
|
190
|
+
pose.offset = getOffsetFromPanoIndex(config.lockedPanoIndex);
|
|
191
|
+
if (config.lookAtCurrentCamera)
|
|
192
|
+
pose.offset = five$1.camera.position.clone().setY(five$1.camera.position.y + 1);
|
|
193
|
+
camera.setFromPose(pose);
|
|
176
194
|
needsRender = true;
|
|
177
195
|
};
|
|
178
196
|
const render = () => {
|
|
@@ -193,12 +211,18 @@ const ModelViewPlugin = (five) => {
|
|
|
193
211
|
renderer.dispose();
|
|
194
212
|
renderer = null;
|
|
195
213
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
214
|
+
const changeConfigs = (userConfig) => {
|
|
215
|
+
Object.assign(config, userConfig);
|
|
216
|
+
update();
|
|
217
|
+
};
|
|
218
|
+
Object.assign(window, { camera });
|
|
219
|
+
five$1.on('modelLoaded', handleModelLoaded);
|
|
220
|
+
five$1.on('modelWillLoad', handleModelWillLoad);
|
|
221
|
+
five$1.on('cameraDirectionUpdate', update);
|
|
222
|
+
five$1.on('dispose', dispose);
|
|
223
|
+
five$1.on('renderFrame', render);
|
|
224
|
+
five$1.on('cameraPositionUpdate', update);
|
|
225
|
+
return { appendTo, refresh, changeConfigs };
|
|
202
226
|
};
|
|
203
227
|
|
|
204
228
|
function evenNumber(num, config) {
|
|
@@ -599,11 +623,11 @@ function add_css$p(target) {
|
|
|
599
623
|
|
|
600
624
|
function get_each_context$c(ctx, list, i) {
|
|
601
625
|
const child_ctx = ctx.slice();
|
|
602
|
-
child_ctx[
|
|
626
|
+
child_ctx[13] = list[i];
|
|
603
627
|
return child_ctx;
|
|
604
628
|
}
|
|
605
629
|
|
|
606
|
-
// (
|
|
630
|
+
// (79:2) {#each roomLabels as roomLableItem (roomLableItem.id)}
|
|
607
631
|
function create_each_block$c(key_1, ctx) {
|
|
608
632
|
let first;
|
|
609
633
|
let roomlabelitem;
|
|
@@ -611,7 +635,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
611
635
|
|
|
612
636
|
roomlabelitem = new RoomLabelItem({
|
|
613
637
|
props: {
|
|
614
|
-
roomLabel: /*roomLableItem*/ ctx[
|
|
638
|
+
roomLabel: /*roomLableItem*/ ctx[13],
|
|
615
639
|
five: /*five*/ ctx[1]
|
|
616
640
|
}
|
|
617
641
|
});
|
|
@@ -632,7 +656,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
632
656
|
p(new_ctx, dirty) {
|
|
633
657
|
ctx = new_ctx;
|
|
634
658
|
const roomlabelitem_changes = {};
|
|
635
|
-
if (dirty & /*roomLabels*/ 1) roomlabelitem_changes.roomLabel = /*roomLableItem*/ ctx[
|
|
659
|
+
if (dirty & /*roomLabels*/ 1) roomlabelitem_changes.roomLabel = /*roomLableItem*/ ctx[13];
|
|
636
660
|
if (dirty & /*five*/ 2) roomlabelitem_changes.five = /*five*/ ctx[1];
|
|
637
661
|
roomlabelitem.$set(roomlabelitem_changes);
|
|
638
662
|
},
|
|
@@ -659,7 +683,7 @@ function create_fragment$u(ctx) {
|
|
|
659
683
|
let div_resize_listener;
|
|
660
684
|
let current;
|
|
661
685
|
let each_value = /*roomLabels*/ ctx[0];
|
|
662
|
-
const get_key = ctx => /*roomLableItem*/ ctx[
|
|
686
|
+
const get_key = ctx => /*roomLableItem*/ ctx[13].id;
|
|
663
687
|
|
|
664
688
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
665
689
|
let child_ctx = get_each_context$c(ctx, each_value, i);
|
|
@@ -726,13 +750,19 @@ function create_fragment$u(ctx) {
|
|
|
726
750
|
|
|
727
751
|
function instance$u($$self, $$props, $$invalidate) {
|
|
728
752
|
let rendererSize;
|
|
753
|
+
var _a;
|
|
729
754
|
let { five } = $$props;
|
|
730
755
|
let { roomLabels } = $$props;
|
|
731
756
|
let containerWidth;
|
|
732
757
|
let containerHeight;
|
|
733
|
-
|
|
758
|
+
|
|
759
|
+
let shownFloor = (_a = five.model.shownFloor) !== null && _a !== void 0
|
|
760
|
+
? _a
|
|
761
|
+
: null;
|
|
734
762
|
|
|
735
763
|
function getLabelVisible(item) {
|
|
764
|
+
const isLabelInFloor = shownFloor === null || item.floorIndex === shownFloor;
|
|
765
|
+
if (!isLabelInFloor) return false;
|
|
736
766
|
const raycaster = new THREE.Raycaster();
|
|
737
767
|
const cameraPosition = five.camera.position.clone();
|
|
738
768
|
const position = new THREE.Vector3(item.position.x, item.position.y, item.position.z);
|
|
@@ -751,7 +781,9 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
751
781
|
return `translate(${xOffset}px, ${yOffset}px)`;
|
|
752
782
|
}
|
|
753
783
|
|
|
754
|
-
function getFormatedRoomLabels(
|
|
784
|
+
function getFormatedRoomLabels(params) {
|
|
785
|
+
const { rendererSize, shownFloor } = params;
|
|
786
|
+
|
|
755
787
|
// 因为 item distance 需要重复计算,所以缓存一下
|
|
756
788
|
const distanceMap = new Map();
|
|
757
789
|
|
|
@@ -784,7 +816,7 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
784
816
|
}
|
|
785
817
|
|
|
786
818
|
function onFiveCameraUpdate() {
|
|
787
|
-
$$invalidate(0, roomLabels = getFormatedRoomLabels(rendererSize));
|
|
819
|
+
$$invalidate(0, roomLabels = getFormatedRoomLabels({ rendererSize, shownFloor }));
|
|
788
820
|
}
|
|
789
821
|
|
|
790
822
|
function onFiveModelShownFloorChange(floorIndex) {
|
|
@@ -816,21 +848,10 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
816
848
|
$$invalidate(5, rendererSize = { x: containerWidth, y: containerHeight });
|
|
817
849
|
}
|
|
818
850
|
|
|
819
|
-
if ($$self.$$.dirty & /*rendererSize*/
|
|
851
|
+
if ($$self.$$.dirty & /*rendererSize, shownFloor*/ 48) {
|
|
820
852
|
{
|
|
821
|
-
// rendererSize 变化时,触发 reRender
|
|
822
|
-
$$invalidate(0, roomLabels = getFormatedRoomLabels(rendererSize));
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
if ($$self.$$.dirty & /*roomLabels, shownFloor*/ 17) {
|
|
827
|
-
{
|
|
828
|
-
// shownFloor 变化时,更新 item visible
|
|
829
|
-
$$invalidate(0, roomLabels = roomLabels.map(item => {
|
|
830
|
-
const isLabelInFloor = shownFloor === null || item.floorIndex === shownFloor;
|
|
831
|
-
const visible = isLabelInFloor ? item.visible : false;
|
|
832
|
-
return Object.assign(Object.assign({}, item), { visible });
|
|
833
|
-
}));
|
|
853
|
+
// rendererSize 和 shownFloor 变化时,触发 reRender
|
|
854
|
+
$$invalidate(0, roomLabels = getFormatedRoomLabels({ rendererSize, shownFloor }));
|
|
834
855
|
}
|
|
835
856
|
}
|
|
836
857
|
};
|
|
@@ -6153,6 +6174,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6153
6174
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6154
6175
|
getLabelElement: undefined,
|
|
6155
6176
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6177
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6178
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6156
6179
|
};
|
|
6157
6180
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6158
6181
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6226,6 +6249,10 @@ class Controller$4 extends Controller$6 {
|
|
|
6226
6249
|
state.visible ? this._show(options) : this._hide(options);
|
|
6227
6250
|
}
|
|
6228
6251
|
}
|
|
6252
|
+
changeConfigs(config, userAction = true) {
|
|
6253
|
+
this.updateState({ config }, userAction);
|
|
6254
|
+
this.render();
|
|
6255
|
+
}
|
|
6229
6256
|
/** 更新户型图位置 */
|
|
6230
6257
|
updatePosition() {
|
|
6231
6258
|
var _a;
|
|
@@ -6244,7 +6271,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6244
6271
|
}
|
|
6245
6272
|
updateState(state, userAction) {
|
|
6246
6273
|
const prevState = this.state;
|
|
6247
|
-
|
|
6274
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6275
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6248
6276
|
if (equal(this.state, prevState, { deep: true }))
|
|
6249
6277
|
return;
|
|
6250
6278
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6581,6 +6609,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6581
6609
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6582
6610
|
getLabelElement: undefined,
|
|
6583
6611
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6612
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6613
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6584
6614
|
};
|
|
6585
6615
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6586
6616
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6682,6 +6712,10 @@ class Controller$3 extends Controller$6 {
|
|
|
6682
6712
|
state.visible ? this._show(options) : this._hide(options);
|
|
6683
6713
|
}
|
|
6684
6714
|
}
|
|
6715
|
+
changeConfigs(config, userAction = true) {
|
|
6716
|
+
this.updateState({ config }, userAction);
|
|
6717
|
+
this.render();
|
|
6718
|
+
}
|
|
6685
6719
|
async formatData(serverData) {
|
|
6686
6720
|
return await formatData(serverData.data);
|
|
6687
6721
|
}
|
|
@@ -6690,7 +6724,7 @@ class Controller$3 extends Controller$6 {
|
|
|
6690
6724
|
return;
|
|
6691
6725
|
this.isHiddenByHideFunc = false;
|
|
6692
6726
|
const { userAction } = options;
|
|
6693
|
-
this.hooks.emit('show', { userAction });
|
|
6727
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6694
6728
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6695
6729
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6696
6730
|
}
|
|
@@ -6700,14 +6734,14 @@ class Controller$3 extends Controller$6 {
|
|
|
6700
6734
|
const renderDuration = 500;
|
|
6701
6735
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6702
6736
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6703
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6737
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6704
6738
|
this.render();
|
|
6705
6739
|
}
|
|
6706
6740
|
async _hide(options) {
|
|
6707
6741
|
if (!this.state.enabled)
|
|
6708
6742
|
return;
|
|
6709
6743
|
const { userAction } = options;
|
|
6710
|
-
this.hooks.emit('hide', { userAction });
|
|
6744
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6711
6745
|
const modelOpacity = 1;
|
|
6712
6746
|
const renderDuration = 0;
|
|
6713
6747
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6724,7 +6758,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6724
6758
|
}
|
|
6725
6759
|
updateState(state, userAction) {
|
|
6726
6760
|
const prevState = this.state;
|
|
6727
|
-
|
|
6761
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6762
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6728
6763
|
if (equal(this.state, prevState, { deep: true }))
|
|
6729
6764
|
return;
|
|
6730
6765
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|