@realsee/dnalogel 2.1.0-alpha.15 → 2.1.0-alpha.17
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/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/CameraMovementPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/CruisePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/CruisePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/GuideLinePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ItemLabelPlugin/index.js +8 -8
- package/dist/ModelChassisCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelEntryDoorGuidePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelItemLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelItemLabelPlugin/index.js +8 -8
- package/dist/ModelRoomLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelRoomLabelPlugin/index.js +27 -30
- package/dist/ModelTVVideoPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelViewPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/ModelViewPlugin/index.js +53 -28
- package/dist/Object3DHelperPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoCompassPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoCursorRaycasterPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoDoorLabelPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoDoorLabelPlugin/index.js +1 -1
- package/dist/PanoMeasurePlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerProPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoRulerProPlugin/index.js +21 -31
- package/dist/PanoSpatialTagPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoSpatialTagPlugin/index.js +8 -8
- package/dist/PanoTagPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/PanoTagPlugin/index.js +162 -187
- package/dist/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +41 -41
- package/dist/floorplan/ModelFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +41 -41
- package/dist/floorplan/PanoFloorplanRadarPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +25 -25
- package/dist/floorplan/TopviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +13 -2
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +41 -41
- package/dist/index.es.js +341 -355
- package/dist/index.js +349 -363
- package/dist/index.umd.js +352 -366
- 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/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.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/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.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/Object3DHelperState.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/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ItemLabelPlugin/ItemLabelItem.js +5 -5
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +5 -5
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +7 -7
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +20 -23
- package/libs/ModelViewPlugin/Plugin.d.ts +13 -2
- package/libs/ModelViewPlugin/Plugin.js +45 -20
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +20 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +7 -7
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +7 -6
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -5
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +5 -5
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +16 -14
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +1 -1
- package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +10 -9
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +18 -16
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +36 -64
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +13 -19
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/index.js +5 -5
- package/libs/PanoTagPlugin/Components/TagWrapper.js +7 -7
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/nullishCoalescing.js +9 -0
- package/libs/floorplan/Components/BaseImage.js +1 -1
- package/libs/floorplan/Components/Camera.js +9 -9
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/CurrentFloor.js +1 -1
- package/libs/floorplan/Components/Main.js +1 -1
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +6 -6
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +7 -7
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +5 -5
- package/libs/floorplan/Components/SvgImage.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +9 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +5 -5
- package/package.json +2 -2
- package/libs/node_modules/brace-expansion/index.d.ts +0 -2
- package/libs/node_modules/brace-expansion/index.js +0 -177
- package/libs/node_modules/glob/common.d.ts +0 -7
- package/libs/node_modules/glob/common.js +0 -206
- package/libs/node_modules/glob/glob.js +0 -658
- package/libs/node_modules/glob/sync.d.ts +0 -23
- package/libs/node_modules/glob/sync.js +0 -405
- package/libs/node_modules/minimatch/lib/path.d.ts +0 -1
- package/libs/node_modules/minimatch/lib/path.js +0 -4
- package/libs/node_modules/minimatch/minimatch.d.ts +0 -36
- package/libs/node_modules/minimatch/minimatch.js +0 -784
- package/libs/node_modules/swiper/svelte/index.d.ts +0 -1
- package/libs/node_modules/swiper/svelte/index.js +0 -1
- package/libs/node_modules/swiper/svelte/swiper-slide.d.ts +0 -5
- package/libs/node_modules/swiper/svelte/swiper-slide.js +0 -302
- package/libs/node_modules/swiper/svelte/swiper-svelte.d.ts +0 -4
- package/libs/node_modules/swiper/svelte/swiper-svelte.js +0 -14
- package/libs/node_modules/swiper/svelte/swiper.d.ts +0 -6
- package/libs/node_modules/swiper/svelte/swiper.js +0 -516
- package/libs/src/CSS3DRenderPlugin/CSS3DRender.d.ts +0 -156
- package/libs/src/CSS3DRenderPlugin/CSS3DRender.js +0 -445
- package/libs/src/CSS3DRenderPlugin/Controller.d.ts +0 -78
- package/libs/src/CSS3DRenderPlugin/Controller.js +0 -108
- package/libs/src/CSS3DRenderPlugin/index.d.ts +0 -5
- package/libs/src/CSS3DRenderPlugin/index.js +0 -4
- package/libs/src/CSS3DRenderPlugin/typing.d.ts +0 -26
- package/libs/src/CSS3DRenderPlugin/typing.js +0 -1
- package/libs/src/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +0 -16
- package/libs/src/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -136
- package/libs/src/CSS3DRenderPlugin/utils/centerPoint.d.ts +0 -2
- package/libs/src/CSS3DRenderPlugin/utils/centerPoint.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/src/CSS3DRenderPlugin/utils/evenNumber.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/index.d.ts +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/index.js +0 -4
- package/libs/src/CSS3DRenderPlugin/utils/positionToVector3.d.ts +0 -13
- package/libs/src/CSS3DRenderPlugin/utils/positionToVector3.js +0 -11
- package/libs/src/CSS3DRenderPlugin/utils/random.d.ts +0 -1
- package/libs/src/CSS3DRenderPlugin/utils/random.js +0 -3
- package/libs/src/CameraMovementPlugin/CameraMovementPlugin.d.ts +0 -7
- package/libs/src/CameraMovementPlugin/CameraMovementPlugin.js +0 -159
- package/libs/src/CameraMovementPlugin/index.d.ts +0 -5
- package/libs/src/CameraMovementPlugin/index.js +0 -4
- package/libs/src/CameraMovementPlugin/typing.d.ts +0 -68
- package/libs/src/CameraMovementPlugin/typing.js +0 -17
- package/libs/src/CruisePlugin/Controller.d.ts +0 -170
- package/libs/src/CruisePlugin/Controller.js +0 -769
- package/libs/src/CruisePlugin/index.d.ts +0 -6
- package/libs/src/CruisePlugin/index.js +0 -4
- package/libs/src/CruisePlugin/typing.d.ts +0 -129
- package/libs/src/CruisePlugin/typing.js +0 -1
- package/libs/src/CruisePlugin/utils/coordinatesAngle.d.ts +0 -12
- package/libs/src/CruisePlugin/utils/coordinatesAngle.js +0 -12
- package/libs/src/CruisePlugin/utils/coordinatesToVector.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/coordinatesToVector.js +0 -10
- package/libs/src/CruisePlugin/utils/formatRad.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/formatRad.js +0 -12
- package/libs/src/CruisePlugin/utils/linerValue.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/linerValue.js +0 -6
- package/libs/src/CruisePlugin/utils/safeCall.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/safeCall.js +0 -7
- package/libs/src/CruisePlugin/utils/sleep.d.ts +0 -1
- package/libs/src/CruisePlugin/utils/sleep.js +0 -7
- package/libs/src/CruisePlugin/utils/vectorToCoordinates.d.ts +0 -7
- package/libs/src/CruisePlugin/utils/vectorToCoordinates.js +0 -9
- package/libs/src/GuideLinePlugin/Controller.d.ts +0 -46
- package/libs/src/GuideLinePlugin/Controller.js +0 -186
- package/libs/src/GuideLinePlugin/index.d.ts +0 -5
- package/libs/src/GuideLinePlugin/index.js +0 -3
- package/libs/src/GuideLinePlugin/typing.d.ts +0 -31
- package/libs/src/GuideLinePlugin/typing.js +0 -1
- package/libs/src/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/libs/src/GuideLinePlugin/utils/getArrowMaterial.js +0 -19
- package/libs/src/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -14
- package/libs/src/GuideLinePlugin/utils/getLineGeometries.js +0 -183
- package/libs/src/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/src/GuideLinePlugin/utils/getPoint.js +0 -23
- package/libs/src/ItemLabelPlugin/Plugin.d.ts +0 -4
- package/libs/src/ItemLabelPlugin/Plugin.js +0 -126
- package/libs/src/ItemLabelPlugin/events.type.d.ts +0 -9
- package/libs/src/ItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ItemLabelPlugin/index.d.ts +0 -9
- package/libs/src/ItemLabelPlugin/index.js +0 -8
- package/libs/src/ItemLabelPlugin/typings.d.ts +0 -65
- package/libs/src/ItemLabelPlugin/typings.js +0 -7
- package/libs/src/ItemLabelPlugin/utils/getLabelTransform.d.ts +0 -1
- package/libs/src/ItemLabelPlugin/utils/getLabelTransform.js +0 -3
- package/libs/src/ItemLabelPlugin/utils/getStrokeLength.d.ts +0 -5
- package/libs/src/ItemLabelPlugin/utils/getStrokeLength.js +0 -16
- package/libs/src/ItemLabelPlugin/utils/isImpacted.d.ts +0 -8
- package/libs/src/ItemLabelPlugin/utils/isImpacted.js +0 -13
- package/libs/src/ItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ItemLabelPlugin/utils/transform2RenderData.d.ts +0 -3
- package/libs/src/ItemLabelPlugin/utils/transform2RenderData.js +0 -4
- package/libs/src/ModelChassisCompassPlugin/Plugin.d.ts +0 -19
- package/libs/src/ModelChassisCompassPlugin/Plugin.js +0 -77
- package/libs/src/ModelChassisCompassPlugin/index.d.ts +0 -4
- package/libs/src/ModelChassisCompassPlugin/index.js +0 -3
- package/libs/src/ModelEntryDoorGuidePlugin/Plugin.d.ts +0 -26
- package/libs/src/ModelEntryDoorGuidePlugin/Plugin.js +0 -140
- package/libs/src/ModelEntryDoorGuidePlugin/index.d.ts +0 -4
- package/libs/src/ModelEntryDoorGuidePlugin/index.js +0 -3
- package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +0 -4
- package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.js +0 -120
- package/libs/src/ModelItemLabelPlugin/events.type.d.ts +0 -9
- package/libs/src/ModelItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ModelItemLabelPlugin/index.d.ts +0 -9
- package/libs/src/ModelItemLabelPlugin/index.js +0 -8
- package/libs/src/ModelItemLabelPlugin/typings.d.ts +0 -56
- package/libs/src/ModelItemLabelPlugin/typings.js +0 -7
- package/libs/src/ModelItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ModelItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +0 -1
- package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.js +0 -1
- package/libs/src/ModelRoomLabelPlugin/Controller.d.ts +0 -36
- package/libs/src/ModelRoomLabelPlugin/Controller.js +0 -142
- package/libs/src/ModelRoomLabelPlugin/index.d.ts +0 -12
- package/libs/src/ModelRoomLabelPlugin/index.js +0 -9
- package/libs/src/ModelRoomLabelPlugin/typings.d.ts +0 -35
- package/libs/src/ModelRoomLabelPlugin/typings.js +0 -1
- package/libs/src/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -3
- package/libs/src/ModelRoomLabelPlugin/utils/parseData.js +0 -14
- package/libs/src/ModelTVVideoPlugin/Plugin.d.ts +0 -4
- package/libs/src/ModelTVVideoPlugin/Plugin.js +0 -254
- package/libs/src/ModelTVVideoPlugin/index.d.ts +0 -5
- package/libs/src/ModelTVVideoPlugin/index.js +0 -4
- package/libs/src/ModelTVVideoPlugin/typings.d.ts +0 -25
- package/libs/src/ModelTVVideoPlugin/typings.js +0 -8
- package/libs/src/ModelTVVideoPlugin/utils/parseData.d.ts +0 -2
- package/libs/src/ModelTVVideoPlugin/utils/parseData.js +0 -13
- package/libs/src/ModelViewPlugin/Plugin.d.ts +0 -17
- package/libs/src/ModelViewPlugin/Plugin.js +0 -160
- package/libs/src/ModelViewPlugin/index.d.ts +0 -4
- package/libs/src/ModelViewPlugin/index.js +0 -3
- package/libs/src/Object3DHelperPlugin/Controller.d.ts +0 -65
- package/libs/src/Object3DHelperPlugin/Controller.js +0 -206
- package/libs/src/Object3DHelperPlugin/FiveControllerWrapper.d.ts +0 -19
- package/libs/src/Object3DHelperPlugin/FiveControllerWrapper.js +0 -57
- package/libs/src/Object3DHelperPlugin/index.d.ts +0 -6
- package/libs/src/Object3DHelperPlugin/index.js +0 -5
- package/libs/src/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/src/Object3DHelperPlugin/mocks/addObject3D.js +0 -22
- package/libs/src/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/src/Object3DHelperPlugin/mocks/objects.js +0 -44
- package/libs/src/Object3DHelperPlugin/typings.d.ts +0 -24
- package/libs/src/Object3DHelperPlugin/typings.js +0 -1
- package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +0 -1
- package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.js +0 -1
- package/libs/src/PanoCompassPlugin/Controller.d.ts +0 -84
- package/libs/src/PanoCompassPlugin/Controller.js +0 -460
- package/libs/src/PanoCompassPlugin/getRoomInfoInstance.d.ts +0 -8
- package/libs/src/PanoCompassPlugin/getRoomInfoInstance.js +0 -48
- package/libs/src/PanoCompassPlugin/index.d.ts +0 -7
- package/libs/src/PanoCompassPlugin/index.js +0 -3
- package/libs/src/PanoCompassPlugin/typings.d.ts +0 -57
- package/libs/src/PanoCompassPlugin/typings.js +0 -1
- package/libs/src/PanoCursorRaycasterPlugin/index.d.ts +0 -48
- package/libs/src/PanoCursorRaycasterPlugin/index.js +0 -76
- package/libs/src/PanoDoorLabelPlugin/BaseController.d.ts +0 -60
- package/libs/src/PanoDoorLabelPlugin/BaseController.js +0 -103
- package/libs/src/PanoDoorLabelPlugin/Controller.d.ts +0 -37
- package/libs/src/PanoDoorLabelPlugin/Controller.js +0 -439
- package/libs/src/PanoDoorLabelPlugin/index.d.ts +0 -7
- package/libs/src/PanoDoorLabelPlugin/index.js +0 -6
- package/libs/src/PanoDoorLabelPlugin/typings.d.ts +0 -38
- package/libs/src/PanoDoorLabelPlugin/typings.js +0 -1
- package/libs/src/PanoDoorLabelPlugin/utils.d.ts +0 -5
- package/libs/src/PanoDoorLabelPlugin/utils.js +0 -55
- package/libs/src/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -39
- package/libs/src/PanoMeasurePlugin/Controller/BaseController.js +0 -132
- package/libs/src/PanoMeasurePlugin/Controller/EditController.d.ts +0 -52
- package/libs/src/PanoMeasurePlugin/Controller/EditController.js +0 -329
- package/libs/src/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -44
- package/libs/src/PanoMeasurePlugin/Controller/MixedController.js +0 -337
- package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
- package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -64
- package/libs/src/PanoMeasurePlugin/Controller/ViewController.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Controller/ViewController.js +0 -160
- package/libs/src/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -26
- package/libs/src/PanoMeasurePlugin/Controller/WatchController.js +0 -317
- package/libs/src/PanoMeasurePlugin/Controller/index.d.ts +0 -70
- package/libs/src/PanoMeasurePlugin/Controller/index.js +0 -308
- package/libs/src/PanoMeasurePlugin/Model/index.d.ts +0 -38
- package/libs/src/PanoMeasurePlugin/Model/index.js +0 -139
- package/libs/src/PanoMeasurePlugin/Model/line.d.ts +0 -30
- package/libs/src/PanoMeasurePlugin/Model/line.js +0 -114
- package/libs/src/PanoMeasurePlugin/Model/point.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Model/point.js +0 -48
- package/libs/src/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Model/polyline.js +0 -65
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -12
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -25
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -190
- package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
- package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.js +0 -48
- package/libs/src/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
- package/libs/src/PanoMeasurePlugin/Modules/GuideController.js +0 -110
- package/libs/src/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -59
- package/libs/src/PanoMeasurePlugin/Modules/Magnifier.js +0 -278
- package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -128
- package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -15
- package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -126
- package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -13
- package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -73
- package/libs/src/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -20
- package/libs/src/PanoMeasurePlugin/Modules/UIController/index.js +0 -117
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +0 -80
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +0 -12
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +0 -98
- package/libs/src/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -16
- package/libs/src/PanoMeasurePlugin/Modules/UIController/style.js +0 -71
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.js +0 -64
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -44
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.js +0 -264
- package/libs/src/PanoMeasurePlugin/index.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/index.js +0 -7
- package/libs/src/PanoMeasurePlugin/typings/data.d.ts +0 -37
- package/libs/src/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/event.type.d.ts +0 -37
- package/libs/src/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/src/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.js +0 -15
- package/libs/src/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/clearGroup.js +0 -3
- package/libs/src/PanoMeasurePlugin/utils/constants.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/utils/constants.js +0 -31
- package/libs/src/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
- package/libs/src/PanoMeasurePlugin/utils/distanceDom.js +0 -120
- package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -21
- package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.js +0 -27
- package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -9
- package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
- package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -14
- package/libs/src/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
- package/libs/src/PanoMeasurePlugin/utils/ironbox.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
- package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -6
- package/libs/src/PanoMeasurePlugin/utils/line.d.ts +0 -17
- package/libs/src/PanoMeasurePlugin/utils/line.js +0 -33
- package/libs/src/PanoMeasurePlugin/utils/math.d.ts +0 -17
- package/libs/src/PanoMeasurePlugin/utils/math.js +0 -44
- package/libs/src/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -7
- package/libs/src/PanoMeasurePlugin/utils/mouseGroup.js +0 -69
- package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
- package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.js +0 -6
- package/libs/src/PanoRulerPlugin/Plugin.d.ts +0 -31
- package/libs/src/PanoRulerPlugin/Plugin.js +0 -401
- package/libs/src/PanoRulerPlugin/index.d.ts +0 -5
- package/libs/src/PanoRulerPlugin/index.js +0 -3
- package/libs/src/PanoRulerPlugin/style.d.ts +0 -2
- package/libs/src/PanoRulerPlugin/style.js +0 -88
- package/libs/src/PanoRulerPlugin/typings.d.ts +0 -21
- package/libs/src/PanoRulerPlugin/typings.js +0 -1
- package/libs/src/PanoRulerProPlugin/Controller.d.ts +0 -15
- package/libs/src/PanoRulerProPlugin/Controller.js +0 -110
- package/libs/src/PanoRulerProPlugin/index.d.ts +0 -8
- package/libs/src/PanoRulerProPlugin/index.js +0 -8
- package/libs/src/PanoRulerProPlugin/typings.d.ts +0 -46
- package/libs/src/PanoRulerProPlugin/typings.js +0 -1
- package/libs/src/PanoSpatialTagPlugin/Plugin.d.ts +0 -35
- package/libs/src/PanoSpatialTagPlugin/Plugin.js +0 -426
- package/libs/src/PanoSpatialTagPlugin/index.d.ts +0 -5
- package/libs/src/PanoSpatialTagPlugin/index.js +0 -5
- package/libs/src/PanoSpatialTagPlugin/store.d.ts +0 -1
- package/libs/src/PanoSpatialTagPlugin/store.js +0 -2
- package/libs/src/PanoSpatialTagPlugin/style.d.ts +0 -1
- package/libs/src/PanoSpatialTagPlugin/style.js +0 -8
- package/libs/src/PanoSpatialTagPlugin/typings.d.ts +0 -40
- package/libs/src/PanoSpatialTagPlugin/typings.js +0 -1
- package/libs/src/PanoTagPlugin/Assets/Icon.d.ts +0 -2
- package/libs/src/PanoTagPlugin/Assets/Icon.js +0 -2
- package/libs/src/PanoTagPlugin/controller/TagCacheController.d.ts +0 -22
- package/libs/src/PanoTagPlugin/controller/TagCacheController.js +0 -43
- package/libs/src/PanoTagPlugin/controller/TagComputer.d.ts +0 -68
- package/libs/src/PanoTagPlugin/controller/TagComputer.js +0 -410
- package/libs/src/PanoTagPlugin/controller/index.d.ts +0 -143
- package/libs/src/PanoTagPlugin/controller/index.js +0 -638
- package/libs/src/PanoTagPlugin/index.d.ts +0 -8
- package/libs/src/PanoTagPlugin/index.js +0 -5
- package/libs/src/PanoTagPlugin/mocks/mock1.d.ts +0 -168
- package/libs/src/PanoTagPlugin/mocks/mock1.js +0 -170
- package/libs/src/PanoTagPlugin/mocks/mock2.d.ts +0 -233
- package/libs/src/PanoTagPlugin/mocks/mock2.js +0 -293
- package/libs/src/PanoTagPlugin/mocks/mock3.d.ts +0 -22
- package/libs/src/PanoTagPlugin/mocks/mock3.js +0 -31
- package/libs/src/PanoTagPlugin/mocks/mock4.d.ts +0 -56
- package/libs/src/PanoTagPlugin/mocks/mock4.js +0 -57
- package/libs/src/PanoTagPlugin/mocks/mock5.d.ts +0 -13
- package/libs/src/PanoTagPlugin/mocks/mock5.js +0 -14
- package/libs/src/PanoTagPlugin/mocks/mock6.d.ts +0 -16
- package/libs/src/PanoTagPlugin/mocks/mock6.js +0 -236
- package/libs/src/PanoTagPlugin/mocks/mock7.d.ts +0 -22
- package/libs/src/PanoTagPlugin/mocks/mock7.js +0 -246
- package/libs/src/PanoTagPlugin/tag.config.d.ts +0 -7
- package/libs/src/PanoTagPlugin/tag.config.js +0 -47
- package/libs/src/PanoTagPlugin/typings/controller.d.ts +0 -103
- package/libs/src/PanoTagPlugin/typings/controller.js +0 -1
- package/libs/src/PanoTagPlugin/typings/index.d.ts +0 -2
- package/libs/src/PanoTagPlugin/typings/index.js +0 -2
- package/libs/src/PanoTagPlugin/typings/tag.d.ts +0 -237
- package/libs/src/PanoTagPlugin/typings/tag.js +0 -32
- package/libs/src/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -2
- package/libs/src/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -6
- package/libs/src/PanoTagPlugin/utils/addDebugPoints.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/addDebugPoints.js +0 -32
- package/libs/src/PanoTagPlugin/utils/checkRange.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/checkRange.js +0 -12
- package/libs/src/PanoTagPlugin/utils/constants.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/constants.js +0 -5
- package/libs/src/PanoTagPlugin/utils/debounce.d.ts +0 -7
- package/libs/src/PanoTagPlugin/utils/debounce.js +0 -21
- package/libs/src/PanoTagPlugin/utils/index.d.ts +0 -12
- package/libs/src/PanoTagPlugin/utils/index.js +0 -12
- package/libs/src/PanoTagPlugin/utils/noTypecheck.d.ts +0 -1
- package/libs/src/PanoTagPlugin/utils/noTypecheck.js +0 -1
- package/libs/src/PanoTagPlugin/utils/normalPositionToPositions.d.ts +0 -2
- package/libs/src/PanoTagPlugin/utils/normalPositionToPositions.js +0 -35
- package/libs/src/PanoTagPlugin/utils/planeNormal.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/planeNormal.js +0 -9
- package/libs/src/PanoTagPlugin/utils/resizeObserver.d.ts +0 -4
- package/libs/src/PanoTagPlugin/utils/resizeObserver.js +0 -15
- package/libs/src/PanoTagPlugin/utils/search.d.ts +0 -11
- package/libs/src/PanoTagPlugin/utils/search.js +0 -65
- package/libs/src/PanoTagPlugin/utils/tagPosition.d.ts +0 -3
- package/libs/src/PanoTagPlugin/utils/tagPosition.js +0 -10
- package/libs/src/PanoTagPlugin/utils/throttle.d.ts +0 -7
- package/libs/src/PanoTagPlugin/utils/throttle.js +0 -17
- package/libs/src/base/BasePlugin.d.ts +0 -100
- package/libs/src/base/BasePlugin.js +0 -31
- package/libs/src/base/BasePluginWithData.d.ts +0 -34
- package/libs/src/base/BasePluginWithData.js +0 -4
- package/libs/src/components/PaintBrush/Controller.d.ts +0 -43
- package/libs/src/components/PaintBrush/Controller.js +0 -575
- package/libs/src/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/src/components/PaintBrush/Subscribe.js +0 -121
- package/libs/src/components/PaintBrush/index.d.ts +0 -27
- package/libs/src/components/PaintBrush/index.js +0 -57
- package/libs/src/components/PaintBrush/style.d.ts +0 -2
- package/libs/src/components/PaintBrush/style.js +0 -102
- package/libs/src/components/PaintBrush/tween.d.ts +0 -62
- package/libs/src/components/PaintBrush/tween.js +0 -15
- package/libs/src/components/PaintBrush/typings.d.ts +0 -58
- package/libs/src/components/PaintBrush/typings.js +0 -6
- package/libs/src/components/PaintBrush/utils.d.ts +0 -26
- package/libs/src/components/PaintBrush/utils.js +0 -51
- package/libs/src/components/index.d.ts +0 -2
- package/libs/src/components/index.js +0 -3
- package/libs/src/floorplan/Assets/camera.d.ts +0 -1
- package/libs/src/floorplan/Assets/camera.js +0 -1
- package/libs/src/floorplan/Assets/compass.d.ts +0 -1
- package/libs/src/floorplan/Assets/compass.js +0 -1
- package/libs/src/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
- package/libs/src/floorplan/Assets/floorplanExtraObject.js +0 -1
- package/libs/src/floorplan/MapviewFloorplanPlugin/Controller.d.ts +0 -95
- package/libs/src/floorplan/MapviewFloorplanPlugin/Controller.js +0 -682
- package/libs/src/floorplan/MapviewFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/MapviewFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/MapviewFloorplanPlugin/typing.d.ts +0 -107
- package/libs/src/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/ModelFloorplanPlugin/Controller.d.ts +0 -98
- package/libs/src/floorplan/ModelFloorplanPlugin/Controller.js +0 -701
- package/libs/src/floorplan/ModelFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/ModelFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/ModelFloorplanPlugin/typing.d.ts +0 -107
- package/libs/src/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +0 -36
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -240
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.js +0 -5
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +0 -52
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.d.ts +0 -67
- package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.js +0 -486
- package/libs/src/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -7
- package/libs/src/floorplan/TopviewFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
- package/libs/src/floorplan/TopviewFloorplanPlugin/style.js +0 -8
- package/libs/src/floorplan/TopviewFloorplanPlugin/typing.d.ts +0 -86
- package/libs/src/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/constant.d.ts +0 -5
- package/libs/src/floorplan/constant.js +0 -6
- package/libs/src/floorplan/index.d.ts +0 -7
- package/libs/src/floorplan/index.js +0 -8
- package/libs/src/floorplan/typings/floorplanData.d.ts +0 -137
- package/libs/src/floorplan/typings/floorplanData.js +0 -6
- package/libs/src/floorplan/typings/floorplanServerData.d.ts +0 -144
- package/libs/src/floorplan/typings/floorplanServerData.js +0 -101
- package/libs/src/floorplan/typings/utility.d.ts +0 -2
- package/libs/src/floorplan/typings/utility.js +0 -1
- package/libs/src/floorplan/utils/constant.d.ts +0 -22
- package/libs/src/floorplan/utils/constant.js +0 -23
- package/libs/src/floorplan/utils/correctFiveState.d.ts +0 -15
- package/libs/src/floorplan/utils/correctFiveState.js +0 -46
- package/libs/src/floorplan/utils/formatData.d.ts +0 -5
- package/libs/src/floorplan/utils/formatData.js +0 -94
- package/libs/src/floorplan/utils/formatPosition.d.ts +0 -36
- package/libs/src/floorplan/utils/formatPosition.js +0 -50
- package/libs/src/index.d.ts +0 -22
- package/libs/src/index.js +0 -39
- package/libs/src/shared-utils/Object3DHelper/Base/BaseController.d.ts +0 -48
- package/libs/src/shared-utils/Object3DHelper/Base/BaseController.js +0 -271
- package/libs/src/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +0 -91
- package/libs/src/shared-utils/Object3DHelper/Base/BaseHelper.js +0 -55
- package/libs/src/shared-utils/Object3DHelper/Constants/color.d.ts +0 -12
- package/libs/src/shared-utils/Object3DHelper/Constants/color.js +0 -23
- package/libs/src/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +0 -6
- package/libs/src/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +0 -21
- package/libs/src/shared-utils/Object3DHelper/Controller/MoveController.d.ts +0 -13
- package/libs/src/shared-utils/Object3DHelper/Controller/MoveController.js +0 -111
- package/libs/src/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +0 -37
- package/libs/src/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +0 -199
- package/libs/src/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -22
- package/libs/src/shared-utils/Object3DHelper/Controller/RotateController.js +0 -265
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +0 -11
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +0 -101
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +0 -6
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +0 -24
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +0 -12
- package/libs/src/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +0 -13
- package/libs/src/shared-utils/Object3DHelper/Helper/MoveHelper.js +0 -43
- package/libs/src/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +0 -17
- package/libs/src/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +0 -83
- package/libs/src/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +0 -11
- package/libs/src/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -130
- package/libs/src/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +0 -40
- package/libs/src/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +0 -229
- package/libs/src/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +0 -55
- package/libs/src/shared-utils/Object3DHelper/Helper/RotateHelper.js +0 -246
- package/libs/src/shared-utils/Object3DHelper/Helper/index.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/Helper/index.js +0 -5
- package/libs/src/shared-utils/Object3DHelper/index.d.ts +0 -71
- package/libs/src/shared-utils/Object3DHelper/index.js +0 -301
- package/libs/src/shared-utils/Object3DHelper/typings/Direction.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/typings/Direction.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -45
- package/libs/src/shared-utils/Object3DHelper/typings/Hooks.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/Scissor.d.ts +0 -17
- package/libs/src/shared-utils/Object3DHelper/typings/Scissor.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/typings/index.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/typings/index.js +0 -3
- package/libs/src/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +0 -14
- package/libs/src/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +0 -15
- package/libs/src/shared-utils/Object3DHelper/utils/direction.d.ts +0 -14
- package/libs/src/shared-utils/Object3DHelper/utils/direction.js +0 -37
- package/libs/src/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +0 -20
- package/libs/src/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -9
- package/libs/src/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +0 -12
- package/libs/src/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/src/shared-utils/Object3DHelper/utils/getPoint.js +0 -22
- package/libs/src/shared-utils/Object3DHelper/utils/index.d.ts +0 -8
- package/libs/src/shared-utils/Object3DHelper/utils/index.js +0 -8
- package/libs/src/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/negateScale.js +0 -4
- package/libs/src/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +0 -5
- package/libs/src/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +0 -17
- package/libs/src/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +0 -1
- package/libs/src/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +0 -67
- package/libs/src/shared-utils/Object3DHelper/utils/threex/domevents/index.js +0 -390
- package/libs/src/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +0 -2
- package/libs/src/shared-utils/Object3DHelper/utils/vectorIsEqual.js +0 -10
- package/libs/src/shared-utils/Preloader.d.ts +0 -6
- package/libs/src/shared-utils/Preloader.js +0 -38
- package/libs/src/shared-utils/Subscribe.d.ts +0 -61
- package/libs/src/shared-utils/Subscribe.js +0 -117
- package/libs/src/shared-utils/animationFrame/BetterTween.d.ts +0 -11
- package/libs/src/shared-utils/animationFrame/BetterTween.js +0 -59
- package/libs/src/shared-utils/animationFrame/calculateProgress.d.ts +0 -8
- package/libs/src/shared-utils/animationFrame/calculateProgress.js +0 -23
- package/libs/src/shared-utils/animationFrame/formatRad.d.ts +0 -15
- package/libs/src/shared-utils/animationFrame/formatRad.js +0 -20
- package/libs/src/shared-utils/animationFrame/index.d.ts +0 -15
- package/libs/src/shared-utils/animationFrame/index.js +0 -48
- package/libs/src/shared-utils/animationFrame/tween.d.ts +0 -75
- package/libs/src/shared-utils/animationFrame/tween.js +0 -44
- package/libs/src/shared-utils/changeModelCanvasOpacity.d.ts +0 -2
- package/libs/src/shared-utils/changeModelCanvasOpacity.js +0 -15
- package/libs/src/shared-utils/createCanvasTextTexture.d.ts +0 -8
- package/libs/src/shared-utils/createCanvasTextTexture.js +0 -20
- package/libs/src/shared-utils/createLine/index.d.ts +0 -3
- package/libs/src/shared-utils/createLine/index.js +0 -8
- package/libs/src/shared-utils/debounce.d.ts +0 -6
- package/libs/src/shared-utils/debounce.js +0 -14
- package/libs/src/shared-utils/equal.d.ts +0 -11
- package/libs/src/shared-utils/equal.js +0 -84
- package/libs/src/shared-utils/filter.d.ts +0 -27
- package/libs/src/shared-utils/filter.js +0 -53
- package/libs/src/shared-utils/five/changeMode.d.ts +0 -5
- package/libs/src/shared-utils/five/changeMode.js +0 -36
- package/libs/src/shared-utils/formatRad.d.ts +0 -7
- package/libs/src/shared-utils/formatRad.js +0 -10
- package/libs/src/shared-utils/getPxmm.d.ts +0 -19
- package/libs/src/shared-utils/getPxmm.js +0 -39
- package/libs/src/shared-utils/getRandomColor.d.ts +0 -1
- package/libs/src/shared-utils/getRandomColor.js +0 -10
- package/libs/src/shared-utils/index.d.ts +0 -1
- package/libs/src/shared-utils/index.js +0 -1
- package/libs/src/shared-utils/isNil.d.ts +0 -10
- package/libs/src/shared-utils/isNil.js +0 -14
- package/libs/src/shared-utils/isTruelyObject.d.ts +0 -18
- package/libs/src/shared-utils/isTruelyObject.js +0 -20
- package/libs/src/shared-utils/logger.d.ts +0 -16
- package/libs/src/shared-utils/logger.js +0 -47
- package/libs/src/shared-utils/math/Interval.d.ts +0 -13
- package/libs/src/shared-utils/math/Interval.js +0 -40
- package/libs/src/shared-utils/math/Rectangle.d.ts +0 -27
- package/libs/src/shared-utils/math/Rectangle.js +0 -50
- package/libs/src/shared-utils/math/evenNumber.d.ts +0 -3
- package/libs/src/shared-utils/math/evenNumber.js +0 -4
- package/libs/src/shared-utils/math/index.d.ts +0 -2
- package/libs/src/shared-utils/math/index.js +0 -2
- package/libs/src/shared-utils/math/planimetry.d.ts +0 -116
- package/libs/src/shared-utils/math/planimetry.js +0 -288
- package/libs/src/shared-utils/math/rad2Deg.d.ts +0 -1
- package/libs/src/shared-utils/math/rad2Deg.js +0 -3
- package/libs/src/shared-utils/nearlyEqual.d.ts +0 -7
- package/libs/src/shared-utils/nearlyEqual.js +0 -9
- package/libs/src/shared-utils/nextFrame.d.ts +0 -1
- package/libs/src/shared-utils/nextFrame.js +0 -6
- package/libs/src/shared-utils/noop.d.ts +0 -5
- package/libs/src/shared-utils/noop.js +0 -7
- package/libs/src/shared-utils/object3d2LocalMatrix.d.ts +0 -12
- package/libs/src/shared-utils/object3d2LocalMatrix.js +0 -29
- package/libs/src/shared-utils/px2rem.d.ts +0 -1
- package/libs/src/shared-utils/px2rem.js +0 -4
- package/libs/src/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/src/shared-utils/removeArrayItem.js +0 -12
- package/libs/src/shared-utils/tap.d.ts +0 -8
- package/libs/src/shared-utils/tap.js +0 -12
- package/libs/src/shared-utils/three/centerPoint.d.ts +0 -2
- package/libs/src/shared-utils/three/centerPoint.js +0 -4
- package/libs/src/shared-utils/three/getExtraModelLoader.d.ts +0 -6
- package/libs/src/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/src/shared-utils/three/getNormal.d.ts +0 -2
- package/libs/src/shared-utils/three/getNormal.js +0 -6
- package/libs/src/shared-utils/three/getTextureLoader.d.ts +0 -6
- package/libs/src/shared-utils/three/getTextureLoader.js +0 -17
- package/libs/src/shared-utils/three/loadFbxObj.d.ts +0 -2
- package/libs/src/shared-utils/three/loadFbxObj.js +0 -13
- package/libs/src/shared-utils/three/loadTexture.d.ts +0 -2
- package/libs/src/shared-utils/three/loadTexture.js +0 -10
- package/libs/src/shared-utils/three/transformPositionToVector3.d.ts +0 -7
- package/libs/src/shared-utils/three/transformPositionToVector3.js +0 -3
- package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.d.ts +0 -2
- package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.js +0 -15
- package/libs/src/shared-utils/throttle.d.ts +0 -7
- package/libs/src/shared-utils/throttle.js +0 -18
- package/libs/src/shared-utils/tinyEJSrender.d.ts +0 -5
- package/libs/src/shared-utils/tinyEJSrender.js +0 -210
- package/libs/src/shared-utils/to.d.ts +0 -8
- package/libs/src/shared-utils/to.js +0 -18
- package/libs/src/shared-utils/uuid.d.ts +0 -5
- package/libs/src/shared-utils/uuid.js +0 -12
- package/libs/src/shared-utils/vectorTocoordinates.d.ts +0 -7
- package/libs/src/shared-utils/vectorTocoordinates.js +0 -9
- package/libs/src/typings/math.type.d.ts +0 -44
- package/libs/src/typings/math.type.js +0 -1
- package/libs/src/typings/utils.type.d.ts +0 -2
- package/libs/src/typings/utils.type.js +0 -1
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
3
|
-
import { Subscribe } from '../shared-utils/Subscribe';
|
|
4
|
-
import { anyPositionToVector3, evenNumber } from './utils';
|
|
5
|
-
import { CSS3DObjectPlus } from './utils/CSS3DObjectPlus';
|
|
6
|
-
const VERSION = 'v2.0.0';
|
|
7
|
-
const PLUGIN_NAME = 'CSS3DRenderer';
|
|
8
|
-
export const __ELEMENT__ = '__CSS3DOBJECT_CSS3DRENDER_CONTAINER__';
|
|
9
|
-
export const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
10
|
-
const pluginFlag = (name) => `${PLUGIN}--${name}`;
|
|
11
|
-
export const MinRatio = 0.00216;
|
|
12
|
-
export const globalStore = {};
|
|
13
|
-
export class CSS3DRender {
|
|
14
|
-
constructor() {
|
|
15
|
-
Object.defineProperty(this, "hooks", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true,
|
|
19
|
-
value: new Subscribe()
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(this, "state", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true,
|
|
25
|
-
value: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
visible: true,
|
|
28
|
-
disposed: false,
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(this, "store", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: {
|
|
36
|
-
disposers: [],
|
|
37
|
-
frontModeCSS3DObjects: {},
|
|
38
|
-
behindModeCSS3DObjects: {},
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
43
|
-
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
44
|
-
* @param config 均为可选值
|
|
45
|
-
* @config_document `config` 均为可选值
|
|
46
|
-
* | key | type | defaultValue | comment |
|
|
47
|
-
* | - | - | - | - |
|
|
48
|
-
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
49
|
-
* | `devicePixelRatio` | *`number`* | `1` | 设备的物理像素分辨率与CSS像素分辨率的比值 |
|
|
50
|
-
* | `container` | *`HTMLElement`* | `undefined` | 自定义 return 中的 `container`
|
|
51
|
-
* | `pointerEvents` | *`'none'\|'auto'`* | `'none'` | container 的 css属性:`pointer-events` 的值 |
|
|
52
|
-
* | `autoRender` | *`boolean`* | `true` | 是否自动渲染,通常为true |
|
|
53
|
-
* | `mode` | *`'front'\|'behind'`* | `front` | 两种模式:|
|
|
54
|
-
* | | | | `front` 模式:DOM 处于 five Canvas 上方,所以无法模拟遮挡效果,需要手动检测是否可见去设置显隐 |
|
|
55
|
-
* | | | | `behind` 模式:DOM 处于 five Canvas 下方,可以模拟真实的遮挡效果,但是 DOM 必须是非透明的 |
|
|
56
|
-
* | `scene` | *`THREE.Scene`* | `undefined` | 如果 mode 为 `behind`,需要传入 |
|
|
57
|
-
*
|
|
58
|
-
* @return
|
|
59
|
-
* ```typescript
|
|
60
|
-
* {
|
|
61
|
-
* id: string, // id
|
|
62
|
-
* container: HTMLDIVElement // dom容器
|
|
63
|
-
* dispose: () => void // 销毁
|
|
64
|
-
* css3DObject: CSS3DObject // THREE.CSS3DObject 实例
|
|
65
|
-
* render?: () => void // 渲染函数,当 config.autoRender = true || undefined 时为 undefined
|
|
66
|
-
* setVisible: (visible: boolean) => void // 设置显隐, 同 setVisibleById(id, visible)
|
|
67
|
-
* show: () => void // 同 setVisible(true)
|
|
68
|
-
* hide: () => void // 同 setVisible(false)
|
|
69
|
-
* setEnabled: (enabled: boolean) => void // 添加/移除 container, 同 setEnabledById(id, enabled)
|
|
70
|
-
* enable: () => void // 同 setEnabled(true)
|
|
71
|
-
* disable: () => void // 同 setEnabled(false)
|
|
72
|
-
* } | void
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
Object.defineProperty(this, "create3DElement", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true,
|
|
78
|
-
writable: true,
|
|
79
|
-
value: (camera, points, config) => {
|
|
80
|
-
if (this.state.disposed)
|
|
81
|
-
return this.disposedErrorLog();
|
|
82
|
-
// ==== init ====
|
|
83
|
-
const mergeConfig = (() => {
|
|
84
|
-
const defaultConfig = {
|
|
85
|
-
ratio: 0.00216,
|
|
86
|
-
devicePixelRatio: 1,
|
|
87
|
-
mode: 'front',
|
|
88
|
-
autoRender: true,
|
|
89
|
-
container: document.createElement('div'),
|
|
90
|
-
pointerEvents: 'none',
|
|
91
|
-
};
|
|
92
|
-
return Object.assign(defaultConfig, config);
|
|
93
|
-
})();
|
|
94
|
-
const vector3Points = points.map(anyPositionToVector3);
|
|
95
|
-
if ((vector3Points === null || vector3Points === void 0 ? void 0 : vector3Points.length) < 4)
|
|
96
|
-
return console.error(`${PLUGIN}: requires 4 point but params may have fewer`);
|
|
97
|
-
const { ratio, devicePixelRatio: dpr, mode, autoRender, container, pointerEvents } = mergeConfig;
|
|
98
|
-
const disposers = [];
|
|
99
|
-
// ==== init END ====
|
|
100
|
-
// 获取css3DObject, 如果mode为behind的话,也一起获取mesh
|
|
101
|
-
const { css3DObject, opacityMesh } = this.createObject(vector3Points, {
|
|
102
|
-
ratio,
|
|
103
|
-
dpr,
|
|
104
|
-
container,
|
|
105
|
-
mode,
|
|
106
|
-
pointerEvents,
|
|
107
|
-
});
|
|
108
|
-
container.id = `container--${css3DObject.uuid}`;
|
|
109
|
-
const frontModeAndFrontModeUnInited = mode === 'front' && !globalStore.frontModeStore;
|
|
110
|
-
const behindModeAndBehindModeUnInited = mode === 'behind' && !globalStore.behindModeStore;
|
|
111
|
-
if (behindModeAndBehindModeUnInited) {
|
|
112
|
-
globalStore.behindModeStore = {
|
|
113
|
-
scene: mergeConfig.scene,
|
|
114
|
-
css3DScene: new THREE.Scene(),
|
|
115
|
-
css3DRenderer: new CSS3DRenderer(),
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
if (frontModeAndFrontModeUnInited) {
|
|
119
|
-
globalStore.frontModeStore = { css3DScene: new THREE.Scene(), css3DRenderer: new CSS3DRenderer() };
|
|
120
|
-
}
|
|
121
|
-
const modeStore = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
122
|
-
const { css3DScene, css3DRenderer } = modeStore;
|
|
123
|
-
const render = (() => {
|
|
124
|
-
const renderCSS3DObject = () => {
|
|
125
|
-
if (mode === 'front') {
|
|
126
|
-
this.store.frontModeCSS3DObjects[css3DObject.uuid] = {
|
|
127
|
-
visible: true,
|
|
128
|
-
enabled: true,
|
|
129
|
-
css3DObject,
|
|
130
|
-
mode: 'front',
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
this.store.behindModeCSS3DObjects[css3DObject.uuid] = {
|
|
135
|
-
visible: true,
|
|
136
|
-
enabled: true,
|
|
137
|
-
css3DObject,
|
|
138
|
-
opacityMesh: opacityMesh,
|
|
139
|
-
mode: 'behind',
|
|
140
|
-
scene: mergeConfig.scene,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
css3DScene.add(css3DObject);
|
|
144
|
-
if (mode === 'behind' && opacityMesh) {
|
|
145
|
-
mergeConfig.scene.add(opacityMesh);
|
|
146
|
-
disposers.push(() => opacityMesh && mergeConfig.scene.remove(opacityMesh));
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
if (frontModeAndFrontModeUnInited || behindModeAndBehindModeUnInited) {
|
|
150
|
-
css3DRenderer.domElement.style.position = 'absolute';
|
|
151
|
-
css3DRenderer.domElement.style.top = '0';
|
|
152
|
-
css3DRenderer.domElement.style.userSelect = 'none';
|
|
153
|
-
css3DRenderer.domElement.style.pointerEvents = 'none';
|
|
154
|
-
css3DRenderer.domElement.classList.add(pluginFlag(mode));
|
|
155
|
-
const renderEveryFrame = () => {
|
|
156
|
-
const requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
|
|
157
|
-
modeStore.requestAnimationFrameId = requestAnimationFrameId;
|
|
158
|
-
css3DRenderer.render(css3DScene, camera);
|
|
159
|
-
};
|
|
160
|
-
return () => {
|
|
161
|
-
renderCSS3DObject();
|
|
162
|
-
renderEveryFrame();
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return () => renderCSS3DObject();
|
|
166
|
-
})();
|
|
167
|
-
const wrapper = mode === 'front' ? globalStore.frontModeContainer : globalStore.behindModeContainer;
|
|
168
|
-
if (wrapper) {
|
|
169
|
-
this.appendToElement(wrapper, mode);
|
|
170
|
-
const store = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
171
|
-
if (store)
|
|
172
|
-
store.appendedToPage = true;
|
|
173
|
-
}
|
|
174
|
-
const setVisible = (visible) => this.setVisibleById(css3DObject.uuid, visible);
|
|
175
|
-
const setEnabled = (enabled) => this.setEnabledById(css3DObject.uuid, enabled);
|
|
176
|
-
const show = () => setVisible(true);
|
|
177
|
-
const hide = () => setVisible(false);
|
|
178
|
-
const enable = () => setEnabled(true);
|
|
179
|
-
const disable = () => setEnabled(false);
|
|
180
|
-
const dispose = () => {
|
|
181
|
-
delete this.store.frontModeCSS3DObjects[css3DObject.uuid];
|
|
182
|
-
delete this.store.behindModeCSS3DObjects[css3DObject.uuid];
|
|
183
|
-
disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
184
|
-
css3DScene.remove(css3DObject);
|
|
185
|
-
// 如果全没了,就清除父容器
|
|
186
|
-
if (css3DScene.children.length === 0) {
|
|
187
|
-
if (typeof modeStore.requestAnimationFrameId === 'number') {
|
|
188
|
-
cancelAnimationFrame(modeStore.requestAnimationFrameId);
|
|
189
|
-
}
|
|
190
|
-
css3DRenderer.domElement.remove();
|
|
191
|
-
if (mode === 'front')
|
|
192
|
-
globalStore.frontModeStore = undefined;
|
|
193
|
-
if (mode === 'behind')
|
|
194
|
-
globalStore.behindModeStore = undefined;
|
|
195
|
-
globalStore.resizeObserver = undefined;
|
|
196
|
-
}
|
|
197
|
-
return true;
|
|
198
|
-
};
|
|
199
|
-
this.store.disposers.push(dispose);
|
|
200
|
-
if (autoRender)
|
|
201
|
-
render();
|
|
202
|
-
return {
|
|
203
|
-
id: css3DObject.uuid,
|
|
204
|
-
container,
|
|
205
|
-
dispose,
|
|
206
|
-
css3DObject,
|
|
207
|
-
render: autoRender ? undefined : render,
|
|
208
|
-
show,
|
|
209
|
-
hide,
|
|
210
|
-
setVisible,
|
|
211
|
-
disable,
|
|
212
|
-
enable,
|
|
213
|
-
setEnabled,
|
|
214
|
-
appendToElement: (container) => this.appendToElement(container, mode),
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
Object.defineProperty(this, "setVisibleById", {
|
|
219
|
-
enumerable: true,
|
|
220
|
-
configurable: true,
|
|
221
|
-
writable: true,
|
|
222
|
-
value: (id, visible) => {
|
|
223
|
-
var _a;
|
|
224
|
-
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
225
|
-
if (!data)
|
|
226
|
-
return;
|
|
227
|
-
data.css3DObject.visible = visible;
|
|
228
|
-
data.visible = visible;
|
|
229
|
-
if (data.mode === 'behind')
|
|
230
|
-
data.opacityMesh.visible = visible;
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
Object.defineProperty(this, "setEnabledById", {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
configurable: true,
|
|
236
|
-
writable: true,
|
|
237
|
-
value: (id, enabled) => {
|
|
238
|
-
var _a, _b, _c;
|
|
239
|
-
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
240
|
-
if (!data)
|
|
241
|
-
return;
|
|
242
|
-
const css3DScene = data.mode === 'front' ? (_b = globalStore.frontModeStore) === null || _b === void 0 ? void 0 : _b.css3DScene : (_c = globalStore.behindModeStore) === null || _c === void 0 ? void 0 : _c.css3DScene;
|
|
243
|
-
if (!css3DScene)
|
|
244
|
-
return;
|
|
245
|
-
if (enabled) {
|
|
246
|
-
css3DScene.add(data.css3DObject);
|
|
247
|
-
if (data.mode === 'behind')
|
|
248
|
-
data.scene.add(data.opacityMesh);
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
css3DScene.remove(data.css3DObject);
|
|
252
|
-
if (data.mode === 'behind')
|
|
253
|
-
data.scene.remove(data.opacityMesh);
|
|
254
|
-
}
|
|
255
|
-
data.enabled = enabled;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(this, "createObject", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
configurable: true,
|
|
261
|
-
writable: true,
|
|
262
|
-
value: (points, config) => {
|
|
263
|
-
const { ratio, dpr, container, mode, pointerEvents } = config;
|
|
264
|
-
const css3DObject = new CSS3DObjectPlus(container, points, ratio, dpr);
|
|
265
|
-
container.style.pointerEvents = pointerEvents;
|
|
266
|
-
container.classList.add(`${PLUGIN_NAME}__container`);
|
|
267
|
-
const { domWidthPx, domHeightPx } = css3DObject;
|
|
268
|
-
// 生成透明Mesh
|
|
269
|
-
const opacityMesh = (() => {
|
|
270
|
-
if (mode === 'behind') {
|
|
271
|
-
const material = new THREE.MeshBasicMaterial({
|
|
272
|
-
opacity: 0,
|
|
273
|
-
transparent: false,
|
|
274
|
-
side: THREE.DoubleSide,
|
|
275
|
-
});
|
|
276
|
-
const geometry = new THREE.PlaneGeometry(domWidthPx, domHeightPx);
|
|
277
|
-
const mesh = new THREE.Mesh(geometry, material);
|
|
278
|
-
mesh.name = pluginFlag('mesh');
|
|
279
|
-
mesh.position.copy(css3DObject.position);
|
|
280
|
-
mesh.rotation.copy(css3DObject.rotation);
|
|
281
|
-
mesh.scale.copy(css3DObject.scale);
|
|
282
|
-
return mesh;
|
|
283
|
-
}
|
|
284
|
-
})();
|
|
285
|
-
return { css3DObject, opacityMesh };
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(this, "createResizeObserver", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
configurable: true,
|
|
291
|
-
writable: true,
|
|
292
|
-
value: (element, resizeHandler, fireImmediately = true) => {
|
|
293
|
-
if (!element) {
|
|
294
|
-
console.error('createResizeObserver: element is undefined');
|
|
295
|
-
return { observe: () => { }, unobserve: () => { } };
|
|
296
|
-
}
|
|
297
|
-
const resizeObserverHandler = () => {
|
|
298
|
-
/**
|
|
299
|
-
* 这里evenNumber策略是遇到奇数会加1,在某些浏览器中会触发滚动条显示,导致fiveElement变小,fiveElement变小又触发了这里的resize,宽高变小,滚动条消失,然后又触发resize。。。无限循环
|
|
300
|
-
* 所以为了规避上面这种情况,evenNumber设置了一个参数,遇到奇数可选择减一
|
|
301
|
-
*/
|
|
302
|
-
const width = evenNumber(element.clientWidth, { smaller: true });
|
|
303
|
-
const height = evenNumber(element.clientHeight, { smaller: true });
|
|
304
|
-
resizeHandler(width, height);
|
|
305
|
-
};
|
|
306
|
-
if (typeof ResizeObserver === 'undefined' || !ResizeObserver) {
|
|
307
|
-
console.warn('createResizeObserver: ResizeObserver is undefined');
|
|
308
|
-
return { observe: () => resizeObserverHandler(), unobserve: () => { } };
|
|
309
|
-
}
|
|
310
|
-
const observer = new ResizeObserver(resizeObserverHandler);
|
|
311
|
-
if (fireImmediately)
|
|
312
|
-
resizeObserverHandler();
|
|
313
|
-
return {
|
|
314
|
-
observe: () => observer.observe(element),
|
|
315
|
-
unobserve: () => observer.unobserve(element),
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
Object.defineProperty(this, "disposedErrorLog", {
|
|
320
|
-
enumerable: true,
|
|
321
|
-
configurable: true,
|
|
322
|
-
writable: true,
|
|
323
|
-
value: () => {
|
|
324
|
-
console.error(`${PLUGIN} is disposed`);
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
getCurrentState() {
|
|
329
|
-
return this.state;
|
|
330
|
-
}
|
|
331
|
-
setState(state, options = { userAction: true }) {
|
|
332
|
-
if (this.state.disposed)
|
|
333
|
-
return this.disposedErrorLog();
|
|
334
|
-
const prevState = Object.assign({}, this.state);
|
|
335
|
-
this.state = Object.assign(this.state, state);
|
|
336
|
-
if (prevState.visible !== this.state.visible) {
|
|
337
|
-
state.visible ? this.handleShow() : this.handleHide();
|
|
338
|
-
}
|
|
339
|
-
if (prevState.enabled !== this.state.enabled) {
|
|
340
|
-
state.enabled ? this.handleEnable() : this.handleDisable();
|
|
341
|
-
}
|
|
342
|
-
this.hooks.emit('stateChange', { state: this.state, prevState, userAction: options.userAction });
|
|
343
|
-
}
|
|
344
|
-
dispose() {
|
|
345
|
-
this.store.disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
346
|
-
this.store.disposers = [];
|
|
347
|
-
this.hooks.emit('dispose');
|
|
348
|
-
this.state.disposed = true;
|
|
349
|
-
}
|
|
350
|
-
async show({ userAction } = { userAction: true }) {
|
|
351
|
-
if (this.state.disposed)
|
|
352
|
-
return this.disposedErrorLog();
|
|
353
|
-
this.setState({ visible: true }, { userAction });
|
|
354
|
-
this.hooks.emit('show', { userAction });
|
|
355
|
-
}
|
|
356
|
-
async hide({ userAction } = { userAction: true }) {
|
|
357
|
-
if (this.state.disposed)
|
|
358
|
-
return this.disposedErrorLog();
|
|
359
|
-
this.setState({ visible: false }, { userAction });
|
|
360
|
-
this.hooks.emit('hide', { userAction });
|
|
361
|
-
}
|
|
362
|
-
enable({ userAction } = { userAction: true }) {
|
|
363
|
-
if (this.state.disposed)
|
|
364
|
-
return this.disposedErrorLog();
|
|
365
|
-
this.setState({ enabled: true }, { userAction });
|
|
366
|
-
this.hooks.emit('enable', { userAction });
|
|
367
|
-
}
|
|
368
|
-
disable({ userAction } = { userAction: true }) {
|
|
369
|
-
if (this.state.disposed)
|
|
370
|
-
return this.disposedErrorLog();
|
|
371
|
-
this.setState({ enabled: false }, { userAction });
|
|
372
|
-
this.hooks.emit('disable', { userAction });
|
|
373
|
-
}
|
|
374
|
-
appendToElement(container, mode) {
|
|
375
|
-
if (!container)
|
|
376
|
-
throw new Error(`${PLUGIN} Cannot append to container: container is ${container}`);
|
|
377
|
-
const store = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
378
|
-
if (!store) {
|
|
379
|
-
if (mode === 'front')
|
|
380
|
-
globalStore.frontModeContainer = container;
|
|
381
|
-
if (mode === 'behind')
|
|
382
|
-
globalStore.behindModeContainer = container;
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
if (store.appendedToPage)
|
|
386
|
-
return;
|
|
387
|
-
container.appendChild(store.css3DRenderer.domElement);
|
|
388
|
-
if (!globalStore.resizeObserver) {
|
|
389
|
-
const reSize = (width, height) => {
|
|
390
|
-
var _a, _b;
|
|
391
|
-
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DRenderer.setSize(width, height);
|
|
392
|
-
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.css3DRenderer.setSize(width, height);
|
|
393
|
-
};
|
|
394
|
-
const { observe, unobserve } = this.createResizeObserver(container, reSize, true);
|
|
395
|
-
globalStore.resizeObserver = { observe, unobserve };
|
|
396
|
-
observe();
|
|
397
|
-
this.store.disposers.push(unobserve);
|
|
398
|
-
}
|
|
399
|
-
store.appendedToPage = true;
|
|
400
|
-
}
|
|
401
|
-
async handleShow() {
|
|
402
|
-
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
403
|
-
value.css3DObject.visible = value.visible;
|
|
404
|
-
});
|
|
405
|
-
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
406
|
-
value.css3DObject.visible = value.visible;
|
|
407
|
-
value.opacityMesh.visible = value.visible;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
async handleHide() {
|
|
411
|
-
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
412
|
-
value.css3DObject.visible = false;
|
|
413
|
-
});
|
|
414
|
-
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
415
|
-
value.css3DObject.visible = false;
|
|
416
|
-
value.opacityMesh.visible = false;
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
handleEnable() {
|
|
420
|
-
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
421
|
-
var _a;
|
|
422
|
-
if (!value.enabled)
|
|
423
|
-
return;
|
|
424
|
-
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.add(value.css3DObject);
|
|
425
|
-
});
|
|
426
|
-
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
427
|
-
var _a, _b;
|
|
428
|
-
if (!value.enabled)
|
|
429
|
-
return;
|
|
430
|
-
(_a = globalStore.behindModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.add(value.css3DObject);
|
|
431
|
-
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.scene.add(value.opacityMesh);
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
handleDisable() {
|
|
435
|
-
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
436
|
-
var _a;
|
|
437
|
-
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.remove(value.css3DObject);
|
|
438
|
-
});
|
|
439
|
-
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
440
|
-
var _a, _b;
|
|
441
|
-
(_a = globalStore.behindModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.remove(value.css3DObject);
|
|
442
|
-
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.scene.remove(value.opacityMesh);
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type * as BasePlugin from '../base/BasePlugin';
|
|
2
|
-
import type { Five } from '@realsee/five';
|
|
3
|
-
import { CSS3DRender, CSS3DRenderEventMap, CSS3DRenderState } from './CSS3DRender';
|
|
4
|
-
import { AnyPosition } from './utils';
|
|
5
|
-
export declare const PLUGIN_NAME: string;
|
|
6
|
-
export interface Create3DDomContainerParamsType {
|
|
7
|
-
points: AnyPosition[];
|
|
8
|
-
config?: {
|
|
9
|
-
ratio?: number;
|
|
10
|
-
/** @deprecated dpr renamed as devicePixelRatio */
|
|
11
|
-
dpr?: number;
|
|
12
|
-
devicePixelRatio?: number;
|
|
13
|
-
autoRender?: boolean;
|
|
14
|
-
container?: HTMLElement;
|
|
15
|
-
pointerEvents?: 'none' | 'auto';
|
|
16
|
-
} & ({
|
|
17
|
-
mode?: 'front';
|
|
18
|
-
} | {
|
|
19
|
-
mode: 'behind';
|
|
20
|
-
behindFiveContainer: HTMLElement;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export default class Controller extends CSS3DRender implements BasePlugin.Controller<CSS3DRenderState, CSS3DRenderEventMap> {
|
|
24
|
-
five: Five;
|
|
25
|
-
constructor(five: Five);
|
|
26
|
-
/** @deprecated disposeAll() renamed as dispose() */
|
|
27
|
-
disposeAll(): void;
|
|
28
|
-
setState(...params: Parameters<InstanceType<typeof CSS3DRender>['setState']>): void;
|
|
29
|
-
/**
|
|
30
|
-
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
31
|
-
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
32
|
-
* @param config 均为可选值
|
|
33
|
-
* @config_document `config` 均为可选值
|
|
34
|
-
* | key | type | defaultValue | comment |
|
|
35
|
-
* | - | - | - | - |
|
|
36
|
-
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
37
|
-
* | ~~`dpr`~~ | ~~*`number`*~~ | ~~`undefined`~~ | ~~**已改名**,请使用~~ `devicePixelRatio` |
|
|
38
|
-
* | `devicePixelRatio` | *`number`* | `1` | 设备的物理像素分辨率与CSS像素分辨率的比值 |
|
|
39
|
-
* | `container` | *`HTMLElement`* | `undefined` | 自定义 return 中的 `container`
|
|
40
|
-
* | `pointerEvents` | *`'none'\|'auto'`* | `'none'` | container 的 css属性:`pointer-events` 的值 |
|
|
41
|
-
* | `autoRender` | *`boolean`* | `true` | 是否自动渲染,通常为true |
|
|
42
|
-
* | `mode` | *`'front'\|'behind'`* | `front` | 两种模式:|
|
|
43
|
-
* | | | | `front` 模式:DOM 处于 five Canvas 上方,所以无法模拟遮挡效果,需要手动检测是否可见去设置显隐 |
|
|
44
|
-
* | | | | `behind` 模式:DOM 处于 five Canvas 下方,可以模拟真实的遮挡效果,但是 DOM 必须是非透明的 |
|
|
45
|
-
* | `behindFiveContainer` | *`HTMLElement`* | `undefined` | 如果 mode 为 `behind`,需要传入容器,并确保此容器位five下方,且中间无其他不透明的dom元素遮挡 |
|
|
46
|
-
*
|
|
47
|
-
* @return
|
|
48
|
-
* ```typescript
|
|
49
|
-
* {
|
|
50
|
-
* id: string, // id
|
|
51
|
-
* container: HTMLDIVElement // dom容器
|
|
52
|
-
* dispose: () => void // 销毁
|
|
53
|
-
* css3DObject: CSS3DObject // THREE.CSS3DObject 实例
|
|
54
|
-
* render?: () => void // 渲染函数,当 config.autoRender = true || undefined 时为 undefined
|
|
55
|
-
* setVisible: (visible: boolean) => void // 设置显隐, 同 setVisibleById(id, visible)
|
|
56
|
-
* show: () => void // 同 setVisible(true)
|
|
57
|
-
* hide: () => void // 同 setVisible(false)
|
|
58
|
-
* setEnabled: (enabled: boolean) => void // 添加/移除 container, 同 setEnabledById(id, enabled)
|
|
59
|
-
* enable: () => void // 同 setEnabled(true)
|
|
60
|
-
* disable: () => void // 同 setEnabled(false)
|
|
61
|
-
* } | void
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
create3DDomContainer: (points: Create3DDomContainerParamsType['points'], config?: Create3DDomContainerParamsType['config']) => void | {
|
|
65
|
-
render: () => void;
|
|
66
|
-
id: string;
|
|
67
|
-
container: HTMLElement;
|
|
68
|
-
dispose: () => boolean;
|
|
69
|
-
css3DObject: import("./utils/CSS3DObjectPlus").CSS3DObjectPlus<HTMLElement>;
|
|
70
|
-
show: () => void;
|
|
71
|
-
hide: () => void;
|
|
72
|
-
setVisible: (visible: boolean) => void;
|
|
73
|
-
disable: () => void;
|
|
74
|
-
enable: () => void;
|
|
75
|
-
setEnabled: (enabled: boolean) => void;
|
|
76
|
-
appendToElement: (container: Element) => void;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { CSS3DRender } from './CSS3DRender';
|
|
2
|
-
import { random } from './utils';
|
|
3
|
-
const VERSION = 'v2.0.0';
|
|
4
|
-
export const PLUGIN_NAME = `CSS3DRenderPlugin-${random()}@${VERSION}`;
|
|
5
|
-
export default class Controller extends CSS3DRender {
|
|
6
|
-
constructor(five) {
|
|
7
|
-
super();
|
|
8
|
-
Object.defineProperty(this, "five", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
configurable: true,
|
|
11
|
-
writable: true,
|
|
12
|
-
value: void 0
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
16
|
-
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
17
|
-
* @param config 均为可选值
|
|
18
|
-
* @config_document `config` 均为可选值
|
|
19
|
-
* | key | type | defaultValue | comment |
|
|
20
|
-
* | - | - | - | - |
|
|
21
|
-
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
22
|
-
* | ~~`dpr`~~ | ~~*`number`*~~ | ~~`undefined`~~ | ~~**已改名**,请使用~~ `devicePixelRatio` |
|
|
23
|
-
* | `devicePixelRatio` | *`number`* | `1` | 设备的物理像素分辨率与CSS像素分辨率的比值 |
|
|
24
|
-
* | `container` | *`HTMLElement`* | `undefined` | 自定义 return 中的 `container`
|
|
25
|
-
* | `pointerEvents` | *`'none'\|'auto'`* | `'none'` | container 的 css属性:`pointer-events` 的值 |
|
|
26
|
-
* | `autoRender` | *`boolean`* | `true` | 是否自动渲染,通常为true |
|
|
27
|
-
* | `mode` | *`'front'\|'behind'`* | `front` | 两种模式:|
|
|
28
|
-
* | | | | `front` 模式:DOM 处于 five Canvas 上方,所以无法模拟遮挡效果,需要手动检测是否可见去设置显隐 |
|
|
29
|
-
* | | | | `behind` 模式:DOM 处于 five Canvas 下方,可以模拟真实的遮挡效果,但是 DOM 必须是非透明的 |
|
|
30
|
-
* | `behindFiveContainer` | *`HTMLElement`* | `undefined` | 如果 mode 为 `behind`,需要传入容器,并确保此容器位five下方,且中间无其他不透明的dom元素遮挡 |
|
|
31
|
-
*
|
|
32
|
-
* @return
|
|
33
|
-
* ```typescript
|
|
34
|
-
* {
|
|
35
|
-
* id: string, // id
|
|
36
|
-
* container: HTMLDIVElement // dom容器
|
|
37
|
-
* dispose: () => void // 销毁
|
|
38
|
-
* css3DObject: CSS3DObject // THREE.CSS3DObject 实例
|
|
39
|
-
* render?: () => void // 渲染函数,当 config.autoRender = true || undefined 时为 undefined
|
|
40
|
-
* setVisible: (visible: boolean) => void // 设置显隐, 同 setVisibleById(id, visible)
|
|
41
|
-
* show: () => void // 同 setVisible(true)
|
|
42
|
-
* hide: () => void // 同 setVisible(false)
|
|
43
|
-
* setEnabled: (enabled: boolean) => void // 添加/移除 container, 同 setEnabledById(id, enabled)
|
|
44
|
-
* enable: () => void // 同 setEnabled(true)
|
|
45
|
-
* disable: () => void // 同 setEnabled(false)
|
|
46
|
-
* } | void
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
Object.defineProperty(this, "create3DDomContainer", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true,
|
|
53
|
-
value: (points, config) => {
|
|
54
|
-
if (this.state.disposed)
|
|
55
|
-
return;
|
|
56
|
-
// ==== init ====
|
|
57
|
-
const mergeConfig = (() => {
|
|
58
|
-
var _a;
|
|
59
|
-
if ((config === null || config === void 0 ? void 0 : config.dpr) !== undefined)
|
|
60
|
-
console.warn(`${PLUGIN_NAME}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
61
|
-
const defaultconfig = {
|
|
62
|
-
ratio: 0.00216,
|
|
63
|
-
devicePixelRatio: (_a = config === null || config === void 0 ? void 0 : config.dpr) !== null && _a !== void 0 ? _a : 1,
|
|
64
|
-
mode: 'front',
|
|
65
|
-
autoRender: true,
|
|
66
|
-
};
|
|
67
|
-
return Object.assign(defaultconfig, config, (config === null || config === void 0 ? void 0 : config.mode) === 'behind' ? { scene: this.five.scene } : undefined);
|
|
68
|
-
})();
|
|
69
|
-
const fiveElement = this.five.getElement();
|
|
70
|
-
if (!fiveElement)
|
|
71
|
-
return console.error(`${PLUGIN_NAME}: five.getElement() is ${fiveElement}`);
|
|
72
|
-
const { autoRender, mode } = mergeConfig;
|
|
73
|
-
// 自动添加dom
|
|
74
|
-
const wrapper = mode === 'front' ? fiveElement.parentElement : mergeConfig.behindFiveContainer;
|
|
75
|
-
this.appendToElement(wrapper || document.body, mode);
|
|
76
|
-
const create3DElementResault = this.create3DElement(this.five.camera, points, Object.assign(Object.assign({}, mergeConfig), { autoRender: false }));
|
|
77
|
-
if (!create3DElementResault)
|
|
78
|
-
return;
|
|
79
|
-
const oldRender = create3DElementResault.render;
|
|
80
|
-
const newRender = () => {
|
|
81
|
-
var _a;
|
|
82
|
-
if (mode === 'front') {
|
|
83
|
-
oldRender();
|
|
84
|
-
}
|
|
85
|
-
if (mode === 'behind') {
|
|
86
|
-
if ((_a = this.five.model) === null || _a === void 0 ? void 0 : _a.loaded)
|
|
87
|
-
oldRender();
|
|
88
|
-
else
|
|
89
|
-
this.five.once('modelLoaded', () => oldRender());
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
if (autoRender)
|
|
93
|
-
newRender();
|
|
94
|
-
return Object.assign(Object.assign({}, create3DElementResault), { render: autoRender ? undefined : newRender });
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
this.five = five;
|
|
98
|
-
}
|
|
99
|
-
/** @deprecated disposeAll() renamed as dispose() */
|
|
100
|
-
disposeAll() {
|
|
101
|
-
return this.dispose();
|
|
102
|
-
}
|
|
103
|
-
setState(...params) {
|
|
104
|
-
const result = super.setState(...params);
|
|
105
|
-
this.five.needsRender = true;
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type CSS3DRenderPlugin from '.';
|
|
2
|
-
import type * as BasePlugin from '../base/BasePlugin';
|
|
3
|
-
import type { CSS3DRender } from './CSS3DRender';
|
|
4
|
-
export declare type CSS3DRenderPluginParameterType = undefined;
|
|
5
|
-
export declare type CSS3DRenderPluginExportType = ReturnType<typeof CSS3DRenderPlugin>;
|
|
6
|
-
export declare type CSS3DRenderExportType = InstanceType<typeof CSS3DRender>;
|
|
7
|
-
export declare type Create3DDomContainerReturnType = ReturnType<CSS3DRenderPluginExportType['create3DDomContainer']>;
|
|
8
|
-
export declare type Create3DElementReturnType = ReturnType<InstanceType<typeof CSS3DRender>['create3DElement']>;
|
|
9
|
-
export interface CSS3DRenderPluginState extends BasePlugin.State {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
visible: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface CSS3DRenderPluginEventMap extends BasePlugin.EventMap<CSS3DRenderPluginState> {
|
|
14
|
-
show: (options?: {
|
|
15
|
-
userAction?: boolean;
|
|
16
|
-
}) => void;
|
|
17
|
-
hide: (options?: {
|
|
18
|
-
userAction?: boolean;
|
|
19
|
-
}) => void;
|
|
20
|
-
enable: (options?: {
|
|
21
|
-
userAction?: boolean;
|
|
22
|
-
}) => void;
|
|
23
|
-
disable: (options?: {
|
|
24
|
-
userAction?: boolean;
|
|
25
|
-
}) => void;
|
|
26
|
-
}
|