@realsee/dnalogel 2.10.4 → 2.11.0-alpha.0
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/Controller.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +0 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -7
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +11 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +8 -10
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +3 -1
- package/dist/base/BasePlugin.d.ts +4 -0
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +4157 -3912
- package/dist/index.umd.js +50 -50
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +35 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +39 -29
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +99 -143
- 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 +19 -19
- 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/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -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 +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- 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/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.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 +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- 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 +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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 +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -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/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.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 +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +28 -10
- package/docs/interfaces/TagStyle.html +67 -0
- package/docs/interfaces/Tags.html +10 -10
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TagPointType.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/VERSION.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/Controller.js +24 -23
- package/libs/PanoTagPlugin/Components/Common/Audio.js +84 -83
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +261 -121
- package/libs/PanoTagPlugin/Components/Common/Media.js +28 -28
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +61 -61
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +15 -13
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +2 -3
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +72 -68
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +88 -85
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +60 -60
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +48 -48
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +44 -55
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +114 -107
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +36 -25
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +50 -49
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +53 -50
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +49 -49
- package/libs/PanoTagPlugin/Components/Tag/index.js +164 -153
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +85 -77
- package/libs/PanoTagPlugin/controller/TagComputer.js +2 -3
- package/libs/PanoTagPlugin/controller/index.d.ts +0 -2
- package/libs/PanoTagPlugin/controller/index.js +48 -49
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +121 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/tsconfig.js +9 -0
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +5 -6
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -7
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +11 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -5
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +8 -10
- package/libs/PanoTagPlugin/utils/getImageInfo.js +54 -36
- package/libs/PanoTagPlugin/utils/index.js +35 -36
- package/libs/PanoTagPlugin/utils/planeNormal.js +2 -3
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +7 -8
- package/libs/base/BasePlugin.d.ts +4 -0
- package/libs/base/BasePlugin.js +3 -2
- package/libs/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent as M, init as N, safe_not_equal as O, append_styles as Q, element as C, space as U, attr as d, set_style as S, toggle_class as b, insert as L, append as j, transition_out as T, check_outros as B, transition_in as z, detach as I, getContext as W, group_outros as E, noop as A, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import X from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as F } from "../utils/noTypecheck.js";
|
|
5
|
-
import "
|
|
6
|
-
import X from "./Common/TagPoint.js";
|
|
5
|
+
import Y from "./Common/TagPoint.js";
|
|
7
6
|
import "./Tag/TextTag/index.js";
|
|
8
7
|
import "./Tag/TextTag/TextTag.js";
|
|
9
8
|
import "./Common/Line/Straight.js";
|
|
@@ -89,29 +88,29 @@ import "./Tag/LinkTag.js";
|
|
|
89
88
|
import "./Common/Icon/Icon.js";
|
|
90
89
|
import "../utils/getImageInfo.js";
|
|
91
90
|
import "./Tag/CustomTag.js";
|
|
92
|
-
function Y(o) {
|
|
93
|
-
O(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
94
|
-
}
|
|
95
91
|
function Z(o) {
|
|
92
|
+
Q(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
93
|
+
}
|
|
94
|
+
function x(o) {
|
|
96
95
|
let e;
|
|
97
96
|
return {
|
|
98
97
|
c() {
|
|
99
|
-
e =
|
|
98
|
+
e = C("div"), d(e, "data-info", "tag content is disable");
|
|
100
99
|
},
|
|
101
100
|
m(t, i) {
|
|
102
|
-
|
|
101
|
+
L(t, e, i);
|
|
103
102
|
},
|
|
104
|
-
p:
|
|
105
|
-
i:
|
|
106
|
-
o:
|
|
103
|
+
p: A,
|
|
104
|
+
i: A,
|
|
105
|
+
o: A,
|
|
107
106
|
d(t) {
|
|
108
|
-
t &&
|
|
107
|
+
t && I(e);
|
|
109
108
|
}
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
|
-
function
|
|
111
|
+
function $(o) {
|
|
113
112
|
let e, t;
|
|
114
|
-
return e = new
|
|
113
|
+
return e = new X({
|
|
115
114
|
props: {
|
|
116
115
|
mediaStore: o[2],
|
|
117
116
|
withAnimation: o[0],
|
|
@@ -128,40 +127,40 @@ function x(o) {
|
|
|
128
127
|
H(e, i, n), t = !0;
|
|
129
128
|
},
|
|
130
129
|
p(i, n) {
|
|
131
|
-
const
|
|
132
|
-
n & 4 && (
|
|
130
|
+
const a = {};
|
|
131
|
+
n & 4 && (a.mediaStore = i[2]), n & 1 && (a.withAnimation = i[0]), n & 2 && (a.tag = F(i[1])), n & 8 && (a.state = i[3]), n & 16 && (a.temporaryState = i[4]), e.$set(a);
|
|
133
132
|
},
|
|
134
133
|
i(i) {
|
|
135
|
-
t || (
|
|
134
|
+
t || (z(e.$$.fragment, i), t = !0);
|
|
136
135
|
},
|
|
137
136
|
o(i) {
|
|
138
|
-
|
|
137
|
+
T(e.$$.fragment, i), t = !1;
|
|
139
138
|
},
|
|
140
139
|
d(i) {
|
|
141
140
|
J(e, i);
|
|
142
141
|
}
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function tt(o) {
|
|
146
145
|
let e;
|
|
147
146
|
return {
|
|
148
147
|
c() {
|
|
149
|
-
e =
|
|
148
|
+
e = C("div"), d(e, "data-info", "tag point is disable");
|
|
150
149
|
},
|
|
151
150
|
m(t, i) {
|
|
152
|
-
|
|
151
|
+
L(t, e, i);
|
|
153
152
|
},
|
|
154
|
-
p:
|
|
155
|
-
i:
|
|
156
|
-
o:
|
|
153
|
+
p: A,
|
|
154
|
+
i: A,
|
|
155
|
+
o: A,
|
|
157
156
|
d(t) {
|
|
158
|
-
t &&
|
|
157
|
+
t && I(e);
|
|
159
158
|
}
|
|
160
159
|
};
|
|
161
160
|
}
|
|
162
|
-
function
|
|
161
|
+
function et(o) {
|
|
163
162
|
let e, t;
|
|
164
|
-
return e = new
|
|
163
|
+
return e = new Y({ props: { tag: o[1] } }), {
|
|
165
164
|
c() {
|
|
166
165
|
G(e.$$.fragment);
|
|
167
166
|
},
|
|
@@ -169,93 +168,102 @@ function tt(o) {
|
|
|
169
168
|
H(e, i, n), t = !0;
|
|
170
169
|
},
|
|
171
170
|
p(i, n) {
|
|
172
|
-
const
|
|
173
|
-
n & 2 && (
|
|
171
|
+
const a = {};
|
|
172
|
+
n & 2 && (a.tag = i[1]), e.$set(a);
|
|
174
173
|
},
|
|
175
174
|
i(i) {
|
|
176
|
-
t || (
|
|
175
|
+
t || (z(e.$$.fragment, i), t = !0);
|
|
177
176
|
},
|
|
178
177
|
o(i) {
|
|
179
|
-
|
|
178
|
+
T(e.$$.fragment, i), t = !1;
|
|
180
179
|
},
|
|
181
180
|
d(i) {
|
|
182
181
|
J(e, i);
|
|
183
182
|
}
|
|
184
183
|
};
|
|
185
184
|
}
|
|
186
|
-
function
|
|
187
|
-
let e, t, i, n,
|
|
188
|
-
const
|
|
189
|
-
function
|
|
185
|
+
function it(o) {
|
|
186
|
+
let e, t, i, n, a, l, f, k, s;
|
|
187
|
+
const P = [$, x], c = [];
|
|
188
|
+
function v(r, p) {
|
|
190
189
|
return r[12] ? 0 : 1;
|
|
191
190
|
}
|
|
192
|
-
i =
|
|
193
|
-
const
|
|
194
|
-
function
|
|
191
|
+
i = v(o), n = c[i] = P[i](o);
|
|
192
|
+
const h = [et, tt], u = [];
|
|
193
|
+
function y(r, p) {
|
|
195
194
|
return r[13] ? 0 : 1;
|
|
196
195
|
}
|
|
197
|
-
return
|
|
196
|
+
return l = y(o), f = u[l] = h[l](o), {
|
|
198
197
|
c() {
|
|
199
|
-
e =
|
|
198
|
+
e = C("div"), t = C("div"), n.c(), a = U(), f.c(), d(t, "class", "wrapper svelte-pzwdws"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", k = o[1].contentType), S(t, "left", o[7]), S(t, "top", o[6]), S(t, "z-index", o[5]), d(e, "class", "tag svelte-pzwdws"), d(e, "data-tag-id", o[11]), b(e, "unClickable", o[1].clickable === !1), b(e, "disable", o[10]), b(e, "hide", o[9]), b(e, "withAnimation", o[0]);
|
|
200
199
|
},
|
|
201
|
-
m(r,
|
|
202
|
-
|
|
200
|
+
m(r, p) {
|
|
201
|
+
L(r, e, p), j(e, t), c[i].m(t, null), j(t, a), u[l].m(t, null), s = !0;
|
|
203
202
|
},
|
|
204
|
-
p(r, [
|
|
205
|
-
let
|
|
206
|
-
i =
|
|
207
|
-
c[
|
|
208
|
-
}), B(), n = c[i], n ? n.p(r,
|
|
209
|
-
let
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}), B(),
|
|
203
|
+
p(r, [p]) {
|
|
204
|
+
let g = i;
|
|
205
|
+
i = v(r), i === g ? c[i].p(r, p) : (E(), T(c[g], 1, 1, () => {
|
|
206
|
+
c[g] = null;
|
|
207
|
+
}), B(), n = c[i], n ? n.p(r, p) : (n = c[i] = P[i](r), n.c()), z(n, 1), n.m(t, a));
|
|
208
|
+
let w = l;
|
|
209
|
+
l = y(r), l === w ? u[l].p(r, p) : (E(), T(u[w], 1, 1, () => {
|
|
210
|
+
u[w] = null;
|
|
211
|
+
}), B(), f = u[l], f ? f.p(r, p) : (f = u[l] = h[l](r), f.c()), z(f, 1), f.m(t, null)), (!s || p & 256) && d(t, "data-tag-unfolded", r[8]), (!s || p & 2048) && d(t, "data-tag-id", r[11]), (!s || p & 2 && k !== (k = r[1].contentType)) && d(t, "data-content-type", k), p & 128 && S(t, "left", r[7]), p & 64 && S(t, "top", r[6]), p & 32 && S(t, "z-index", r[5]), (!s || p & 2048) && d(e, "data-tag-id", r[11]), (!s || p & 2) && b(e, "unClickable", r[1].clickable === !1), (!s || p & 1024) && b(e, "disable", r[10]), (!s || p & 512) && b(e, "hide", r[9]), (!s || p & 1) && b(e, "withAnimation", r[0]);
|
|
213
212
|
},
|
|
214
213
|
i(r) {
|
|
215
|
-
|
|
214
|
+
s || (z(n), z(f), s = !0);
|
|
216
215
|
},
|
|
217
216
|
o(r) {
|
|
218
|
-
|
|
217
|
+
T(n), T(f), s = !1;
|
|
219
218
|
},
|
|
220
219
|
d(r) {
|
|
221
|
-
r &&
|
|
220
|
+
r && I(e), c[i].d(), u[l].d();
|
|
222
221
|
}
|
|
223
222
|
};
|
|
224
223
|
}
|
|
225
|
-
function
|
|
226
|
-
let i, n,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
function ot(o, e, t) {
|
|
225
|
+
let i, n, a, l, f, k, s, P, c;
|
|
226
|
+
var v, h, u, y, r, p, g, w;
|
|
227
|
+
let { withAnimation: q = !1 } = e, { tag: m } = e, { mediaStore: D } = e, { state: R } = e, { temporaryState: V } = e;
|
|
228
|
+
const K = W("hooks");
|
|
229
|
+
return o.$$set = (_) => {
|
|
230
|
+
"withAnimation" in _ && t(0, q = _.withAnimation), "tag" in _ && t(1, m = _.tag), "mediaStore" in _ && t(2, D = _.mediaStore), "state" in _ && t(3, R = _.state), "temporaryState" in _ && t(4, V = _.temporaryState);
|
|
230
231
|
}, o.$$.update = () => {
|
|
231
|
-
|
|
232
|
-
o.$$.dirty & 2 && t(13, i = (() => !(p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => p.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = p.id), o.$$.dirty & 2 && t(10, s = !((m = p.pointTagStyle) != null && m.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), o.$$.dirty & 2 && t(9, u = !((L = p.state) != null && L.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, w = (q = p.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, f = ((D = p.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, S = ((R = p.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = p.state) != null && V.unfolded ? 1 : 0);
|
|
232
|
+
o.$$.dirty & 2 && t(13, i = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => m.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, a = m.id), o.$$.dirty & 98306 && t(10, l = !(!(t(15, v = m.pointTagStyle) === null || v === void 0) && v.leftPercent) || !(!(t(16, h = m.pointTagStyle) === null || h === void 0) && h.topPercent) || m.enabled === !1 || !m.state), o.$$.dirty & 393218 && t(9, f = !(!(t(17, u = m.state) === null || u === void 0) && u.visible) || (t(18, y = m.temporaryState) === null || y === void 0 ? void 0 : y.visible) === !1), o.$$.dirty & 524290 && t(8, k = t(19, r = m.state) === null || r === void 0 ? void 0 : r.unfolded), o.$$.dirty & 1048578 && t(7, s = (t(20, p = m.pointTagStyle) === null || p === void 0 ? void 0 : p.leftPercent) + "%"), o.$$.dirty & 2097154 && t(6, P = (t(21, g = m.pointTagStyle) === null || g === void 0 ? void 0 : g.topPercent) + "%"), o.$$.dirty & 4194306 && t(5, c = !(t(22, w = m.state) === null || w === void 0) && w.unfolded ? 1 : 0);
|
|
233
233
|
}, [
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
q,
|
|
235
|
+
m,
|
|
236
|
+
D,
|
|
237
|
+
R,
|
|
238
|
+
V,
|
|
239
239
|
c,
|
|
240
|
-
|
|
241
|
-
f,
|
|
242
|
-
w,
|
|
243
|
-
u,
|
|
240
|
+
P,
|
|
244
241
|
s,
|
|
242
|
+
k,
|
|
243
|
+
f,
|
|
245
244
|
l,
|
|
245
|
+
a,
|
|
246
246
|
n,
|
|
247
247
|
i,
|
|
248
|
-
|
|
248
|
+
K,
|
|
249
|
+
v,
|
|
250
|
+
h,
|
|
251
|
+
u,
|
|
252
|
+
y,
|
|
253
|
+
r,
|
|
254
|
+
p,
|
|
255
|
+
g,
|
|
256
|
+
w
|
|
249
257
|
];
|
|
250
258
|
}
|
|
251
|
-
class He extends
|
|
259
|
+
class He extends M {
|
|
252
260
|
constructor(e) {
|
|
253
|
-
super(),
|
|
261
|
+
super(), N(
|
|
254
262
|
this,
|
|
255
263
|
e,
|
|
264
|
+
ot,
|
|
256
265
|
it,
|
|
257
|
-
|
|
258
|
-
N,
|
|
266
|
+
O,
|
|
259
267
|
{
|
|
260
268
|
withAnimation: 0,
|
|
261
269
|
tag: 1,
|
|
@@ -263,7 +271,7 @@ class He extends K {
|
|
|
263
271
|
state: 3,
|
|
264
272
|
temporaryState: 4
|
|
265
273
|
},
|
|
266
|
-
|
|
274
|
+
Z
|
|
267
275
|
);
|
|
268
276
|
}
|
|
269
277
|
}
|
|
@@ -27,7 +27,6 @@ import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
|
27
27
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
28
28
|
import { notNil as F } from "../../shared-utils/isNil.js";
|
|
29
29
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
30
|
-
import "@realsee/five/gltf-loader";
|
|
31
30
|
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
32
31
|
import "../../base/BasePlugin.js";
|
|
33
32
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -41,7 +40,7 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
41
40
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
42
41
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
43
42
|
import "../../shared-utils/animationFrame/index.js";
|
|
44
|
-
class
|
|
43
|
+
class pe extends S {
|
|
45
44
|
constructor(e) {
|
|
46
45
|
super(e);
|
|
47
46
|
m(this, "tags", []);
|
|
@@ -408,5 +407,5 @@ class ve extends S {
|
|
|
408
407
|
}
|
|
409
408
|
}
|
|
410
409
|
export {
|
|
411
|
-
|
|
410
|
+
pe as TagComputer
|
|
412
411
|
};
|
|
@@ -6,8 +6,6 @@ import { Object3D } from 'three';
|
|
|
6
6
|
import { TagComputer } from './TagComputer';
|
|
7
7
|
export declare const pluginFlag: (name: string) => string;
|
|
8
8
|
declare class PanoTagPluginController extends TagComputer {
|
|
9
|
-
/** 版本号 */
|
|
10
|
-
version: string;
|
|
11
9
|
/** state */
|
|
12
10
|
state: {
|
|
13
11
|
enabled: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var P = (h, d, e) => d in h ?
|
|
1
|
+
var V = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var G = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var x = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (h, d, e) => d in h ? V(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, p = (h, d) => {
|
|
6
6
|
for (var e in d || (d = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
x.call(d, e) && P(h, e, d[e]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var e of R(d))
|
|
10
|
+
N.call(d, e) && P(h, e, d[e]);
|
|
11
11
|
return h;
|
|
12
|
-
}, T = (h, d) =>
|
|
12
|
+
}, T = (h, d) => B(h, G(d));
|
|
13
13
|
var l = (h, d, e) => (P(h, typeof d != "symbol" ? d + "" : d, e), e);
|
|
14
14
|
var c = (h, d, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
@@ -27,27 +27,26 @@ var c = (h, d, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(h, d)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as
|
|
30
|
+
import { Subscribe as W } from "@realsee/five";
|
|
31
|
+
import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as z } from "three";
|
|
32
32
|
import v from "object-assign-deep";
|
|
33
|
-
import { writable as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
33
|
+
import { writable as _ } from "../../vendor/svelte/store/index.js";
|
|
34
|
+
import $ from "../Components/TagContainer.js";
|
|
35
|
+
import q from "../Components/Tag/index.js";
|
|
36
36
|
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
|
-
import { addDebugPoints as
|
|
37
|
+
import { addDebugPoints as H } from "../utils/addDebugPoints.js";
|
|
38
38
|
import { planeNormal as k } from "../utils/planeNormal.js";
|
|
39
|
-
import "@realsee/five/gltf-loader";
|
|
40
39
|
import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
|
|
41
|
-
import { waitFiveModelLoaded as
|
|
42
|
-
import { normalPositionToPositions as
|
|
40
|
+
import { waitFiveModelLoaded as J } from "../utils/actionAfterFiveModelLoad.js";
|
|
41
|
+
import { normalPositionToPositions as Q } from "../utils/normalPositionToPositions.js";
|
|
43
42
|
import { debounce as j } from "../utils/debounce.js";
|
|
44
|
-
import { throttle as
|
|
45
|
-
import { resizeObserver as
|
|
46
|
-
import { TagComputer as
|
|
47
|
-
import { CSS3DRenderPlugin as
|
|
48
|
-
import
|
|
49
|
-
import { generateBlankAudio as
|
|
50
|
-
import { loadGLTF as
|
|
43
|
+
import { throttle as X } from "../utils/throttle.js";
|
|
44
|
+
import { resizeObserver as U } from "../utils/resizeObserver.js";
|
|
45
|
+
import { TagComputer as K } from "./TagComputer.js";
|
|
46
|
+
import { CSS3DRenderPlugin as Y } from "../../CSS3DRenderPlugin/index.js";
|
|
47
|
+
import Z from "../utils/tag/format.js";
|
|
48
|
+
import { generateBlankAudio as I, AudioNamespace as L } from "../../shared-utils/audio.js";
|
|
49
|
+
import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
|
|
51
50
|
import "../../vendor/svelte/internal/index.js";
|
|
52
51
|
import "../Components/TagItem.js";
|
|
53
52
|
import "../utils/noTypecheck.js";
|
|
@@ -140,18 +139,18 @@ import "./TagCacheController.js";
|
|
|
140
139
|
import "../../base/BasePlugin.js";
|
|
141
140
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
142
141
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
import "@realsee/five/gltf-loader";
|
|
143
|
+
const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
|
|
144
|
+
class li extends K {
|
|
145
145
|
constructor(e, t) {
|
|
146
146
|
super(e);
|
|
147
|
-
l(this, "version", V);
|
|
148
147
|
l(this, "state", { enabled: !0, visible: !0 });
|
|
149
148
|
l(this, "params");
|
|
150
149
|
l(this, "debug");
|
|
151
150
|
l(this, "css3DRenderPlugin");
|
|
152
151
|
l(this, "TagContainerSvelte");
|
|
153
152
|
l(this, "temporaryState", { visible: !0 });
|
|
154
|
-
l(this, "mediaStore",
|
|
153
|
+
l(this, "mediaStore", _({
|
|
155
154
|
currentMediaElement: null
|
|
156
155
|
}));
|
|
157
156
|
l(this, "group", new E());
|
|
@@ -186,7 +185,7 @@ class hi extends Y {
|
|
|
186
185
|
const t = e.data.modelUrl;
|
|
187
186
|
if (!t)
|
|
188
187
|
return;
|
|
189
|
-
const i =
|
|
188
|
+
const i = ee(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
|
|
190
189
|
e.model = { promise: i };
|
|
191
190
|
const s = yield i;
|
|
192
191
|
if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
|
|
@@ -195,7 +194,7 @@ class hi extends Y {
|
|
|
195
194
|
const r = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
|
|
196
195
|
return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
197
196
|
}));
|
|
198
|
-
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config,
|
|
197
|
+
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, I(1, { namespace: L.GetAudioDuration }), I(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
199
198
|
}
|
|
200
199
|
load(e, t) {
|
|
201
200
|
return c(this, null, function* () {
|
|
@@ -207,7 +206,7 @@ class hi extends Y {
|
|
|
207
206
|
const i = yield this.addTag(e.tagList, t);
|
|
208
207
|
if (this.debug)
|
|
209
208
|
try {
|
|
210
|
-
|
|
209
|
+
H(this.five, this.tags);
|
|
211
210
|
} catch (r) {
|
|
212
211
|
console.error(r);
|
|
213
212
|
}
|
|
@@ -219,13 +218,13 @@ class hi extends Y {
|
|
|
219
218
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
220
219
|
const r = this.getTagConfig(o);
|
|
221
220
|
return T(p({}, o), {
|
|
222
|
-
state: p({ visible: void 0, unfolded:
|
|
223
|
-
hooks: new
|
|
221
|
+
state: p({ visible: void 0, unfolded: te }, r.initialState),
|
|
222
|
+
hooks: new W(),
|
|
224
223
|
clickable: r.clickable,
|
|
225
224
|
mergedConfig: r
|
|
226
225
|
});
|
|
227
226
|
}).filter((o) => o.position);
|
|
228
|
-
return s.forEach(
|
|
227
|
+
return s.forEach(Z), this.tags.push(...s), J(this.five).then(() => {
|
|
229
228
|
var o, r, n;
|
|
230
229
|
return this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
|
|
231
230
|
});
|
|
@@ -315,8 +314,8 @@ class hi extends Y {
|
|
|
315
314
|
this.mediaStore.set({ currentMediaElement: null });
|
|
316
315
|
}
|
|
317
316
|
updateTagCss3DObjectMatrix(e, t) {
|
|
318
|
-
var D, w, O,
|
|
319
|
-
const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (
|
|
317
|
+
var D, w, O, F;
|
|
318
|
+
const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
|
|
320
319
|
if (!s)
|
|
321
320
|
return;
|
|
322
321
|
const o = f(e) ? e.data.mediaPosition : e.position;
|
|
@@ -385,12 +384,12 @@ class hi extends Y {
|
|
|
385
384
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
386
385
|
}, i = () => {
|
|
387
386
|
!this.state.enabled || this.hide();
|
|
388
|
-
}, { observe: s, unobserve: o } =
|
|
389
|
-
|
|
387
|
+
}, { observe: s, unobserve: o } = U(
|
|
388
|
+
X(() => {
|
|
390
389
|
!this.store.resizeObserverDisposer || i();
|
|
391
390
|
}, 500),
|
|
392
391
|
e
|
|
393
|
-
), { observe: r, unobserve: n } =
|
|
392
|
+
), { observe: r, unobserve: n } = U(
|
|
394
393
|
j(() => t(), 400),
|
|
395
394
|
e
|
|
396
395
|
);
|
|
@@ -477,7 +476,7 @@ class hi extends Y {
|
|
|
477
476
|
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
478
477
|
if (!i)
|
|
479
478
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
480
|
-
this.TagContainerSvelte = new
|
|
479
|
+
this.TagContainerSvelte = new $({
|
|
481
480
|
target: i,
|
|
482
481
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
483
482
|
});
|
|
@@ -494,16 +493,16 @@ class hi extends Y {
|
|
|
494
493
|
state: this.state,
|
|
495
494
|
temporaryState: this.temporaryState
|
|
496
495
|
}), !b.equals(u)) {
|
|
497
|
-
const D = new
|
|
496
|
+
const D = new z().setFromUnitVectors(b, u);
|
|
498
497
|
y.css3DObject.setRotationFromQuaternion(D);
|
|
499
498
|
}
|
|
500
499
|
return;
|
|
501
500
|
}
|
|
502
501
|
if (((m = t.state) == null ? void 0 : m.visible) === !1)
|
|
503
502
|
return;
|
|
504
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
503
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Y(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
505
504
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
506
|
-
const i = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition :
|
|
505
|
+
const i = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition : Q(
|
|
507
506
|
this.five.camera.position,
|
|
508
507
|
C(t.position),
|
|
509
508
|
C(t.normal)
|
|
@@ -522,7 +521,7 @@ class hi extends Y {
|
|
|
522
521
|
return;
|
|
523
522
|
const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
|
|
524
523
|
!r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
525
|
-
svelteApp: new
|
|
524
|
+
svelteApp: new q({
|
|
526
525
|
target: r.container,
|
|
527
526
|
props: {
|
|
528
527
|
tag: t,
|
|
@@ -574,7 +573,7 @@ class hi extends Y {
|
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
575
|
export {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
576
|
+
li as PanoTagPluginController,
|
|
577
|
+
li as default,
|
|
578
|
+
di as pluginFlag
|
|
580
579
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
2
|
import { default as ur, pluginFlag as Tr } from "./controller/index.js";
|
|
3
|
-
import "@realsee/five/gltf-loader";
|
|
4
3
|
import { ContentType as xr } from "./typings/tag/TagData.js";
|
|
5
4
|
import { DimensionType as Cr, PointType as dr } from "./typings/tag/Utils.js";
|
|
6
5
|
import "@realsee/five";
|
|
@@ -115,6 +114,7 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
115
114
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
116
115
|
import "./utils/tag/format.js";
|
|
117
116
|
import "../shared-utils/three/GLTFLoader.js";
|
|
117
|
+
import "@realsee/five/gltf-loader";
|
|
118
118
|
const gr = (o, r) => new t(o, r);
|
|
119
119
|
export {
|
|
120
120
|
xr as ContentType,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
id: number;
|
|
3
|
+
pointType: string;
|
|
4
|
+
dimensionType: string;
|
|
5
|
+
position: number[];
|
|
6
|
+
normal: number[];
|
|
7
|
+
style: {
|
|
8
|
+
point: {
|
|
9
|
+
iconUrl: string;
|
|
10
|
+
style: string;
|
|
11
|
+
};
|
|
12
|
+
style: string;
|
|
13
|
+
};
|
|
14
|
+
contentType: string;
|
|
15
|
+
data: {
|
|
16
|
+
text: string;
|
|
17
|
+
extraData: {
|
|
18
|
+
baseNormal: number[];
|
|
19
|
+
fiveState: {
|
|
20
|
+
distance: number;
|
|
21
|
+
fov: number;
|
|
22
|
+
latitude: number;
|
|
23
|
+
longitude: number;
|
|
24
|
+
mode: string;
|
|
25
|
+
offset: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
z: number;
|
|
29
|
+
};
|
|
30
|
+
panoIndex: number;
|
|
31
|
+
};
|
|
32
|
+
style: {
|
|
33
|
+
point: {
|
|
34
|
+
iconUrl: string;
|
|
35
|
+
style: string;
|
|
36
|
+
};
|
|
37
|
+
style: string;
|
|
38
|
+
};
|
|
39
|
+
tagClosedStyle: string;
|
|
40
|
+
tagIconUrl: string;
|
|
41
|
+
};
|
|
42
|
+
mediaData?: undefined;
|
|
43
|
+
};
|
|
44
|
+
} | {
|
|
45
|
+
id: number;
|
|
46
|
+
pointType: string;
|
|
47
|
+
dimensionType: string;
|
|
48
|
+
position: number[];
|
|
49
|
+
normal: number[];
|
|
50
|
+
style: {
|
|
51
|
+
point: {
|
|
52
|
+
iconUrl: string;
|
|
53
|
+
style: string;
|
|
54
|
+
};
|
|
55
|
+
style?: undefined;
|
|
56
|
+
};
|
|
57
|
+
contentType: string;
|
|
58
|
+
data: {
|
|
59
|
+
text: string;
|
|
60
|
+
mediaData: {
|
|
61
|
+
type: string;
|
|
62
|
+
url: string;
|
|
63
|
+
videoCoverUrl: string;
|
|
64
|
+
name: string;
|
|
65
|
+
}[];
|
|
66
|
+
extraData: {
|
|
67
|
+
baseNormal: number[];
|
|
68
|
+
fiveState: {
|
|
69
|
+
distance: number;
|
|
70
|
+
fov: number;
|
|
71
|
+
latitude: number;
|
|
72
|
+
longitude: number;
|
|
73
|
+
mode: string;
|
|
74
|
+
offset: {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
z: number;
|
|
78
|
+
};
|
|
79
|
+
panoIndex: number;
|
|
80
|
+
};
|
|
81
|
+
style: {
|
|
82
|
+
point: {
|
|
83
|
+
iconUrl: string;
|
|
84
|
+
style: string;
|
|
85
|
+
};
|
|
86
|
+
style?: undefined;
|
|
87
|
+
};
|
|
88
|
+
tagClosedStyle: string;
|
|
89
|
+
tagIconUrl: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
})[];
|
|
93
|
+
export default _default;
|