@realsee/dnalogel 2.2.6 → 2.2.7
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/docs/assets/main.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +33 -33
- package/package.json +17 -17
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.2.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.2.7</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.2.7"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.2.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.2.7</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.2.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.2.7</a></li>
|
|
16
16
|
<li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/d148805/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
29
29
|
<div class="tsd-navigation settings">
|
|
30
30
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
42
42
|
<div class="tsd-accordion-details">
|
|
43
43
|
<ul>
|
|
44
|
-
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.2.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.2.7</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Z = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var F = (b, e, t) => e in b ? Z(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t,
|
|
4
|
+
var F = (b, e, t) => e in b ? Z(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t, x = (b, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
6
|
ee.call(e, t) && F(b, t, e[t]);
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
7
|
+
if (P)
|
|
8
|
+
for (var t of P(e))
|
|
9
9
|
te.call(e, t) && F(b, t, e[t]);
|
|
10
10
|
return b;
|
|
11
11
|
};
|
|
12
12
|
var l = (b, e, t) => (F(b, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
-
var
|
|
13
|
+
var E = (b, e, t) => new Promise((s, n) => {
|
|
14
14
|
var d = (i) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(i));
|
|
@@ -26,14 +26,16 @@ var C = (b, e, t) => new Promise((s, n) => {
|
|
|
26
26
|
}, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(d, c);
|
|
27
27
|
a((t = t.apply(b, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import * as
|
|
30
|
-
import { CSS3DRenderer as
|
|
29
|
+
import * as C from "three";
|
|
30
|
+
import { CSS3DRenderer as N } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
31
31
|
import { Subscribe as se } from "../shared-utils/Subscribe.js";
|
|
32
|
-
import { evenNumber as
|
|
32
|
+
import { evenNumber as U } from "./utils/evenNumber.js";
|
|
33
33
|
import { anyPositionToVector3 as oe } from "./utils/positionToVector3.js";
|
|
34
34
|
import { CSS3DObjectPlus as ne } from "./utils/CSS3DObjectPlus.js";
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
import { MinRatio as Me } from "./utils/CSS3DObjectPlus.js";
|
|
36
|
+
import "./utils/centerPoint.js";
|
|
37
|
+
const re = "v2.0.1", V = "CSS3DRenderer", le = "__CSS3DOBJECT_CSS3DRENDER_CONTAINER__", m = `${V}@${re}`, H = (b) => `${m}--${b}`, o = {};
|
|
38
|
+
class ue {
|
|
37
39
|
constructor() {
|
|
38
40
|
l(this, "hooks", new se());
|
|
39
41
|
l(this, "state", {
|
|
@@ -67,7 +69,7 @@ class fe {
|
|
|
67
69
|
u.id = `container--${h.uuid}`;
|
|
68
70
|
const Q = i === "front" && !o.frontModeStore, W = i === "behind" && !o.behindModeStore;
|
|
69
71
|
i === "front" && this.initGlobalModeStore("front"), i === "behind" && this.initGlobalModeStore("behind", n.scene), h.hooks.on("changeMode", (r, D, M) => {
|
|
70
|
-
var
|
|
72
|
+
var $, _, B;
|
|
71
73
|
if (r === D)
|
|
72
74
|
return;
|
|
73
75
|
r === "front" && this.initGlobalModeStore("front"), r === "behind" && this.initGlobalModeStore("behind", M);
|
|
@@ -78,12 +80,12 @@ class fe {
|
|
|
78
80
|
if (!j)
|
|
79
81
|
return console.error(`${m}: changeMode error: prevObject is undefined`);
|
|
80
82
|
if (r === "behind") {
|
|
81
|
-
const
|
|
82
|
-
S == null || S.css3DScene.remove(j.css3DObject), w[h.uuid] = { css3DObject: h, opacityMesh:
|
|
83
|
+
const L = ($ = j.opacityMesh) != null ? $ : this.createOpacityMesh(j.css3DObject);
|
|
84
|
+
S == null || S.css3DScene.remove(j.css3DObject), w[h.uuid] = { css3DObject: h, opacityMesh: L, visible: !0, enabled: !0, mode: r, scene: M }, p == null || p.css3DScene.add(h), M == null || M.add(L);
|
|
83
85
|
}
|
|
84
|
-
r === "front" && (S == null || S.css3DScene.remove(j.css3DObject), (
|
|
86
|
+
r === "front" && (S == null || S.css3DScene.remove(j.css3DObject), (B = (_ = I[h.uuid]) == null ? void 0 : _.scene) == null || B.remove(j.opacityMesh), w[h.uuid] = { css3DObject: h, visible: !0, enabled: !0, mode: r }, p == null || p.css3DScene.add(h)), r === "behind" && this.appendToElement(o.behindModeContainer, "behind"), r === "front" && this.appendToElement(o.frontModeContainer, "front"), this.render(e), console.log("change success");
|
|
85
87
|
});
|
|
86
|
-
const g = i === "front" ? o.frontModeStore : o.behindModeStore, { css3DScene:
|
|
88
|
+
const g = i === "front" ? o.frontModeStore : o.behindModeStore, { css3DScene: y, css3DRenderer: v } = g, q = (() => {
|
|
87
89
|
const r = () => {
|
|
88
90
|
var M, S;
|
|
89
91
|
const D = h.mode;
|
|
@@ -106,12 +108,12 @@ class fe {
|
|
|
106
108
|
scene: n.scene
|
|
107
109
|
};
|
|
108
110
|
}
|
|
109
|
-
|
|
111
|
+
y.getObjectById(h.id) || y.add(h), D === "behind" && O && ((M = n.scene) != null && M.getObjectById(O.id) || (S = n.scene) == null || S.add(O), z.push(() => {
|
|
110
112
|
var p;
|
|
111
113
|
return O && ((p = n.scene) == null ? void 0 : p.remove(O));
|
|
112
114
|
}));
|
|
113
115
|
};
|
|
114
|
-
return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(
|
|
116
|
+
return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(H(i)), () => {
|
|
115
117
|
r(), this.render(e);
|
|
116
118
|
}) : (this.store.rendered = !0, () => r());
|
|
117
119
|
})(), k = i === "front" ? o.frontModeContainer : o.behindModeContainer;
|
|
@@ -120,11 +122,11 @@ class fe {
|
|
|
120
122
|
const r = i === "front" ? o.frontModeStore : o.behindModeStore;
|
|
121
123
|
r && (r.appendedToPage = !0);
|
|
122
124
|
}
|
|
123
|
-
const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1),
|
|
124
|
-
return this.store.disposers.push(
|
|
125
|
+
const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1), T = () => (delete this.store.frontModeCSS3DObjects[h.uuid], delete this.store.behindModeCSS3DObjects[h.uuid], z.forEach((r) => r == null ? void 0 : r()), y.remove(h), y.children.length === 0 && (typeof g.requestAnimationFrameId == "number" && cancelAnimationFrame(g.requestAnimationFrameId), v.domElement.remove(), i === "front" && (o.frontModeStore = void 0), i === "behind" && (o.behindModeStore = void 0), o.frontModeResizeObserver = void 0, o.behindModeResizeObserver = void 0), !0);
|
|
126
|
+
return this.store.disposers.push(T), f && q(), {
|
|
125
127
|
id: h.uuid,
|
|
126
128
|
container: u,
|
|
127
|
-
dispose:
|
|
129
|
+
dispose: T,
|
|
128
130
|
css3DObject: h,
|
|
129
131
|
render: f ? void 0 : q,
|
|
130
132
|
show: J,
|
|
@@ -153,18 +155,18 @@ class fe {
|
|
|
153
155
|
});
|
|
154
156
|
l(this, "createObject", (e, t) => {
|
|
155
157
|
const { ratio: s, dpr: n, container: d, mode: c, pointerEvents: a } = t, i = new ne(d, e, s, n, c);
|
|
156
|
-
d.style.pointerEvents = a, d.classList.add(`${
|
|
158
|
+
d.style.pointerEvents = a, d.classList.add(`${V}__container`);
|
|
157
159
|
const f = c === "behind" ? this.createOpacityMesh(i) : void 0;
|
|
158
160
|
return { css3DObject: i, opacityMesh: f };
|
|
159
161
|
});
|
|
160
162
|
l(this, "createOpacityMesh", (e) => {
|
|
161
|
-
const { domWidthPx: t, domHeightPx: s } = e, n = new
|
|
163
|
+
const { domWidthPx: t, domHeightPx: s } = e, n = new C.MeshBasicMaterial({
|
|
162
164
|
opacity: 0,
|
|
163
165
|
color: 0,
|
|
164
166
|
transparent: !1,
|
|
165
|
-
side:
|
|
166
|
-
}), d = new
|
|
167
|
-
return c.name =
|
|
167
|
+
side: C.DoubleSide
|
|
168
|
+
}), d = new C.PlaneGeometry(t, s), c = new C.Mesh(d, n);
|
|
169
|
+
return c.name = H("mesh"), c.position.copy(e.position), c.rotation.copy(e.rotation), c.scale.copy(e.scale), e.hooks.on("applyMatrix4", (a) => c.applyMatrix4(a)), e.hooks.on("applyQuaternion", (a) => c.applyQuaternion(a)), e.hooks.on("applyScaleMatrix4", (a) => c.scale.applyMatrix4(a)), c;
|
|
168
170
|
});
|
|
169
171
|
l(this, "createResizeObserver", (e, t, s = !0) => {
|
|
170
172
|
if (!e)
|
|
@@ -172,7 +174,7 @@ class fe {
|
|
|
172
174
|
}, unobserve: () => {
|
|
173
175
|
} };
|
|
174
176
|
const n = () => {
|
|
175
|
-
const c =
|
|
177
|
+
const c = U(e.clientWidth, { smaller: !0 }), a = U(e.clientHeight, { smaller: !0 });
|
|
176
178
|
t(c, a);
|
|
177
179
|
};
|
|
178
180
|
if (typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
@@ -194,21 +196,21 @@ class fe {
|
|
|
194
196
|
setState(e, t = { userAction: !0 }) {
|
|
195
197
|
if (this.state.disposed)
|
|
196
198
|
return this.disposedErrorLog();
|
|
197
|
-
const s =
|
|
199
|
+
const s = x({}, this.state);
|
|
198
200
|
this.state = Object.assign(this.state, e), s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: t.userAction });
|
|
199
201
|
}
|
|
200
202
|
dispose() {
|
|
201
203
|
this.store.disposers.forEach((e) => e == null ? void 0 : e()), this.store.disposers = [], this.hooks.emit("dispose"), this.state.disposed = !0;
|
|
202
204
|
}
|
|
203
205
|
show() {
|
|
204
|
-
return
|
|
206
|
+
return E(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
205
207
|
if (this.state.disposed)
|
|
206
208
|
return this.disposedErrorLog();
|
|
207
209
|
this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
|
|
208
210
|
});
|
|
209
211
|
}
|
|
210
212
|
hide() {
|
|
211
|
-
return
|
|
213
|
+
return E(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
212
214
|
if (this.state.disposed)
|
|
213
215
|
return this.disposedErrorLog();
|
|
214
216
|
this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
|
|
@@ -283,10 +285,10 @@ class fe {
|
|
|
283
285
|
}
|
|
284
286
|
initGlobalModeStore(e, t) {
|
|
285
287
|
const s = e === "front" && !o.frontModeStore;
|
|
286
|
-
e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new
|
|
288
|
+
e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new C.Scene(), css3DRenderer: new N() }), s && (o.frontModeStore = { css3DScene: new C.Scene(), css3DRenderer: new N() });
|
|
287
289
|
}
|
|
288
290
|
handleShow() {
|
|
289
|
-
return
|
|
291
|
+
return E(this, null, function* () {
|
|
290
292
|
Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
|
|
291
293
|
e.css3DObject.visible = e.visible;
|
|
292
294
|
}), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
|
|
@@ -295,7 +297,7 @@ class fe {
|
|
|
295
297
|
});
|
|
296
298
|
}
|
|
297
299
|
handleHide() {
|
|
298
|
-
return
|
|
300
|
+
return E(this, null, function* () {
|
|
299
301
|
Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
|
|
300
302
|
e.css3DObject.visible = !1;
|
|
301
303
|
}), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
|
|
@@ -323,5 +325,9 @@ class fe {
|
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
327
|
export {
|
|
326
|
-
|
|
328
|
+
ue as CSS3DRender,
|
|
329
|
+
Me as MinRatio,
|
|
330
|
+
m as PLUGIN,
|
|
331
|
+
le as __ELEMENT__,
|
|
332
|
+
o as globalStore
|
|
327
333
|
};
|
|
@@ -2,18 +2,25 @@ var y = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var S = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
S.call(
|
|
5
|
+
var c = (s, i, e) => i in s ? y(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, p = (s, i) => {
|
|
6
|
+
for (var e in i || (i = {}))
|
|
7
|
+
S.call(i, e) && c(s, e, i[e]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var e of R(
|
|
10
|
-
D.call(
|
|
9
|
+
for (var e of R(i))
|
|
10
|
+
D.call(i, e) && c(s, e, i[e]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
var l = (s,
|
|
12
|
+
}, h = (s, i) => F(s, P(i));
|
|
13
|
+
var l = (s, i, e) => (c(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
14
|
import { CSS3DRender as w } from "./CSS3DRender.js";
|
|
15
|
+
import "three";
|
|
16
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
|
+
import "../shared-utils/Subscribe.js";
|
|
18
|
+
import "./utils/evenNumber.js";
|
|
19
|
+
import "./utils/positionToVector3.js";
|
|
20
|
+
import "./utils/CSS3DObjectPlus.js";
|
|
21
|
+
import "./utils/centerPoint.js";
|
|
15
22
|
const x = "v2.0.1", C = `CSS3DRenderPlugin@${x}`;
|
|
16
|
-
class
|
|
23
|
+
class M extends w {
|
|
17
24
|
constructor(e) {
|
|
18
25
|
super();
|
|
19
26
|
l(this, "five");
|
|
@@ -22,7 +29,7 @@ class N extends w {
|
|
|
22
29
|
l(this, "create3DDomContainer", (e, t) => {
|
|
23
30
|
if (this.state.disposed)
|
|
24
31
|
return;
|
|
25
|
-
const
|
|
32
|
+
const n = (() => {
|
|
26
33
|
var E;
|
|
27
34
|
(t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${C}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
28
35
|
const a = {
|
|
@@ -37,18 +44,18 @@ class N extends w {
|
|
|
37
44
|
console.error(`${C}: five.getElement() is ${o}`);
|
|
38
45
|
return;
|
|
39
46
|
}
|
|
40
|
-
const { autoRender: d, mode: r } =
|
|
41
|
-
this.setContainer(
|
|
47
|
+
const { autoRender: d, mode: r } = n, v = r === "front" ? o.parentElement : n.behindFiveContainer;
|
|
48
|
+
this.setContainer(v || document.body, "front");
|
|
42
49
|
const f = this.getBehindFiveElement();
|
|
43
|
-
f && this.setContainer(f, "behind"), this.appendToElement(
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
50
|
+
f && this.setContainer(f, "behind"), this.appendToElement(v || document.body, r);
|
|
51
|
+
const m = this.create3DElement(this.five.camera, e, h(p({}, n), { autoRender: !1 }));
|
|
52
|
+
if (!m)
|
|
46
53
|
return;
|
|
47
|
-
const u =
|
|
54
|
+
const u = m.render, b = () => {
|
|
48
55
|
var a;
|
|
49
56
|
r === "front" && u(), r === "behind" && ((a = this.five.model) != null && a.loaded ? u() : this.five.once("modelLoaded", () => u()));
|
|
50
57
|
};
|
|
51
|
-
return d && b(),
|
|
58
|
+
return d && b(), h(p({}, m), { render: d ? void 0 : b });
|
|
52
59
|
});
|
|
53
60
|
this.five = e;
|
|
54
61
|
}
|
|
@@ -66,18 +73,19 @@ class N extends w {
|
|
|
66
73
|
return e;
|
|
67
74
|
const t = document.createElement("div");
|
|
68
75
|
t.style.position = "absolute", t.style.pointerEvents = "none", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", this.behindFiveContainer = t;
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
76
|
+
const n = this.five.getElement();
|
|
77
|
+
if (!n)
|
|
71
78
|
return;
|
|
72
|
-
const o = (r =
|
|
79
|
+
const o = (r = n == null ? void 0 : n.style.position) != null ? r : getComputedStyle(n);
|
|
73
80
|
(!o || o === "static") && console.warn(
|
|
74
81
|
"if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute"
|
|
75
82
|
);
|
|
76
|
-
const d =
|
|
83
|
+
const d = n == null ? void 0 : n.parentElement;
|
|
77
84
|
if (d)
|
|
78
|
-
return d.insertBefore(t,
|
|
85
|
+
return d.insertBefore(t, n), t;
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
88
|
export {
|
|
82
|
-
|
|
89
|
+
C as PLUGIN_NAME,
|
|
90
|
+
M as default
|
|
83
91
|
};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import r from "./Controller.js";
|
|
2
|
+
import "./CSS3DRender.js";
|
|
3
|
+
import "three";
|
|
4
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
+
import "../shared-utils/Subscribe.js";
|
|
6
|
+
import "./utils/evenNumber.js";
|
|
7
|
+
import "./utils/positionToVector3.js";
|
|
8
|
+
import "./utils/CSS3DObjectPlus.js";
|
|
9
|
+
import "./utils/centerPoint.js";
|
|
10
|
+
const f = (o) => new r(o);
|
|
3
11
|
export {
|
|
4
|
-
|
|
12
|
+
f as CSS3DRenderPlugin,
|
|
13
|
+
f as default
|
|
5
14
|
};
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
var b = (e, o,
|
|
1
|
+
var b = (e, o, n) => new Promise((m, p) => {
|
|
2
2
|
var t = (d) => {
|
|
3
3
|
try {
|
|
4
|
-
n
|
|
4
|
+
a(n.next(d));
|
|
5
5
|
} catch (f) {
|
|
6
6
|
p(f);
|
|
7
7
|
}
|
|
8
8
|
}, i = (d) => {
|
|
9
9
|
try {
|
|
10
|
-
n
|
|
10
|
+
a(n.throw(d));
|
|
11
11
|
} catch (f) {
|
|
12
12
|
p(f);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, a = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
|
|
15
|
+
a((n = n.apply(e, o)).next());
|
|
16
16
|
});
|
|
17
17
|
import { Five as y } from "@realsee/five";
|
|
18
18
|
import * as h from "@tweenjs/tween.js";
|
|
19
19
|
import { tweenProgress as T } from "../shared-utils/animationFrame/tween.js";
|
|
20
|
-
import { Rotation as
|
|
20
|
+
import { Rotation as u } from "./typing.js";
|
|
21
21
|
import { formatLatitude as P, formatLongitude as v } from "../shared-utils/animationFrame/formatRad.js";
|
|
22
22
|
import { progressNumber as I } from "../shared-utils/animationFrame/calculateProgress.js";
|
|
23
|
-
|
|
23
|
+
import "../shared-utils/animationFrame/index.js";
|
|
24
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
+
const w = (e, o, n) => {
|
|
24
26
|
const m = Math.PI, p = m * 2;
|
|
25
|
-
return e = v(e), o = v(o),
|
|
26
|
-
},
|
|
27
|
-
const o = {},
|
|
28
|
-
return o.interruptCallback && o.interruptCallback(!1),
|
|
27
|
+
return e = v(e), o = v(o), n === u.Anticlockwise && e < o && (e += p), n === u.Clockwise && o < e && (o += p), n === u.Loop && o - e > m ? w(e, o, u.Anticlockwise) : n === u.Loop && e - o > m ? w(e, o, u.Clockwise) : { from: e, to: o };
|
|
28
|
+
}, _ = (e) => {
|
|
29
|
+
const o = {}, n = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = { preload: !0 }) {
|
|
30
|
+
return o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), a.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((r, l) => {
|
|
29
31
|
const c = t.panoIndex !== void 0 ? t.panoIndex : e.panoIndex;
|
|
30
32
|
c !== void 0 ? e.moveToPano(
|
|
31
33
|
c,
|
|
32
34
|
Object.assign(
|
|
33
35
|
{
|
|
34
36
|
duration: i,
|
|
35
|
-
moveEndCallback: () =>
|
|
37
|
+
moveEndCallback: () => r(!0),
|
|
36
38
|
moveCancelCallback: () => l(!1)
|
|
37
39
|
},
|
|
38
40
|
t
|
|
@@ -40,20 +42,20 @@ const w = (e, o, a) => {
|
|
|
40
42
|
) : l(!1);
|
|
41
43
|
});
|
|
42
44
|
}), m = (t) => {
|
|
43
|
-
const i = e.state,
|
|
45
|
+
const i = e.state, a = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
|
|
44
46
|
i.longitude,
|
|
45
47
|
t.longitude,
|
|
46
|
-
t.rotation ||
|
|
47
|
-
),
|
|
48
|
+
t.rotation || u.Loop
|
|
49
|
+
), r = i.fov, l = t.fov;
|
|
48
50
|
return {
|
|
49
|
-
from: { latitude:
|
|
51
|
+
from: { latitude: a, longitude: f, fov: r },
|
|
50
52
|
to: { latitude: d, longitude: L, fov: l }
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
55
|
return {
|
|
54
|
-
move:
|
|
55
|
-
rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i,
|
|
56
|
-
o.interruptCallback && o.interruptCallback(!1),
|
|
56
|
+
move: n,
|
|
57
|
+
rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = {}) {
|
|
58
|
+
o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (a.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
|
|
57
59
|
if (!t.panoIndex) {
|
|
58
60
|
c(!0);
|
|
59
61
|
return;
|
|
@@ -62,18 +64,18 @@ const w = (e, o, a) => {
|
|
|
62
64
|
moveEndCallback: () => c(!0),
|
|
63
65
|
moveCancelCallback: () => k(!1)
|
|
64
66
|
});
|
|
65
|
-
})),
|
|
66
|
-
const { from:
|
|
67
|
+
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
68
|
+
const { from: r, to: l } = m(t);
|
|
67
69
|
return yield new Promise((c) => {
|
|
68
70
|
const k = ({ progress: s }) => {
|
|
69
71
|
const C = {};
|
|
70
|
-
C.longitude = I(
|
|
72
|
+
C.longitude = I(r.longitude, l.longitude, s), C.latitude = I(r.latitude, l.latitude, s), C.fov = I(r.fov, l.fov, s), e.setState(C, !0);
|
|
71
73
|
}, M = () => {
|
|
72
74
|
c(!0);
|
|
73
75
|
}, E = () => {
|
|
74
76
|
c(!1);
|
|
75
|
-
}, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude -
|
|
76
|
-
t.rotation ===
|
|
77
|
+
}, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - r.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
|
|
78
|
+
t.rotation === u.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
|
|
77
79
|
x.destroy(), o.interruptCallback = void 0, o.timeoutId && (clearTimeout(o.timeoutId), o.timeoutId = void 0), c(s);
|
|
78
80
|
}, o.timeoutId = setTimeout(() => {
|
|
79
81
|
o.interruptCallback && o.interruptCallback(!0);
|
|
@@ -83,5 +85,6 @@ const w = (e, o, a) => {
|
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
export {
|
|
86
|
-
|
|
88
|
+
_ as CameraMovementPlugin,
|
|
89
|
+
_ as default
|
|
87
90
|
};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import "./CameraMovementPlugin.js";
|
|
2
|
+
import { CameraMovementPlugin as u, CameraMovementPlugin as v } from "./CameraMovementPlugin.js";
|
|
3
|
+
import { CameraMovementEffect as M, Rotation as g } from "./typing.js";
|
|
1
4
|
import "@realsee/five";
|
|
2
5
|
import "@tweenjs/tween.js";
|
|
6
|
+
import "../shared-utils/animationFrame/tween.js";
|
|
7
|
+
import "../shared-utils/animationFrame/index.js";
|
|
3
8
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
9
|
+
import "../shared-utils/animationFrame/formatRad.js";
|
|
10
|
+
import "../shared-utils/animationFrame/calculateProgress.js";
|
|
11
|
+
export {
|
|
12
|
+
M as CameraMovementEffect,
|
|
13
|
+
u as CameraMovementPlugin,
|
|
14
|
+
g as Rotation,
|
|
15
|
+
v as default
|
|
16
|
+
};
|