@realsee/dnalogel 2.19.2 → 2.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +684 -678
- package/dist/index.umd.js +4 -4
- 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 +30 -30
- 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 +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- 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/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/TopviewFloorplanPlugin.html +3 -3
- 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 +6 -6
- 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 +6 -6
- 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 +13 -13
- 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 +12 -12
- 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/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/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/ModelElement.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/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.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/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.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/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Components/TagItem.js +56 -56
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +81 -75
- package/libs/PanoTagPlugin/controller/TagRender.js +6 -6
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent as U, init as W, safe_not_equal as X, append_styles as Y, element as C, space as Z, attr as d, null_to_empty as E, set_style as h, toggle_class as _, insert as P, append as F, transition_out as y, check_outros as G, transition_in as v, detach as N, getContext as x, group_outros as H, noop as S, create_component as M, mount_component as O, destroy_component as Q } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import $ from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
|
-
import { noTypecheck as
|
|
5
|
-
import
|
|
6
|
-
import { classnames as
|
|
4
|
+
import { noTypecheck as J } from "../utils/noTypecheck.js";
|
|
5
|
+
import tt from "./Common/TagPoint.js";
|
|
6
|
+
import { classnames as K } from "../../vendor/classnames/index.js";
|
|
7
7
|
import "./Tag/TextTag/index.js";
|
|
8
8
|
import "./Tag/TextTag/TextTag.js";
|
|
9
9
|
import "./Common/Line/Straight.js";
|
|
@@ -90,10 +90,10 @@ import "./Tag/LinkTag.js";
|
|
|
90
90
|
import "./Common/Icon/Icon.js";
|
|
91
91
|
import "../utils/getImageInfo.js";
|
|
92
92
|
import "./Tag/CustomTag.js";
|
|
93
|
-
function tt(i) {
|
|
94
|
-
X(i, "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}");
|
|
95
|
-
}
|
|
96
93
|
function et(i) {
|
|
94
|
+
Y(i, "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}");
|
|
95
|
+
}
|
|
96
|
+
function it(i) {
|
|
97
97
|
let e;
|
|
98
98
|
return {
|
|
99
99
|
c() {
|
|
@@ -110,9 +110,9 @@ function et(i) {
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ot(i) {
|
|
114
114
|
let e, t;
|
|
115
|
-
return e = new
|
|
115
|
+
return e = new $({
|
|
116
116
|
props: {
|
|
117
117
|
mediaStore: (
|
|
118
118
|
/*mediaStore*/
|
|
@@ -122,7 +122,7 @@ function it(i) {
|
|
|
122
122
|
/*withAnimation*/
|
|
123
123
|
i[0]
|
|
124
124
|
),
|
|
125
|
-
tag:
|
|
125
|
+
tag: J(
|
|
126
126
|
/*tag*/
|
|
127
127
|
i[1]
|
|
128
128
|
),
|
|
@@ -141,10 +141,10 @@ function it(i) {
|
|
|
141
141
|
}
|
|
142
142
|
}), {
|
|
143
143
|
c() {
|
|
144
|
-
|
|
144
|
+
M(e.$$.fragment);
|
|
145
145
|
},
|
|
146
146
|
m(o, a) {
|
|
147
|
-
|
|
147
|
+
O(e, o, a), t = !0;
|
|
148
148
|
},
|
|
149
149
|
p(o, a) {
|
|
150
150
|
const m = {};
|
|
@@ -153,7 +153,7 @@ function it(i) {
|
|
|
153
153
|
o[2]), a & /*withAnimation*/
|
|
154
154
|
1 && (m.withAnimation = /*withAnimation*/
|
|
155
155
|
o[0]), a & /*tag*/
|
|
156
|
-
2 && (m.tag =
|
|
156
|
+
2 && (m.tag = J(
|
|
157
157
|
/*tag*/
|
|
158
158
|
o[1]
|
|
159
159
|
)), a & /*state*/
|
|
@@ -169,11 +169,11 @@ function it(i) {
|
|
|
169
169
|
y(e.$$.fragment, o), t = !1;
|
|
170
170
|
},
|
|
171
171
|
d(o) {
|
|
172
|
-
|
|
172
|
+
Q(e, o);
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function rt(i) {
|
|
177
177
|
let e;
|
|
178
178
|
return {
|
|
179
179
|
c() {
|
|
@@ -190,17 +190,17 @@ function ot(i) {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function nt(i) {
|
|
194
194
|
let e, t;
|
|
195
|
-
return e = new
|
|
195
|
+
return e = new tt({ props: { tag: (
|
|
196
196
|
/*tag*/
|
|
197
197
|
i[1]
|
|
198
198
|
) } }), {
|
|
199
199
|
c() {
|
|
200
|
-
|
|
200
|
+
M(e.$$.fragment);
|
|
201
201
|
},
|
|
202
202
|
m(o, a) {
|
|
203
|
-
|
|
203
|
+
O(e, o, a), t = !0;
|
|
204
204
|
},
|
|
205
205
|
p(o, a) {
|
|
206
206
|
const m = {};
|
|
@@ -215,13 +215,13 @@ function rt(i) {
|
|
|
215
215
|
y(e.$$.fragment, o), t = !1;
|
|
216
216
|
},
|
|
217
217
|
d(o) {
|
|
218
|
-
|
|
218
|
+
Q(e, o);
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function at(i) {
|
|
223
223
|
let e, t, o, a, m, s, f, g, w, l;
|
|
224
|
-
const T = [
|
|
224
|
+
const T = [ot, it], u = [];
|
|
225
225
|
function p(n, r) {
|
|
226
226
|
return (
|
|
227
227
|
/*haveContent*/
|
|
@@ -229,7 +229,7 @@ function nt(i) {
|
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
231
|
o = p(i), a = u[o] = T[o](i);
|
|
232
|
-
const z = [
|
|
232
|
+
const z = [nt, rt], c = [];
|
|
233
233
|
function A(n, r) {
|
|
234
234
|
return (
|
|
235
235
|
/*havePoint*/
|
|
@@ -238,7 +238,7 @@ function nt(i) {
|
|
|
238
238
|
}
|
|
239
239
|
return s = A(i), f = c[s] = z[s](i), {
|
|
240
240
|
c() {
|
|
241
|
-
e = C("div"), t = C("div"), a.c(), m =
|
|
241
|
+
e = C("div"), t = C("div"), a.c(), m = Z(), f.c(), d(t, "class", g = E(K(
|
|
242
242
|
"wrapper",
|
|
243
243
|
/*tag*/
|
|
244
244
|
i[1].className ? `${/*tag*/
|
|
@@ -264,11 +264,6 @@ function nt(i) {
|
|
|
264
264
|
"top",
|
|
265
265
|
/*top*/
|
|
266
266
|
i[6]
|
|
267
|
-
), h(
|
|
268
|
-
t,
|
|
269
|
-
"z-index",
|
|
270
|
-
/*zIndex*/
|
|
271
|
-
i[5]
|
|
272
267
|
), d(e, "class", "tag svelte-pzwdws"), d(
|
|
273
268
|
e,
|
|
274
269
|
"data-tag-id",
|
|
@@ -294,21 +289,26 @@ function nt(i) {
|
|
|
294
289
|
"withAnimation",
|
|
295
290
|
/*withAnimation*/
|
|
296
291
|
i[0]
|
|
292
|
+
), h(
|
|
293
|
+
e,
|
|
294
|
+
"z-index",
|
|
295
|
+
/*zIndex*/
|
|
296
|
+
i[5]
|
|
297
297
|
);
|
|
298
298
|
},
|
|
299
299
|
m(n, r) {
|
|
300
|
-
P(n, e, r),
|
|
300
|
+
P(n, e, r), F(e, t), u[o].m(t, null), F(t, m), c[s].m(t, null), l = !0;
|
|
301
301
|
},
|
|
302
302
|
p(n, [r]) {
|
|
303
303
|
let b = o;
|
|
304
|
-
o = p(n), o === b ? u[o].p(n, r) : (
|
|
304
|
+
o = p(n), o === b ? u[o].p(n, r) : (H(), y(u[b], 1, 1, () => {
|
|
305
305
|
u[b] = null;
|
|
306
|
-
}),
|
|
306
|
+
}), G(), a = u[o], a ? a.p(n, r) : (a = u[o] = T[o](n), a.c()), v(a, 1), a.m(t, m));
|
|
307
307
|
let k = s;
|
|
308
|
-
s = A(n), s === k ? c[s].p(n, r) : (
|
|
308
|
+
s = A(n), s === k ? c[s].p(n, r) : (H(), y(c[k], 1, 1, () => {
|
|
309
309
|
c[k] = null;
|
|
310
|
-
}),
|
|
311
|
-
2 && g !== (g =
|
|
310
|
+
}), G(), f = c[s], f ? f.p(n, r) : (f = c[s] = z[s](n), f.c()), v(f, 1), f.m(t, null)), (!l || r & /*tag*/
|
|
311
|
+
2 && g !== (g = E(K(
|
|
312
312
|
"wrapper",
|
|
313
313
|
/*tag*/
|
|
314
314
|
n[1].className ? `${/*tag*/
|
|
@@ -339,12 +339,6 @@ function nt(i) {
|
|
|
339
339
|
"top",
|
|
340
340
|
/*top*/
|
|
341
341
|
n[6]
|
|
342
|
-
), r & /*zIndex*/
|
|
343
|
-
32 && h(
|
|
344
|
-
t,
|
|
345
|
-
"z-index",
|
|
346
|
-
/*zIndex*/
|
|
347
|
-
n[5]
|
|
348
342
|
), (!l || r & /*id*/
|
|
349
343
|
2048) && d(
|
|
350
344
|
e,
|
|
@@ -375,6 +369,12 @@ function nt(i) {
|
|
|
375
369
|
"withAnimation",
|
|
376
370
|
/*withAnimation*/
|
|
377
371
|
n[0]
|
|
372
|
+
), r & /*zIndex*/
|
|
373
|
+
32 && h(
|
|
374
|
+
e,
|
|
375
|
+
"z-index",
|
|
376
|
+
/*zIndex*/
|
|
377
|
+
n[5]
|
|
378
378
|
);
|
|
379
379
|
},
|
|
380
380
|
i(n) {
|
|
@@ -388,26 +388,26 @@ function nt(i) {
|
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function pt(i, e, t) {
|
|
392
392
|
let o, a, m, s, f, g, w, l, T, { withAnimation: u = !1 } = e, { tag: p } = e, { mediaStore: z } = e, { state: c } = e, { temporaryState: A } = e;
|
|
393
|
-
const n =
|
|
393
|
+
const n = x("hooks");
|
|
394
394
|
return i.$$set = (r) => {
|
|
395
395
|
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2, z = r.mediaStore), "state" in r && t(3, c = r.state), "temporaryState" in r && t(4, A = r.temporaryState);
|
|
396
396
|
}, i.$$.update = () => {
|
|
397
|
-
var r, b, k,
|
|
397
|
+
var r, b, k, I, L, q, D, R, V;
|
|
398
398
|
i.$$.dirty & /*tag*/
|
|
399
399
|
2 && t(13, o = (() => {
|
|
400
|
-
var
|
|
401
|
-
return !(((
|
|
400
|
+
var j, B;
|
|
401
|
+
return !(((B = (j = p.style) == null ? void 0 : j.point) == null ? void 0 : B.enabled) === !1 || p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane");
|
|
402
402
|
})()), i.$$.dirty & /*tag*/
|
|
403
403
|
2 && t(12, a = (() => p.stickType === "2DPoint")()), i.$$.dirty & /*tag*/
|
|
404
404
|
2 && t(11, m = p.id), i.$$.dirty & /*tag*/
|
|
405
405
|
2 && t(10, s = !((r = p.pointTagStyle) != null && r.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), i.$$.dirty & /*tag*/
|
|
406
|
-
2 && t(9, f = !((k = p.state) != null && k.visible) || ((
|
|
407
|
-
2 && t(8, g = (
|
|
406
|
+
2 && t(9, f = !((k = p.state) != null && k.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & /*tag*/
|
|
407
|
+
2 && t(8, g = (L = p.state) == null ? void 0 : L.unfolded), i.$$.dirty & /*tag*/
|
|
408
408
|
2 && t(7, w = ((q = p.pointTagStyle) == null ? void 0 : q.leftPercent) + "%"), i.$$.dirty & /*tag*/
|
|
409
409
|
2 && t(6, l = ((D = p.pointTagStyle) == null ? void 0 : D.topPercent) + "%"), i.$$.dirty & /*tag*/
|
|
410
|
-
2 && t(5, T = (R = p.state) != null && R.unfolded ?
|
|
410
|
+
2 && t(5, T = (R = p.state) != null && R.unfolded ? 99999 : (V = p.zIndex) != null ? V : 0);
|
|
411
411
|
}, [
|
|
412
412
|
u,
|
|
413
413
|
p,
|
|
@@ -426,14 +426,14 @@ function at(i, e, t) {
|
|
|
426
426
|
n
|
|
427
427
|
];
|
|
428
428
|
}
|
|
429
|
-
class
|
|
429
|
+
class Qe extends U {
|
|
430
430
|
constructor(e) {
|
|
431
|
-
super(),
|
|
431
|
+
super(), W(
|
|
432
432
|
this,
|
|
433
433
|
e,
|
|
434
|
+
pt,
|
|
434
435
|
at,
|
|
435
|
-
|
|
436
|
-
W,
|
|
436
|
+
X,
|
|
437
437
|
{
|
|
438
438
|
withAnimation: 0,
|
|
439
439
|
tag: 1,
|
|
@@ -441,10 +441,10 @@ class Oe extends Q {
|
|
|
441
441
|
state: 3,
|
|
442
442
|
temporaryState: 4
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
et
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
export {
|
|
449
|
-
|
|
449
|
+
Qe as default
|
|
450
450
|
};
|
|
@@ -28,6 +28,7 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
28
28
|
*/
|
|
29
29
|
getUnfoldedByCamera(tag: TagElement<any, any>): boolean;
|
|
30
30
|
protected sort<T extends Tag<any, any>>(tags: T[]): T[];
|
|
31
|
+
protected setTagZIndex<T extends TagElement<any, any>>(tags: T[]): void;
|
|
31
32
|
/**
|
|
32
33
|
* @description: 一个点的标签
|
|
33
34
|
*/
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var M = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var g = (c, l, e) => l in c ? M(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
|
|
7
|
+
R.call(l, e) && g(c, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
|
-
|
|
10
|
+
B.call(l, e) && g(c, e, l[e]);
|
|
11
11
|
return c;
|
|
12
|
-
}, I = (c, l) => U(c,
|
|
12
|
+
}, I = (c, l) => U(c, D(l));
|
|
13
13
|
var T = (c, l, e) => (g(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
|
-
import * as
|
|
14
|
+
import * as C from "three";
|
|
15
15
|
import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
|
|
16
16
|
import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
@@ -58,17 +58,17 @@ import "../../shared-utils/threex/domevents/index.js";
|
|
|
58
58
|
class Ue extends $ {
|
|
59
59
|
constructor(e) {
|
|
60
60
|
super(e);
|
|
61
|
-
T(this, "raycaster", new
|
|
61
|
+
T(this, "raycaster", new C.Raycaster());
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @description: 获取是否可见
|
|
65
65
|
*/
|
|
66
66
|
getVisibleByPanoIndex(e, t) {
|
|
67
|
-
const
|
|
67
|
+
const n = this.getCache({ panoIndex: t, id: e.id }), s = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
68
68
|
if (e.stickType === "Model")
|
|
69
69
|
return !0;
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
70
|
+
if (n.visible !== void 0)
|
|
71
|
+
return n.visible;
|
|
72
72
|
{
|
|
73
73
|
const i = (() => {
|
|
74
74
|
var d, u, v;
|
|
@@ -79,16 +79,16 @@ class Ue extends $ {
|
|
|
79
79
|
return { value: !1, reason: "config.keep is hidden" };
|
|
80
80
|
if (o.keep === "visible")
|
|
81
81
|
return { value: !0, reason: "config.keep is visible" };
|
|
82
|
-
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" &&
|
|
83
|
-
if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(
|
|
82
|
+
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0) {
|
|
83
|
+
if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s))
|
|
84
84
|
return {
|
|
85
85
|
value: !1,
|
|
86
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${
|
|
86
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
87
87
|
};
|
|
88
|
-
if (o.visiblePanoIndex === "current" &&
|
|
88
|
+
if (o.visiblePanoIndex === "current" && s !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
|
|
89
89
|
return {
|
|
90
90
|
value: !1,
|
|
91
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${
|
|
91
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
|
|
@@ -97,12 +97,12 @@ class Ue extends $ {
|
|
|
97
97
|
reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${o.visibleDistance}`
|
|
98
98
|
};
|
|
99
99
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
100
|
-
if (
|
|
100
|
+
if (s === void 0)
|
|
101
101
|
return {
|
|
102
102
|
value: !1,
|
|
103
|
-
reason: `intersectRaycaster check failed: fivePanoIndex is ${
|
|
103
|
+
reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
|
|
104
104
|
};
|
|
105
|
-
const r = this.getRaycasterFromPanoIndex(e,
|
|
105
|
+
const r = this.getRaycasterFromPanoIndex(e, s);
|
|
106
106
|
if (!r)
|
|
107
107
|
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${r}` };
|
|
108
108
|
const a = this.getTagEnableByIntersect(e, r);
|
|
@@ -119,19 +119,19 @@ class Ue extends $ {
|
|
|
119
119
|
reason: "all check passed"
|
|
120
120
|
};
|
|
121
121
|
})();
|
|
122
|
-
return
|
|
122
|
+
return n.visible = i.value, n.__debug_visible_reason__ = i, n.visible;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
getVisibleByFiveMode(e, t) {
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
if (typeof
|
|
129
|
-
const i =
|
|
130
|
-
return i ? i != null && i.includes(
|
|
131
|
-
} else if (typeof
|
|
126
|
+
const n = t != null ? t : this.five.getCurrentState().mode, s = this.getTagConfig(e).visibleConfig;
|
|
127
|
+
if (s) {
|
|
128
|
+
if (typeof s == "object") {
|
|
129
|
+
const i = s == null ? void 0 : s.visibleFiveMode;
|
|
130
|
+
return i ? i != null && i.includes(n) ? s.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : n === "Panorama";
|
|
131
|
+
} else if (typeof s == "function")
|
|
132
132
|
return t === "Panorama";
|
|
133
133
|
} else
|
|
134
|
-
return
|
|
134
|
+
return n === "Panorama";
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* @description 获取标签当前状态
|
|
@@ -142,21 +142,21 @@ class Ue extends $ {
|
|
|
142
142
|
return (t = this.state.visible && e.state.visible) != null ? t : !0;
|
|
143
143
|
}
|
|
144
144
|
getVisible(e) {
|
|
145
|
-
const t = this.five.getCurrentState(),
|
|
146
|
-
return
|
|
145
|
+
const t = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e), s = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
|
|
146
|
+
return n && s;
|
|
147
147
|
}
|
|
148
148
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
149
149
|
getModelMedialVisibleByPanoIndex(e) {
|
|
150
150
|
if (!this.getCurrentVisibleState(e))
|
|
151
151
|
return !1;
|
|
152
|
-
const t = this.five.getCurrentState().panoIndex,
|
|
153
|
-
if (
|
|
154
|
-
return
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
152
|
+
const t = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: t, id: e.id });
|
|
153
|
+
if (n.modelMedialVisible !== void 0)
|
|
154
|
+
return n.modelMedialVisible;
|
|
155
|
+
const s = this.getRaycasterFromPanoIndex(e, t);
|
|
156
|
+
if (!s)
|
|
157
157
|
return !1;
|
|
158
|
-
const i = this.getTagEnableByIntersect(e,
|
|
159
|
-
return
|
|
158
|
+
const i = this.getTagEnableByIntersect(e, s);
|
|
159
|
+
return n.modelMedialVisible = i.value, n.__debug_visible_reason__ = i, i.value !== !1;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* @description: 获取是否展开
|
|
@@ -164,9 +164,9 @@ class Ue extends $ {
|
|
|
164
164
|
getUnfoldedByPanoIndex(e, t) {
|
|
165
165
|
if (!this.getVisibleByPanoIndex(e))
|
|
166
166
|
return;
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
return
|
|
167
|
+
const s = this.getCache({ panoIndex: t, id: e.id });
|
|
168
|
+
if (s.unfolded !== void 0)
|
|
169
|
+
return s.unfolded;
|
|
170
170
|
{
|
|
171
171
|
const i = this.getTagConfig(e).unfoldedConfig;
|
|
172
172
|
if (!i)
|
|
@@ -182,9 +182,9 @@ class Ue extends $ {
|
|
|
182
182
|
if (i.unfoldDistance && h(d, i.unfoldDistance) === !1)
|
|
183
183
|
return !1;
|
|
184
184
|
})();
|
|
185
|
-
|
|
185
|
+
s.unfolded = o;
|
|
186
186
|
const f = this.getUnfoldedByCamera(e);
|
|
187
|
-
return f !== void 0 ? f :
|
|
187
|
+
return f !== void 0 ? f : s.unfolded;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
@@ -193,10 +193,10 @@ class Ue extends $ {
|
|
|
193
193
|
getUnfoldedByCamera(e) {
|
|
194
194
|
return this.getVisible(e) ? (() => {
|
|
195
195
|
var o;
|
|
196
|
-
const
|
|
196
|
+
const s = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
|
|
197
197
|
if (i) {
|
|
198
198
|
if (typeof i == "function")
|
|
199
|
-
return i(this.five, { tag: e, distance:
|
|
199
|
+
return i(this.five, { tag: e, distance: s });
|
|
200
200
|
if (i.keep === "folded")
|
|
201
201
|
return !1;
|
|
202
202
|
if (i.keep === "unfolded")
|
|
@@ -230,9 +230,15 @@ class Ue extends $ {
|
|
|
230
230
|
})() : void 0;
|
|
231
231
|
}
|
|
232
232
|
sort(e) {
|
|
233
|
-
return e.sort((t,
|
|
234
|
-
const
|
|
235
|
-
return
|
|
233
|
+
return e.sort((t, n) => {
|
|
234
|
+
const s = this.getDistance(t), i = this.getDistance(n);
|
|
235
|
+
return s === void 0 || i === void 0 ? 0 : i - s;
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
setTagZIndex(e) {
|
|
239
|
+
return e.forEach((t) => {
|
|
240
|
+
const n = this.getDistance(t);
|
|
241
|
+
t.zIndex = Math.round((n != null ? n : 0) * 100);
|
|
236
242
|
});
|
|
237
243
|
}
|
|
238
244
|
/**
|
|
@@ -241,17 +247,17 @@ class Ue extends $ {
|
|
|
241
247
|
setPointTagPosition() {
|
|
242
248
|
const e = this.filterPointTag;
|
|
243
249
|
e.length !== 0 && e.forEach((t) => {
|
|
244
|
-
var
|
|
245
|
-
if (!((
|
|
250
|
+
var s;
|
|
251
|
+
if (!((s = t.state) != null && s.visible)) {
|
|
246
252
|
t.pointTagStyle = null;
|
|
247
253
|
return;
|
|
248
254
|
}
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
255
|
+
const n = this.getTagProject(t);
|
|
256
|
+
if (!n) {
|
|
251
257
|
t.pointTagStyle = null;
|
|
252
258
|
return;
|
|
253
259
|
}
|
|
254
|
-
t.pointTagStyle = { leftPercent: (
|
|
260
|
+
t.pointTagStyle = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
|
|
255
261
|
});
|
|
256
262
|
}
|
|
257
263
|
setVisible() {
|
|
@@ -269,23 +275,23 @@ class Ue extends $ {
|
|
|
269
275
|
setModelMedialVisible() {
|
|
270
276
|
const e = this.five.getCurrentState().mode;
|
|
271
277
|
this.tags.forEach((t) => {
|
|
272
|
-
var
|
|
278
|
+
var s;
|
|
273
279
|
if (!y(t))
|
|
274
280
|
return;
|
|
275
|
-
if (!((
|
|
281
|
+
if (!((s = t.model) != null && s.object)) {
|
|
276
282
|
t.mediaVisible = !1;
|
|
277
283
|
return;
|
|
278
284
|
}
|
|
279
|
-
const
|
|
280
|
-
t.mediaVisible =
|
|
285
|
+
const n = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
|
|
286
|
+
t.mediaVisible = n;
|
|
281
287
|
});
|
|
282
288
|
}
|
|
283
289
|
setUnfoldedByPanoIndex() {
|
|
284
290
|
this.tags.forEach((e) => {
|
|
285
291
|
const t = this.getUnfoldedByPanoIndex(e);
|
|
286
292
|
if (e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
|
|
287
|
-
const
|
|
288
|
-
typeof
|
|
293
|
+
const n = this.getTagConfig(e);
|
|
294
|
+
typeof n.unfoldedConfig == "object" && n.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
289
295
|
}
|
|
290
296
|
});
|
|
291
297
|
}
|
|
@@ -295,17 +301,17 @@ class Ue extends $ {
|
|
|
295
301
|
getTagProject(e) {
|
|
296
302
|
if (!this.getVisible(e))
|
|
297
303
|
return;
|
|
298
|
-
const
|
|
299
|
-
if (!
|
|
304
|
+
const n = V(e.position);
|
|
305
|
+
if (!n)
|
|
300
306
|
return;
|
|
301
|
-
const { x:
|
|
307
|
+
const { x: s, y: i, z: o } = n.project(this.five.camera);
|
|
302
308
|
if (!(o > 1))
|
|
303
|
-
return { x:
|
|
309
|
+
return { x: s, y: i, z: o };
|
|
304
310
|
}
|
|
305
311
|
/** 通过射线检测标签可用性 */
|
|
306
312
|
getTagEnableByIntersect(e, t) {
|
|
307
313
|
var u, v, r;
|
|
308
|
-
const
|
|
314
|
+
const n = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, s = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
|
|
309
315
|
if (!y(e))
|
|
310
316
|
return;
|
|
311
317
|
const a = this.tags.filter(y).map((b) => {
|
|
@@ -315,34 +321,34 @@ class Ue extends $ {
|
|
|
315
321
|
return t.intersectObjects(a, !0)[0];
|
|
316
322
|
})(), f = (() => {
|
|
317
323
|
var a;
|
|
318
|
-
return typeof
|
|
324
|
+
return typeof n == "object" && typeof n.intersectRaycaster == "object" && (a = n.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
319
325
|
})(), d = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
|
|
320
|
-
return d + f <
|
|
326
|
+
return d + f < s ? {
|
|
321
327
|
value: !1,
|
|
322
|
-
reason: `intersectRaycaster check failed: distance is ${
|
|
328
|
+
reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
|
|
323
329
|
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${d}`
|
|
324
330
|
} : { value: !0, reason: "" };
|
|
325
331
|
}
|
|
326
332
|
/** 获取点位看向标签的射线 */
|
|
327
333
|
getRaycasterFromPanoIndex(e, t) {
|
|
328
334
|
var o;
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
335
|
+
const n = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
|
|
336
|
+
if (n === void 0)
|
|
337
|
+
throw new Error(`getVisible(): observerPosition is ${n}`);
|
|
338
|
+
const s = V(e.position);
|
|
339
|
+
if (!s)
|
|
334
340
|
return;
|
|
335
|
-
const i =
|
|
336
|
-
return this.raycaster.set(
|
|
341
|
+
const i = s.sub(n).normalize();
|
|
342
|
+
return this.raycaster.set(n, i), this.raycaster;
|
|
337
343
|
}
|
|
338
344
|
/** 检测是否匹配当前楼层 */
|
|
339
345
|
getVisibleByFloorIndex(e) {
|
|
340
346
|
var i, o, f, d, u, v, r;
|
|
341
347
|
let t = 0;
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
return
|
|
348
|
+
const n = (i = e.fiveState) == null ? void 0 : i.panoIndex;
|
|
349
|
+
n !== void 0 ? t = (o = this.five.work.observers[n]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (d = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : d.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
|
|
350
|
+
const s = this.five.model.shownFloor;
|
|
351
|
+
return s === null || s === t;
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
354
|
export {
|
|
@@ -22,8 +22,8 @@ import { Group as S, Quaternion as O, Vector3 as v, Matrix4 as D } from "three";
|
|
|
22
22
|
import x from "../Components/TagContainer.js";
|
|
23
23
|
import A from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
-
import { centerPoint as
|
|
26
|
-
import { isMediaModelTag as P, isStickModelTag as
|
|
25
|
+
import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
+
import { isMediaModelTag as P, isStickModelTag as G } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
|
|
28
28
|
import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
|
|
29
29
|
import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
|
|
@@ -336,7 +336,7 @@ class ti extends w {
|
|
|
336
336
|
return;
|
|
337
337
|
const n = P(t) ? t.data.mediaPosition : t.position;
|
|
338
338
|
e.updateWorldMatrix(!1, !1);
|
|
339
|
-
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u =
|
|
339
|
+
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = I(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
|
|
340
340
|
l.decompose(i.position, i.quaternion, i.scale);
|
|
341
341
|
const c = i.opacityMesh;
|
|
342
342
|
c && l.decompose(c.position, c.quaternion, c.scale);
|
|
@@ -344,7 +344,7 @@ class ti extends w {
|
|
|
344
344
|
/** 添加模型标签 */
|
|
345
345
|
addMediaModelTag(t) {
|
|
346
346
|
return C(this, null, function* () {
|
|
347
|
-
const e = t.filter(
|
|
347
|
+
const e = t.filter(G).map((o) => this.loadModel(o));
|
|
348
348
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
349
349
|
});
|
|
350
350
|
}
|
|
@@ -353,8 +353,8 @@ class ti extends w {
|
|
|
353
353
|
*/
|
|
354
354
|
updateRenderPointTag() {
|
|
355
355
|
var e;
|
|
356
|
-
const t = this.
|
|
357
|
-
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
356
|
+
const t = this.filterPointTag;
|
|
357
|
+
if (this.setTagZIndex(t), this.setPointTagPosition(), this.TagContainerSvelte)
|
|
358
358
|
this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
|
|
359
359
|
else {
|
|
360
360
|
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
@@ -199,7 +199,7 @@ class ci extends N {
|
|
|
199
199
|
load(e, t) {
|
|
200
200
|
return f(this, null, function* () {
|
|
201
201
|
var s, o;
|
|
202
|
-
this.clearTags(), console.
|
|
202
|
+
this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
|
|
203
203
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
204
204
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
205
205
|
});
|