@realsee/dnalogel 2.27.0-dev.2 → 2.27.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/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -3
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
- package/dist/index.cjs.js +32 -30
- package/dist/index.js +2299 -2266
- package/dist/index.umd.js +32 -30
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +21 -15
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +133 -112
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +107 -95
- package/libs/PanoTagPlugin/controller/index.js +49 -49
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -3
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { safe_not_equal as R, action_destroyer as S, run_all as W } from "../../../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
-
import { append_styles as C, empty as q, insert as
|
|
3
|
-
import { transition_in as
|
|
4
|
-
import { SvelteComponent as
|
|
2
|
+
import { append_styles as C, empty as q, insert as v, detach as y, space as U, element as F, attr as I, listen as D } from "../../../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { transition_in as c, transition_out as b, check_outros as L, group_outros as N } from "../../../../vendor/svelte/src/runtime/internal/transitions.js";
|
|
4
|
+
import { SvelteComponent as O, init as j, create_component as T, mount_component as k, destroy_component as $ } from "../../../../vendor/svelte/src/runtime/internal/Component.js";
|
|
5
5
|
import "../../../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { svelteResizeObserver as
|
|
6
|
+
import A from "../../Common/Line/Straight.js";
|
|
7
|
+
import B from "../../Common/Shadow.js";
|
|
8
|
+
import E from "../../Common/Text/FlyMText.js";
|
|
9
|
+
import { svelteResizeObserver as G } from "../../../../shared-utils/svelte/resizeObserver.js";
|
|
10
10
|
import "../../../../vendor/svelte/src/runtime/internal/environment.js";
|
|
11
11
|
import "../../../../vendor/svelte/src/runtime/internal/loop.js";
|
|
12
12
|
import "../../../../vendor/svelte/src/runtime/internal/style_manager.js";
|
|
@@ -27,13 +27,13 @@ import "../../Common/Arrow.js";
|
|
|
27
27
|
import "../../../Assets/Icon.js";
|
|
28
28
|
import "../../../utils/doUtil.js";
|
|
29
29
|
import "../../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
30
|
-
function
|
|
31
|
-
C(o, "svelte-
|
|
30
|
+
function H(o) {
|
|
31
|
+
C(o, "svelte-5hip41", ".content.svelte-5hip41{--height:62.4375rem;width:-moz-max-content;width:max-content;height:var(--height);padding:calc(var(--height) - 1.125rem) 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
|
|
32
32
|
}
|
|
33
33
|
function M(o) {
|
|
34
|
-
var
|
|
35
|
-
let
|
|
36
|
-
return
|
|
34
|
+
var a, w;
|
|
35
|
+
let l, r, t, i, n, s, u, p, g;
|
|
36
|
+
return l = new B({
|
|
37
37
|
props: {
|
|
38
38
|
visible: (
|
|
39
39
|
/*unfolded*/
|
|
@@ -48,7 +48,7 @@ function M(o) {
|
|
|
48
48
|
blurRadius: 120,
|
|
49
49
|
spreadRadius: 60
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), t = new A({
|
|
52
52
|
props: {
|
|
53
53
|
unfolded: (
|
|
54
54
|
/*unfolded*/
|
|
@@ -62,13 +62,13 @@ function M(o) {
|
|
|
62
62
|
/*foldTextDelay*/
|
|
63
63
|
o[4] + 40 * Math.min(
|
|
64
64
|
/*textItems*/
|
|
65
|
-
(
|
|
65
|
+
(w = (a = o[6][0]) == null ? void 0 : a.content.length) != null ? w : 10,
|
|
66
66
|
15
|
|
67
67
|
)
|
|
68
68
|
),
|
|
69
69
|
useLinearColor: !0
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
71
|
+
}), s = new E({
|
|
72
72
|
props: {
|
|
73
73
|
visible: (
|
|
74
74
|
/*unfolded*/
|
|
@@ -85,134 +85,146 @@ function M(o) {
|
|
|
85
85
|
}
|
|
86
86
|
}), {
|
|
87
87
|
c() {
|
|
88
|
-
|
|
88
|
+
T(l.$$.fragment), r = U(), T(t.$$.fragment), i = U(), n = F("div"), T(s.$$.fragment), I(n, "class", "content svelte-5hip41");
|
|
89
89
|
},
|
|
90
|
-
m(
|
|
91
|
-
|
|
92
|
-
S(
|
|
90
|
+
m(e, f) {
|
|
91
|
+
k(l, e, f), v(e, r, f), k(t, e, f), v(e, i, f), v(e, n, f), k(s, n, null), u = !0, p || (g = [
|
|
92
|
+
S(G.call(null, n)),
|
|
93
93
|
D(
|
|
94
|
-
|
|
94
|
+
n,
|
|
95
95
|
"clientWidth",
|
|
96
96
|
/*clientWidth_handler*/
|
|
97
|
-
o[
|
|
97
|
+
o[10]
|
|
98
98
|
),
|
|
99
99
|
D(
|
|
100
|
-
|
|
100
|
+
n,
|
|
101
101
|
"click",
|
|
102
102
|
/*toggleTextUnfolded*/
|
|
103
103
|
o[7]
|
|
104
104
|
)
|
|
105
|
-
],
|
|
105
|
+
], p = !0);
|
|
106
106
|
},
|
|
107
|
-
p(
|
|
108
|
-
var
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
4 && (
|
|
112
|
-
|
|
113
|
-
8 && (
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
4 && (
|
|
118
|
-
|
|
119
|
-
8 && (
|
|
120
|
-
|
|
121
|
-
16 && (
|
|
122
|
-
|
|
107
|
+
p(e, f) {
|
|
108
|
+
var _, z;
|
|
109
|
+
const m = {};
|
|
110
|
+
f & /*unfolded*/
|
|
111
|
+
4 && (m.visible = /*unfolded*/
|
|
112
|
+
e[2]), f & /*contentWidth*/
|
|
113
|
+
8 && (m.left = /*contentWidth*/
|
|
114
|
+
e[3] / 2 + "px"), l.$set(m);
|
|
115
|
+
const d = {};
|
|
116
|
+
f & /*unfolded*/
|
|
117
|
+
4 && (d.unfolded = /*unfolded*/
|
|
118
|
+
e[2]), f & /*contentWidth*/
|
|
119
|
+
8 && (d.length = /*contentWidth*/
|
|
120
|
+
e[3]), f & /*foldTextDelay*/
|
|
121
|
+
16 && (d.outDelay = /*foldTextDelay*/
|
|
122
|
+
e[4] + 40 * Math.min(
|
|
123
123
|
/*textItems*/
|
|
124
|
-
(z = (
|
|
124
|
+
(z = (_ = e[6][0]) == null ? void 0 : _.content.length) != null ? z : 10,
|
|
125
125
|
15
|
|
126
|
-
)),
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
4 && (
|
|
130
|
-
|
|
131
|
-
2 && (
|
|
132
|
-
|
|
133
|
-
32 && (
|
|
134
|
-
|
|
126
|
+
)), t.$set(d);
|
|
127
|
+
const h = {};
|
|
128
|
+
f & /*unfolded*/
|
|
129
|
+
4 && (h.visible = /*unfolded*/
|
|
130
|
+
e[2]), f & /*textUnfolded*/
|
|
131
|
+
2 && (h.textUnfolded = /*textUnfolded*/
|
|
132
|
+
e[1]), f & /*content*/
|
|
133
|
+
32 && (h.content = /*content*/
|
|
134
|
+
e[5]), s.$set(h);
|
|
135
135
|
},
|
|
136
|
-
i(
|
|
137
|
-
|
|
136
|
+
i(e) {
|
|
137
|
+
u || (c(l.$$.fragment, e), c(t.$$.fragment, e), c(s.$$.fragment, e), u = !0);
|
|
138
138
|
},
|
|
139
|
-
o(
|
|
140
|
-
|
|
139
|
+
o(e) {
|
|
140
|
+
b(l.$$.fragment, e), b(t.$$.fragment, e), b(s.$$.fragment, e), u = !1;
|
|
141
141
|
},
|
|
142
|
-
d(
|
|
143
|
-
|
|
142
|
+
d(e) {
|
|
143
|
+
e && (y(r), y(i), y(n)), $(l, e), $(t, e), $(s), p = !1, W(g);
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
let
|
|
147
|
+
function J(o) {
|
|
148
|
+
let l, r, t = (
|
|
149
149
|
/*tag*/
|
|
150
150
|
o[0].state && M(o)
|
|
151
151
|
);
|
|
152
152
|
return {
|
|
153
153
|
c() {
|
|
154
|
-
|
|
154
|
+
t && t.c(), l = q();
|
|
155
155
|
},
|
|
156
|
-
m(
|
|
157
|
-
|
|
156
|
+
m(i, n) {
|
|
157
|
+
t && t.m(i, n), v(i, l, n), r = !0;
|
|
158
158
|
},
|
|
159
|
-
p(
|
|
159
|
+
p(i, [n]) {
|
|
160
160
|
/*tag*/
|
|
161
|
-
|
|
162
|
-
1 &&
|
|
163
|
-
|
|
164
|
-
}),
|
|
161
|
+
i[0].state ? t ? (t.p(i, n), n & /*tag*/
|
|
162
|
+
1 && c(t, 1)) : (t = M(i), t.c(), c(t, 1), t.m(l.parentNode, l)) : t && (N(), b(t, 1, 1, () => {
|
|
163
|
+
t = null;
|
|
164
|
+
}), L());
|
|
165
165
|
},
|
|
166
|
-
i(
|
|
167
|
-
|
|
166
|
+
i(i) {
|
|
167
|
+
r || (c(t), r = !0);
|
|
168
168
|
},
|
|
169
|
-
o(
|
|
170
|
-
|
|
169
|
+
o(i) {
|
|
170
|
+
b(t), r = !1;
|
|
171
171
|
},
|
|
172
|
-
d(
|
|
173
|
-
|
|
172
|
+
d(i) {
|
|
173
|
+
i && y(l), t && t.d(i);
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
177
|
+
function K(o, l, r) {
|
|
178
|
+
let t, i, n, s, u, { tag: p } = l, g, a = !1, w = [];
|
|
179
|
+
function e() {
|
|
180
|
+
r(1, a = !a);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
|
|
182
|
+
const f = (m) => {
|
|
183
|
+
r(3, g = m.detail);
|
|
184
184
|
};
|
|
185
|
-
return o.$$set = (
|
|
186
|
-
"tag" in
|
|
185
|
+
return o.$$set = (m) => {
|
|
186
|
+
"tag" in m && r(0, p = m.tag);
|
|
187
187
|
}, o.$$.update = () => {
|
|
188
|
-
var
|
|
188
|
+
var m, d, h, _;
|
|
189
189
|
o.$$.dirty & /*tag*/
|
|
190
|
-
1 &&
|
|
191
|
-
1 &&
|
|
192
|
-
|
|
190
|
+
1 && r(2, t = !!((m = p.state) != null && m.unfolded)), o.$$.dirty & /*tag*/
|
|
191
|
+
1 && r(9, i = (h = (d = p.data.title) != null ? d : p.data.text) != null ? h : ""), o.$$.dirty & /*tag*/
|
|
192
|
+
1 && r(8, n = (_ = p.data.description) != null ? _ : ""), o.$$.dirty & /*title, description*/
|
|
193
|
+
768 && r(5, s = (() => {
|
|
194
|
+
if (i && n)
|
|
195
|
+
return i + `
|
|
196
|
+
` + n;
|
|
197
|
+
if (i)
|
|
198
|
+
return i;
|
|
199
|
+
if (n)
|
|
200
|
+
return n;
|
|
201
|
+
})()), o.$$.dirty & /*unfolded*/
|
|
202
|
+
4 && (t || setTimeout(
|
|
193
203
|
() => {
|
|
194
|
-
|
|
204
|
+
r(1, a = !1);
|
|
195
205
|
},
|
|
196
206
|
20
|
|
197
207
|
)), o.$$.dirty & /*textUnfolded*/
|
|
198
|
-
2 &&
|
|
208
|
+
2 && r(4, u = a ? 450 : 0);
|
|
199
209
|
}, [
|
|
200
|
-
|
|
210
|
+
p,
|
|
211
|
+
a,
|
|
212
|
+
t,
|
|
213
|
+
g,
|
|
214
|
+
u,
|
|
201
215
|
s,
|
|
216
|
+
w,
|
|
202
217
|
e,
|
|
203
|
-
p,
|
|
204
|
-
r,
|
|
205
218
|
n,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
g
|
|
219
|
+
i,
|
|
220
|
+
f
|
|
209
221
|
];
|
|
210
222
|
}
|
|
211
|
-
class
|
|
212
|
-
constructor(
|
|
213
|
-
super(),
|
|
223
|
+
class Tt extends O {
|
|
224
|
+
constructor(l) {
|
|
225
|
+
super(), j(this, l, K, J, R, { tag: 0 }, H);
|
|
214
226
|
}
|
|
215
227
|
}
|
|
216
228
|
export {
|
|
217
|
-
|
|
229
|
+
Tt as default
|
|
218
230
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var F = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var b = (d, a, e) => a in d ?
|
|
4
|
+
var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (d, a, e) => a in d ? F(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
I.call(a, e) && b(d, e, a[e]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var e of A(a))
|
|
10
|
-
|
|
10
|
+
B.call(a, e) && b(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, T = (d, a) =>
|
|
12
|
+
}, T = (d, a) => w(d, U(a));
|
|
13
13
|
var g = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var f = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (r) => {
|
|
@@ -28,24 +28,24 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as C from "three";
|
|
31
|
-
import { Subscribe as
|
|
32
|
-
import { objectAssignDeepExports as
|
|
31
|
+
import { Subscribe as R } from "@realsee/five";
|
|
32
|
+
import { objectAssignDeepExports as l } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { arrayPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
|
|
34
|
-
import { addDebugPoints as
|
|
35
|
-
import { isMediaModelTag as D, isModelTag as
|
|
36
|
-
import { waitFiveModelLoaded as
|
|
34
|
+
import { addDebugPoints as O } from "../utils/addDebugPoints.js";
|
|
35
|
+
import { isMediaModelTag as D, isModelTag as k } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { waitFiveModelLoaded as _ } from "../utils/actionAfterFiveModelLoad.js";
|
|
37
37
|
import { debounce as S } from "../utils/debounce.js";
|
|
38
|
-
import { throttle as
|
|
38
|
+
import { throttle as L } from "../utils/throttle.js";
|
|
39
39
|
import { resizeObserver as P } from "../utils/resizeObserver.js";
|
|
40
|
-
import
|
|
41
|
-
import { generateBlankAudio as
|
|
42
|
-
import { TagRender as
|
|
43
|
-
import { uuid as
|
|
40
|
+
import V from "../utils/tag/format.js";
|
|
41
|
+
import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
|
|
42
|
+
import { TagRender as z } from "./TagRender.js";
|
|
43
|
+
import { uuid as x } from "../../shared-utils/uuid.js";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
47
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
|
-
import { tweenProgress as
|
|
48
|
+
import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
49
49
|
import "./TagComputer.js";
|
|
50
50
|
import "../utils/tagPosition.js";
|
|
51
51
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -174,8 +174,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
174
174
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
175
175
|
import "@realsee/five/gltf-loader";
|
|
176
176
|
import "../../shared-utils/animationFrame/index.js";
|
|
177
|
-
const M = "Dnalogel-PanoTagPlugin",
|
|
178
|
-
class
|
|
177
|
+
const M = "Dnalogel-PanoTagPlugin", wi = (d) => `${M}--${d}`;
|
|
178
|
+
class Ui extends z {
|
|
179
179
|
constructor(e, t) {
|
|
180
180
|
super(e);
|
|
181
181
|
/** state */
|
|
@@ -186,7 +186,7 @@ class wi extends N {
|
|
|
186
186
|
g(this, "debug");
|
|
187
187
|
/** 更改 tag 模型 */
|
|
188
188
|
g(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
189
|
-
e.data =
|
|
189
|
+
e.data = l({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
190
190
|
}));
|
|
191
191
|
g(this, "handleFiveInitAnimationEnded", () => {
|
|
192
192
|
const e = this.five.getCurrentState().mode;
|
|
@@ -202,7 +202,7 @@ class wi extends N {
|
|
|
202
202
|
typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (o = t.visibleFiveMode) != null && o.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
203
203
|
}), this.updateRenderAllTags();
|
|
204
204
|
});
|
|
205
|
-
this.params =
|
|
205
|
+
this.params = l({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: N.PlayAudio });
|
|
206
206
|
try {
|
|
207
207
|
const i = window;
|
|
208
208
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -215,14 +215,14 @@ class wi extends N {
|
|
|
215
215
|
load(e, t) {
|
|
216
216
|
return f(this, null, function* () {
|
|
217
217
|
var o, s;
|
|
218
|
-
this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
218
|
+
this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = l({}, this.config, {
|
|
219
219
|
globalConfig: (o = e.globalConfig) != null ? o : {},
|
|
220
220
|
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
221
221
|
});
|
|
222
222
|
const i = yield this.addTag(e.tagList, t);
|
|
223
223
|
if (this.debug)
|
|
224
224
|
try {
|
|
225
|
-
|
|
225
|
+
O(this.five, this.tags);
|
|
226
226
|
} catch (n) {
|
|
227
227
|
console.error(n);
|
|
228
228
|
}
|
|
@@ -235,28 +235,28 @@ class wi extends N {
|
|
|
235
235
|
addTag(e, t) {
|
|
236
236
|
return f(this, null, function* () {
|
|
237
237
|
const o = (Array.isArray(e) ? e : [e]).map((s) => {
|
|
238
|
-
var
|
|
239
|
-
const n = this.getTagConfig(s), r = JSON.parse(JSON.stringify(s.data));
|
|
238
|
+
var c, u, v;
|
|
239
|
+
const n = this.getTagConfig(s), r = JSON.parse(JSON.stringify(s.data)), h = s.config;
|
|
240
240
|
return s.config = n, T(m({}, s), {
|
|
241
|
-
enabled: (
|
|
242
|
-
id: (
|
|
243
|
-
data: (
|
|
241
|
+
enabled: (c = s.enabled) != null ? c : !0,
|
|
242
|
+
id: (u = s.id) != null ? u : x(),
|
|
243
|
+
data: (v = n.initialData) != null && v.important ? l(s.data, r, n.initialData) : l(s.data, n.initialData, r),
|
|
244
244
|
state: m({
|
|
245
245
|
visible: void 0,
|
|
246
246
|
unfolded: !this.can("fold", s)
|
|
247
247
|
}, n.initialState),
|
|
248
|
-
hooks: new
|
|
249
|
-
initialConfig:
|
|
248
|
+
hooks: new R(),
|
|
249
|
+
initialConfig: h,
|
|
250
250
|
config: n,
|
|
251
251
|
unfold: () => this.changeUnfoldedById(s.id, !0),
|
|
252
252
|
fold: () => this.changeUnfoldedById(s.id, !1),
|
|
253
253
|
enable: () => this.changeEnabledById(s.id, !0),
|
|
254
254
|
disable: () => this.changeEnabledById(s.id, !1),
|
|
255
255
|
destroy: () => this.destroyTagById(s.id),
|
|
256
|
-
changeData: (
|
|
256
|
+
changeData: (E) => this.changeDataById(s.id, E)
|
|
257
257
|
});
|
|
258
258
|
}).filter((s) => s.position);
|
|
259
|
-
return o.forEach(
|
|
259
|
+
return o.forEach(V), this.tags.push(...o), _(this.five).then(() => f(this, null, function* () {
|
|
260
260
|
var s, n, r;
|
|
261
261
|
this.store.eventListenerDisposer && ((n = (s = this.store).eventListenerDisposer) == null || n.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(o);
|
|
262
262
|
}));
|
|
@@ -266,19 +266,19 @@ class wi extends N {
|
|
|
266
266
|
* @description: 改变配置
|
|
267
267
|
*/
|
|
268
268
|
changeConfig(e, t = !0) {
|
|
269
|
-
t ? this.config =
|
|
269
|
+
t ? this.config = l({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* @description: 改变全局配置
|
|
273
273
|
*/
|
|
274
274
|
changeGlobalConfig(e, t = !0) {
|
|
275
|
-
t ? this.config.globalConfig =
|
|
275
|
+
t ? this.config.globalConfig = l({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
278
|
* @description: 改变类型配置
|
|
279
279
|
*/
|
|
280
280
|
changeContentTypeConfig(e, t, i = !0) {
|
|
281
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
281
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = l({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.updateRenderAllTags();
|
|
282
282
|
}
|
|
283
283
|
show(e) {
|
|
284
284
|
return f(this, null, function* () {
|
|
@@ -354,7 +354,7 @@ class wi extends N {
|
|
|
354
354
|
changeDataById(e, t, i = !0) {
|
|
355
355
|
const o = this.getTagById(e);
|
|
356
356
|
let s = !1;
|
|
357
|
-
o && (o.data && (s = !0), i ? o.data =
|
|
357
|
+
o && (o.data && (s = !0), i ? o.data = l(o.data, t) : o.data = m(m({}, o.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), s && o.hooks.emit("dataChanged", o.data));
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
360
|
* @description: 改变tag的stickType
|
|
@@ -368,7 +368,7 @@ class wi extends N {
|
|
|
368
368
|
changeTagById(e, t, i = !0) {
|
|
369
369
|
const o = this.getTagById(e);
|
|
370
370
|
let s = !1;
|
|
371
|
-
t && (t.data && (s = !0), i ?
|
|
371
|
+
t && (t.data && (s = !0), i ? l(o, t) : Object.assign(o, t), o != null && o.tag3DContentSvelte && (t != null && t.normal) && (o.tag3DContentSvelte.currentNormal = y(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), s && o.hooks.emit("dataChanged", o.data));
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* @description: 销毁tag
|
|
@@ -415,9 +415,9 @@ class wi extends N {
|
|
|
415
415
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
416
416
|
*/
|
|
417
417
|
addEventListener() {
|
|
418
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), o = this.handleFiveModeChange.bind(this), s = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this),
|
|
419
|
-
return c && this.handleFiveModeChange(c), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", o), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", s), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", h), t.on("click",
|
|
420
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", o), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", s), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", h), t.off("click",
|
|
418
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), o = this.handleFiveModeChange.bind(this), s = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), p = this.clickhandler.bind(this), c = this.five.currentMode;
|
|
419
|
+
return c && this.handleFiveModeChange(c), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", o), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", s), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", h), t.on("click", p), () => {
|
|
420
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", o), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", s), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", h), t.off("click", p), this.store.eventListenerDisposer = void 0;
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
addResizeListener() {
|
|
@@ -436,7 +436,7 @@ class wi extends N {
|
|
|
436
436
|
}, i = () => {
|
|
437
437
|
this.state.enabled && this.hide();
|
|
438
438
|
}, { observe: o, unobserve: s } = P(
|
|
439
|
-
|
|
439
|
+
L(() => {
|
|
440
440
|
this.store.resizeObserverDisposer && i();
|
|
441
441
|
}, 500),
|
|
442
442
|
e
|
|
@@ -502,7 +502,7 @@ class wi extends N {
|
|
|
502
502
|
var e, t, i;
|
|
503
503
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((o) => {
|
|
504
504
|
o.temporaryState = T(m({}, o.temporaryState), { visible: !0 });
|
|
505
|
-
}), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(
|
|
505
|
+
}), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(k).filter((o) => {
|
|
506
506
|
var s, n;
|
|
507
507
|
return (n = (s = o.config) == null ? void 0 : s.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
|
|
508
508
|
}).forEach((o) => {
|
|
@@ -513,9 +513,9 @@ class wi extends N {
|
|
|
513
513
|
s.position.copy(n.position), s.quaternion.copy(n.quaternion);
|
|
514
514
|
const r = this.five.camera.position;
|
|
515
515
|
s.lookAt(r.clone().setY(s.position.y));
|
|
516
|
-
const h = n.quaternion.clone(),
|
|
516
|
+
const h = n.quaternion.clone(), p = s.quaternion.clone(), c = W();
|
|
517
517
|
c.onUpdate(({ progress: v }) => {
|
|
518
|
-
n.quaternion.copy(h.clone().slerp(
|
|
518
|
+
n.quaternion.copy(h.clone().slerp(p, v));
|
|
519
519
|
}), c.play();
|
|
520
520
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
521
521
|
});
|
|
@@ -532,11 +532,11 @@ class wi extends N {
|
|
|
532
532
|
}
|
|
533
533
|
changeTagMode(e, t) {
|
|
534
534
|
var i, o, s, n, r, h;
|
|
535
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((
|
|
535
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((p) => p == null ? void 0 : p()), e.tag3DContentSvelte = void 0);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
export {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
Ui as PanoTagPluginController,
|
|
540
|
+
Ui as default,
|
|
541
|
+
wi as pluginFlag
|
|
542
542
|
};
|
|
@@ -137,12 +137,26 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
137
137
|
/** 展开/收起 */
|
|
138
138
|
unfolded?: boolean;
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
/**
|
|
141
|
+
* @description: 标签的默认数据,会将 tag.data 深度合并进来
|
|
142
|
+
* @code `tag.data = ObjectAssignDeep(initialData, tag.data)`
|
|
143
|
+
*/
|
|
144
|
+
initialData?: (C extends TagContentType ? PartialObjectDeep<ContentTypeMap[C]> : {
|
|
143
145
|
[key: string]: any;
|
|
146
|
+
}) & {
|
|
147
|
+
/**
|
|
148
|
+
* @description: 类似 css 的 !important,会覆盖掉 tag.data 中对应的数据
|
|
149
|
+
* @code
|
|
150
|
+
* ```
|
|
151
|
+
* if (initialData.important) tag.data = ObjectAssignDeep(tag.data, initialData)
|
|
152
|
+
* else tag.data = ObjectAssignDeep(initialData, tag.data)
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
144
155
|
important?: boolean;
|
|
145
156
|
};
|
|
157
|
+
/**
|
|
158
|
+
* @description: 内部使用 css3DRenderer 渲染的标签可以使用此配置来设置 css3DRenderer 相关参数
|
|
159
|
+
*/
|
|
146
160
|
tag3DConfig?: Create3DDomContainerParamsType['config'];
|
|
147
161
|
modelConfig?: {
|
|
148
162
|
autoLookAtEnabled?: boolean;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.27.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.27.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.27.0
|
|
10
|
+
"version": "2.27.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|