@realsee/dnalogel 3.27.1 → 3.27.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/index.cjs.js +19 -19
- package/dist/index.js +472 -481
- package/dist/index.umd.js +19 -19
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +5 -5
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- 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/ModelMakerPlugin.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/MovePlugin.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/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +114 -124
- package/libs/PanoTagPlugin/controller/TagUtil.js +33 -32
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Qa from "animejs";
|
|
|
48
48
|
import { GLTFLoader as Nm } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Qm() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.27.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.27.3",
|
|
52
52
|
[
|
|
53
53
|
"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=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -972,13 +972,13 @@ let ip = class extends ep {
|
|
|
972
972
|
if (p.tweening = !0, !p.ready)
|
|
973
973
|
return a.clearRect(0, 0, p.canvas[u].width, p.canvas[u].height), (y = p.tween) == null ? void 0 : y.stop();
|
|
974
974
|
const v = Math.floor(m);
|
|
975
|
-
if (!A.find((
|
|
975
|
+
if (!A.find((P) => P === v)) {
|
|
976
976
|
if (A.push(v), g.push(ca(l[v], p.clientWidth, p.clientHeight)), g.length < 3)
|
|
977
977
|
return;
|
|
978
|
-
const { control:
|
|
979
|
-
if (!
|
|
978
|
+
const { control: P, end: E } = po(g);
|
|
979
|
+
if (!P || !E)
|
|
980
980
|
return;
|
|
981
|
-
a.quadraticCurveTo(
|
|
981
|
+
a.quadraticCurveTo(P.x, P.y, E.x, E.y), a.stroke();
|
|
982
982
|
}
|
|
983
983
|
}).onComplete((m) => {
|
|
984
984
|
p.tween = void 0, p.tweening = !1, A = [], g = [], o && o(), r();
|
|
@@ -1120,14 +1120,14 @@ const T3 = (n, t) => {
|
|
|
1120
1120
|
e || (e = !0, l.add(h), !i && n.model.loaded && g(), j());
|
|
1121
1121
|
}, y = () => {
|
|
1122
1122
|
e && (l.remove(h), s = !0, V(), e = !1);
|
|
1123
|
-
},
|
|
1123
|
+
}, P = (F, U = {}) => {
|
|
1124
1124
|
const X = A();
|
|
1125
1125
|
if (!X)
|
|
1126
1126
|
return;
|
|
1127
|
-
F.appendChild(X.domElement),
|
|
1127
|
+
F.appendChild(X.domElement), E(U);
|
|
1128
1128
|
const J = window.getComputedStyle(F).position;
|
|
1129
1129
|
J !== "relative" && J !== "absolute" && J !== "fixed" && J !== "sticky" && (F.style.position = "relative");
|
|
1130
|
-
},
|
|
1130
|
+
}, E = (F = {}) => {
|
|
1131
1131
|
if (!o)
|
|
1132
1132
|
return;
|
|
1133
1133
|
const X = o.domElement.parentNode;
|
|
@@ -1162,7 +1162,7 @@ const T3 = (n, t) => {
|
|
|
1162
1162
|
}, N = () => ({
|
|
1163
1163
|
enabled: e
|
|
1164
1164
|
});
|
|
1165
|
-
return Object.assign(window, { camera: c }), n.on("modelLoaded", m), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", j), n.on("dispose", W), n.on("renderFrame", V), n.on("cameraPositionUpdate", j), { appendTo:
|
|
1165
|
+
return Object.assign(window, { camera: c }), n.on("modelLoaded", m), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", j), n.on("dispose", W), n.on("renderFrame", V), n.on("cameraPositionUpdate", j), { appendTo: P, refresh: E, changeConfigs: _, enable: v, disable: y, getCurrentState: N };
|
|
1166
1166
|
}, np = ({ x: n, y: t, z: e }) => new oe(n, t, e), fi = (n) => new oe().fromArray(n), Be = (n) => {
|
|
1167
1167
|
if (n)
|
|
1168
1168
|
return n instanceof oe ? n : Array.isArray(n) ? fi(n) : np(n);
|
|
@@ -1391,8 +1391,8 @@ class up extends Na {
|
|
|
1391
1391
|
i.classList.add(`${cp}__container`);
|
|
1392
1392
|
const p = new oe().subVectors(s[1], s[0]), m = new oe().subVectors(s[3], s[0]), v = new oe().crossVectors(p, m).normalize();
|
|
1393
1393
|
this.lookAt(v);
|
|
1394
|
-
const y = this.up.clone().applyQuaternion(this.quaternion),
|
|
1395
|
-
this.rotateOnWorldAxis(
|
|
1394
|
+
const y = this.up.clone().applyQuaternion(this.quaternion), P = m.clone(), E = new oe().crossVectors(y, P).normalize();
|
|
1395
|
+
this.rotateOnWorldAxis(E, y.angleTo(P)), this.position.copy(g), this.addEventListener("added", () => {
|
|
1396
1396
|
var V;
|
|
1397
1397
|
this.mode === "front" && ((V = this.opacityMesh) == null || V.removeFromParent());
|
|
1398
1398
|
}), this.addEventListener("removed", () => {
|
|
@@ -1603,7 +1603,7 @@ class Rs {
|
|
|
1603
1603
|
k && k.add(A);
|
|
1604
1604
|
}, m = () => {
|
|
1605
1605
|
g || (p(), this.render(t), this.hooks.emit("render"));
|
|
1606
|
-
}, v = (k) => this.setVisibleById(A.id, k), y = (k) => this.setEnabledById(A.id, k),
|
|
1606
|
+
}, v = (k) => this.setVisibleById(A.id, k), y = (k) => this.setEnabledById(A.id, k), P = () => (g = !0, A.removeFromParent(), !0), E = l === "front" ? Ke.frontModeStore.css3DRenderer : Ke.behindModeStore.css3DRenderer;
|
|
1607
1607
|
return c && m(), {
|
|
1608
1608
|
id: A.uuid,
|
|
1609
1609
|
container: h,
|
|
@@ -1615,8 +1615,8 @@ class Rs {
|
|
|
1615
1615
|
enable: () => y(!0),
|
|
1616
1616
|
disable: () => y(!1),
|
|
1617
1617
|
setEnabled: y,
|
|
1618
|
-
dispose:
|
|
1619
|
-
appendToElement: (k) =>
|
|
1618
|
+
dispose: P,
|
|
1619
|
+
appendToElement: (k) => E.setWrapper(k)
|
|
1620
1620
|
};
|
|
1621
1621
|
});
|
|
1622
1622
|
d(this, "setVisibleById", (t, e) => {
|
|
@@ -2981,13 +2981,13 @@ function tn(n, t, e) {
|
|
|
2981
2981
|
const { delay: f = 0, duration: g = 300, easing: A = mi, tick: p = Z, css: m } = s || El;
|
|
2982
2982
|
m && (r = Yo(n, 0, 1, g, f, A, m, l++)), p(0, 1);
|
|
2983
2983
|
const v = Al() + f, y = v + g;
|
|
2984
|
-
a && a.abort(), o = !0, Xe(() => _i(n, !0, "start")), a = bl((
|
|
2984
|
+
a && a.abort(), o = !0, Xe(() => _i(n, !0, "start")), a = bl((P) => {
|
|
2985
2985
|
if (o) {
|
|
2986
|
-
if (
|
|
2986
|
+
if (P >= y)
|
|
2987
2987
|
return p(1, 0), _i(n, !0, "end"), c(), o = !1;
|
|
2988
|
-
if (
|
|
2989
|
-
const
|
|
2990
|
-
p(
|
|
2988
|
+
if (P >= v) {
|
|
2989
|
+
const E = A((P - v) / g);
|
|
2990
|
+
p(E, 1 - E);
|
|
2991
2991
|
}
|
|
2992
2992
|
}
|
|
2993
2993
|
return o;
|
|
@@ -3054,16 +3054,16 @@ function ni(n, t, e, i) {
|
|
|
3054
3054
|
};
|
|
3055
3055
|
}
|
|
3056
3056
|
function f(g) {
|
|
3057
|
-
const { delay: A = 0, duration: p = 300, easing: m = mi, tick: v = Z, css: y } = o || El,
|
|
3057
|
+
const { delay: A = 0, duration: p = 300, easing: m = mi, tick: v = Z, css: y } = o || El, P = {
|
|
3058
3058
|
start: Al() + A,
|
|
3059
3059
|
b: g
|
|
3060
3060
|
};
|
|
3061
|
-
g || (
|
|
3062
|
-
if (l &&
|
|
3063
|
-
if (
|
|
3061
|
+
g || (P.group = Kt, Kt.r += 1), a || l ? l = P : (y && (h(), c = Yo(n, r, g, p, A, m, y)), g && v(0, 1), a = u(P, p), Xe(() => _i(n, g, "start")), bl((E) => {
|
|
3062
|
+
if (l && E > l.start && (a = u(l, p), l = null, _i(n, a.b, "start"), y && (h(), c = Yo(n, r, a.b, a.duration, 0, m, o.css))), a) {
|
|
3063
|
+
if (E >= a.end)
|
|
3064
3064
|
v(r = a.b, 1 - r), _i(n, a.b, "end"), l || (a.b ? h() : --a.group.r || et(a.group.c)), a = null;
|
|
3065
|
-
else if (
|
|
3066
|
-
const k =
|
|
3065
|
+
else if (E >= a.start) {
|
|
3066
|
+
const k = E - a.start;
|
|
3067
3067
|
r = a.a + a.d * m(k / a.duration), v(r, 1 - r);
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
@@ -3130,19 +3130,19 @@ function Ut(n, t, e, i, s, o, r, a, l, c, h, u) {
|
|
|
3130
3130
|
const p = {};
|
|
3131
3131
|
for (; A--; )
|
|
3132
3132
|
p[n[A].key] = A;
|
|
3133
|
-
const m = [], v = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(),
|
|
3133
|
+
const m = [], v = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), P = [];
|
|
3134
3134
|
for (A = g; A--; ) {
|
|
3135
3135
|
const j = u(s, o, A), V = e(j);
|
|
3136
3136
|
let W = r.get(V);
|
|
3137
|
-
W ? i &&
|
|
3137
|
+
W ? i && P.push(() => W.p(j, t)) : (W = c(V, j), W.c()), v.set(V, m[A] = W), V in p && y.set(V, Math.abs(A - p[V]));
|
|
3138
3138
|
}
|
|
3139
|
-
const
|
|
3139
|
+
const E = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
3140
3140
|
function I(j) {
|
|
3141
3141
|
x(j, 1), j.m(a, h), r.set(j.key, j), h = j.first, g--;
|
|
3142
3142
|
}
|
|
3143
3143
|
for (; f && g; ) {
|
|
3144
3144
|
const j = m[g - 1], V = n[f - 1], W = j.key, _ = V.key;
|
|
3145
|
-
j === V ? (h = j.first, f--, g--) : v.has(_) ? !r.has(W) ||
|
|
3145
|
+
j === V ? (h = j.first, f--, g--) : v.has(_) ? !r.has(W) || E.has(W) ? I(j) : k.has(_) ? f-- : y.get(W) > y.get(_) ? (k.add(W), I(j)) : (E.add(_), f--) : (l(V, r), f--);
|
|
3146
3146
|
}
|
|
3147
3147
|
for (; f--; ) {
|
|
3148
3148
|
const j = n[f];
|
|
@@ -3150,7 +3150,7 @@ function Ut(n, t, e, i, s, o, r, a, l, c, h, u) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
for (; g; )
|
|
3152
3152
|
I(m[g - 1]);
|
|
3153
|
-
return et(
|
|
3153
|
+
return et(P), m;
|
|
3154
3154
|
}
|
|
3155
3155
|
function wt(n, t) {
|
|
3156
3156
|
const e = {}, i = {}, s = { $$scope: 1 };
|
|
@@ -3763,26 +3763,26 @@ function MA(n, t, e) {
|
|
|
3763
3763
|
function c(v) {
|
|
3764
3764
|
if (!(l === null || v.floorIndex === l))
|
|
3765
3765
|
return !1;
|
|
3766
|
-
const
|
|
3767
|
-
|
|
3768
|
-
const [j] = s.model.intersectRaycaster(
|
|
3766
|
+
const P = new Wn(), E = s.camera.position.clone(), k = new oe(v.position.x, v.position.y, v.position.z), I = k.distanceTo(E);
|
|
3767
|
+
P.set(E.clone(), k.clone().sub(E).normalize());
|
|
3768
|
+
const [j] = s.model.intersectRaycaster(P);
|
|
3769
3769
|
return !(j && j.distance + 1 < I);
|
|
3770
3770
|
}
|
|
3771
3771
|
function h(v, y) {
|
|
3772
|
-
const
|
|
3772
|
+
const E = new oe(v.position.x, v.position.y, v.position.z).clone().project(s.camera), k = Math.ceil((E.x + 1) / 2 * y.x), I = Math.ceil((-E.y + 1) / 2 * y.y);
|
|
3773
3773
|
return `translate(${k}px, ${I}px)`;
|
|
3774
3774
|
}
|
|
3775
3775
|
function u(v) {
|
|
3776
|
-
const { rendererSize: y } = v,
|
|
3777
|
-
function
|
|
3778
|
-
const j =
|
|
3776
|
+
const { rendererSize: y } = v, P = /* @__PURE__ */ new Map();
|
|
3777
|
+
function E(I) {
|
|
3778
|
+
const j = P.get(I.id);
|
|
3779
3779
|
if (j)
|
|
3780
3780
|
return j;
|
|
3781
3781
|
const { x: V, y: W, z: _ } = I.position, N = new oe(V, W, _).clone().distanceTo(s.camera.position);
|
|
3782
|
-
return
|
|
3782
|
+
return P.set(I.id, N), N;
|
|
3783
3783
|
}
|
|
3784
3784
|
return o.map((I) => {
|
|
3785
|
-
const j = c(I), V = j ? h(I, y) : I.transform, W =
|
|
3785
|
+
const j = c(I), V = j ? h(I, y) : I.transform, W = E(I), N = o.filter((G) => G.visible && E(G) < W).length * 10;
|
|
3786
3786
|
return se(D({}, I), { visible: j, transform: V, zIndex: N });
|
|
3787
3787
|
});
|
|
3788
3788
|
}
|
|
@@ -4461,7 +4461,7 @@ function YA(n, t) {
|
|
|
4461
4461
|
return s;
|
|
4462
4462
|
}
|
|
4463
4463
|
function XA(n, t, e) {
|
|
4464
|
-
let i, s, o, r, a, l, c, h, u, f, g, A, p, { pxmm: m } = t, { roomAreaEnable: v } = t, { roomNameEnable: y } = t, { roomDimensionEnable:
|
|
4464
|
+
let i, s, o, r, a, l, c, h, u, f, g, A, p, { pxmm: m } = t, { roomAreaEnable: v } = t, { roomNameEnable: y } = t, { roomDimensionEnable: P } = t, { room: E } = t, { hoveredRoom: k } = t, { getRoomAreaText: I } = t, { getRoomDimensionText: j } = t, { getLabelElement: V } = t, { adaptiveRoomLabelVisibleEnable: W } = t;
|
|
4465
4465
|
function _(ee, ve) {
|
|
4466
4466
|
if (ve.width === 0 || ve.height === 0)
|
|
4467
4467
|
return () => !1;
|
|
@@ -4476,10 +4476,10 @@ function XA(n, t, e) {
|
|
|
4476
4476
|
].every((He) => YA(He, Ct));
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
|
-
const N = document.body.clientWidth, G = document.body.clientHeight, H =
|
|
4479
|
+
const N = document.body.clientWidth, G = document.body.clientHeight, H = E.roomLabel, F = H.positionInImage.x * 100 + "%", U = H.positionInImage.y * 100 + "%", X = (N < 500 || G < 500 ? 10 : 14) + "px", J = (N < 500 || G < 500 ? 8 : 12) + "px";
|
|
4480
4480
|
let $ = 0, de = 0, he = 0, Pe = 0, Ce = !1;
|
|
4481
4481
|
k.subscribe(function(ve) {
|
|
4482
|
-
e(25, Ce = !!ve && ve.id ===
|
|
4482
|
+
e(25, Ce = !!ve && ve.id === E.id);
|
|
4483
4483
|
});
|
|
4484
4484
|
const be = (ee) => {
|
|
4485
4485
|
e(7, he = ee.detail);
|
|
@@ -4491,22 +4491,22 @@ function XA(n, t, e) {
|
|
|
4491
4491
|
e(6, de = ee.detail);
|
|
4492
4492
|
};
|
|
4493
4493
|
return n.$$set = (ee) => {
|
|
4494
|
-
"pxmm" in ee && e(20, m = ee.pxmm), "roomAreaEnable" in ee && e(0, v = ee.roomAreaEnable), "roomNameEnable" in ee && e(1, y = ee.roomNameEnable), "roomDimensionEnable" in ee && e(2,
|
|
4494
|
+
"pxmm" in ee && e(20, m = ee.pxmm), "roomAreaEnable" in ee && e(0, v = ee.roomAreaEnable), "roomNameEnable" in ee && e(1, y = ee.roomNameEnable), "roomDimensionEnable" in ee && e(2, P = ee.roomDimensionEnable), "room" in ee && e(3, E = ee.room), "hoveredRoom" in ee && e(21, k = ee.hoveredRoom), "getRoomAreaText" in ee && e(22, I = ee.getRoomAreaText), "getRoomDimensionText" in ee && e(23, j = ee.getRoomDimensionText), "getLabelElement" in ee && e(4, V = ee.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ee && e(24, W = ee.adaptiveRoomLabelVisibleEnable);
|
|
4495
4495
|
}, n.$$.update = () => {
|
|
4496
4496
|
var ee, ve;
|
|
4497
4497
|
n.$$.dirty[0] & /*getLabelElement, room*/
|
|
4498
|
-
24 && e(15, i = V == null ? void 0 : V(
|
|
4499
|
-
4194312 && e(14, s =
|
|
4500
|
-
8388616 && e(13, o =
|
|
4498
|
+
24 && e(15, i = V == null ? void 0 : V(E)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
4499
|
+
4194312 && e(14, s = E.size ? I(E.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
4500
|
+
8388616 && e(13, o = E != null && E.dimension ? j((ee = E.dimension) == null ? void 0 : ee.width, (ve = E.dimension) == null ? void 0 : ve.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
4501
4501
|
384 && e(31, r = { width: he, height: Pe }), n.$$.dirty[0] & /*room*/
|
|
4502
4502
|
8 | n.$$.dirty[1] & /*labelElementSize*/
|
|
4503
|
-
1 && e(30, a = r ? _(
|
|
4503
|
+
1 && e(30, a = r ? _(E, r) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, isLabelInRoom, pxmm*/
|
|
4504
4504
|
1091567616 && e(27, l = W ? !!(a != null && a(m)) : !0), n.$$.dirty[0] & /*wrapperClientWidth, wrapperClientHeight*/
|
|
4505
4505
|
96 && e(29, c = {
|
|
4506
4506
|
width: $,
|
|
4507
4507
|
height: de
|
|
4508
4508
|
}), n.$$.dirty[0] & /*wrapperLabelElementSize, room*/
|
|
4509
|
-
536870920 && e(28, h = c ? _(
|
|
4509
|
+
536870920 && e(28, h = c ? _(E, c) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, isAllLabelInRoom, pxmm*/
|
|
4510
4510
|
286261248 && e(26, u = W ? !!(h != null && h(m)) : !0), n.$$.dirty[0] & /*wrapperLabelVisible, mainLabelVisible, isHovered*/
|
|
4511
4511
|
234881024 && e(12, f = u || l || Ce), n.$$.dirty[0] & /*mainLabelVisible, isHovered*/
|
|
4512
4512
|
167772160 && e(11, g = l || Ce), n.$$.dirty[0] & /*wrapperLabelVisible, isHovered*/
|
|
@@ -4515,8 +4515,8 @@ function XA(n, t, e) {
|
|
|
4515
4515
|
}, [
|
|
4516
4516
|
v,
|
|
4517
4517
|
y,
|
|
4518
|
-
E,
|
|
4519
4518
|
P,
|
|
4519
|
+
E,
|
|
4520
4520
|
V,
|
|
4521
4521
|
$,
|
|
4522
4522
|
de,
|
|
@@ -4801,8 +4801,8 @@ function KA(n, t, e) {
|
|
|
4801
4801
|
if (n.$$.dirty & /*floorplanData, floorIndex*/
|
|
4802
4802
|
6144 && e(10, i = l.floorDatas[s].rooms), n.$$.dirty & /*floorplanData, clientWidth*/
|
|
4803
4803
|
4352) {
|
|
4804
|
-
const { max: v, min: y } = l.bounding,
|
|
4805
|
-
e(9, p = A /
|
|
4804
|
+
const { max: v, min: y } = l.bounding, P = v.x - y.x;
|
|
4805
|
+
e(9, p = A / P);
|
|
4806
4806
|
}
|
|
4807
4807
|
}, [
|
|
4808
4808
|
o,
|
|
@@ -5024,8 +5024,8 @@ function iv(n, t, e) {
|
|
|
5024
5024
|
});
|
|
5025
5025
|
u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
5026
5026
|
const f = h[h.length - 1] - h[0], g = h.map((A, p, m) => {
|
|
5027
|
-
const v = p === 0 ? 0 : A - m[p - 1], y = p === 0 ? 0 : (A + m[p - 1]) / 2,
|
|
5028
|
-
return { left:
|
|
5027
|
+
const v = p === 0 ? 0 : A - m[p - 1], y = p === 0 ? 0 : (A + m[p - 1]) / 2, P = a ? (y - o.min.x - vn + bn) / l : 0, E = a ? 0 : (y - o.min.y - vn + bn) / c;
|
|
5028
|
+
return { left: P, bottom: E, distance: v };
|
|
5029
5029
|
}).filter(({ distance: A }) => A / f > 0.1);
|
|
5030
5030
|
return n.$$set = (A) => {
|
|
5031
5031
|
"type" in A && e(0, i = A.type), "data" in A && e(5, s = A.data), "bounding" in A && e(6, o = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
|
|
@@ -6235,8 +6235,8 @@ function Jv(n) {
|
|
|
6235
6235
|
}
|
|
6236
6236
|
];
|
|
6237
6237
|
let f = {};
|
|
6238
|
-
for (let
|
|
6239
|
-
f = ft(f, u[
|
|
6238
|
+
for (let E = 0; E < u.length; E += 1)
|
|
6239
|
+
f = ft(f, u[E]);
|
|
6240
6240
|
t = new Mv({ props: f });
|
|
6241
6241
|
let g = (
|
|
6242
6242
|
/*highlightEnable*/
|
|
@@ -6256,8 +6256,8 @@ function Jv(n) {
|
|
|
6256
6256
|
}
|
|
6257
6257
|
];
|
|
6258
6258
|
let p = {};
|
|
6259
|
-
for (let
|
|
6260
|
-
p = ft(p, A[
|
|
6259
|
+
for (let E = 0; E < A.length; E += 1)
|
|
6260
|
+
p = ft(p, A[E]);
|
|
6261
6261
|
s = new Rf({ props: p });
|
|
6262
6262
|
let m = (
|
|
6263
6263
|
/*roomLabelsEnable*/
|
|
@@ -6268,35 +6268,35 @@ function Jv(n) {
|
|
|
6268
6268
|
), y = (
|
|
6269
6269
|
/*cameraEnable*/
|
|
6270
6270
|
n[4] && Fc(n)
|
|
6271
|
-
),
|
|
6271
|
+
), P = (
|
|
6272
6272
|
/*compassEnable*/
|
|
6273
6273
|
n[22] && _c(n)
|
|
6274
6274
|
);
|
|
6275
6275
|
return {
|
|
6276
6276
|
c() {
|
|
6277
|
-
ne(t.$$.fragment), e = K(), g && g.c(), i = K(), ne(s.$$.fragment), o = K(), m && m.c(), r = K(), v && v.c(), a = K(), y && y.c(), l = K(),
|
|
6277
|
+
ne(t.$$.fragment), e = K(), g && g.c(), i = K(), ne(s.$$.fragment), o = K(), m && m.c(), r = K(), v && v.c(), a = K(), y && y.c(), l = K(), P && P.c(), c = we();
|
|
6278
6278
|
},
|
|
6279
|
-
m(
|
|
6280
|
-
te(t,
|
|
6279
|
+
m(E, k) {
|
|
6280
|
+
te(t, E, k), B(E, e, k), g && g.m(E, k), B(E, i, k), te(s, E, k), B(E, o, k), m && m.m(E, k), B(E, r, k), v && v.m(E, k), B(E, a, k), y && y.m(E, k), B(E, l, k), P && P.m(E, k), B(E, c, k), h = !0;
|
|
6281
6281
|
},
|
|
6282
|
-
p(
|
|
6282
|
+
p(E, k) {
|
|
6283
6283
|
const I = k & /*floorIndex, floorplanData*/
|
|
6284
6284
|
2052 ? wt(u, [
|
|
6285
6285
|
{
|
|
6286
6286
|
floorIndex: (
|
|
6287
6287
|
/*floorIndex*/
|
|
6288
|
-
|
|
6288
|
+
E[2]
|
|
6289
6289
|
),
|
|
6290
6290
|
floorplanData: (
|
|
6291
6291
|
/*floorplanData*/
|
|
6292
|
-
|
|
6292
|
+
E[11]
|
|
6293
6293
|
)
|
|
6294
6294
|
}
|
|
6295
6295
|
]) : {};
|
|
6296
6296
|
t.$set(I), /*highlightEnable*/
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
40 && x(g, 1)) : (g = Nc(
|
|
6297
|
+
E[3] || /*hoverEnable*/
|
|
6298
|
+
E[5] ? g ? (g.p(E, k), k & /*highlightEnable, hoverEnable*/
|
|
6299
|
+
40 && x(g, 1)) : (g = Nc(E), g.c(), x(g, 1), g.m(i.parentNode, i)) : g && (ue(), O(g, 1, 1, () => {
|
|
6300
6300
|
g = null;
|
|
6301
6301
|
}), fe());
|
|
6302
6302
|
const j = k & /*floorplanData, floorIndex*/
|
|
@@ -6304,40 +6304,40 @@ function Jv(n) {
|
|
|
6304
6304
|
{
|
|
6305
6305
|
floorplanData: (
|
|
6306
6306
|
/*floorplanData*/
|
|
6307
|
-
|
|
6307
|
+
E[11]
|
|
6308
6308
|
),
|
|
6309
6309
|
floorIndex: (
|
|
6310
6310
|
/*floorIndex*/
|
|
6311
|
-
|
|
6311
|
+
E[2]
|
|
6312
6312
|
)
|
|
6313
6313
|
}
|
|
6314
6314
|
]) : {};
|
|
6315
6315
|
s.$set(j), /*roomLabelsEnable*/
|
|
6316
|
-
|
|
6317
|
-
64 && x(m, 1)) : (m = Qc(
|
|
6316
|
+
E[6] ? m ? (m.p(E, k), k & /*roomLabelsEnable*/
|
|
6317
|
+
64 && x(m, 1)) : (m = Qc(E), m.c(), x(m, 1), m.m(r.parentNode, r)) : m && (ue(), O(m, 1, 1, () => {
|
|
6318
6318
|
m = null;
|
|
6319
6319
|
}), fe()), /*ruleLabelsEnable*/
|
|
6320
|
-
|
|
6321
|
-
1024 && x(v, 1)) : (v = Gc(
|
|
6320
|
+
E[10] ? v ? (v.p(E, k), k & /*ruleLabelsEnable*/
|
|
6321
|
+
1024 && x(v, 1)) : (v = Gc(E), v.c(), x(v, 1), v.m(a.parentNode, a)) : v && (ue(), O(v, 1, 1, () => {
|
|
6322
6322
|
v = null;
|
|
6323
6323
|
}), fe()), /*cameraEnable*/
|
|
6324
|
-
|
|
6325
|
-
16 && x(y, 1)) : (y = Fc(
|
|
6324
|
+
E[4] ? y ? (y.p(E, k), k & /*cameraEnable*/
|
|
6325
|
+
16 && x(y, 1)) : (y = Fc(E), y.c(), x(y, 1), y.m(l.parentNode, l)) : y && (ue(), O(y, 1, 1, () => {
|
|
6326
6326
|
y = null;
|
|
6327
6327
|
}), fe()), /*compassEnable*/
|
|
6328
|
-
|
|
6329
|
-
4194304 && x(
|
|
6330
|
-
|
|
6328
|
+
E[22] ? P ? (P.p(E, k), k & /*compassEnable*/
|
|
6329
|
+
4194304 && x(P, 1)) : (P = _c(E), P.c(), x(P, 1), P.m(c.parentNode, c)) : P && (ue(), O(P, 1, 1, () => {
|
|
6330
|
+
P = null;
|
|
6331
6331
|
}), fe());
|
|
6332
6332
|
},
|
|
6333
|
-
i(
|
|
6334
|
-
h || (x(t.$$.fragment,
|
|
6333
|
+
i(E) {
|
|
6334
|
+
h || (x(t.$$.fragment, E), x(g), x(s.$$.fragment, E), x(m), x(v), x(y), x(P), h = !0);
|
|
6335
6335
|
},
|
|
6336
|
-
o(
|
|
6337
|
-
O(t.$$.fragment,
|
|
6336
|
+
o(E) {
|
|
6337
|
+
O(t.$$.fragment, E), O(g), O(s.$$.fragment, E), O(m), O(v), O(y), O(P), h = !1;
|
|
6338
6338
|
},
|
|
6339
|
-
d(
|
|
6340
|
-
ie(t,
|
|
6339
|
+
d(E) {
|
|
6340
|
+
ie(t, E), E && z(e), g && g.d(E), E && z(i), ie(s, E), E && z(o), m && m.d(E), E && z(r), v && v.d(E), E && z(a), y && y.d(E), E && z(l), P && P.d(E), E && z(c);
|
|
6341
6341
|
}
|
|
6342
6342
|
};
|
|
6343
6343
|
}
|
|
@@ -6758,10 +6758,10 @@ function Kv(n) {
|
|
|
6758
6758
|
};
|
|
6759
6759
|
}
|
|
6760
6760
|
function $v(n, t, e) {
|
|
6761
|
-
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: g } = t, { roomDimensionEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: m } = t, { getRoomAreaText: v } = t, { getRoomDimensionText: y } = t, { getLabelElement:
|
|
6761
|
+
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: g } = t, { roomDimensionEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: m } = t, { getRoomAreaText: v } = t, { getRoomDimensionText: y } = t, { getLabelElement: P } = t, { getRuleDistanceText: E } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { highlightData: I } = t, { missingFloorConfig: j } = t, { lastPanoramaLongitude: V } = t, { cameraImageUrl: W } = t, { northDesc: _ } = t, { compassEnable: N } = t;
|
|
6762
6762
|
const G = xl(void 0);
|
|
6763
6763
|
return n.$$set = (H) => {
|
|
6764
|
-
"panoIndex" in H && e(0, o = H.panoIndex), "isCurrent" in H && e(1, r = H.isCurrent), "floorIndex" in H && e(2, a = H.floorIndex), "highlightEnable" in H && e(3, l = H.highlightEnable), "cameraEnable" in H && e(4, c = H.cameraEnable), "hoverEnable" in H && e(5, h = H.hoverEnable), "roomLabelsEnable" in H && e(6, u = H.roomLabelsEnable), "roomAreaEnable" in H && e(7, f = H.roomAreaEnable), "roomNameEnable" in H && e(8, g = H.roomNameEnable), "roomDimensionEnable" in H && e(9, A = H.roomDimensionEnable), "ruleLabelsEnable" in H && e(10, p = H.ruleLabelsEnable), "floorplanData" in H && e(11, m = H.floorplanData), "getRoomAreaText" in H && e(12, v = H.getRoomAreaText), "getRoomDimensionText" in H && e(13, y = H.getRoomDimensionText), "getLabelElement" in H && e(14,
|
|
6764
|
+
"panoIndex" in H && e(0, o = H.panoIndex), "isCurrent" in H && e(1, r = H.isCurrent), "floorIndex" in H && e(2, a = H.floorIndex), "highlightEnable" in H && e(3, l = H.highlightEnable), "cameraEnable" in H && e(4, c = H.cameraEnable), "hoverEnable" in H && e(5, h = H.hoverEnable), "roomLabelsEnable" in H && e(6, u = H.roomLabelsEnable), "roomAreaEnable" in H && e(7, f = H.roomAreaEnable), "roomNameEnable" in H && e(8, g = H.roomNameEnable), "roomDimensionEnable" in H && e(9, A = H.roomDimensionEnable), "ruleLabelsEnable" in H && e(10, p = H.ruleLabelsEnable), "floorplanData" in H && e(11, m = H.floorplanData), "getRoomAreaText" in H && e(12, v = H.getRoomAreaText), "getRoomDimensionText" in H && e(13, y = H.getRoomDimensionText), "getLabelElement" in H && e(14, P = H.getLabelElement), "getRuleDistanceText" in H && e(15, E = H.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in H && e(16, k = H.adaptiveRoomLabelVisibleEnable), "highlightData" in H && e(17, I = H.highlightData), "missingFloorConfig" in H && e(18, j = H.missingFloorConfig), "lastPanoramaLongitude" in H && e(19, V = H.lastPanoramaLongitude), "cameraImageUrl" in H && e(20, W = H.cameraImageUrl), "northDesc" in H && e(21, _ = H.northDesc), "compassEnable" in H && e(22, N = H.compassEnable);
|
|
6765
6765
|
}, n.$$.update = () => {
|
|
6766
6766
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
6767
6767
|
2052 && e(25, i = m.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -6781,8 +6781,8 @@ function $v(n, t, e) {
|
|
|
6781
6781
|
m,
|
|
6782
6782
|
v,
|
|
6783
6783
|
y,
|
|
6784
|
-
E,
|
|
6785
6784
|
P,
|
|
6785
|
+
E,
|
|
6786
6786
|
k,
|
|
6787
6787
|
I,
|
|
6788
6788
|
j,
|
|
@@ -7166,9 +7166,9 @@ function i0(n) {
|
|
|
7166
7166
|
};
|
|
7167
7167
|
}
|
|
7168
7168
|
function n0(n, t, e) {
|
|
7169
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: g } = t, { roomNameEnable: A } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: m } = t, { floorplanData: v } = t, { lastPanoramaLongitude: y } = t, { cameraImageUrl:
|
|
7169
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: g } = t, { roomNameEnable: A } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: m } = t, { floorplanData: v } = t, { lastPanoramaLongitude: y } = t, { cameraImageUrl: P } = t, { getRoomAreaText: E } = t, { getRoomDimensionText: k } = t, { getLabelElement: I } = t, { getRuleDistanceText: j } = t, { adaptiveRoomLabelVisibleEnable: V } = t, { highlightData: W } = t, { missingFloorConfig: _ } = t;
|
|
7170
7170
|
return n.$$set = (N) => {
|
|
7171
|
-
"duration" in N && e(0, i = N.duration), "visible" in N && e(1, s = N.visible), "northDesc" in N && e(2, o = N.northDesc), "panoIndex" in N && e(3, r = N.panoIndex), "floorIndex" in N && e(4, a = N.floorIndex), "cameraEnable" in N && e(5, l = N.cameraEnable), "hoverEnable" in N && e(6, c = N.hoverEnable), "highlightEnable" in N && e(7, h = N.highlightEnable), "compassEnable" in N && e(8, u = N.compassEnable), "roomLabelsEnable" in N && e(9, f = N.roomLabelsEnable), "roomAreaEnable" in N && e(10, g = N.roomAreaEnable), "roomNameEnable" in N && e(11, A = N.roomNameEnable), "roomDimensionEnable" in N && e(12, p = N.roomDimensionEnable), "ruleLabelsEnable" in N && e(13, m = N.ruleLabelsEnable), "floorplanData" in N && e(14, v = N.floorplanData), "lastPanoramaLongitude" in N && e(15, y = N.lastPanoramaLongitude), "cameraImageUrl" in N && e(16,
|
|
7171
|
+
"duration" in N && e(0, i = N.duration), "visible" in N && e(1, s = N.visible), "northDesc" in N && e(2, o = N.northDesc), "panoIndex" in N && e(3, r = N.panoIndex), "floorIndex" in N && e(4, a = N.floorIndex), "cameraEnable" in N && e(5, l = N.cameraEnable), "hoverEnable" in N && e(6, c = N.hoverEnable), "highlightEnable" in N && e(7, h = N.highlightEnable), "compassEnable" in N && e(8, u = N.compassEnable), "roomLabelsEnable" in N && e(9, f = N.roomLabelsEnable), "roomAreaEnable" in N && e(10, g = N.roomAreaEnable), "roomNameEnable" in N && e(11, A = N.roomNameEnable), "roomDimensionEnable" in N && e(12, p = N.roomDimensionEnable), "ruleLabelsEnable" in N && e(13, m = N.ruleLabelsEnable), "floorplanData" in N && e(14, v = N.floorplanData), "lastPanoramaLongitude" in N && e(15, y = N.lastPanoramaLongitude), "cameraImageUrl" in N && e(16, P = N.cameraImageUrl), "getRoomAreaText" in N && e(17, E = N.getRoomAreaText), "getRoomDimensionText" in N && e(18, k = N.getRoomDimensionText), "getLabelElement" in N && e(19, I = N.getLabelElement), "getRuleDistanceText" in N && e(20, j = N.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in N && e(21, V = N.adaptiveRoomLabelVisibleEnable), "highlightData" in N && e(22, W = N.highlightData), "missingFloorConfig" in N && e(23, _ = N.missingFloorConfig);
|
|
7172
7172
|
}, [
|
|
7173
7173
|
i,
|
|
7174
7174
|
s,
|
|
@@ -7186,8 +7186,8 @@ function n0(n, t, e) {
|
|
|
7186
7186
|
m,
|
|
7187
7187
|
v,
|
|
7188
7188
|
y,
|
|
7189
|
-
E,
|
|
7190
7189
|
P,
|
|
7190
|
+
E,
|
|
7191
7191
|
k,
|
|
7192
7192
|
I,
|
|
7193
7193
|
j,
|
|
@@ -7344,7 +7344,7 @@ let nn = class {
|
|
|
7344
7344
|
/**
|
|
7345
7345
|
* @realsee/dnalogel 版本号
|
|
7346
7346
|
*/
|
|
7347
|
-
d(this, "VERSION", "3.27.
|
|
7347
|
+
d(this, "VERSION", "3.27.3");
|
|
7348
7348
|
d(this, "five");
|
|
7349
7349
|
/**
|
|
7350
7350
|
* @description: 插件事件钩子
|
|
@@ -8471,31 +8471,31 @@ function E0(n) {
|
|
|
8471
8471
|
return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
|
|
8472
8472
|
}
|
|
8473
8473
|
function M0(n, t, e) {
|
|
8474
|
-
var y,
|
|
8475
|
-
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, g = (
|
|
8476
|
-
function A(
|
|
8477
|
-
const I =
|
|
8474
|
+
var y, P;
|
|
8475
|
+
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, g = (P = (y = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : y.floorIndex) != null ? P : 0;
|
|
8476
|
+
function A(E, k) {
|
|
8477
|
+
const I = E.bounding, j = E.observers[k];
|
|
8478
8478
|
if (!j)
|
|
8479
8479
|
return "";
|
|
8480
8480
|
const V = (I.max.x - I.min.x) * l, W = (I.max.y - I.min.y) * l, _ = Math.floor(j.positionInImage.x * V), N = Math.floor(j.positionInImage.y * W);
|
|
8481
8481
|
return `translate(${_}px, ${N}px)`;
|
|
8482
8482
|
}
|
|
8483
|
-
function p(
|
|
8484
|
-
e(7, u =
|
|
8483
|
+
function p(E) {
|
|
8484
|
+
e(7, u = E);
|
|
8485
8485
|
}
|
|
8486
|
-
function m(
|
|
8487
|
-
e(9, g = a.work.observers[
|
|
8486
|
+
function m(E) {
|
|
8487
|
+
e(9, g = a.work.observers[E].floorIndex);
|
|
8488
8488
|
}
|
|
8489
8489
|
const v = jl(
|
|
8490
|
-
(
|
|
8491
|
-
e(8, f =
|
|
8490
|
+
(E) => {
|
|
8491
|
+
e(8, f = E.longitude);
|
|
8492
8492
|
},
|
|
8493
8493
|
1e3 / 60
|
|
8494
8494
|
);
|
|
8495
8495
|
return Et(() => (a.on("panoWillArrive", p), a.on("panoArrived", m), a.on("cameraDirectionUpdate", v), function() {
|
|
8496
8496
|
a.off("panoWillArrive", p), a.off("panoArrived", m), a.off("cameraDirectionUpdate", v);
|
|
8497
|
-
})), n.$$set = (
|
|
8498
|
-
"five" in
|
|
8497
|
+
})), n.$$set = (E) => {
|
|
8498
|
+
"five" in E && e(4, a = E.five), "pxmm" in E && e(5, l = E.pxmm), "floorplanData" in E && e(6, c = E.floorplanData), "cameraImageUrl" in E && e(0, h = E.cameraImageUrl);
|
|
8499
8499
|
}, n.$$.update = () => {
|
|
8500
8500
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
8501
8501
|
576 && e(10, i = c.floorDatas[g]), n.$$.dirty & /*floorData*/
|
|
@@ -9114,8 +9114,8 @@ function H0(n) {
|
|
|
9114
9114
|
};
|
|
9115
9115
|
}
|
|
9116
9116
|
function N0(n, t, e) {
|
|
9117
|
-
var
|
|
9118
|
-
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, u = 0, f = (k = (
|
|
9117
|
+
var E, k;
|
|
9118
|
+
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, u = 0, f = (k = (E = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : E.floorIndex) != null ? k : 0, g = 0, A = 0, p = 0, m = 0;
|
|
9119
9119
|
function v(I) {
|
|
9120
9120
|
e(12, f = i.work.observers[I].floorIndex);
|
|
9121
9121
|
}
|
|
@@ -9124,7 +9124,7 @@ function N0(n, t, e) {
|
|
|
9124
9124
|
}));
|
|
9125
9125
|
const y = (I) => {
|
|
9126
9126
|
e(8, g = I.detail);
|
|
9127
|
-
},
|
|
9127
|
+
}, P = (I) => {
|
|
9128
9128
|
e(9, A = I.detail);
|
|
9129
9129
|
};
|
|
9130
9130
|
return n.$$set = (I) => {
|
|
@@ -9153,7 +9153,7 @@ function N0(n, t, e) {
|
|
|
9153
9153
|
f,
|
|
9154
9154
|
m,
|
|
9155
9155
|
y,
|
|
9156
|
-
|
|
9156
|
+
P
|
|
9157
9157
|
];
|
|
9158
9158
|
}
|
|
9159
9159
|
class Q0 extends ce {
|
|
@@ -9444,16 +9444,16 @@ const ex = (n, t) => {
|
|
|
9444
9444
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
9445
9445
|
n.on("modelLoaded", A);
|
|
9446
9446
|
const c = (m) => Q(void 0, null, function* () {
|
|
9447
|
-
var
|
|
9447
|
+
var E;
|
|
9448
9448
|
const v = (m == null ? void 0 : m.fbx_url) || e;
|
|
9449
|
-
if (l = (
|
|
9449
|
+
if (l = (E = m == null ? void 0 : m.north_rad) != null ? E : i, typeof l != "number")
|
|
9450
9450
|
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
9451
|
-
const
|
|
9452
|
-
return _f(
|
|
9451
|
+
const P = yield new Ku().loadAsync(v);
|
|
9452
|
+
return _f(P, {
|
|
9453
9453
|
transparent: !0,
|
|
9454
9454
|
side: w.DoubleSide,
|
|
9455
9455
|
blending: w.AdditiveBlending
|
|
9456
|
-
}), s.object =
|
|
9456
|
+
}), s.object = P, A(), !0;
|
|
9457
9457
|
}), h = ({ latitude: m }) => {
|
|
9458
9458
|
if (!s.object)
|
|
9459
9459
|
return;
|
|
@@ -9479,11 +9479,11 @@ const ex = (n, t) => {
|
|
|
9479
9479
|
const m = s.object;
|
|
9480
9480
|
if (!m)
|
|
9481
9481
|
return;
|
|
9482
|
-
const v = n.model.bounding, y = v.max.x - v.min.x,
|
|
9482
|
+
const v = n.model.bounding, y = v.max.x - v.min.x, P = v.max.z - v.min.z, E = Math.max(y, P), {
|
|
9483
9483
|
max: { x: k, z: I },
|
|
9484
9484
|
min: { x: j, y: V, z: W }
|
|
9485
9485
|
} = v;
|
|
9486
|
-
s.yBase = V, o = { x: (k + j) / 2, y: V - 1.6, z: (I + W) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 *
|
|
9486
|
+
s.yBase = V, o = { x: (k + j) / 2, y: V - 1.6, z: (I + W) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * E, F0(m, { position: o, rotation: r, scale: a });
|
|
9487
9487
|
}
|
|
9488
9488
|
return { load: c, disable: g, enable: f };
|
|
9489
9489
|
};
|
|
@@ -9498,14 +9498,14 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9498
9498
|
var p, m, v;
|
|
9499
9499
|
const e = {}, i = (p = t.animationEnabled) != null ? p : !0, s = (m = t.position) != null ? m : void 0, o = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => Q(void 0, null, function* () {
|
|
9500
9500
|
var _, N, G, H, F, U, X, J;
|
|
9501
|
-
const
|
|
9502
|
-
if (!
|
|
9501
|
+
const P = (_ = y == null ? void 0 : y.position) != null ? _ : s;
|
|
9502
|
+
if (!P)
|
|
9503
9503
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
9504
|
-
const
|
|
9504
|
+
const E = W0(P), k = (N = y == null ? void 0 : y.rad) != null ? N : o, I = (G = y == null ? void 0 : y.fbx_url) != null ? G : r;
|
|
9505
9505
|
if (e.rad = k, k === void 0)
|
|
9506
9506
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`));
|
|
9507
9507
|
const j = yield new Ku().loadAsync(I);
|
|
9508
|
-
j.position.copy(
|
|
9508
|
+
j.position.copy(E), j.rotation.z = k, j.scale.set(0.8, 0.8, 0.8), _f(j, { transparent: !0, side: w.DoubleSide });
|
|
9509
9509
|
const V = (X = (U = (F = (H = j.children) == null ? void 0 : H[0]) == null ? void 0 : F.children) == null ? void 0 : U[3]) == null ? void 0 : X.clone();
|
|
9510
9510
|
if (!V)
|
|
9511
9511
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${V}`));
|
|
@@ -9516,10 +9516,10 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9516
9516
|
return;
|
|
9517
9517
|
if (!e.object)
|
|
9518
9518
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
9519
|
-
const y = 1,
|
|
9520
|
-
a.push(
|
|
9521
|
-
const
|
|
9522
|
-
|
|
9519
|
+
const y = 1, P = new Pm(e.object);
|
|
9520
|
+
a.push(P);
|
|
9521
|
+
const E = P.clipAction(e.object.animations[0]);
|
|
9522
|
+
E.timeScale = y;
|
|
9523
9523
|
let k;
|
|
9524
9524
|
const I = () => {
|
|
9525
9525
|
let _ = 0, N = 0;
|
|
@@ -9532,18 +9532,18 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9532
9532
|
cancelAnimationFrame(_);
|
|
9533
9533
|
};
|
|
9534
9534
|
}, W = { play: () => {
|
|
9535
|
-
k || (
|
|
9535
|
+
k || (E.play(), k = I(), requestAnimationFrame(() => {
|
|
9536
9536
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
9537
9537
|
}));
|
|
9538
9538
|
}, stop: () => {
|
|
9539
|
-
|
|
9539
|
+
E.stop(), k == null || k(), k = void 0;
|
|
9540
9540
|
} };
|
|
9541
9541
|
e.animation = W;
|
|
9542
9542
|
}, h = (y) => {
|
|
9543
|
-
var
|
|
9543
|
+
var E;
|
|
9544
9544
|
if (!e.object)
|
|
9545
9545
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
9546
|
-
((
|
|
9546
|
+
((E = y == null ? void 0 : y.animationEnable) != null ? E : i) && (e.animation || c(), e.animation.play()), n.scene.add(e.object), n.needsRender = !0;
|
|
9547
9547
|
}, u = () => {
|
|
9548
9548
|
e.object && (e.animation && e.animation.stop(), n.scene.remove(e.object), n.needsRender = !0);
|
|
9549
9549
|
}, f = (y) => y === "Floorplan" ? h() : u();
|
|
@@ -9626,16 +9626,16 @@ const Za = (n, t, e) => {
|
|
|
9626
9626
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
9627
9627
|
const { from: u, to: f } = i(o);
|
|
9628
9628
|
return yield new Promise((g) => {
|
|
9629
|
-
const A = ({ progress:
|
|
9630
|
-
const
|
|
9631
|
-
|
|
9629
|
+
const A = ({ progress: P }) => {
|
|
9630
|
+
const E = {};
|
|
9631
|
+
E.longitude = pa(u.longitude, f.longitude, P), E.latitude = pa(u.latitude, f.latitude, P), E.fov = pa(u.fov, f.fov, P), n.setState(E, !0);
|
|
9632
9632
|
}, p = () => {
|
|
9633
9633
|
g(!0);
|
|
9634
9634
|
}, m = () => {
|
|
9635
9635
|
g(!1);
|
|
9636
9636
|
}, v = o.rotateSpeed ? Math.ceil(Math.abs(f.longitude - u.longitude) / o.rotateSpeed * 1e3) : r, y = X0(v, Gt.Linear.None).onUpdate(A).onComplete(p).onDestroy(m);
|
|
9637
|
-
o.rotation === ui.Loop && y.repeat(1 / 0).yoyo(!0), t.interruptCallback = (
|
|
9638
|
-
y.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), g(
|
|
9637
|
+
o.rotation === ui.Loop && y.repeat(1 / 0).yoyo(!0), t.interruptCallback = (P = !0) => {
|
|
9638
|
+
y.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), g(P);
|
|
9639
9639
|
}, t.timeoutId = setTimeout(() => {
|
|
9640
9640
|
t.interruptCallback && t.interruptCallback(!0);
|
|
9641
9641
|
}, r);
|
|
@@ -9830,8 +9830,8 @@ const K0 = `<style type="text/css">
|
|
|
9830
9830
|
const v = eb(p, n), y = n.work;
|
|
9831
9831
|
if (!y)
|
|
9832
9832
|
return !1;
|
|
9833
|
-
for (const
|
|
9834
|
-
const
|
|
9833
|
+
for (const P in m) {
|
|
9834
|
+
const E = m[P], { standingPosition: k } = y.observers[0], I = E.map(({ x: j, z: V, observers: W }) => {
|
|
9835
9835
|
const _ = W.length > 0 ? p.rooms[p.observers[W[0]]].name : "", N = v[_] ? v[_].floor : null;
|
|
9836
9836
|
let G = 1 / 0, H = {
|
|
9837
9837
|
index: 0,
|
|
@@ -9855,35 +9855,35 @@ const K0 = `<style type="text/css">
|
|
|
9855
9855
|
const U = v[_] ? v[_].roof : null, X = U ? new oe(j, U, V) : null;
|
|
9856
9856
|
return X && Object.assign(X, { observers: W }), { origin: F, vertical: X };
|
|
9857
9857
|
});
|
|
9858
|
-
r[
|
|
9858
|
+
r[P] = {
|
|
9859
9859
|
origins: I.map((j) => j.origin),
|
|
9860
9860
|
rules: []
|
|
9861
9861
|
};
|
|
9862
9862
|
for (const { origin: j, vertical: V } of I) {
|
|
9863
9863
|
if (!V)
|
|
9864
9864
|
continue;
|
|
9865
|
-
const W = i(
|
|
9866
|
-
s.append(W), r[
|
|
9865
|
+
const W = i(P, j.distanceTo(V));
|
|
9866
|
+
s.append(W), r[P].rules.push({ vertical: !0, rule: [j, V], $element: W });
|
|
9867
9867
|
}
|
|
9868
9868
|
for (let j = 0; j < I.length; j++) {
|
|
9869
9869
|
let V = j + 1;
|
|
9870
9870
|
V >= I.length && (V = 0);
|
|
9871
|
-
const { origin: W } = I[j], { origin: _ } = I[V], N = i(
|
|
9872
|
-
s.append(N), r[
|
|
9871
|
+
const { origin: W } = I[j], { origin: _ } = I[V], N = i(P, W.distanceTo(_));
|
|
9872
|
+
s.append(N), r[P].rules.push({ vertical: !1, rule: [W, _], $element: N });
|
|
9873
9873
|
}
|
|
9874
9874
|
}
|
|
9875
9875
|
return e.loaded = !0, !0;
|
|
9876
9876
|
}, l = (p, m, v) => Q(void 0, null, function* () {
|
|
9877
|
-
const y = p || t.roomInfo,
|
|
9878
|
-
if (!y || !
|
|
9877
|
+
const y = p || t.roomInfo, P = m || t.roomRules;
|
|
9878
|
+
if (!y || !P)
|
|
9879
9879
|
throw new Error("标尺数据依赖不齐全!");
|
|
9880
|
-
return e.loaded = !1, e.options = D(D({}, e.options), v || {}), n.model.loaded ? a(y,
|
|
9881
|
-
(
|
|
9880
|
+
return e.loaded = !1, e.options = D(D({}, e.options), v || {}), n.model.loaded ? a(y, P) : yield new Promise(
|
|
9881
|
+
(E) => n.once("modelLoaded", () => E(a(y, P)))
|
|
9882
9882
|
);
|
|
9883
9883
|
});
|
|
9884
9884
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
9885
9885
|
const c = (p, m, v, y) => {
|
|
9886
|
-
const
|
|
9886
|
+
const P = [
|
|
9887
9887
|
[
|
|
9888
9888
|
{ x: 0, y: 0 },
|
|
9889
9889
|
{ x: v, y: 0 }
|
|
@@ -9900,12 +9900,12 @@ const K0 = `<style type="text/css">
|
|
|
9900
9900
|
{ x: 0, y },
|
|
9901
9901
|
{ x: v, y }
|
|
9902
9902
|
]
|
|
9903
|
-
],
|
|
9904
|
-
for (let k = 0; k <
|
|
9905
|
-
const I = Uf([p, m], [
|
|
9906
|
-
I &&
|
|
9903
|
+
], E = [];
|
|
9904
|
+
for (let k = 0; k < P.length; k++) {
|
|
9905
|
+
const I = Uf([p, m], [P[k][0], P[k][1]], !0);
|
|
9906
|
+
I && E.push(I);
|
|
9907
9907
|
}
|
|
9908
|
-
return
|
|
9908
|
+
return E.length === 0 ? !1 : E;
|
|
9909
9909
|
}, h = () => {
|
|
9910
9910
|
var W;
|
|
9911
9911
|
const p = (W = n.getElement()) == null ? void 0 : W.parentElement;
|
|
@@ -9914,16 +9914,16 @@ const K0 = `<style type="text/css">
|
|
|
9914
9914
|
const { panoIndex: m, camera: v, currentMode: y } = n;
|
|
9915
9915
|
if (m === void 0)
|
|
9916
9916
|
return;
|
|
9917
|
-
let
|
|
9917
|
+
let P;
|
|
9918
9918
|
for (const _ in r)
|
|
9919
|
-
_.split(",").indexOf(m.toString()) >= 0 && (
|
|
9920
|
-
if (!
|
|
9919
|
+
_.split(",").indexOf(m.toString()) >= 0 && (P = _);
|
|
9920
|
+
if (!P) {
|
|
9921
9921
|
for (const _ in r)
|
|
9922
9922
|
for (const { $element: N } of r[_].rules)
|
|
9923
9923
|
N.style.display = "none";
|
|
9924
9924
|
return;
|
|
9925
9925
|
}
|
|
9926
|
-
const
|
|
9926
|
+
const E = v.position, k = v.getWorldDirection(new oe()), I = p.clientWidth, j = p.clientHeight;
|
|
9927
9927
|
if (y !== dt.Mode.Panorama) {
|
|
9928
9928
|
for (const _ in r)
|
|
9929
9929
|
for (const { $element: N } of r[_].rules)
|
|
@@ -9932,12 +9932,12 @@ const K0 = `<style type="text/css">
|
|
|
9932
9932
|
}
|
|
9933
9933
|
for (const _ in r)
|
|
9934
9934
|
for (const { $element: N } of r[_].rules)
|
|
9935
|
-
N.style.display = _ ===
|
|
9936
|
-
const [V] = r[
|
|
9937
|
-
const G = _.clone().setY(0).sub(
|
|
9935
|
+
N.style.display = _ === P ? "block" : "none";
|
|
9936
|
+
const [V] = r[P].origins.slice().filter((_) => _.observers.indexOf(m) >= 0).sort((_, N) => {
|
|
9937
|
+
const G = _.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0)), H = N.clone().setY(0).sub(E).normalize().angleTo(k.clone().setY(0));
|
|
9938
9938
|
return G - H;
|
|
9939
9939
|
});
|
|
9940
|
-
for (const { rule: _, vertical: N, $element: G } of r[
|
|
9940
|
+
for (const { rule: _, vertical: N, $element: G } of r[P].rules) {
|
|
9941
9941
|
const [H, F] = _, U = G.querySelector(".PanoRulerPlugin-rule-line");
|
|
9942
9942
|
if (!U)
|
|
9943
9943
|
return;
|
|
@@ -9957,16 +9957,16 @@ const K0 = `<style type="text/css">
|
|
|
9957
9957
|
G.style.display = "none";
|
|
9958
9958
|
continue;
|
|
9959
9959
|
}
|
|
9960
|
-
if (H.clone().sub(
|
|
9960
|
+
if (H.clone().sub(E).normalize().angleTo(k) > Math.PI / 2) {
|
|
9961
9961
|
G.style.display = "none";
|
|
9962
9962
|
continue;
|
|
9963
9963
|
}
|
|
9964
|
-
if (F.clone().sub(
|
|
9964
|
+
if (F.clone().sub(E).normalize().angleTo(k) > Math.PI / 2) {
|
|
9965
9965
|
G.style.display = "none";
|
|
9966
9966
|
continue;
|
|
9967
9967
|
}
|
|
9968
9968
|
const $ = H.distanceTo(F);
|
|
9969
|
-
if (F.clone().sub(F.clone().sub(H).divide(new oe(2, 2, 2))).distanceTo(
|
|
9969
|
+
if (F.clone().sub(F.clone().sub(H).divide(new oe(2, 2, 2))).distanceTo(E) / $ > 8) {
|
|
9970
9970
|
G.style.display = "none";
|
|
9971
9971
|
continue;
|
|
9972
9972
|
}
|
|
@@ -9997,7 +9997,7 @@ const K0 = `<style type="text/css">
|
|
|
9997
9997
|
const m = p.distanceText;
|
|
9998
9998
|
e.options.distanceText = m, Object.values(r).forEach((v) => {
|
|
9999
9999
|
v.rules.forEach((y) => {
|
|
10000
|
-
const [
|
|
10000
|
+
const [P, E] = y.rule, k = P.distanceTo(E), I = y.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
10001
10001
|
I && (I.innerText = m(k));
|
|
10002
10002
|
});
|
|
10003
10003
|
});
|
|
@@ -10307,7 +10307,7 @@ function ab(n) {
|
|
|
10307
10307
|
function lb(n, t, e) {
|
|
10308
10308
|
var p, m, v, y;
|
|
10309
10309
|
let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
|
|
10310
|
-
const a = ((m = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (
|
|
10310
|
+
const a = ((m = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (P, E) => {
|
|
10311
10311
|
const k = [
|
|
10312
10312
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
10313
10313
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -10315,12 +10315,12 @@ function lb(n, t, e) {
|
|
|
10315
10315
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
10316
10316
|
], I = [];
|
|
10317
10317
|
for (let j = 0; j < k.length; j++) {
|
|
10318
|
-
const V = Uf([
|
|
10318
|
+
const V = Uf([P, E], [k[j][0], k[j][1]], !0);
|
|
10319
10319
|
V && I.push(V);
|
|
10320
10320
|
}
|
|
10321
10321
|
return I.length === 0 ? !1 : I;
|
|
10322
|
-
}, h = (
|
|
10323
|
-
const k =
|
|
10322
|
+
}, h = (P, E) => {
|
|
10323
|
+
const k = P.clone().project(i.camera), I = (k.x + 1) / 2 * a, j = (-k.y + 1) / 2 * l, V = E.clone().project(i.camera), W = (V.x + 1) / 2 * a, _ = (-V.y + 1) / 2 * l, N = Math.sqrt(Math.pow(W - I, 2) + Math.pow(_ - j, 2));
|
|
10324
10324
|
return {
|
|
10325
10325
|
startLeft: I,
|
|
10326
10326
|
startTop: j,
|
|
@@ -10328,13 +10328,13 @@ function lb(n, t, e) {
|
|
|
10328
10328
|
endTop: _,
|
|
10329
10329
|
distance: N
|
|
10330
10330
|
};
|
|
10331
|
-
}, u = (
|
|
10332
|
-
const I = i.camera.position, j = i.camera.getWorldDirection(new oe()), V =
|
|
10331
|
+
}, u = (P, E, k) => {
|
|
10332
|
+
const I = i.camera.position, j = i.camera.getWorldDirection(new oe()), V = P.clone().sub(I).normalize().angleTo(j), W = E.clone().sub(I).normalize().angleTo(j), _ = P.distanceTo(E), G = E.clone().sub(E.clone().sub(P).divide(new oe(2, 2, 2))).distanceTo(I), { startLeft: H, startTop: F, endLeft: U, endTop: X, distance: J } = h(P, E), de = -((Math.PI / 2 - Math.atan2(U - H, F - X)) / Math.PI) * 180;
|
|
10333
10333
|
let he = !0;
|
|
10334
|
-
k || (he = !1), !bt(
|
|
10334
|
+
k || (he = !1), !bt(P, k) && !bt(E, k) && (he = !1), _ < 0.3 && (he = !1), V > Math.PI / 2 && (he = !1), W > Math.PI / 2 && (he = !1), G / _ > 8 && (he = !1);
|
|
10335
10335
|
let Pe = 50, Ce = J;
|
|
10336
10336
|
const be = c({ x: ~~H, y: ~~F }, { x: ~~U, y: ~~X });
|
|
10337
|
-
if (be && be.length === 1 && (bt(
|
|
10337
|
+
if (be && be.length === 1 && (bt(P, k) ? (Ce = Math.sqrt(Math.pow(be[0].x - H, 2) + Math.pow(be[0].y - F, 2)), Pe = Ce / J * 50) : bt(E, k) && (Ce = Math.sqrt(Math.pow(be[0].x - U, 2) + Math.pow(be[0].y - X, 2)), Pe = 100 - Ce / J * 50)), be && be.length === 2) {
|
|
10338
10338
|
const Qe = {
|
|
10339
10339
|
x: (be[0].x + be[1].x) / 2,
|
|
10340
10340
|
y: (be[0].y + be[1].y) / 2
|
|
@@ -10351,15 +10351,15 @@ function lb(n, t, e) {
|
|
|
10351
10351
|
ruleLength: _
|
|
10352
10352
|
};
|
|
10353
10353
|
}, f = () => {
|
|
10354
|
-
const
|
|
10355
|
-
if (!
|
|
10354
|
+
const P = i.panoIndex, E = s.find((N) => N.panoIndex === P);
|
|
10355
|
+
if (!E)
|
|
10356
10356
|
return e(0, r = []);
|
|
10357
10357
|
if (i.currentMode !== dt.Mode.Panorama)
|
|
10358
10358
|
return e(0, r = []);
|
|
10359
|
-
const k = i.camera.position, I = i.camera.getWorldDirection(new oe()), j =
|
|
10359
|
+
const k = i.camera.position, I = i.camera.getWorldDirection(new oe()), j = E.lines.map((N) => new oe(N.start[0], -N.start[1], -N.start[2])), V = E.lines.map((N) => new oe(N.end[0], -N.end[1], -N.end[2])), [W] = j.concat(V).sort((N, G) => {
|
|
10360
10360
|
const H = N.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), F = G.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
|
|
10361
10361
|
return H - F;
|
|
10362
|
-
}), _ =
|
|
10362
|
+
}), _ = E.lines.map((N) => {
|
|
10363
10363
|
var Ce, be;
|
|
10364
10364
|
const G = N.start, H = N.end, { startLeft: F, startTop: U, distance: X, deg: J, visible: $, labelOffset: de, ruleLength: he } = u(new oe(G[0], -G[1], -G[2]), new oe(H[0], -H[1], -H[2]), W), Pe = [];
|
|
10365
10365
|
return N.children && ((Ce = N.children) == null ? void 0 : Ce.length) > 0 && ((be = N.children) == null || be.forEach((Qe) => {
|
|
@@ -10383,8 +10383,8 @@ function lb(n, t, e) {
|
|
|
10383
10383
|
f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", g), i.on("movingToPano", g), i.on("mouseWheel", () => A()), i.on("pinchGesture", () => A());
|
|
10384
10384
|
}), Bt(() => {
|
|
10385
10385
|
i.off("panoArrived", f), i.off("modeChange", f), i.off("cameraDirectionUpdate", g), i.off("movingToPano", g), i.off("mouseWheel", () => A()), i.off("pinchGesture", () => A());
|
|
10386
|
-
}), n.$$set = (
|
|
10387
|
-
"five" in
|
|
10386
|
+
}), n.$$set = (P) => {
|
|
10387
|
+
"five" in P && e(1, i = P.five), "rulerDatas" in P && e(2, s = P.rulerDatas), "options" in P && e(3, o = P.options);
|
|
10388
10388
|
}, [r, i, s, o];
|
|
10389
10389
|
}
|
|
10390
10390
|
class cb extends ce {
|
|
@@ -10882,8 +10882,8 @@ class Db extends Jf {
|
|
|
10882
10882
|
this.hide();
|
|
10883
10883
|
return;
|
|
10884
10884
|
}
|
|
10885
|
-
const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o,
|
|
10886
|
-
this.containerDom.style.transform = `translate(${v}px, ${y}px) rotate(${
|
|
10885
|
+
const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o, E = -(Math.atan((g.y - A.y) / (g.x - A.x)) * 180) / Math.PI, k = this.containerDom.parentElement && this.contentDom.clientWidth > p ? -20 : 0;
|
|
10886
|
+
this.containerDom.style.transform = `translate(${v}px, ${y}px) rotate(${E}deg) translateY(${k}px)`, this.show(), (j = this.params.userDistanceItem) == null || j.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
10887
10887
|
const I = this.getCurrentContent();
|
|
10888
10888
|
this.contentDom.innerText = I;
|
|
10889
10889
|
}
|
|
@@ -11852,18 +11852,18 @@ class Pi extends Ar {
|
|
|
11852
11852
|
if (s != null && s.isPolygonMesh) {
|
|
11853
11853
|
const v = this.model.areas.find((y) => y.polygon === s);
|
|
11854
11854
|
if (v) {
|
|
11855
|
-
const { x: y, y:
|
|
11856
|
-
return this.chooseArea(v, { left:
|
|
11855
|
+
const { x: y, y: P } = i[0].point.clone().project(this.five.camera), E = `${(y + 1) / 2 * 100}%`, k = `${(-P + 1) / 2 * 100}%`;
|
|
11856
|
+
return this.chooseArea(v, { left: E, top: k }), !1;
|
|
11857
11857
|
}
|
|
11858
11858
|
}
|
|
11859
11859
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
11860
11860
|
if (!o)
|
|
11861
11861
|
return;
|
|
11862
11862
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new yt(a.x * l, a.y * c), u = this.model.getAllLines().map((v) => {
|
|
11863
|
-
const [y,
|
|
11864
|
-
if (!Ki(
|
|
11863
|
+
const [y, P] = v.points, E = y.position.clone().project(r), k = P.position.clone().project(r);
|
|
11864
|
+
if (!Ki(E) && !Ki(k))
|
|
11865
11865
|
return null;
|
|
11866
|
-
const I = new yt(
|
|
11866
|
+
const I = new yt(E.x * l, E.y * c), j = new yt(k.x * l, k.y * c);
|
|
11867
11867
|
return { id: v.id, points: [I, j] };
|
|
11868
11868
|
}).filter((v) => !!v);
|
|
11869
11869
|
if (u.length === 0)
|
|
@@ -12091,18 +12091,18 @@ class mh extends Ar {
|
|
|
12091
12091
|
if (s instanceof $f) {
|
|
12092
12092
|
const m = this.model.areas.find((v) => v.polygon === s);
|
|
12093
12093
|
if (m) {
|
|
12094
|
-
const { x: v, y } = i[0].point.clone().project(this.five.camera),
|
|
12095
|
-
return this.chooseArea(m, { left:
|
|
12094
|
+
const { x: v, y } = i[0].point.clone().project(this.five.camera), P = `${(v + 1) / 2 * 100}%`, E = `${(-y + 1) / 2 * 100}%`;
|
|
12095
|
+
return this.chooseArea(m, { left: P, top: E }), !1;
|
|
12096
12096
|
}
|
|
12097
12097
|
}
|
|
12098
12098
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
12099
12099
|
if (!o)
|
|
12100
12100
|
return;
|
|
12101
12101
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new yt(a.x * l, a.y * c), u = this.model.getAllLines().map((m) => {
|
|
12102
|
-
const [v, y] = m.points,
|
|
12103
|
-
if (!Ki(
|
|
12102
|
+
const [v, y] = m.points, P = v.position.clone().project(r), E = y.position.clone().project(r);
|
|
12103
|
+
if (!Ki(P) && !Ki(E))
|
|
12104
12104
|
return null;
|
|
12105
|
-
const k = new yt(
|
|
12105
|
+
const k = new yt(P.x * l, P.y * c), I = new yt(E.x * l, E.y * c);
|
|
12106
12106
|
return { id: m.id, points: [k, I] };
|
|
12107
12107
|
}).filter((m) => !!m);
|
|
12108
12108
|
if (u.length === 0)
|
|
@@ -12460,8 +12460,8 @@ class vs extends Ar {
|
|
|
12460
12460
|
const [A, p] = g.points, m = A.position.clone().project(s), v = p.position.clone().project(s);
|
|
12461
12461
|
if (!Ki(m) && !Ki(v))
|
|
12462
12462
|
return null;
|
|
12463
|
-
const y = new yt(m.x * r, m.y * a),
|
|
12464
|
-
return { id: g.id, points: [y,
|
|
12463
|
+
const y = new yt(m.x * r, m.y * a), P = new yt(v.x * r, v.y * a);
|
|
12464
|
+
return { id: g.id, points: [y, P] };
|
|
12465
12465
|
}).filter((g) => !!g);
|
|
12466
12466
|
if (c.length === 0)
|
|
12467
12467
|
return;
|
|
@@ -13980,41 +13980,41 @@ function T1(n) {
|
|
|
13980
13980
|
t = S("div"), A && A.c(), e = K(), i = S("div"), s = S("div"), o = K(), r = S("div"), p && p.c(), a = K(), l = S("div"), m && m.c(), c = K(), h = S("div"), ne(u.$$.fragment), f = K(), v && v.c(), C(s, "class", "mask svelte-ldjbp8"), C(h, "class", "main-button svelte-ldjbp8"), q(h, "forbid", !/*allowAddPoint*/
|
|
13981
13981
|
n[5]), C(l, "class", "controller svelte-ldjbp8"), C(r, "class", "center svelte-ldjbp8"), C(i, "class", "bottom svelte-ldjbp8"), C(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
13982
13982
|
},
|
|
13983
|
-
m(y,
|
|
13984
|
-
B(y, t,
|
|
13983
|
+
m(y, P) {
|
|
13984
|
+
B(y, t, P), A && A.m(t, null), L(t, e), L(t, i), L(i, s), L(i, o), L(i, r), p && p.m(r, null), L(r, a), L(r, l), m && m.m(l, null), L(l, c), L(l, h), te(u, h, null), L(l, f), v && v.m(l, null), g = !0;
|
|
13985
13985
|
},
|
|
13986
|
-
p(y, [
|
|
13986
|
+
p(y, [P]) {
|
|
13987
13987
|
/*showExit*/
|
|
13988
|
-
y[1] ? A ? (A.p(y,
|
|
13988
|
+
y[1] ? A ? (A.p(y, P), P & /*showExit*/
|
|
13989
13989
|
2 && x(A, 1)) : (A = xh(y), A.c(), x(A, 1), A.m(t, e)) : A && (ue(), O(A, 1, 1, () => {
|
|
13990
13990
|
A = null;
|
|
13991
13991
|
}), fe()), /*measureController*/
|
|
13992
13992
|
y[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
13993
|
-
y[3] === "start" ? p ? (p.p(y,
|
|
13993
|
+
y[3] === "start" ? p ? (p.p(y, P), P & /*measureController, buttonState*/
|
|
13994
13994
|
9 && x(p, 1)) : (p = Dh(y), p.c(), x(p, 1), p.m(r, a)) : p && (ue(), O(p, 1, 1, () => {
|
|
13995
13995
|
p = null;
|
|
13996
13996
|
}), fe()), /*showButton*/
|
|
13997
|
-
y[4] ? m ? (m.p(y,
|
|
13997
|
+
y[4] ? m ? (m.p(y, P), P & /*showButton*/
|
|
13998
13998
|
16 && x(m, 1)) : (m = Sh(y), m.c(), x(m, 1), m.m(l, c)) : m && (ue(), O(m, 1, 1, () => {
|
|
13999
13999
|
m = null;
|
|
14000
14000
|
}), fe());
|
|
14001
|
-
const
|
|
14002
|
-
|
|
14003
|
-
8 && (
|
|
14004
|
-
y[14]),
|
|
14005
|
-
8 && (
|
|
14001
|
+
const E = {};
|
|
14002
|
+
P & /*buttonState*/
|
|
14003
|
+
8 && (E.onClick = /*func*/
|
|
14004
|
+
y[14]), P & /*buttonState*/
|
|
14005
|
+
8 && (E.text = /*buttonTextMap*/
|
|
14006
14006
|
y[6][
|
|
14007
14007
|
/*buttonState*/
|
|
14008
14008
|
y[3]
|
|
14009
|
-
]),
|
|
14010
|
-
8 && (
|
|
14009
|
+
]), P & /*buttonState*/
|
|
14010
|
+
8 && (E.color = /*buttonColorMap*/
|
|
14011
14011
|
y[7][
|
|
14012
14012
|
/*buttonState*/
|
|
14013
14013
|
y[3]
|
|
14014
|
-
]), u.$set(
|
|
14014
|
+
]), u.$set(E), (!g || P & /*allowAddPoint*/
|
|
14015
14015
|
32) && q(h, "forbid", !/*allowAddPoint*/
|
|
14016
14016
|
y[5]), /*showButton*/
|
|
14017
|
-
y[4] ? v ? (v.p(y,
|
|
14017
|
+
y[4] ? v ? (v.p(y, P), P & /*showButton*/
|
|
14018
14018
|
16 && x(v, 1)) : (v = Th(y), v.c(), x(v, 1), v.m(l, null)) : v && (ue(), O(v, 1, 1, () => {
|
|
14019
14019
|
v = null;
|
|
14020
14020
|
}), fe());
|
|
@@ -14059,9 +14059,9 @@ function L1(n, t, e) {
|
|
|
14059
14059
|
p("complete");
|
|
14060
14060
|
}, y = () => {
|
|
14061
14061
|
i.currentMeasureType === "area" && h === "complete" && p("add");
|
|
14062
|
-
},
|
|
14062
|
+
}, P = (_) => {
|
|
14063
14063
|
_.length;
|
|
14064
|
-
},
|
|
14064
|
+
}, E = () => {
|
|
14065
14065
|
p("start"), k("allow");
|
|
14066
14066
|
}, k = (_) => {
|
|
14067
14067
|
e(5, c = _ === "allow");
|
|
@@ -14071,9 +14071,9 @@ function L1(n, t, e) {
|
|
|
14071
14071
|
_.isEmpty && p("start");
|
|
14072
14072
|
};
|
|
14073
14073
|
Et(() => {
|
|
14074
|
-
i.hook.on("revoke", j), i.hook.on("measureTypeChange", I), i.hook.on("modeChange",
|
|
14074
|
+
i.hook.on("revoke", j), i.hook.on("measureTypeChange", I), i.hook.on("modeChange", E), i.hook.on("pointsChange", P), i.hook.on("allowAddPointStateChange", k), i.hook.on("readyComplete", v), i.hook.on("notReadyComplete", y), i.hook.on("complete", E);
|
|
14075
14075
|
}), Bt(() => {
|
|
14076
|
-
i.hook.off("measureTypeChange", I), i.hook.off("modeChange",
|
|
14076
|
+
i.hook.off("measureTypeChange", I), i.hook.off("modeChange", E), i.hook.off("allowAddPointStateChange", k), i.hook.off("readyComplete", v), i.hook.off("pointsChange", P), i.hook.off("notReadyComplete", y), i.hook.off("complete", E);
|
|
14077
14077
|
});
|
|
14078
14078
|
const V = () => i.revoke(), W = () => {
|
|
14079
14079
|
h === "start" ? f() : h === "add" ? g() : (h === "end" || h === "complete") && m();
|
|
@@ -14299,9 +14299,9 @@ function R1(n) {
|
|
|
14299
14299
|
function V1(n, t, e) {
|
|
14300
14300
|
let { measureController: i } = t, { i18n: s = (y) => y } = t, { tips: o } = t, { tipStyle: r = {} } = t, { visible: a = !0 } = t, l = null;
|
|
14301
14301
|
const c = (y) => {
|
|
14302
|
-
const
|
|
14303
|
-
let
|
|
14304
|
-
return
|
|
14302
|
+
const P = i.currentMeasureType;
|
|
14303
|
+
let E = "";
|
|
14304
|
+
return E = o[y], E === void 0 && (E = o[P][y]), E;
|
|
14305
14305
|
}, h = (y) => {
|
|
14306
14306
|
e(2, f = s(c(y)));
|
|
14307
14307
|
}, u = () => {
|
|
@@ -14854,7 +14854,7 @@ function q1(n, t, e) {
|
|
|
14854
14854
|
},
|
|
14855
14855
|
100
|
|
14856
14856
|
);
|
|
14857
|
-
const
|
|
14857
|
+
const P = (I) => {
|
|
14858
14858
|
const j = Object.keys(f);
|
|
14859
14859
|
let V = I.target;
|
|
14860
14860
|
for (; V; ) {
|
|
@@ -14875,7 +14875,7 @@ function q1(n, t, e) {
|
|
|
14875
14875
|
Et(() => {
|
|
14876
14876
|
g.emit("initTag", { id: i });
|
|
14877
14877
|
});
|
|
14878
|
-
const
|
|
14878
|
+
const E = ug.subscribe((I) => {
|
|
14879
14879
|
if (I === null)
|
|
14880
14880
|
return;
|
|
14881
14881
|
const [j, V] = I.split("-PanoSpatialTagPlugin-");
|
|
@@ -14889,7 +14889,7 @@ function q1(n, t, e) {
|
|
|
14889
14889
|
Mf(() => {
|
|
14890
14890
|
e(7, A = m.offsetWidth), e(8, p = m.offsetHeight), !y && e(10, v = !h);
|
|
14891
14891
|
}), Bt(() => {
|
|
14892
|
-
g.emit("destroyTag", { id: i }),
|
|
14892
|
+
g.emit("destroyTag", { id: i }), E(), u();
|
|
14893
14893
|
});
|
|
14894
14894
|
function k(I) {
|
|
14895
14895
|
_e[I ? "unshift" : "push"](() => {
|
|
@@ -14910,7 +14910,7 @@ function q1(n, t, e) {
|
|
|
14910
14910
|
p,
|
|
14911
14911
|
m,
|
|
14912
14912
|
v,
|
|
14913
|
-
|
|
14913
|
+
P,
|
|
14914
14914
|
h,
|
|
14915
14915
|
u,
|
|
14916
14916
|
f,
|
|
@@ -15109,7 +15109,7 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15109
15109
|
k(), ve && I();
|
|
15110
15110
|
}, y = () => {
|
|
15111
15111
|
p.forbidden && (p.forbidden = !1, I());
|
|
15112
|
-
},
|
|
15112
|
+
}, P = (ee, ve) => {
|
|
15113
15113
|
if (p.tags.length === 0)
|
|
15114
15114
|
return;
|
|
15115
15115
|
const je = ve.longitude - n.state.longitude, me = n.camera.clone();
|
|
@@ -15137,7 +15137,7 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15137
15137
|
xe.destroying && (xe.app.$destroy(), xe = null);
|
|
15138
15138
|
}), p.tags = p.tags.filter((xe) => !xe.destroying), k();
|
|
15139
15139
|
}, 1900);
|
|
15140
|
-
},
|
|
15140
|
+
}, E = (ee) => {
|
|
15141
15141
|
ee !== dt.Mode.Panorama && !p.forbidden && (m.$set({ origins: [] }), p.tags.forEach((ve) => {
|
|
15142
15142
|
ve.app.$destroy(), ve = null;
|
|
15143
15143
|
}), p.origins = [], p.tags = [], p.forbidden = !0);
|
|
@@ -15289,11 +15289,11 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15289
15289
|
}, X = () => {
|
|
15290
15290
|
n.once("renderFrame", k);
|
|
15291
15291
|
}, J = () => {
|
|
15292
|
-
e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new w.Vector3()).y, I(), n.on("panoWillArrive",
|
|
15292
|
+
e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new w.Vector3()).y, I(), n.on("panoWillArrive", P), n.on("panoArrived", y), n.on("modeChange", E), n.on("cameraUpdate", v);
|
|
15293
15293
|
}, $ = () => {
|
|
15294
15294
|
A = null, u.disposeAll(), m.$destroy(), p.tags.forEach((ee) => {
|
|
15295
15295
|
ee.app.$destroy(), ee = null;
|
|
15296
|
-
}), p.origins = [], p.tags = [], n.off("modelLoaded", J), n.off("renderFrame", k), n.off("panoWillArrive",
|
|
15296
|
+
}), p.origins = [], p.tags = [], n.off("modelLoaded", J), n.off("renderFrame", k), n.off("panoWillArrive", P), n.off("panoArrived", y), n.off("modeChange", E), n.off("cameraUpdate", v), n.off("dispose", $), window.removeEventListener("resize", X, !1);
|
|
15297
15297
|
};
|
|
15298
15298
|
return window.addEventListener("resize", X, !1), (Ze = n == null ? void 0 : n.model) != null && Ze.loaded ? J() : n.once("modelLoaded", J), n.on("dispose", $), {
|
|
15299
15299
|
load: V,
|
|
@@ -15579,8 +15579,8 @@ function fy(n, t, e) {
|
|
|
15579
15579
|
}, v = (H, F) => {
|
|
15580
15580
|
const U = new s(F.modelPosition[0], F.modelPosition[1], F.modelPosition[2]), X = H.project2d(U), J = X == null ? void 0 : X.x, $ = X == null ? void 0 : X.y;
|
|
15581
15581
|
return [J, $];
|
|
15582
|
-
}, y = (H) => `translate(${H[0]}px, ${H[1]}px)`,
|
|
15583
|
-
function
|
|
15582
|
+
}, y = (H) => `translate(${H[0]}px, ${H[1]}px)`, P = (H, F) => A.length === 0 ? !1 : !!A.find((X) => H[0] >= X[0] - F && H[0] <= X[0] + F || H[1] >= X[1] - Fh && H[1] <= X[1] + Fh);
|
|
15583
|
+
function E(H, F) {
|
|
15584
15584
|
switch (F) {
|
|
15585
15585
|
case Pn.SMALL:
|
|
15586
15586
|
return Math.ceil(-27.78 * H + 85);
|
|
@@ -15594,7 +15594,7 @@ function fy(n, t, e) {
|
|
|
15594
15594
|
}
|
|
15595
15595
|
const k = (H, F) => {
|
|
15596
15596
|
const U = F.map((J) => {
|
|
15597
|
-
const $ = v(H, J), de = J.name.length * uy, he =
|
|
15597
|
+
const $ = v(H, J), de = J.name.length * uy, he = E(J.modelPosition[1], c), Ce = (r ? m(H, J) : !0) && !P([$[0], $[1] + he], de);
|
|
15598
15598
|
if (!Ce)
|
|
15599
15599
|
return se(D({}, J), { visible: Ce });
|
|
15600
15600
|
A.push($);
|
|
@@ -15790,9 +15790,9 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15790
15790
|
if (!e.videoTexture)
|
|
15791
15791
|
return;
|
|
15792
15792
|
const y = () => {
|
|
15793
|
-
var
|
|
15794
|
-
e.videoTexture && ((
|
|
15795
|
-
|
|
15793
|
+
var P;
|
|
15794
|
+
e.videoTexture && ((P = e.videoTexture) == null || P.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((E) => {
|
|
15795
|
+
E.material.map !== e.videoTexture && (E.material.map = e.videoTexture);
|
|
15796
15796
|
}), n.needsRender = !0);
|
|
15797
15797
|
};
|
|
15798
15798
|
e.videoTexture.image.addEventListener("timeupdate", y), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
@@ -15812,38 +15812,38 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15812
15812
|
v.geometry.dispose(), v.material.dispose(), n.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
|
|
15813
15813
|
}), e.videoMeshes = [], n.needsRender = !0);
|
|
15814
15814
|
}, c = () => e.rectPoints.map((v, y) => {
|
|
15815
|
-
const
|
|
15815
|
+
const P = new w.BufferGeometry(), E = 128, k = [];
|
|
15816
15816
|
k.push(...v[0].toArray());
|
|
15817
|
-
for (let G = 1; G <
|
|
15817
|
+
for (let G = 1; G < E; G++)
|
|
15818
15818
|
k.push(
|
|
15819
|
-
v[0].x + (v[1].x - v[0].x) * G /
|
|
15820
|
-
v[0].y + (v[1].y - v[0].y) * G /
|
|
15821
|
-
v[0].z + (v[1].z - v[0].z) * G /
|
|
15819
|
+
v[0].x + (v[1].x - v[0].x) * G / E,
|
|
15820
|
+
v[0].y + (v[1].y - v[0].y) * G / E,
|
|
15821
|
+
v[0].z + (v[1].z - v[0].z) * G / E
|
|
15822
15822
|
);
|
|
15823
15823
|
k.push(...v[1].toArray()), k.push(...v[2].toArray());
|
|
15824
|
-
for (let G = 1; G <
|
|
15824
|
+
for (let G = 1; G < E; G++)
|
|
15825
15825
|
k.push(
|
|
15826
|
-
v[2].x + (v[3].x - v[2].x) * G /
|
|
15827
|
-
v[2].y + (v[3].y - v[2].y) * G /
|
|
15828
|
-
v[2].z + (v[3].z - v[2].z) * G /
|
|
15826
|
+
v[2].x + (v[3].x - v[2].x) * G / E,
|
|
15827
|
+
v[2].y + (v[3].y - v[2].y) * G / E,
|
|
15828
|
+
v[2].z + (v[3].z - v[2].z) * G / E
|
|
15829
15829
|
);
|
|
15830
15830
|
k.push(...v[3].toArray());
|
|
15831
15831
|
const I = [];
|
|
15832
15832
|
I.push(0, 1);
|
|
15833
|
-
for (let G = 1; G <
|
|
15834
|
-
I.push(0, 1 - G /
|
|
15833
|
+
for (let G = 1; G < E; G++)
|
|
15834
|
+
I.push(0, 1 - G / E);
|
|
15835
15835
|
I.push(0, 0), I.push(1, 0);
|
|
15836
|
-
for (let G = 1; G <
|
|
15837
|
-
I.push(1, G /
|
|
15836
|
+
for (let G = 1; G < E; G++)
|
|
15837
|
+
I.push(1, G / E);
|
|
15838
15838
|
I.push(1, 1);
|
|
15839
15839
|
const j = [];
|
|
15840
|
-
for (let G = 0; G <
|
|
15841
|
-
j.push(G, G + 1,
|
|
15842
|
-
|
|
15840
|
+
for (let G = 0; G < E; G++)
|
|
15841
|
+
j.push(G, G + 1, E * 2 - G, G, E * 2 - G, E * 2 + 1 - G);
|
|
15842
|
+
P.setAttribute("position", new w.BufferAttribute(new Float32Array(k), 3)), P.setAttribute("uv", new w.BufferAttribute(new Float32Array(I), 2)), P.setIndex(new w.BufferAttribute(new Uint32Array(j), 1));
|
|
15843
15843
|
const V = new w.MeshBasicMaterial({
|
|
15844
15844
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
15845
15845
|
side: w.DoubleSide
|
|
15846
|
-
}), W = new w.Mesh(
|
|
15846
|
+
}), W = new w.Mesh(P, V);
|
|
15847
15847
|
W.renderOrder = 1, W.name = `ModelTVVideoPlugin-${y}-${performance.now()}`;
|
|
15848
15848
|
const _ = [v[1], v[2], v[3], v[0]], N = i.create3DDomContainer(_);
|
|
15849
15849
|
if (N != null && N.container) {
|
|
@@ -15859,23 +15859,23 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15859
15859
|
const y = new w.TextureLoader().load(v);
|
|
15860
15860
|
return y.minFilter = w.LinearFilter, y.magFilter = w.LinearFilter, y.format = w.RGBFormat, y;
|
|
15861
15861
|
}, u = (v, y) => {
|
|
15862
|
-
let
|
|
15863
|
-
return new Promise((
|
|
15862
|
+
let P = y;
|
|
15863
|
+
return new Promise((E, k) => {
|
|
15864
15864
|
const I = new XMLHttpRequest();
|
|
15865
15865
|
I.onreadystatechange = () => {
|
|
15866
15866
|
if (I.readyState === 4)
|
|
15867
15867
|
if (I.status === 200) {
|
|
15868
15868
|
const j = window.URL || window.webkitURL;
|
|
15869
|
-
|
|
15870
|
-
const V = new w.VideoTexture(
|
|
15871
|
-
V.minFilter = w.LinearFilter, V.magFilter = w.LinearFilter, V.format = w.RGBFormat,
|
|
15869
|
+
P = P || document.createElement("video"), P.crossOrigin = "anonymous", P.muted = !0, P.loop = !0, P.playsInline = !0, P.src = j.createObjectURL(I.response);
|
|
15870
|
+
const V = new w.VideoTexture(P);
|
|
15871
|
+
V.minFilter = w.LinearFilter, V.magFilter = w.LinearFilter, V.format = w.RGBFormat, E(Object.assign(V, { videoSource: v }));
|
|
15872
15872
|
} else
|
|
15873
15873
|
k(new Error("Video download Error: " + I.status));
|
|
15874
15874
|
}, I.onerror = (j) => k(j), I.open("GET", v), I.responseType = "blob", I.send();
|
|
15875
15875
|
});
|
|
15876
15876
|
}, f = (v, y) => Q(void 0, null, function* () {
|
|
15877
|
-
const { video_src:
|
|
15878
|
-
e.videoSource =
|
|
15877
|
+
const { video_src: P, video_poster_src: E, points: k } = v;
|
|
15878
|
+
e.videoSource = P, e.rectPoints = py(k).map((I) => I.map(({ x: j, y: V, z: W }) => new w.Vector3(j, V, W))), e.imageTexture = h(E), y && (e.videoElement = y), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
|
|
15879
15879
|
}), g = (v) => {
|
|
15880
15880
|
if (!e.enabled)
|
|
15881
15881
|
return;
|
|
@@ -15888,13 +15888,13 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15888
15888
|
if (!e.enabled)
|
|
15889
15889
|
return;
|
|
15890
15890
|
const v = n.camera.position;
|
|
15891
|
-
if (s.forEach((y,
|
|
15892
|
-
const
|
|
15891
|
+
if (s.forEach((y, P) => {
|
|
15892
|
+
const E = y.css3DObject.position.clone(), k = E.clone().sub(v).normalize(), I = new w.Raycaster(v, k), j = n.model.intersectRaycaster(I)[0], V = E.distanceTo(v), W = 0.01;
|
|
15893
15893
|
j && j.distance + W < V ? y.hide() : y.show();
|
|
15894
15894
|
}), !r()) {
|
|
15895
|
-
const y = e.rectPoints.find((
|
|
15896
|
-
const
|
|
15897
|
-
return
|
|
15895
|
+
const y = e.rectPoints.find((P) => {
|
|
15896
|
+
const E = P[0].clone().add(P[1]).add(P[2]).add(P[3]).divideScalar(4);
|
|
15897
|
+
return P.map((k) => k.clone().add(E).divideScalar(2)).filter((k) => {
|
|
15898
15898
|
const I = k.distanceTo(v), j = new w.Raycaster(v, k.clone().sub(v).normalize()), V = n.model.intersectRaycaster(j)[0], W = 0.01;
|
|
15899
15899
|
return !(V && V.distance + W < I);
|
|
15900
15900
|
}).length >= 2;
|
|
@@ -16312,14 +16312,14 @@ function Ty(n, t, e) {
|
|
|
16312
16312
|
}, y = (F) => {
|
|
16313
16313
|
const { camera: U, model: X } = s, { x: J, y: $, z: de } = F.clone().project(U), he = (J + 1) / 2, Pe = (2 - ($ + 1)) / 2;
|
|
16314
16314
|
return !!(Math.abs(de) < 1 && [he, Pe].every((ye) => ye < 1 && ye >= 0));
|
|
16315
|
-
},
|
|
16315
|
+
}, P = (F, U) => {
|
|
16316
16316
|
const X = new i(U.modelPosition[0], U.modelPosition[1], U.modelPosition[2]), J = F.project2d(X), $ = J == null ? void 0 : J.x, de = J == null ? void 0 : J.y;
|
|
16317
16317
|
return [$, de];
|
|
16318
|
-
},
|
|
16318
|
+
}, E = (F, U) => {
|
|
16319
16319
|
const X = U.map(($) => {
|
|
16320
16320
|
if (F.state.panoIndex !== $.panoIndex)
|
|
16321
16321
|
return se(D({}, $), { visible: !1 });
|
|
16322
|
-
const de =
|
|
16322
|
+
const de = P(F, $);
|
|
16323
16323
|
$.name.length * Sy;
|
|
16324
16324
|
const he = My($.modelPosition[1], l), Pe = F.currentMode === dt.Mode.Panorama ? y(new i($.position[0], $.position[1], $.position[2])) : !0, Ce = o ? v(F, $) : !1, be = Pe && !Ce;
|
|
16325
16325
|
if (!be)
|
|
@@ -16340,7 +16340,7 @@ function Ty(n, t, e) {
|
|
|
16340
16340
|
return de !== void 0 ? se(D({}, $), { zIndex: de * 10 }) : $;
|
|
16341
16341
|
});
|
|
16342
16342
|
}, k = () => {
|
|
16343
|
-
p = [], e(1, u =
|
|
16343
|
+
p = [], e(1, u = E(s, u));
|
|
16344
16344
|
}, I = () => {
|
|
16345
16345
|
e(5, m = !1), j();
|
|
16346
16346
|
}, j = fg(
|
|
@@ -16760,7 +16760,7 @@ class Wy extends Oy {
|
|
|
16760
16760
|
}), this.fixDoorPosition();
|
|
16761
16761
|
});
|
|
16762
16762
|
d(this, "fixDoorPosition", () => {
|
|
16763
|
-
var h, u, f, g, A, p, m, v, y,
|
|
16763
|
+
var h, u, f, g, A, p, m, v, y, P, E, k;
|
|
16764
16764
|
const { panoIndex: e, camera: i } = this.five;
|
|
16765
16765
|
if (e === null)
|
|
16766
16766
|
return;
|
|
@@ -16789,7 +16789,7 @@ class Wy extends Oy {
|
|
|
16789
16789
|
left: o * G / 100,
|
|
16790
16790
|
top: r * H / 100,
|
|
16791
16791
|
width: (y = (v = (m = U.children) == null ? void 0 : m[0]) == null ? void 0 : v.clientWidth) != null ? y : 0,
|
|
16792
|
-
height: (k = (
|
|
16792
|
+
height: (k = (E = (P = U.children) == null ? void 0 : P[0]) == null ? void 0 : E.clientHeight) != null ? k : 0
|
|
16793
16793
|
};
|
|
16794
16794
|
Ny(X, J) && (I++, c[V].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[N].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
16795
16795
|
}
|
|
@@ -16968,14 +16968,14 @@ function dw(n) {
|
|
|
16968
16968
|
const a = Math.ceil(r.getLength() * 100);
|
|
16969
16969
|
r.arcLengthDivisions = a;
|
|
16970
16970
|
const l = r.getPoints(a), c = l.length, h = rw(l.map((I) => [I.x, I.z])), f = (c - 1) * aw * lw, g = 2 * c, A = g * cw, p = g * hw, m = new Uint32Array(f), v = new Float32Array(A), y = new Float32Array(p);
|
|
16971
|
-
let
|
|
16971
|
+
let P = 0, E = 0;
|
|
16972
16972
|
for (let I = 0; I < l.length; I++) {
|
|
16973
16973
|
const [j, V] = h[I][0], W = l[I], { x: _, y: N, z: G } = W, H = new oe(_ + j * s, N + 0.05, G + V * s);
|
|
16974
16974
|
v[I * 6 + 0] = H.x, v[I * 6 + 1] = H.y, v[I * 6 + 2] = H.z;
|
|
16975
16975
|
const F = new oe(_ - j * s, N + 0.05, G - V * s);
|
|
16976
|
-
v[I * 6 + 3] = F.x, v[I * 6 + 4] = F.y, v[I * 6 + 5] = F.z,
|
|
16977
|
-
const U =
|
|
16978
|
-
if (
|
|
16976
|
+
v[I * 6 + 3] = F.x, v[I * 6 + 4] = F.y, v[I * 6 + 5] = F.z, P += I > 0 ? l[I - 1].clone().sub(l[I]).length() : 0;
|
|
16977
|
+
const U = P / t / i;
|
|
16978
|
+
if (E = U, y[I * 4 + 0] = 0, y[I * 4 + 1] = U, y[I * 4 + 2] = 1, y[I * 4 + 3] = U, n.skipPositions) {
|
|
16979
16979
|
const X = new w.Vector3().lerpVectors(H, F, 0.5);
|
|
16980
16980
|
if (n.skipPositions.some(($) => $.distanceTo(X) < 0.26))
|
|
16981
16981
|
continue;
|
|
@@ -16983,7 +16983,7 @@ function dw(n) {
|
|
|
16983
16983
|
I !== l.length - 1 && (m[I * 6 + 0] = I * 2 + 0, m[I * 6 + 1] = I * 2 + 2, m[I * 6 + 2] = I * 2 + 1, m[I * 6 + 3] = I * 2 + 2, m[I * 6 + 4] = I * 2 + 3, m[I * 6 + 5] = I * 2 + 1);
|
|
16984
16984
|
}
|
|
16985
16985
|
const k = new w.BufferGeometry();
|
|
16986
|
-
return k.setAttribute("position", new w.BufferAttribute(v, 3)), k.setAttribute("uv", new w.BufferAttribute(y, 2)), k.setIndex(new w.BufferAttribute(m, 1)), { geometry: k, maxU:
|
|
16986
|
+
return k.setAttribute("position", new w.BufferAttribute(v, 3)), k.setAttribute("uv", new w.BufferAttribute(y, 2)), k.setIndex(new w.BufferAttribute(m, 1)), { geometry: k, maxU: E, curvePath: r, curvePoints: l };
|
|
16987
16987
|
}
|
|
16988
16988
|
function uw(n) {
|
|
16989
16989
|
if (fw(n)) {
|
|
@@ -17780,8 +17780,8 @@ class Hl {
|
|
|
17780
17780
|
if (g._hovered)
|
|
17781
17781
|
continue;
|
|
17782
17782
|
g._hovered = !0;
|
|
17783
|
-
for (const
|
|
17784
|
-
|
|
17783
|
+
for (const P of (f = this.boundObject.hover) != null ? f : [])
|
|
17784
|
+
P !== g && P._hovered && this.notify({ eventName: "unHover", object: P });
|
|
17785
17785
|
}
|
|
17786
17786
|
if (e === "unHover") {
|
|
17787
17787
|
if (!g._hovered)
|
|
@@ -18196,37 +18196,38 @@ class Nw extends jw {
|
|
|
18196
18196
|
return e.config;
|
|
18197
18197
|
}
|
|
18198
18198
|
const o = {}, r = {}, a = {};
|
|
18199
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
18199
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([P, E]) => {
|
|
18200
18200
|
var N, G;
|
|
18201
|
-
const k =
|
|
18201
|
+
const k = P, I = k.split("-"), j = P.startsWith("["), V = j ? I[0].slice(1, -1) : void 0, W = j ? I.slice(1) : I, _ = V ? ["PanoramaLike", "ModelLike"].includes(V) ? (N = r[V]) != null ? N : r[V] = {} : (G = a[V]) != null ? G : a[V] = {} : o;
|
|
18202
18202
|
if (!_[k]) {
|
|
18203
|
-
if (W.length === 0 && (_[k] =
|
|
18203
|
+
if (W.length === 0 && (_[k] = E), W.length === 1) {
|
|
18204
18204
|
const [H] = W;
|
|
18205
|
-
(e.contentType === H || H === "Any") && (_[k] =
|
|
18205
|
+
(e.contentType === H || H === "Any") && (_[k] = E);
|
|
18206
18206
|
}
|
|
18207
18207
|
if (W.length === 2) {
|
|
18208
18208
|
const [H = "Any", F = "Any"] = W;
|
|
18209
|
-
H === "Mixin" && e.contentType === F && (_[k] =
|
|
18209
|
+
H === "Mixin" && e.contentType === F && (_[k] = E), (e.stickType === H || H === "Any") && (e.contentType === F || F === "Any") && (_[k] = E);
|
|
18210
18210
|
}
|
|
18211
18211
|
if (W.length === 3) {
|
|
18212
18212
|
const [H = "Any", F, U] = W;
|
|
18213
18213
|
if (F === "Audio" && e.contentType === "Audio") {
|
|
18214
18214
|
const X = e;
|
|
18215
|
-
(X.stickType === H || H === "Any") && X.data.appearance === U && (_[k] =
|
|
18215
|
+
(X.stickType === H || H === "Any") && X.data.appearance === U && (_[k] = E);
|
|
18216
18216
|
}
|
|
18217
18217
|
}
|
|
18218
18218
|
}
|
|
18219
18219
|
});
|
|
18220
18220
|
const l = (y = e.initialConfig) != null ? y : {}, c = Re({}, xw, this.config.globalConfig, ...Object.values(o)), h = Re({}, c, l), u = {}, f = Object.values(dt.Mode);
|
|
18221
|
-
td(r).forEach(([
|
|
18221
|
+
td(r).forEach(([P, E]) => {
|
|
18222
18222
|
f.forEach((k) => {
|
|
18223
|
-
(
|
|
18223
|
+
(P === "PanoramaLike" && Nt(k) || P === "ModelLike" && Ln(k)) && (u[k] = Re({}, c, ...Object.values(E), l, { _isMerged: !0 }));
|
|
18224
18224
|
});
|
|
18225
|
-
}), td(a).forEach(([
|
|
18226
|
-
|
|
18225
|
+
}), td(a).forEach(([P, E]) => {
|
|
18226
|
+
const k = u[P];
|
|
18227
|
+
u[P] = Re({}, c, k, ...Object.values(E), l, { _isMerged: !0 });
|
|
18227
18228
|
});
|
|
18228
18229
|
const g = se(D({}, h), { configWithFiveMode: u });
|
|
18229
|
-
return ed(g), Object.values(u).forEach((
|
|
18230
|
+
return ed(g), Object.values(u).forEach((P) => ed(P)), g._isMerged = !0, g;
|
|
18230
18231
|
}
|
|
18231
18232
|
}
|
|
18232
18233
|
function Qw(n, t) {
|
|
@@ -18262,90 +18263,80 @@ class Gw extends Nw {
|
|
|
18262
18263
|
return r.visible;
|
|
18263
18264
|
{
|
|
18264
18265
|
const a = [], l = (() => {
|
|
18265
|
-
var g, A, p, m, v
|
|
18266
|
-
const
|
|
18267
|
-
|
|
18268
|
-
const h = c.initialState, u = t.__lastInitialState;
|
|
18269
|
-
if (t.__lastInitialState = h, h.visible !== void 0 && h.visible !== (u == null ? void 0 : u.visible))
|
|
18270
|
-
return {
|
|
18271
|
-
value: h.visible,
|
|
18272
|
-
checkedList: a,
|
|
18273
|
-
reason: "initialState changed",
|
|
18274
|
-
do_not_cache: !0
|
|
18275
|
-
};
|
|
18276
|
-
const f = (g = c.visibleConfig) != null ? g : {};
|
|
18277
|
-
if (typeof f == "function")
|
|
18266
|
+
var u, f, g, A, p, m, v;
|
|
18267
|
+
const h = (u = this.getTagConfig(t).visibleConfig) != null ? u : {};
|
|
18268
|
+
if (typeof h == "function")
|
|
18278
18269
|
return {
|
|
18279
|
-
value:
|
|
18270
|
+
value: h(this.five, { tag: t, distance: this.getDistance(t, i) }),
|
|
18280
18271
|
checkedList: a,
|
|
18281
18272
|
reason: "config function result"
|
|
18282
18273
|
};
|
|
18283
|
-
if (
|
|
18274
|
+
if (h.keep === "hidden")
|
|
18284
18275
|
return { value: !1, checkedList: a, reason: "config.keep is hidden" };
|
|
18285
|
-
if (
|
|
18276
|
+
if (h.keep === "visible")
|
|
18286
18277
|
return { value: !0, checkedList: a, reason: "config.keep is visible" };
|
|
18287
|
-
if (
|
|
18288
|
-
const
|
|
18289
|
-
let
|
|
18290
|
-
if (Array.isArray(
|
|
18278
|
+
if (h.visibleFiveMode !== void 0) {
|
|
18279
|
+
const y = typeof h.visibleFiveMode == "function" ? h.visibleFiveMode(t) : h.visibleFiveMode;
|
|
18280
|
+
let P = !1;
|
|
18281
|
+
if (Array.isArray(y) ? P = y.includes(o) : y === "ModelLike" ? P = Ln(o) : y === "PanoramaLike" ? P = !Nt(o) : y === "all" ? P = !0 : typeof y == "string" && (P = y === o), P === !1)
|
|
18291
18282
|
return {
|
|
18292
18283
|
value: !1,
|
|
18293
18284
|
checkedList: a,
|
|
18294
18285
|
reason: "current mode is not included in visibleFiveMode",
|
|
18295
|
-
visibleFiveMode:
|
|
18286
|
+
visibleFiveMode: h.visibleFiveMode,
|
|
18296
18287
|
mode: o
|
|
18297
18288
|
};
|
|
18298
|
-
} else if (
|
|
18289
|
+
} else if (h.visibleFiveMode === void 0 && ((f = this.five.getCurrentState()) == null ? void 0 : f.mode) !== ((A = (g = t.fiveState) == null ? void 0 : g.mode) != null ? A : "Panorama"))
|
|
18299
18290
|
return {
|
|
18300
18291
|
value: !1,
|
|
18301
18292
|
checkedList: a,
|
|
18302
18293
|
reason: "current mode is not equal to tag.fiveState.mode",
|
|
18303
|
-
tagFiveMode: (
|
|
18294
|
+
tagFiveMode: (p = t.fiveState) == null ? void 0 : p.mode,
|
|
18304
18295
|
mode: o
|
|
18305
18296
|
};
|
|
18306
|
-
if (
|
|
18297
|
+
if (h.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(t) === !1)
|
|
18307
18298
|
return { value: !1, checkedList: a, reason: "followModelVisibility check failed" };
|
|
18308
|
-
if (Nt(o) &&
|
|
18309
|
-
if (a.push("visiblePanoIndex"), Array.isArray(
|
|
18299
|
+
if (Nt(o) && h.visiblePanoIndex !== void 0 && h.visiblePanoIndex !== "all" && s !== void 0) {
|
|
18300
|
+
if (a.push("visiblePanoIndex"), Array.isArray(h.visiblePanoIndex) && !h.visiblePanoIndex.includes(s))
|
|
18310
18301
|
return {
|
|
18311
18302
|
value: !1,
|
|
18312
18303
|
checkedList: a,
|
|
18313
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${
|
|
18304
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${h.visiblePanoIndex}`
|
|
18314
18305
|
};
|
|
18315
|
-
if (
|
|
18306
|
+
if (h.visiblePanoIndex === "current" && s !== ((m = t.fiveState) == null ? void 0 : m.panoIndex))
|
|
18316
18307
|
return {
|
|
18317
18308
|
value: !1,
|
|
18318
18309
|
checkedList: a,
|
|
18319
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(
|
|
18310
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(v = t.fiveState) == null ? void 0 : v.panoIndex}`
|
|
18320
18311
|
};
|
|
18321
18312
|
}
|
|
18322
|
-
if (
|
|
18323
|
-
const
|
|
18324
|
-
if (ys(
|
|
18313
|
+
if (h.visibleDistance !== void 0 && (a.push("visibleDistance"), h.visibleDistance !== "unLimited")) {
|
|
18314
|
+
const y = this.getDistance(t, i);
|
|
18315
|
+
if (ys(y, h.visibleDistance) === !1)
|
|
18325
18316
|
return {
|
|
18326
18317
|
value: !1,
|
|
18327
18318
|
checkedList: a,
|
|
18328
18319
|
panoIndex: s,
|
|
18329
|
-
visibleDistance:
|
|
18330
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
18320
|
+
visibleDistance: h.visibleDistance,
|
|
18321
|
+
reason: `distance is not in visibleDistance. distance: ${y}, visibleDistance: ${h.visibleDistance.min} - ${h.visibleDistance.max}`
|
|
18331
18322
|
};
|
|
18332
18323
|
}
|
|
18333
|
-
if (Nt(o) &&
|
|
18324
|
+
if (Nt(o) && h.angleRange && Aw(t)) {
|
|
18334
18325
|
a.push("angleRange");
|
|
18335
|
-
const
|
|
18336
|
-
if (ys(
|
|
18337
|
-
return { value: !1, checkedList: a, reason: `angle is not in angleRange. angle: ${
|
|
18326
|
+
const y = this.getAngle(t, s);
|
|
18327
|
+
if (ys(y, h.angleRange) === !1)
|
|
18328
|
+
return { value: !1, checkedList: a, reason: `angle is not in angleRange. angle: ${y}, angleRange: ${h.angleRange}` };
|
|
18338
18329
|
}
|
|
18339
|
-
if (
|
|
18330
|
+
if (h.intersectRaycaster !== !1 && (typeof h.intersectRaycaster != "object" || h.intersectRaycaster.enabled !== !1)) {
|
|
18340
18331
|
if (a.push("intersectRaycaster"), s === void 0)
|
|
18341
18332
|
return {
|
|
18342
18333
|
value: !1,
|
|
18343
18334
|
checkedList: a,
|
|
18344
18335
|
reason: `intersectRaycaster check failed: panoIndex is ${s}`
|
|
18345
18336
|
};
|
|
18346
|
-
const
|
|
18347
|
-
if (
|
|
18348
|
-
return Object.assign(
|
|
18337
|
+
const y = this.getTagEnableByIntersect(t, s);
|
|
18338
|
+
if (y.value === !1)
|
|
18339
|
+
return Object.assign(y, { checkedList: a });
|
|
18349
18340
|
}
|
|
18350
18341
|
return {
|
|
18351
18342
|
value: !0,
|
|
@@ -18486,8 +18477,8 @@ class Gw extends Nw {
|
|
|
18486
18477
|
return (_ = W.model) == null ? void 0 : _.object;
|
|
18487
18478
|
}).filter(Me), [V] = Qo.intersectObjects(j, !0);
|
|
18488
18479
|
return V;
|
|
18489
|
-
})(),
|
|
18490
|
-
Math.min((u = v == null ? void 0 : v.distance) != null ? u : 1 / 0, (f = y == null ? void 0 : y.distance) != null ? f : 1 / 0) +
|
|
18480
|
+
})(), P = (h = i.distanceAccuracy) != null ? h : 0.01;
|
|
18481
|
+
Math.min((u = v == null ? void 0 : v.distance) != null ? u : 1 / 0, (f = y == null ? void 0 : y.distance) != null ? f : 1 / 0) + P >= m ? a++ : l++;
|
|
18491
18482
|
const I = (g = i.needPassed) != null ? g : 1;
|
|
18492
18483
|
if (a >= I)
|
|
18493
18484
|
return { value: !0 };
|
|
@@ -19135,7 +19126,7 @@ function tC(n, t, e) {
|
|
|
19135
19126
|
}
|
|
19136
19127
|
clearTimeout(g), g = setTimeout(v, I ? s : o);
|
|
19137
19128
|
}
|
|
19138
|
-
function
|
|
19129
|
+
function P(I) {
|
|
19139
19130
|
const j = function() {
|
|
19140
19131
|
const V = Pw((W) => I[W].getBoundingClientRect().x, [Math.min(I.length - 1, 10), Math.min(I.length - 1, 30)]);
|
|
19141
19132
|
if (V > 0)
|
|
@@ -19154,7 +19145,7 @@ function tC(n, t, e) {
|
|
|
19154
19145
|
easing: "easeInOutCubic"
|
|
19155
19146
|
}), a && A.seek(A.duration);
|
|
19156
19147
|
}
|
|
19157
|
-
function
|
|
19148
|
+
function E(I, j) {
|
|
19158
19149
|
_e[I ? "unshift" : "push"](() => {
|
|
19159
19150
|
p[j] = I, e(1, p);
|
|
19160
19151
|
});
|
|
@@ -19170,7 +19161,7 @@ function tC(n, t, e) {
|
|
|
19170
19161
|
n.$$.dirty & /*content*/
|
|
19171
19162
|
1 && e(2, i = m(r)), n.$$.dirty & /*unfolded*/
|
|
19172
19163
|
256 && y(a), n.$$.dirty & /*spanEleList*/
|
|
19173
|
-
2 &&
|
|
19164
|
+
2 && P(p.filter((I) => !!I));
|
|
19174
19165
|
}, [
|
|
19175
19166
|
r,
|
|
19176
19167
|
p,
|
|
@@ -19181,7 +19172,7 @@ function tC(n, t, e) {
|
|
|
19181
19172
|
s,
|
|
19182
19173
|
o,
|
|
19183
19174
|
a,
|
|
19184
|
-
|
|
19175
|
+
E,
|
|
19185
19176
|
k
|
|
19186
19177
|
];
|
|
19187
19178
|
}
|
|
@@ -21254,8 +21245,8 @@ var To = bI, ir = {}, yI = {
|
|
|
21254
21245
|
}
|
|
21255
21246
|
};
|
|
21256
21247
|
(function(n, t) {
|
|
21257
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", A = "[object Object]", p = "[object Promise]", m = "[object RegExp]", v = "[object Set]", y = "[object String]",
|
|
21258
|
-
he[o] = he[r] = he[k] = he[I] = he[a] = he[l] = he[j] = he[V] = he[W] = he[_] = he[N] = he[f] = he[g] = he[A] = he[m] = he[v] = he[y] = he[
|
|
21248
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", A = "[object Object]", p = "[object Promise]", m = "[object RegExp]", v = "[object Set]", y = "[object String]", P = "[object Symbol]", E = "[object WeakMap]", k = "[object ArrayBuffer]", I = "[object DataView]", j = "[object Float32Array]", V = "[object Float64Array]", W = "[object Int8Array]", _ = "[object Int16Array]", N = "[object Int32Array]", G = "[object Uint8Array]", H = "[object Uint8ClampedArray]", F = "[object Uint16Array]", U = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, J = /\w*$/, $ = /^\[object .+?Constructor\]$/, de = /^(?:0|[1-9]\d*)$/, he = {};
|
|
21249
|
+
he[o] = he[r] = he[k] = he[I] = he[a] = he[l] = he[j] = he[V] = he[W] = he[_] = he[N] = he[f] = he[g] = he[A] = he[m] = he[v] = he[y] = he[P] = he[G] = he[H] = he[F] = he[U] = !0, he[c] = he[h] = he[E] = !1;
|
|
21259
21250
|
var Pe = typeof Ot == "object" && Ot && Ot.Object === Object && Ot, Ce = typeof self == "object" && self && self.Object === Object && self, be = Pe || Ce || Function("return this")(), Qe = t && !t.nodeType && t, ye = Qe && !0 && n && !n.nodeType && n, Ze = ye && ye.exports === Qe;
|
|
21260
21251
|
function ee(b, M) {
|
|
21261
21252
|
return b.set(M[0], M[1]), b;
|
|
@@ -21571,7 +21562,7 @@ var To = bI, ir = {}, yI = {
|
|
|
21571
21562
|
return Ur(R) ? R : void 0;
|
|
21572
21563
|
}
|
|
21573
21564
|
var ai = is ? Ie(is, Object) : ra, li = Wr;
|
|
21574
|
-
(ln && li(new ln(new ArrayBuffer(1))) != I || Oi && li(new Oi()) != f || Vt && li(Vt.resolve()) != p || cn && li(new cn()) != v || ns && li(new ns()) !=
|
|
21565
|
+
(ln && li(new ln(new ArrayBuffer(1))) != I || Oi && li(new Oi()) != f || Vt && li(Vt.resolve()) != p || cn && li(new cn()) != v || ns && li(new ns()) != E) && (li = function(b) {
|
|
21575
21566
|
var M = Rt.call(b), R = M == A ? b.constructor : void 0, Y = R ? Pt(R) : void 0;
|
|
21576
21567
|
if (Y)
|
|
21577
21568
|
switch (Y) {
|
|
@@ -21584,7 +21575,7 @@ var To = bI, ir = {}, yI = {
|
|
|
21584
21575
|
case rs:
|
|
21585
21576
|
return v;
|
|
21586
21577
|
case as:
|
|
21587
|
-
return
|
|
21578
|
+
return E;
|
|
21588
21579
|
}
|
|
21589
21580
|
return M;
|
|
21590
21581
|
});
|
|
@@ -21624,7 +21615,7 @@ var To = bI, ir = {}, yI = {
|
|
|
21624
21615
|
return so(b);
|
|
21625
21616
|
case v:
|
|
21626
21617
|
return Xr(b, Y, R);
|
|
21627
|
-
case
|
|
21618
|
+
case P:
|
|
21628
21619
|
return Zr(b);
|
|
21629
21620
|
}
|
|
21630
21621
|
}
|
|
@@ -21707,7 +21698,7 @@ var nr = {}, CI = {
|
|
|
21707
21698
|
}
|
|
21708
21699
|
};
|
|
21709
21700
|
(function(n, t) {
|
|
21710
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", g = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", m = "[object Number]", v = "[object Null]", y = "[object Object]",
|
|
21701
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", g = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", m = "[object Number]", v = "[object Null]", y = "[object Object]", P = "[object Promise]", E = "[object Proxy]", k = "[object RegExp]", I = "[object Set]", j = "[object String]", V = "[object Symbol]", W = "[object Undefined]", _ = "[object WeakMap]", N = "[object ArrayBuffer]", G = "[object DataView]", H = "[object Float32Array]", F = "[object Float64Array]", U = "[object Int8Array]", X = "[object Int16Array]", J = "[object Int32Array]", $ = "[object Uint8Array]", de = "[object Uint8ClampedArray]", he = "[object Uint16Array]", Pe = "[object Uint32Array]", Ce = /[\\^$.*+?()[\]{}|]/g, be = /^\[object .+?Constructor\]$/, Qe = /^(?:0|[1-9]\d*)$/, ye = {};
|
|
21711
21702
|
ye[H] = ye[F] = ye[U] = ye[X] = ye[J] = ye[$] = ye[de] = ye[he] = ye[Pe] = !0, ye[a] = ye[l] = ye[N] = ye[h] = ye[G] = ye[u] = ye[f] = ye[g] = ye[p] = ye[m] = ye[y] = ye[k] = ye[I] = ye[j] = ye[_] = !1;
|
|
21712
21703
|
var Ze = typeof Ot == "object" && Ot && Ot.Object === Object && Ot, ee = typeof self == "object" && self && self.Object === Object && self, ve = Ze || ee || Function("return this")(), je = t && !t.nodeType && t, me = je && !0 && n && !n.nodeType && n, tt = me && me.exports === je, at = tt && Ze.process, xe = function() {
|
|
21713
21704
|
try {
|
|
@@ -22092,7 +22083,7 @@ var nr = {}, CI = {
|
|
|
22092
22083
|
return ln.call(b, M);
|
|
22093
22084
|
}));
|
|
22094
22085
|
} : ra, Jt = Vi;
|
|
22095
|
-
(ss && Jt(new ss(new ArrayBuffer(1))) != G || Ri && Jt(new Ri()) != p || os && Jt(os.resolve()) !=
|
|
22086
|
+
(ss && Jt(new ss(new ArrayBuffer(1))) != G || Ri && Jt(new Ri()) != p || os && Jt(os.resolve()) != P || rs && Jt(new rs()) != I || as && Jt(new as()) != _) && (Jt = function(b) {
|
|
22096
22087
|
var M = Vi(b), R = M == y ? b.constructor : void 0, Y = R ? Pt(R) : "";
|
|
22097
22088
|
if (Y)
|
|
22098
22089
|
switch (Y) {
|
|
@@ -22101,7 +22092,7 @@ var nr = {}, CI = {
|
|
|
22101
22092
|
case ri:
|
|
22102
22093
|
return p;
|
|
22103
22094
|
case Er:
|
|
22104
|
-
return
|
|
22095
|
+
return P;
|
|
22105
22096
|
case Mr:
|
|
22106
22097
|
return I;
|
|
22107
22098
|
case kr:
|
|
@@ -22158,7 +22149,7 @@ var nr = {}, CI = {
|
|
|
22158
22149
|
if (!co(b))
|
|
22159
22150
|
return !1;
|
|
22160
22151
|
var M = Vi(b);
|
|
22161
|
-
return M == g || M == A || M == c || M ==
|
|
22152
|
+
return M == g || M == A || M == c || M == E;
|
|
22162
22153
|
}
|
|
22163
22154
|
function fs(b) {
|
|
22164
22155
|
return typeof b == "number" && b > -1 && b % 1 == 0 && b <= r;
|
|
@@ -22235,19 +22226,19 @@ function DI(n, t) {
|
|
|
22235
22226
|
let A = !1;
|
|
22236
22227
|
const p = (v) => (...y) => {
|
|
22237
22228
|
A = !0;
|
|
22238
|
-
const
|
|
22239
|
-
return A = !1,
|
|
22229
|
+
const P = v(...y);
|
|
22230
|
+
return A = !1, P;
|
|
22240
22231
|
};
|
|
22241
22232
|
Object.entries(s).forEach(([v, y]) => {
|
|
22242
22233
|
f[v] = p(
|
|
22243
|
-
(...
|
|
22234
|
+
(...P) => y(g(), ...P)
|
|
22244
22235
|
), Object.defineProperty(f[v], "name", { value: v });
|
|
22245
22236
|
}), u = new Proxy(wI(e), {
|
|
22246
22237
|
get(v, y) {
|
|
22247
22238
|
return h() && !A && r(h(), { prop: y, value: v[y] }), Reflect.get(...arguments);
|
|
22248
22239
|
},
|
|
22249
|
-
set(v, y,
|
|
22250
|
-
return v[y] ===
|
|
22240
|
+
set(v, y, P) {
|
|
22241
|
+
return v[y] === P || (Reflect.set(...arguments), h() || (o && o(y, P), a(u, y))), !0;
|
|
22251
22242
|
}
|
|
22252
22243
|
}), Object.entries(i).forEach(([v, y]) => {
|
|
22253
22244
|
c(v, () => {
|
|
@@ -23000,8 +22991,8 @@ function _I(n) {
|
|
|
23000
22991
|
n[0]
|
|
23001
22992
|
), C(s, "class", "sc-carousel__pages-window svelte-sme1z4"), C(e, "class", "sc-carousel__content-container svelte-sme1z4"), C(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
23002
22993
|
},
|
|
23003
|
-
m(
|
|
23004
|
-
B(
|
|
22994
|
+
m(P, E) {
|
|
22995
|
+
B(P, t, E), L(t, e), g && g.m(e, null), L(e, i), L(e, s), L(s, o), p && p.m(o, null), n[39](o), L(s, a), m && m.m(s, null), n[40](s), L(e, l), v && v.m(e, null), L(t, c), y && y.m(t, null), h = !0, u || (f = [
|
|
23005
22996
|
Ft(r = iP.call(null, o, {
|
|
23006
22997
|
thresholdProvider: (
|
|
23007
22998
|
/*swipeable_function*/
|
|
@@ -23054,72 +23045,72 @@ function _I(n) {
|
|
|
23054
23045
|
)
|
|
23055
23046
|
], u = !0);
|
|
23056
23047
|
},
|
|
23057
|
-
p(
|
|
23048
|
+
p(P, E) {
|
|
23058
23049
|
/*arrows*/
|
|
23059
|
-
|
|
23060
|
-
2 && x(g, 1)) : (g = jd(
|
|
23050
|
+
P[1] ? g ? (g.p(P, E), E[0] & /*arrows*/
|
|
23051
|
+
2 && x(g, 1)) : (g = jd(P), g.c(), x(g, 1), g.m(e, i)) : g && (ue(), O(g, 1, 1, () => {
|
|
23061
23052
|
g = null;
|
|
23062
|
-
}), fe()), p && p.p && (!h ||
|
|
23063
|
-
96 |
|
|
23053
|
+
}), fe()), p && p.p && (!h || E[0] & /*loaded, currentPageIndex*/
|
|
23054
|
+
96 | E[1] & /*$$scope*/
|
|
23064
23055
|
32) && Jn(
|
|
23065
23056
|
p,
|
|
23066
23057
|
A,
|
|
23067
|
-
|
|
23058
|
+
P,
|
|
23068
23059
|
/*$$scope*/
|
|
23069
|
-
|
|
23060
|
+
P[36],
|
|
23070
23061
|
h ? Zn(
|
|
23071
23062
|
A,
|
|
23072
23063
|
/*$$scope*/
|
|
23073
|
-
|
|
23074
|
-
|
|
23064
|
+
P[36],
|
|
23065
|
+
E,
|
|
23075
23066
|
HI
|
|
23076
23067
|
) : qn(
|
|
23077
23068
|
/*$$scope*/
|
|
23078
|
-
|
|
23069
|
+
P[36]
|
|
23079
23070
|
),
|
|
23080
23071
|
Td
|
|
23081
|
-
), (!h ||
|
|
23072
|
+
), (!h || E[0] & /*offset*/
|
|
23082
23073
|
256) && T(o, "transform", "translateX(" + /*offset*/
|
|
23083
|
-
|
|
23074
|
+
P[8] + "px)"), (!h || E[0] & /*durationMs*/
|
|
23084
23075
|
512) && T(
|
|
23085
23076
|
o,
|
|
23086
23077
|
"transition-duration",
|
|
23087
23078
|
/*durationMs*/
|
|
23088
|
-
|
|
23089
|
-
), (!h ||
|
|
23079
|
+
P[9] + "ms"
|
|
23080
|
+
), (!h || E[0] & /*timingFunction*/
|
|
23090
23081
|
1) && T(
|
|
23091
23082
|
o,
|
|
23092
23083
|
"transition-timing-function",
|
|
23093
23084
|
/*timingFunction*/
|
|
23094
|
-
|
|
23095
|
-
), r && oi(r.update) &&
|
|
23085
|
+
P[0]
|
|
23086
|
+
), r && oi(r.update) && E[0] & /*pageWindowWidth*/
|
|
23096
23087
|
2048 && r.update.call(null, {
|
|
23097
23088
|
thresholdProvider: (
|
|
23098
23089
|
/*swipeable_function*/
|
|
23099
|
-
|
|
23090
|
+
P[38]
|
|
23100
23091
|
)
|
|
23101
23092
|
}), /*autoplayProgressVisible*/
|
|
23102
|
-
|
|
23103
|
-
8 && x(m, 1)) : (m = zd(
|
|
23093
|
+
P[3] ? m ? (m.p(P, E), E[0] & /*autoplayProgressVisible*/
|
|
23094
|
+
8 && x(m, 1)) : (m = zd(P), m.c(), x(m, 1), m.m(s, null)) : m && (ue(), O(m, 1, 1, () => {
|
|
23104
23095
|
m = null;
|
|
23105
23096
|
}), fe()), /*arrows*/
|
|
23106
|
-
|
|
23107
|
-
2 && x(v, 1)) : (v = Od(
|
|
23097
|
+
P[1] ? v ? (v.p(P, E), E[0] & /*arrows*/
|
|
23098
|
+
2 && x(v, 1)) : (v = Od(P), v.c(), x(v, 1), v.m(e, null)) : v && (ue(), O(v, 1, 1, () => {
|
|
23108
23099
|
v = null;
|
|
23109
23100
|
}), fe()), /*dots*/
|
|
23110
|
-
|
|
23111
|
-
16 && x(y, 1)) : (y = Bd(
|
|
23101
|
+
P[4] ? y ? (y.p(P, E), E[0] & /*dots*/
|
|
23102
|
+
16 && x(y, 1)) : (y = Bd(P), y.c(), x(y, 1), y.m(t, null)) : y && (ue(), O(y, 1, 1, () => {
|
|
23112
23103
|
y = null;
|
|
23113
23104
|
}), fe());
|
|
23114
23105
|
},
|
|
23115
|
-
i(
|
|
23116
|
-
h || (x(g), x(p,
|
|
23106
|
+
i(P) {
|
|
23107
|
+
h || (x(g), x(p, P), x(m), x(v), x(y), h = !0);
|
|
23117
23108
|
},
|
|
23118
|
-
o(
|
|
23119
|
-
O(g), O(p,
|
|
23109
|
+
o(P) {
|
|
23110
|
+
O(g), O(p, P), O(m), O(v), O(y), h = !1;
|
|
23120
23111
|
},
|
|
23121
|
-
d(
|
|
23122
|
-
|
|
23112
|
+
d(P) {
|
|
23113
|
+
P && z(t), g && g.d(), p && p.d(P), n[39](null), m && m.d(), n[40](null), v && v.d(), y && y.d(), u = !1, et(f);
|
|
23123
23114
|
}
|
|
23124
23115
|
};
|
|
23125
23116
|
}
|
|
@@ -23135,7 +23126,7 @@ function WI(n, t, e) {
|
|
|
23135
23126
|
loaded: () => e(6, o = Ie)
|
|
23136
23127
|
})(re);
|
|
23137
23128
|
}), p = gr();
|
|
23138
|
-
let { timingFunction: m = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex:
|
|
23129
|
+
let { timingFunction: m = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: P = 0 } = t, { duration: E = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: j = xi } = t, { pauseOnFocus: V = !1 } = t, { autoplayProgressVisible: W = !1 } = t, { dots: _ = !0 } = t, { swiping: N = !0 } = t, { particlesToShow: G = 1 } = t, { particlesToScroll: H = 1 } = t;
|
|
23139
23130
|
function F(re, Ie) {
|
|
23140
23131
|
return Q(this, null, function* () {
|
|
23141
23132
|
const Ge = Ls(Ie, "animated", !0);
|
|
@@ -23177,7 +23168,7 @@ function WI(n, t, e) {
|
|
|
23177
23168
|
}
|
|
23178
23169
|
Et(() => {
|
|
23179
23170
|
Q(this, null, function* () {
|
|
23180
|
-
yield pc(), de && $ && (u.particlesCountWithoutClones = de.children.length, yield pc(), u.infinite && Pe(), u.particlesCount = de.children.length, g.showPage(
|
|
23171
|
+
yield pc(), de && $ && (u.particlesCountWithoutClones = de.children.length, yield pc(), u.infinite && Pe(), u.particlesCount = de.children.length, g.showPage(P, { animated: !1 }), he.observe($));
|
|
23181
23172
|
});
|
|
23182
23173
|
}), Bt(() => {
|
|
23183
23174
|
he.disconnect(), f.reset();
|
|
@@ -23231,12 +23222,12 @@ function WI(n, t, e) {
|
|
|
23231
23222
|
}
|
|
23232
23223
|
const st = (re) => Ce(re.detail);
|
|
23233
23224
|
return n.$$set = (re) => {
|
|
23234
|
-
"timingFunction" in re && e(0, m = re.timingFunction), "arrows" in re && e(1, v = re.arrows), "infinite" in re && e(2, y = re.infinite), "initialPageIndex" in re && e(24,
|
|
23225
|
+
"timingFunction" in re && e(0, m = re.timingFunction), "arrows" in re && e(1, v = re.arrows), "infinite" in re && e(2, y = re.infinite), "initialPageIndex" in re && e(24, P = re.initialPageIndex), "duration" in re && e(25, E = re.duration), "autoplay" in re && e(26, k = re.autoplay), "autoplayDuration" in re && e(27, I = re.autoplayDuration), "autoplayDirection" in re && e(28, j = re.autoplayDirection), "pauseOnFocus" in re && e(29, V = re.pauseOnFocus), "autoplayProgressVisible" in re && e(3, W = re.autoplayProgressVisible), "dots" in re && e(4, _ = re.dots), "swiping" in re && e(30, N = re.swiping), "particlesToShow" in re && e(31, G = re.particlesToShow), "particlesToScroll" in re && e(32, H = re.particlesToScroll), "$$scope" in re && e(36, s = re.$$scope);
|
|
23235
23226
|
}, n.$$.update = () => {
|
|
23236
23227
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
23237
23228
|
32 && p("pageChange", r), n.$$.dirty[0] & /*infinite*/
|
|
23238
23229
|
4 && (u.infinite = y), n.$$.dirty[0] & /*duration*/
|
|
23239
|
-
33554432 && (u.durationMsInit =
|
|
23230
|
+
33554432 && (u.durationMsInit = E), n.$$.dirty[0] & /*autoplay*/
|
|
23240
23231
|
67108864 && (u.autoplay = k), n.$$.dirty[0] & /*autoplayDuration*/
|
|
23241
23232
|
134217728 && (u.autoplayDuration = I), n.$$.dirty[0] & /*autoplayDirection*/
|
|
23242
23233
|
268435456 && (u.autoplayDirection = j), n.$$.dirty[0] & /*pauseOnFocus*/
|
|
@@ -23268,8 +23259,8 @@ function WI(n, t, e) {
|
|
|
23268
23259
|
ve,
|
|
23269
23260
|
je,
|
|
23270
23261
|
me,
|
|
23271
|
-
E,
|
|
23272
23262
|
P,
|
|
23263
|
+
E,
|
|
23273
23264
|
k,
|
|
23274
23265
|
I,
|
|
23275
23266
|
j,
|
|
@@ -23629,15 +23620,15 @@ function $I(n, t, e) {
|
|
|
23629
23620
|
function m() {
|
|
23630
23621
|
e(9, p = (a == null ? void 0 : a.type) === "Video" && !!a.videoCoverUrl);
|
|
23631
23622
|
}
|
|
23632
|
-
const v = Ii("mediaStore"), y = Ii("hooks"),
|
|
23623
|
+
const v = Ii("mediaStore"), y = Ii("hooks"), P = () => {
|
|
23633
23624
|
p || i && (e(10, i.muted = !0, i), i.play(), i.pause(), e(10, i.muted = !1, i), e(9, p = !0));
|
|
23634
23625
|
};
|
|
23635
|
-
y.on("loadVideoFirstFrame",
|
|
23626
|
+
y.on("loadVideoFirstFrame", P), Et(() => {
|
|
23636
23627
|
v.subscribe(({ currentMediaElement: G }) => {
|
|
23637
23628
|
G !== i && (i == null || i.pause());
|
|
23638
23629
|
});
|
|
23639
23630
|
});
|
|
23640
|
-
const
|
|
23631
|
+
const E = (G) => {
|
|
23641
23632
|
e(11, A = !1), e(0, o.paused = !1, o), e(9, p = !0), i && v.set({ currentMediaElement: i }), y.emit("playStateChange", {
|
|
23642
23633
|
event: G,
|
|
23643
23634
|
state: "playing",
|
|
@@ -23686,7 +23677,7 @@ function $I(n, t, e) {
|
|
|
23686
23677
|
1024 && i && e(11, A = i.paused), n.$$.dirty & /*media, videoPosterLoaded, videoInstance*/
|
|
23687
23678
|
1540 && (a == null ? void 0 : a.type) === "Video" && !p) {
|
|
23688
23679
|
const G = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, F = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && G;
|
|
23689
|
-
i && F && i.paused && (document.removeEventListener("WeixinJSBridgeReady",
|
|
23680
|
+
i && F && i.paused && (document.removeEventListener("WeixinJSBridgeReady", P), document.removeEventListener("touchstart", P), document.removeEventListener("click", P), document.addEventListener("WeixinJSBridgeReady", P), document.addEventListener("touchstart", P), document.addEventListener("click", P));
|
|
23690
23681
|
}
|
|
23691
23682
|
}, [
|
|
23692
23683
|
o,
|
|
@@ -23704,7 +23695,7 @@ function $I(n, t, e) {
|
|
|
23704
23695
|
v,
|
|
23705
23696
|
y,
|
|
23706
23697
|
s,
|
|
23707
|
-
|
|
23698
|
+
E,
|
|
23708
23699
|
k,
|
|
23709
23700
|
I,
|
|
23710
23701
|
j,
|
|
@@ -24109,11 +24100,11 @@ function sE(n) {
|
|
|
24109
24100
|
}
|
|
24110
24101
|
function oE(n, t, e) {
|
|
24111
24102
|
let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: f = !0 } = t, { animation: g = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: m = {} } = t;
|
|
24112
|
-
const { autoplayVideo: v = !1, autoplayCarousel: y = !0, autoplayVideoInCarousel:
|
|
24113
|
-
let
|
|
24103
|
+
const { autoplayVideo: v = !1, autoplayCarousel: y = !0, autoplayVideoInCarousel: P = !1 } = m;
|
|
24104
|
+
let E = [], k = 0, I, j = null;
|
|
24114
24105
|
const V = Ii("hooks"), W = Ii("mediaStore");
|
|
24115
24106
|
function _() {
|
|
24116
|
-
const U =
|
|
24107
|
+
const U = E[k], X = U == null ? void 0 : U.videoInstance;
|
|
24117
24108
|
X && (X.paused ? (X.muted = !1, X.play()) : X.pause());
|
|
24118
24109
|
}
|
|
24119
24110
|
Et(() => {
|
|
@@ -24130,7 +24121,7 @@ function oE(n, t, e) {
|
|
|
24130
24121
|
clearInterval(j), V.off("click", _);
|
|
24131
24122
|
});
|
|
24132
24123
|
function N(U, X) {
|
|
24133
|
-
n.$$.not_equal(
|
|
24124
|
+
n.$$.not_equal(E[X], U) && (E[X] = U, e(8, E));
|
|
24134
24125
|
}
|
|
24135
24126
|
function G(U) {
|
|
24136
24127
|
_e[U ? "unshift" : "push"](() => {
|
|
@@ -24141,13 +24132,13 @@ function oE(n, t, e) {
|
|
|
24141
24132
|
i || W.set({ currentMediaElement: null }), e(11, k = U.detail);
|
|
24142
24133
|
};
|
|
24143
24134
|
function F(U) {
|
|
24144
|
-
n.$$.not_equal(
|
|
24135
|
+
n.$$.not_equal(E[0], U) && (E[0] = U, e(8, E));
|
|
24145
24136
|
}
|
|
24146
24137
|
return n.$$set = (U) => {
|
|
24147
24138
|
"tag" in U && e(0, a = U.tag), "mediaData" in U && e(1, l = U.mediaData), "inDelay" in U && e(2, c = U.inDelay), "outDelay" in U && e(3, h = U.outDelay), "duration" in U && e(4, u = U.duration), "unfolded" in U && e(5, f = U.unfolded), "animation" in U && e(6, g = U.animation), "mediaItemConfig" in U && e(7, A = U.mediaItemConfig), "enableCarousel" in U && e(16, p = U.enableCarousel), "autoplayConfig" in U && e(17, m = U.autoplayConfig);
|
|
24148
24139
|
}, n.$$.update = () => {
|
|
24149
24140
|
n.$$.dirty[0] & /*mediaInstanceList*/
|
|
24150
|
-
256 && e(9, i =
|
|
24141
|
+
256 && e(9, i = E.every((U) => U.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
|
|
24151
24142
|
65538 && e(13, s = p && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
|
|
24152
24143
|
2 && e(10, o = l), n.$$.dirty[0] & /*mediaDataList, paused*/
|
|
24153
24144
|
1536 && (r = o.length > 1 && y && i);
|
|
@@ -24160,7 +24151,7 @@ function oE(n, t, e) {
|
|
|
24160
24151
|
f,
|
|
24161
24152
|
g,
|
|
24162
24153
|
A,
|
|
24163
|
-
|
|
24154
|
+
E,
|
|
24164
24155
|
i,
|
|
24165
24156
|
o,
|
|
24166
24157
|
k,
|
|
@@ -24656,7 +24647,7 @@ function $d(n) {
|
|
|
24656
24647
|
};
|
|
24657
24648
|
}
|
|
24658
24649
|
function dE(n) {
|
|
24659
|
-
var
|
|
24650
|
+
var E, k;
|
|
24660
24651
|
let t, e, i, s, o, r, a, l, c, h, u = (
|
|
24661
24652
|
/*data*/
|
|
24662
24653
|
n[3].title + ""
|
|
@@ -24679,16 +24670,16 @@ function dE(n) {
|
|
|
24679
24670
|
n[3].headerPictureUrl && Ud(n)
|
|
24680
24671
|
), y = (
|
|
24681
24672
|
/*primaryTags*/
|
|
24682
|
-
((
|
|
24673
|
+
((E = n[2].length) != null ? E : 0) + /*secondaryTags*/
|
|
24683
24674
|
((k = n[5].length) != null ? k : 0) > 0 && Yd(n)
|
|
24684
|
-
),
|
|
24675
|
+
), P = (
|
|
24685
24676
|
/*havePrice*/
|
|
24686
24677
|
(n[7] || /*data*/
|
|
24687
24678
|
n[3].highlightText) && Jd(n)
|
|
24688
24679
|
);
|
|
24689
24680
|
return {
|
|
24690
24681
|
c() {
|
|
24691
|
-
t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = K(), r = S("div"), v && v.c(), a = K(), l = S("div"), c = S("div"), h = S("div"), f = ke(u), g = K(), y && y.c(), A = K(),
|
|
24682
|
+
t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = K(), r = S("div"), v && v.c(), a = K(), l = S("div"), c = S("div"), h = S("div"), f = ke(u), g = K(), y && y.c(), A = K(), P && P.c(), C(s, "class", "line svelte-sezqcq"), T(
|
|
24692
24683
|
s,
|
|
24693
24684
|
"transition-delay",
|
|
24694
24685
|
/*unfolded*/
|
|
@@ -24715,7 +24706,7 @@ function dE(n) {
|
|
|
24715
24706
|
);
|
|
24716
24707
|
},
|
|
24717
24708
|
m(I, j) {
|
|
24718
|
-
B(I, t, j), te(e, t, null), L(t, i), L(t, s), L(t, o), L(t, r), v && v.m(r, null), L(r, a), L(r, l), L(l, c), L(c, h), L(h, f), L(r, g), y && y.m(r, null), L(r, A),
|
|
24709
|
+
B(I, t, j), te(e, t, null), L(t, i), L(t, s), L(t, o), L(t, r), v && v.m(r, null), L(r, a), L(r, l), L(l, c), L(c, h), L(h, f), L(r, g), y && y.m(r, null), L(r, A), P && P.m(r, null), m = !0;
|
|
24719
24710
|
},
|
|
24720
24711
|
p(I, [j]) {
|
|
24721
24712
|
var W, _;
|
|
@@ -24735,7 +24726,7 @@ function dE(n) {
|
|
|
24735
24726
|
((W = I[2].length) != null ? W : 0) + /*secondaryTags*/
|
|
24736
24727
|
((_ = I[5].length) != null ? _ : 0) > 0 ? y ? y.p(I, j) : (y = Yd(I), y.c(), y.m(r, A)) : y && (y.d(1), y = null), /*havePrice*/
|
|
24737
24728
|
I[7] || /*data*/
|
|
24738
|
-
I[3].highlightText ?
|
|
24729
|
+
I[3].highlightText ? P ? P.p(I, j) : (P = Jd(I), P.c(), P.m(r, null)) : P && (P.d(1), P = null), j & /*unfolded*/
|
|
24739
24730
|
16 && T(
|
|
24740
24731
|
r,
|
|
24741
24732
|
"transition-delay",
|
|
@@ -24764,7 +24755,7 @@ function dE(n) {
|
|
|
24764
24755
|
O(e.$$.fragment, I), m = !1;
|
|
24765
24756
|
},
|
|
24766
24757
|
d(I) {
|
|
24767
|
-
I && z(t), ie(e), v && v.d(), y && y.d(),
|
|
24758
|
+
I && z(t), ie(e), v && v.d(), y && y.d(), P && P.d();
|
|
24768
24759
|
}
|
|
24769
24760
|
};
|
|
24770
24761
|
}
|
|
@@ -24784,7 +24775,7 @@ function uE(n, t, e) {
|
|
|
24784
24775
|
return n.$$set = (p) => {
|
|
24785
24776
|
"tag" in p && e(0, u = p.tag);
|
|
24786
24777
|
}, n.$$.update = () => {
|
|
24787
|
-
var p, m, v, y,
|
|
24778
|
+
var p, m, v, y, P, E;
|
|
24788
24779
|
n.$$.dirty & /*tag*/
|
|
24789
24780
|
1 && e(4, i = (m = (p = u.state) == null ? void 0 : p.unfolded) != null ? m : !1), n.$$.dirty & /*unfolded*/
|
|
24790
24781
|
16 && e(8, s = !i), n.$$.dirty & /*tag*/
|
|
@@ -24792,8 +24783,8 @@ function uE(n, t, e) {
|
|
|
24792
24783
|
8 && e(7, r = Me((v = o.price) == null ? void 0 : v.value) && ((y = o.price) == null ? void 0 : y.value) !== ""), n.$$.dirty & /*tag*/
|
|
24793
24784
|
1 && e(6, a = u.data.theme || "light"), n.$$.dirty & /*tagsOffsetHeight, maxTagsLength*/
|
|
24794
24785
|
1026 && f > 40 && e(10, l = l - 1), n.$$.dirty & /*data, maxTagsLength*/
|
|
24795
|
-
1032 && e(2, c = ((
|
|
24796
|
-
1036 && e(5, h = ((
|
|
24786
|
+
1032 && e(2, c = ((P = o.brandTags) == null ? void 0 : P.slice(0, l).filter(Boolean)) || []), n.$$.dirty & /*data, maxTagsLength, primaryTags*/
|
|
24787
|
+
1036 && e(5, h = ((E = o.tags) == null ? void 0 : E.slice(0, l - c.length).filter(Boolean)) || []);
|
|
24797
24788
|
}, e(10, l = (g - 20) / Xl), [
|
|
24798
24789
|
u,
|
|
24799
24790
|
f,
|
|
@@ -25295,8 +25286,8 @@ function nu(n) {
|
|
|
25295
25286
|
n[6]
|
|
25296
25287
|
);
|
|
25297
25288
|
},
|
|
25298
|
-
m(y,
|
|
25299
|
-
B(y, t,
|
|
25289
|
+
m(y, P) {
|
|
25290
|
+
B(y, t, P), te(e, t, null), L(t, i), L(t, s), L(s, o), L(o, r), p && p.m(r, null), L(o, a), L(o, l), te(c, l, null), L(t, h), te(u, t, null), f = !0, g || (A = [
|
|
25300
25291
|
Ae(
|
|
25301
25292
|
l,
|
|
25302
25293
|
"click",
|
|
@@ -25312,38 +25303,38 @@ function nu(n) {
|
|
|
25312
25303
|
)
|
|
25313
25304
|
], g = !0);
|
|
25314
25305
|
},
|
|
25315
|
-
p(y,
|
|
25306
|
+
p(y, P) {
|
|
25316
25307
|
var j, V;
|
|
25317
|
-
const
|
|
25318
|
-
|
|
25319
|
-
64 && (
|
|
25320
|
-
y[6]),
|
|
25321
|
-
8 && (
|
|
25322
|
-
y[3] / 2 + "px"), e.$set(
|
|
25323
|
-
y[6] ? p ? (p.p(y,
|
|
25308
|
+
const E = {};
|
|
25309
|
+
P & /*unfolded*/
|
|
25310
|
+
64 && (E.visible = /*unfolded*/
|
|
25311
|
+
y[6]), P & /*contentWidth*/
|
|
25312
|
+
8 && (E.left = /*contentWidth*/
|
|
25313
|
+
y[3] / 2 + "px"), e.$set(E), /*unfolded*/
|
|
25314
|
+
y[6] ? p ? (p.p(y, P), P & /*unfolded*/
|
|
25324
25315
|
64 && x(p, 1)) : (p = su(y), p.c(), x(p, 1), p.m(r, null)) : p && (ue(), O(p, 1, 1, () => {
|
|
25325
25316
|
p = null;
|
|
25326
25317
|
}), fe());
|
|
25327
25318
|
const k = {};
|
|
25328
|
-
|
|
25319
|
+
P & /*unfolded*/
|
|
25329
25320
|
64 && (k.visible = /*unfolded*/
|
|
25330
|
-
y[6]),
|
|
25321
|
+
y[6]), P & /*textUnfolded*/
|
|
25331
25322
|
2 && (k.textUnfolded = /*textUnfolded*/
|
|
25332
|
-
y[1]),
|
|
25323
|
+
y[1]), P & /*content*/
|
|
25333
25324
|
32 && (k.content = /*content*/
|
|
25334
25325
|
y[5]), c.$set(k);
|
|
25335
25326
|
const I = {};
|
|
25336
|
-
|
|
25327
|
+
P & /*unfolded*/
|
|
25337
25328
|
64 && (I.unfolded = /*unfolded*/
|
|
25338
|
-
y[6]),
|
|
25329
|
+
y[6]), P & /*contentWidth*/
|
|
25339
25330
|
8 && (I.length = /*contentWidth*/
|
|
25340
|
-
y[3]),
|
|
25331
|
+
y[3]), P & /*foldTextDelay, content*/
|
|
25341
25332
|
48 && (I.outDelay = /*foldTextDelay*/
|
|
25342
25333
|
y[4] + 20 * Math.min(
|
|
25343
25334
|
/*content*/
|
|
25344
25335
|
(V = (j = y[5]) == null ? void 0 : j.length) != null ? V : 10,
|
|
25345
25336
|
15
|
|
25346
|
-
)), u.$set(I), (!f ||
|
|
25337
|
+
)), u.$set(I), (!f || P & /*unfolded*/
|
|
25347
25338
|
64) && q(
|
|
25348
25339
|
t,
|
|
25349
25340
|
"unfolded",
|
|
@@ -26506,18 +26497,18 @@ function En(n) {
|
|
|
26506
26497
|
function $E(n, t, e) {
|
|
26507
26498
|
let i, s, o, r, a, l, c, h, u, { width: f = null } = t, { icon: g = null } = t, { shadow: A = !1 } = t;
|
|
26508
26499
|
const p = gr();
|
|
26509
|
-
function m(
|
|
26500
|
+
function m(P) {
|
|
26510
26501
|
return Q(this, null, function* () {
|
|
26511
|
-
const
|
|
26512
|
-
return p("iconLoaded",
|
|
26502
|
+
const E = yield GE(P);
|
|
26503
|
+
return p("iconLoaded", E), E;
|
|
26513
26504
|
});
|
|
26514
26505
|
}
|
|
26515
|
-
function v(
|
|
26506
|
+
function v(P) {
|
|
26516
26507
|
return Q(this, null, function* () {
|
|
26517
26508
|
if (typeof u == "number")
|
|
26518
|
-
return se(D({},
|
|
26519
|
-
const
|
|
26520
|
-
return p("iconLoaded",
|
|
26509
|
+
return se(D({}, P), { width: u });
|
|
26510
|
+
const E = yield QE(P);
|
|
26511
|
+
return p("iconLoaded", E), E;
|
|
26521
26512
|
});
|
|
26522
26513
|
}
|
|
26523
26514
|
function y() {
|
|
@@ -26525,16 +26516,16 @@ function $E(n, t, e) {
|
|
|
26525
26516
|
}
|
|
26526
26517
|
return Et(() => {
|
|
26527
26518
|
y();
|
|
26528
|
-
}), n.$$set = (
|
|
26529
|
-
"width" in
|
|
26519
|
+
}), n.$$set = (P) => {
|
|
26520
|
+
"width" in P && e(1, f = P.width), "icon" in P && e(12, g = P.icon), "shadow" in P && e(0, A = P.shadow);
|
|
26530
26521
|
}, n.$$.update = () => {
|
|
26531
|
-
var
|
|
26522
|
+
var P, E;
|
|
26532
26523
|
n.$$.dirty & /*icon*/
|
|
26533
26524
|
4096 && e(7, i = g == null ? void 0 : g.url), n.$$.dirty & /*icon*/
|
|
26534
|
-
4096 && e(2, s = (
|
|
26525
|
+
4096 && e(2, s = (P = g == null ? void 0 : g.steps) != null ? P : 1), n.$$.dirty & /*icon*/
|
|
26535
26526
|
4096 && e(6, o = g == null ? void 0 : g.fps), n.$$.dirty & /*icon*/
|
|
26536
26527
|
4096 && e(5, r = g == null ? void 0 : g.ratio), n.$$.dirty & /*icon*/
|
|
26537
|
-
4096 && e(4, a = (
|
|
26528
|
+
4096 && e(4, a = (E = g == null ? void 0 : g.scale) != null ? E : 1), n.$$.dirty & /*icon*/
|
|
26538
26529
|
4096 && e(3, l = g == null ? void 0 : g.width), n.$$.dirty & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
26539
26530
|
252 && e(9, c = Ue({
|
|
26540
26531
|
url: i,
|
|
@@ -26916,8 +26907,8 @@ function m2(n) {
|
|
|
26916
26907
|
b2,
|
|
26917
26908
|
v2,
|
|
26918
26909
|
A2
|
|
26919
|
-
],
|
|
26920
|
-
function
|
|
26910
|
+
], P = [];
|
|
26911
|
+
function E(k, I) {
|
|
26921
26912
|
return I & /*tag, contentTypeMap*/
|
|
26922
26913
|
18 && (s = null), I & /*tag, contentTypeMap*/
|
|
26923
26914
|
18 && (o = null), I & /*tag, contentTypeMap*/
|
|
@@ -26990,7 +26981,7 @@ function m2(n) {
|
|
|
26990
26981
|
)
|
|
26991
26982
|
))), h ? 6 : -1))))));
|
|
26992
26983
|
}
|
|
26993
|
-
return ~(u =
|
|
26984
|
+
return ~(u = E(n, -1)) && (f = P[u] = y[u](n)), {
|
|
26994
26985
|
c() {
|
|
26995
26986
|
var k;
|
|
26996
26987
|
t = S("div"), e = S("div"), i = S("div"), f && f.c(), C(i, "class", "content svelte-qz1wo5"), q(
|
|
@@ -27038,7 +27029,7 @@ function m2(n) {
|
|
|
27038
27029
|
);
|
|
27039
27030
|
},
|
|
27040
27031
|
m(k, I) {
|
|
27041
|
-
B(k, t, I), L(t, e), L(e, i), ~u &&
|
|
27032
|
+
B(k, t, I), L(t, e), L(e, i), ~u && P[u].m(i, null), p = !0, m || (v = Ae(t, "click", Pf(
|
|
27042
27033
|
/*click_handler_1*/
|
|
27043
27034
|
n[16]
|
|
27044
27035
|
)), m = !0);
|
|
@@ -27046,9 +27037,9 @@ function m2(n) {
|
|
|
27046
27037
|
p(k, I) {
|
|
27047
27038
|
var V;
|
|
27048
27039
|
let j = u;
|
|
27049
|
-
u =
|
|
27050
|
-
|
|
27051
|
-
}), fe()), ~u ? (f =
|
|
27040
|
+
u = E(k, I), u === j ? ~u && P[u].p(k, I) : (f && (ue(), O(P[j], 1, 1, () => {
|
|
27041
|
+
P[j] = null;
|
|
27042
|
+
}), fe()), ~u ? (f = P[u], f ? f.p(k, I) : (f = P[u] = y[u](k), f.c()), x(f, 1), f.m(i, null)) : f = null), (!p || I & /*tag*/
|
|
27052
27043
|
2) && q(
|
|
27053
27044
|
i,
|
|
27054
27045
|
"unfolded",
|
|
@@ -27108,7 +27099,7 @@ function m2(n) {
|
|
|
27108
27099
|
O(f), p = !1;
|
|
27109
27100
|
},
|
|
27110
27101
|
d(k) {
|
|
27111
|
-
k && z(t), ~u &&
|
|
27102
|
+
k && z(t), ~u && P[u].d(), m = !1, v();
|
|
27112
27103
|
}
|
|
27113
27104
|
};
|
|
27114
27105
|
}
|
|
@@ -27470,10 +27461,10 @@ function M2(n, t, e) {
|
|
|
27470
27461
|
let i, s, o, r, a, l, { withAnimation: c = !1 } = t, { tag: h } = t, { hooks: u } = t, { rendererMap: f = /* @__PURE__ */ new Map() } = t, { contentTypeMap: g = /* @__PURE__ */ new Map() } = t, { state: A } = t, { mediaStore: p } = t, { temporaryState: m } = t;
|
|
27471
27462
|
Wa("hooks", u), Wa("mediaStore", p);
|
|
27472
27463
|
let v, y;
|
|
27473
|
-
function
|
|
27464
|
+
function P(I) {
|
|
27474
27465
|
I ? u.emit("exposure", { id: r, type: "start" }) : u.emit("exposure", { id: r, type: "end" });
|
|
27475
27466
|
}
|
|
27476
|
-
const
|
|
27467
|
+
const E = (I) => u.emit("click", { event: I, target: "TagContent", tag: h }), k = (I) => u.emit("click", { event: I, target: "TagContent", tag: h });
|
|
27477
27468
|
return n.$$set = (I) => {
|
|
27478
27469
|
"withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, h = I.tag), "hooks" in I && e(2, u = I.hooks), "rendererMap" in I && e(3, f = I.rendererMap), "contentTypeMap" in I && e(4, g = I.contentTypeMap), "state" in I && e(7, A = I.state), "mediaStore" in I && e(8, p = I.mediaStore), "temporaryState" in I && e(9, m = I.temporaryState);
|
|
27479
27470
|
}, n.$$.update = () => {
|
|
@@ -27484,7 +27475,7 @@ function M2(n, t, e) {
|
|
|
27484
27475
|
642 && e(14, o = A.visible && m.visible && ((V = h.state) == null ? void 0 : V.visible)), n.$$.dirty & /*tag*/
|
|
27485
27476
|
2 && (r = h.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
27486
27477
|
642 && e(6, a = !E2(h, A, m)), n.$$.dirty & /*isVisible*/
|
|
27487
|
-
16384 &&
|
|
27478
|
+
16384 && P(o), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
|
|
27488
27479
|
15362 && h.hooks && (i !== void 0 && i !== y && (e(11, y = i), i ? (_ = (W = h.hooks).emit) == null || _.call(W, "unfolded") : (G = h == null ? void 0 : (N = h.hooks).emit) == null || G.call(N, "folded")), s !== void 0 && s !== v && (e(10, v = s), s ? (F = (H = h.hooks).emit) == null || F.call(H, "show") : (X = (U = h.hooks).emit) == null || X.call(U, "hide"))), n.$$.dirty & /*tag*/
|
|
27489
27480
|
2 && e(5, l = (() => !(typeof h.config.unfoldedConfig == "object" && h.config.unfoldedConfig.keep === "folded"))());
|
|
27490
27481
|
}, [
|
|
@@ -27503,7 +27494,7 @@ function M2(n, t, e) {
|
|
|
27503
27494
|
s,
|
|
27504
27495
|
i,
|
|
27505
27496
|
o,
|
|
27506
|
-
|
|
27497
|
+
E,
|
|
27507
27498
|
k
|
|
27508
27499
|
];
|
|
27509
27500
|
}
|
|
@@ -27671,19 +27662,19 @@ function D2(n, t, e) {
|
|
|
27671
27662
|
64 && e(2, o = (v = (m = l.style) == null ? void 0 : m.point) != null && v.url ? (y = l.style) == null ? void 0 : y.point : { url: vy }), n.$$.dirty & /*tag*/
|
|
27672
27663
|
64 && e(1, r = (() => {
|
|
27673
27664
|
var k, I, j, V;
|
|
27674
|
-
const
|
|
27675
|
-
if (typeof E == "number")
|
|
27676
|
-
return E;
|
|
27677
|
-
const P = (V = (j = l.style) == null ? void 0 : j.point) == null ? void 0 : V.size;
|
|
27665
|
+
const P = (I = (k = l.style) == null ? void 0 : k.point) == null ? void 0 : I.width;
|
|
27678
27666
|
if (typeof P == "number")
|
|
27679
27667
|
return P;
|
|
27680
|
-
|
|
27668
|
+
const E = (V = (j = l.style) == null ? void 0 : j.point) == null ? void 0 : V.size;
|
|
27669
|
+
if (typeof E == "number")
|
|
27670
|
+
return E;
|
|
27671
|
+
if (E === "S")
|
|
27681
27672
|
return 18;
|
|
27682
|
-
if (
|
|
27673
|
+
if (E === "M")
|
|
27683
27674
|
return 20;
|
|
27684
|
-
if (
|
|
27675
|
+
if (E === "L")
|
|
27685
27676
|
return 24;
|
|
27686
|
-
if (
|
|
27677
|
+
if (E === "XL")
|
|
27687
27678
|
return 28;
|
|
27688
27679
|
})());
|
|
27689
27680
|
}, u(), [
|
|
@@ -27791,13 +27782,13 @@ function gu(n) {
|
|
|
27791
27782
|
B(v, t, y), L(t, e), f[i].m(e, null), L(e, o), p[r].m(e, null), h = !0;
|
|
27792
27783
|
},
|
|
27793
27784
|
p(v, y) {
|
|
27794
|
-
let
|
|
27795
|
-
i = g(v), i ===
|
|
27796
|
-
f[
|
|
27785
|
+
let P = i;
|
|
27786
|
+
i = g(v), i === P ? f[i].p(v, y) : (ue(), O(f[P], 1, 1, () => {
|
|
27787
|
+
f[P] = null;
|
|
27797
27788
|
}), fe(), s = f[i], s ? s.p(v, y) : (s = f[i] = u[i](v), s.c()), x(s, 1), s.m(e, o));
|
|
27798
|
-
let
|
|
27799
|
-
r = m(v), r ===
|
|
27800
|
-
p[
|
|
27789
|
+
let E = r;
|
|
27790
|
+
r = m(v), r === E ? p[r].p(v, y) : (ue(), O(p[E], 1, 1, () => {
|
|
27791
|
+
p[E] = null;
|
|
27801
27792
|
}), fe(), a = p[r], a ? a.p(v, y) : (a = p[r] = A[r](v), a.c()), x(a, 1), a.m(e, null)), (!h || y & /*tag*/
|
|
27802
27793
|
2 && l !== (l = Fe(vt(
|
|
27803
27794
|
"wrapper",
|
|
@@ -28054,10 +28045,10 @@ function B2(n) {
|
|
|
28054
28045
|
};
|
|
28055
28046
|
}
|
|
28056
28047
|
function R2(n, t, e) {
|
|
28057
|
-
let i, s, o, r, a, l, c, h, u, f, { withAnimation: g = !1 } = t, { tag: A } = t, { mediaStore: p } = t, { rendererMap: m = /* @__PURE__ */ new Map() } = t, { contentTypeMap: v = /* @__PURE__ */ new Map() } = t, { state: y } = t, { temporaryState:
|
|
28058
|
-
const
|
|
28048
|
+
let i, s, o, r, a, l, c, h, u, f, { withAnimation: g = !1 } = t, { tag: A } = t, { mediaStore: p } = t, { rendererMap: m = /* @__PURE__ */ new Map() } = t, { contentTypeMap: v = /* @__PURE__ */ new Map() } = t, { state: y } = t, { temporaryState: P } = t;
|
|
28049
|
+
const E = Ii("hooks");
|
|
28059
28050
|
return n.$$set = (k) => {
|
|
28060
|
-
"withAnimation" in k && e(0, g = k.withAnimation), "tag" in k && e(1, A = k.tag), "mediaStore" in k && e(2, p = k.mediaStore), "rendererMap" in k && e(3, m = k.rendererMap), "contentTypeMap" in k && e(4, v = k.contentTypeMap), "state" in k && e(5, y = k.state), "temporaryState" in k && e(6,
|
|
28051
|
+
"withAnimation" in k && e(0, g = k.withAnimation), "tag" in k && e(1, A = k.tag), "mediaStore" in k && e(2, p = k.mediaStore), "rendererMap" in k && e(3, m = k.rendererMap), "contentTypeMap" in k && e(4, v = k.contentTypeMap), "state" in k && e(5, y = k.state), "temporaryState" in k && e(6, P = k.temporaryState);
|
|
28061
28052
|
}, n.$$.update = () => {
|
|
28062
28053
|
var k, I, j, V;
|
|
28063
28054
|
n.$$.dirty & /*tag, rendererMap*/
|
|
@@ -28081,7 +28072,7 @@ function R2(n, t, e) {
|
|
|
28081
28072
|
m,
|
|
28082
28073
|
v,
|
|
28083
28074
|
y,
|
|
28084
|
-
|
|
28075
|
+
P,
|
|
28085
28076
|
l,
|
|
28086
28077
|
c,
|
|
28087
28078
|
f,
|
|
@@ -28092,7 +28083,7 @@ function R2(n, t, e) {
|
|
|
28092
28083
|
o,
|
|
28093
28084
|
s,
|
|
28094
28085
|
i,
|
|
28095
|
-
|
|
28086
|
+
E
|
|
28096
28087
|
];
|
|
28097
28088
|
}
|
|
28098
28089
|
class V2 extends ce {
|
|
@@ -30616,7 +30607,7 @@ let dM = class extends pi {
|
|
|
30616
30607
|
}
|
|
30617
30608
|
load(e, i, s = !0) {
|
|
30618
30609
|
return Q(this, null, function* () {
|
|
30619
|
-
var g, A, p, m, v, y,
|
|
30610
|
+
var g, A, p, m, v, y, P;
|
|
30620
30611
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
30621
30612
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
30622
30613
|
const a = r.config, c = {
|
|
@@ -30626,12 +30617,12 @@ let dM = class extends pi {
|
|
|
30626
30617
|
width: (A = a == null ? void 0 : a.unitWidth) != null ? A : 0.6,
|
|
30627
30618
|
texture: { url: (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
|
|
30628
30619
|
}
|
|
30629
|
-
}, h = (v = (m = r.routes) == null ? void 0 : m.map((
|
|
30620
|
+
}, h = (v = (m = r.routes) == null ? void 0 : m.map((E) => {
|
|
30630
30621
|
var k;
|
|
30631
|
-
return Re({}, c, { id: (k =
|
|
30632
|
-
})) != null ? v : [], u = (
|
|
30633
|
-
yield Yg(this.five), this.clear(), f.forEach((
|
|
30634
|
-
this.addGuideLineItem(
|
|
30622
|
+
return Re({}, c, { id: (k = E.id) != null ? k : nt(), pano_group: E.panoIndexList });
|
|
30623
|
+
})) != null ? v : [], u = (P = (y = r.lines) == null ? void 0 : y.map((E) => Re({}, c, E))) != null ? P : [], f = [...h, ...u];
|
|
30624
|
+
yield Yg(this.five), this.clear(), f.forEach((E) => {
|
|
30625
|
+
this.addGuideLineItem(E);
|
|
30635
30626
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", r), console.debug(`${Cu} loaded`, r);
|
|
30636
30627
|
});
|
|
30637
30628
|
}
|
|
@@ -30779,11 +30770,11 @@ function Xs(n) {
|
|
|
30779
30770
|
return t.applyMatrix4(fM(n.matrixWorld.clone())), t;
|
|
30780
30771
|
}
|
|
30781
30772
|
const fM = (n) => {
|
|
30782
|
-
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], g = t[11], A = t[12], p = t[13], m = t[14], v = t[15], y = u * m * c - p * f * c + p * l * g - a * m * g - u * l * v + a * f * v,
|
|
30773
|
+
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], g = t[11], A = t[12], p = t[13], m = t[14], v = t[15], y = u * m * c - p * f * c + p * l * g - a * m * g - u * l * v + a * f * v, P = A * f * c - h * m * c - A * l * g + r * m * g + h * l * v - r * f * v, E = h * p * c - A * u * c + A * a * g - r * p * g - h * a * v + r * u * v, k = A * u * l - h * p * l - A * a * f + r * p * f + h * a * m - r * u * m, I = e * y + i * P + s * E + o * k;
|
|
30783
30774
|
if (I === 0)
|
|
30784
30775
|
return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
30785
30776
|
const j = 1 / I;
|
|
30786
|
-
return t[0] = y * j, t[1] = (p * f * o - u * m * o - p * s * g + i * m * g + u * s * v - i * f * v) * j, t[2] = (a * m * o - p * l * o + p * s * c - i * m * c - a * s * v + i * l * v) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * g - i * l * g) * j, t[4] =
|
|
30777
|
+
return t[0] = y * j, t[1] = (p * f * o - u * m * o - p * s * g + i * m * g + u * s * v - i * f * v) * j, t[2] = (a * m * o - p * l * o + p * s * c - i * m * c - a * s * v + i * l * v) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * g - i * l * g) * j, t[4] = P * j, t[5] = (h * m * o - A * f * o + A * s * g - e * m * g - h * s * v + e * f * v) * j, t[6] = (A * l * o - r * m * o - A * s * c + e * m * c + r * s * v - e * l * v) * j, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * g + e * l * g) * j, t[8] = E * j, t[9] = (A * u * o - h * p * o - A * i * g + e * p * g + h * i * v - e * u * v) * j, t[10] = (r * p * o - A * a * o + A * i * c - e * p * c - r * i * v + e * a * v) * j, t[11] = (h * a * o - r * u * o - h * i * c + e * u * c + r * i * g - e * a * g) * j, t[12] = k * j, t[13] = (h * p * s - A * u * s + A * i * f - e * p * f - h * i * m + e * u * m) * j, t[14] = (A * a * s - r * p * s - A * i * l + e * p * l + r * i * m - e * a * m) * j, t[15] = (r * u * s - h * a * s + h * i * l - e * u * l - r * i * f + e * a * f) * j, n;
|
|
30787
30778
|
};
|
|
30788
30779
|
class Zs extends Lt {
|
|
30789
30780
|
constructor(e, i) {
|
|
@@ -32281,7 +32272,7 @@ class NM extends Js {
|
|
|
32281
32272
|
case "nwse":
|
|
32282
32273
|
m(), v();
|
|
32283
32274
|
}
|
|
32284
|
-
const y = new oe().subVectors(r[1], r[0]).length() / u.length(),
|
|
32275
|
+
const y = new oe().subVectors(r[1], r[0]).length() / u.length(), P = new oe().subVectors(r[3], r[0]).length() / f.length(), E = new oe(y, P, 1), k = new w.Matrix4().scale(E);
|
|
32285
32276
|
i.isCSS3DObjectPlus ? i.applyScaleMatrix4(k) : i.scale.applyMatrix4(k), s.position.copy(a);
|
|
32286
32277
|
const I = new oe().addVectors(r[0], r[2]).divideScalar(2), j = new oe().subVectors(I, l), V = new w.Matrix4().setPosition(j);
|
|
32287
32278
|
i.applyMatrix4(V), (W = this.helperObject3D.css3DInstance) == null || W.css3DObject.applyMatrix4(V), (_ = this.helperObject3D.plane) == null || _.applyMatrix4(V), this.internalHooks.emit("applyObjectScale", { matrix: k }), this.internalHooks.emit("applyObjectPosition", { matrix: V }), this.render();
|
|
@@ -32485,42 +32476,42 @@ class qg extends nn {
|
|
|
32485
32476
|
scaleHelper: !0,
|
|
32486
32477
|
boundingBoxHelper: !1,
|
|
32487
32478
|
positionFrom: "objectPosition"
|
|
32488
|
-
}), i), { moveHelper: h, rotateHelper: u, scaleHelper: f, boundingBoxHelper: g, positionFrom: A } = c, p = new Tt(), m = new Tt(), v = (
|
|
32489
|
-
if (
|
|
32490
|
-
return typeof
|
|
32479
|
+
}), i), { moveHelper: h, rotateHelper: u, scaleHelper: f, boundingBoxHelper: g, positionFrom: A } = c, p = new Tt(), m = new Tt(), v = (P) => {
|
|
32480
|
+
if (P)
|
|
32481
|
+
return typeof P == "boolean" ? P : P.enable;
|
|
32491
32482
|
};
|
|
32492
32483
|
if (v(h)) {
|
|
32493
|
-
const
|
|
32484
|
+
const P = D(D({}, this.getConfig(c.moveHelper)), c), E = new CM(e, D({}, P)), k = new ws(this.five, LM, e, E, P, p, m);
|
|
32494
32485
|
s.addControllers({ moveController: k.helperController }), o.push(() => k.dispose());
|
|
32495
32486
|
}
|
|
32496
32487
|
if (v(u)) {
|
|
32497
|
-
const
|
|
32488
|
+
const P = D(D({}, this.getConfig(c.rotateHelper)), c), E = new EM(e, D({ container: r }, P)), k = new ws(this.five, HM, e, E, P, p, m);
|
|
32498
32489
|
s.addControllers({ rotateController: k.helperController }), o.push(() => k.dispose());
|
|
32499
32490
|
}
|
|
32500
32491
|
if (v(g)) {
|
|
32501
|
-
const
|
|
32492
|
+
const P = new TM(e), E = new ws(
|
|
32502
32493
|
this.five,
|
|
32503
32494
|
GM,
|
|
32504
32495
|
e,
|
|
32505
|
-
|
|
32496
|
+
P,
|
|
32506
32497
|
void 0,
|
|
32507
32498
|
p,
|
|
32508
32499
|
m
|
|
32509
32500
|
);
|
|
32510
|
-
s.addControllers({ boundingBoxController:
|
|
32501
|
+
s.addControllers({ boundingBoxController: E.helperController });
|
|
32511
32502
|
}
|
|
32512
32503
|
if (v(f))
|
|
32513
32504
|
if (e.isCSS3DObjectPlus && r) {
|
|
32514
|
-
const
|
|
32505
|
+
const P = new SM(e, r, a, this.five.scene), E = new ws(
|
|
32515
32506
|
this.five,
|
|
32516
32507
|
QM,
|
|
32517
32508
|
e,
|
|
32518
|
-
|
|
32509
|
+
P,
|
|
32519
32510
|
void 0,
|
|
32520
32511
|
p,
|
|
32521
32512
|
m
|
|
32522
32513
|
);
|
|
32523
|
-
s.addControllers({ scaleController:
|
|
32514
|
+
s.addControllers({ scaleController: E.helperController }), o.push(() => E.dispose()), of(this.five).then(() => {
|
|
32524
32515
|
var k, I;
|
|
32525
32516
|
if (e.isCSS3DObjectPlus) {
|
|
32526
32517
|
const j = e;
|
|
@@ -32531,7 +32522,7 @@ class qg extends nn {
|
|
|
32531
32522
|
}
|
|
32532
32523
|
});
|
|
32533
32524
|
} else {
|
|
32534
|
-
const
|
|
32525
|
+
const P = D(D({}, this.getConfig(c.scaleHelper)), c), E = new FM(e, P), k = new ws(this.five, WM, e, E, P, p, m);
|
|
32535
32526
|
s.addControllers({ scaleController: k.helperController }), o.push(() => k.dispose());
|
|
32536
32527
|
}
|
|
32537
32528
|
return this.objectHelperMap.set(e, { helper: s, disposers: o }), s.controllers;
|
|
@@ -36023,7 +36014,7 @@ function dm(n, t) {
|
|
|
36023
36014
|
else if (a.length === 1)
|
|
36024
36015
|
m.raycaster.ray.intersectPlane(c, l), o.setPoints([a.at(-1), l]);
|
|
36025
36016
|
else if (a.length === 2) {
|
|
36026
|
-
const v = m.raycaster.ray.intersectPlane(c, new w.Vector3()), y = a[0].distanceTo(a[1]) / 2,
|
|
36017
|
+
const v = m.raycaster.ray.intersectPlane(c, new w.Vector3()), y = a[0].distanceTo(a[1]) / 2, P = new w.Vector3().lerpVectors(a[0], a[1], 0.5), E = new w.Vector3().subVectors(v, P).normalize(), k = new w.Vector3().addVectors(P, E.multiplyScalar(y));
|
|
36027
36018
|
l.copy(k), s.remove(o), n.setPoints([...a, l]);
|
|
36028
36019
|
}
|
|
36029
36020
|
}
|
|
@@ -36314,8 +36305,8 @@ function i3(n, t) {
|
|
|
36314
36305
|
$e.modules.five.camera.position,
|
|
36315
36306
|
A.raycaster.ray,
|
|
36316
36307
|
new w.Line3(r, a)
|
|
36317
|
-
), v = new w.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(p, new w.Vector3()), y = p.clone().sub(v),
|
|
36318
|
-
p && n.setTopCenter(
|
|
36308
|
+
), v = new w.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(p, new w.Vector3()), y = p.clone().sub(v), P = n.bottomCenter.clone().add(y);
|
|
36309
|
+
p && n.setTopCenter(P);
|
|
36319
36310
|
}, f = () => {
|
|
36320
36311
|
t.off("select", h), t.off("intersectionUpdate", u), t.off("disable", g), e.remove(i), t.disable();
|
|
36321
36312
|
}, g = () => {
|