@realsee/dnalogel 3.69.5-dev.5 → 3.69.5-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +2 -5
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +346 -341
- package/dist/index.umd.js +21 -21
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LegacyPointHelper.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointDomHelper.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.replaceStaticPrefix.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/SculptConfig.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPlacement.html +2 -2
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +85 -79
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +2 -5
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +79 -80
- 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
|
@@ -20,7 +20,7 @@ var Nn = (n, t) => {
|
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
22
|
var d = (n, t, e) => (Gl(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
23
|
-
var
|
|
23
|
+
var ie = (n, t, e) => new Promise((i, s) => {
|
|
24
24
|
var o = (l) => {
|
|
25
25
|
try {
|
|
26
26
|
a(e.next(l));
|
|
@@ -43,7 +43,7 @@ import { LineGeometry as bA, LineMaterial as yA, THREE_Line2 as wA, Line as PA }
|
|
|
43
43
|
import { GLTFLoader as CA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function IA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.69.5-dev.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.69.5-dev.6",
|
|
47
47
|
[
|
|
48
48
|
"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=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -1514,7 +1514,7 @@ class Nr {
|
|
|
1514
1514
|
* @description 启用标签
|
|
1515
1515
|
*/
|
|
1516
1516
|
enable() {
|
|
1517
|
-
return
|
|
1517
|
+
return ie(this, null, function* () {
|
|
1518
1518
|
var i, s, o, r;
|
|
1519
1519
|
if (this.enabled || (this.enabled = !0, yield yi(this.five), !this.enabled))
|
|
1520
1520
|
return;
|
|
@@ -1751,7 +1751,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1751
1751
|
var G = O.ownerDocument || O;
|
|
1752
1752
|
return G.defaultView || G.parentWindow || t;
|
|
1753
1753
|
}
|
|
1754
|
-
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ee = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, se = ee && q.test(navigator.userAgent),
|
|
1754
|
+
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ee = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, se = ee && q.test(navigator.userAgent), te = "touch", le = "pen", Se = "mouse", ue = "kinect", Te = 25, fe = 1, he = 2, Le = 4, $ = 8, Me = 1, Re = 2, ve = 4, Be = 8, de = 16, ye = Re | ve, ze = Be | de, Xe = ye | ze, Ye = ["x", "y"], at = ["clientX", "clientY"];
|
|
1755
1755
|
function Je(O, G) {
|
|
1756
1756
|
var Z = this;
|
|
1757
1757
|
this.manager = O, this.callback = G, this.element = O.element, this.target = O.options.inputTarget, this.domHandler = function(ne) {
|
|
@@ -1898,7 +1898,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1898
1898
|
pointercancel: $,
|
|
1899
1899
|
pointerout: $
|
|
1900
1900
|
}, Dn = {
|
|
1901
|
-
2:
|
|
1901
|
+
2: te,
|
|
1902
1902
|
3: le,
|
|
1903
1903
|
4: Se,
|
|
1904
1904
|
5: ue
|
|
@@ -1914,7 +1914,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1914
1914
|
* @param {Object} ev
|
|
1915
1915
|
*/
|
|
1916
1916
|
handler: function(G) {
|
|
1917
|
-
var Z = this.store, ne = !1, be = G.type.toLowerCase().replace("ms", ""), Oe = gi[be], Qe = Dn[G.pointerType] || G.pointerType, bt = Qe ==
|
|
1917
|
+
var Z = this.store, ne = !1, be = G.type.toLowerCase().replace("ms", ""), Oe = gi[be], Qe = Dn[G.pointerType] || G.pointerType, bt = Qe == te, Pt = C(Z, G.pointerId, "pointerId");
|
|
1918
1918
|
Oe & fe && (G.button === 0 || bt) ? Pt < 0 && (Z.push(G), Pt = Z.length - 1) : Oe & (Le | $) && (ne = !0), !(Pt < 0) && (Z[Pt] = G, this.callback(this.manager, Oe, {
|
|
1919
1919
|
pointers: Z,
|
|
1920
1920
|
changedPointers: [G],
|
|
@@ -1940,7 +1940,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1940
1940
|
Z & (Le | $) && ne[0].length - ne[1].length === 0 && (this.started = !1), this.callback(this.manager, Z, {
|
|
1941
1941
|
pointers: ne[0],
|
|
1942
1942
|
changedPointers: ne[1],
|
|
1943
|
-
pointerType:
|
|
1943
|
+
pointerType: te,
|
|
1944
1944
|
srcEvent: G
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
@@ -1965,7 +1965,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1965
1965
|
ne && this.callback(this.manager, Z, {
|
|
1966
1966
|
pointers: ne[0],
|
|
1967
1967
|
changedPointers: ne[1],
|
|
1968
|
-
pointerType:
|
|
1968
|
+
pointerType: te,
|
|
1969
1969
|
srcEvent: G
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
@@ -2003,7 +2003,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2003
2003
|
* @param {Object} inputData
|
|
2004
2004
|
*/
|
|
2005
2005
|
handler: function(G, Z, ne) {
|
|
2006
|
-
var be = ne.pointerType ==
|
|
2006
|
+
var be = ne.pointerType == te, Oe = ne.pointerType == Se;
|
|
2007
2007
|
if (!(Oe && ne.sourceCapabilities && ne.sourceCapabilities.firesTouchEvents)) {
|
|
2008
2008
|
if (be)
|
|
2009
2009
|
Mt.call(this, Z, ne);
|
|
@@ -3196,7 +3196,7 @@ class Ha extends KA {
|
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
3198
|
function yi(n) {
|
|
3199
|
-
return
|
|
3199
|
+
return ie(this, null, function* () {
|
|
3200
3200
|
return new Promise((t) => {
|
|
3201
3201
|
if (Bm(n))
|
|
3202
3202
|
t();
|
|
@@ -5753,12 +5753,12 @@ function ut(n) {
|
|
|
5753
5753
|
var ee = void 0, K = b.to.numbers[q], se = b.from.numbers[q] || 0;
|
|
5754
5754
|
b.isPath ? ee = Kb(b.value, I * K, b.isPathTargetInsideSVG) : ee = se + I * (K - se), S && (b.isColor && q > 2 || (ee = Math.round(ee * S) / S)), T.push(ee);
|
|
5755
5755
|
}
|
|
5756
|
-
var
|
|
5757
|
-
if (!
|
|
5756
|
+
var te = M.length;
|
|
5757
|
+
if (!te)
|
|
5758
5758
|
_ = T[0];
|
|
5759
5759
|
else {
|
|
5760
5760
|
_ = M[0];
|
|
5761
|
-
for (var le = 0; le <
|
|
5761
|
+
for (var le = 0; le < te; le++) {
|
|
5762
5762
|
M[le];
|
|
5763
5763
|
var Se = M[le + 1], ue = T[le];
|
|
5764
5764
|
isNaN(ue) || (Se ? _ += ue + Se : _ += ue + " ");
|
|
@@ -6226,14 +6226,14 @@ class xr {
|
|
|
6226
6226
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
6227
6227
|
}
|
|
6228
6228
|
show() {
|
|
6229
|
-
return
|
|
6229
|
+
return ie(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
6230
6230
|
if (this.state.disposed)
|
|
6231
6231
|
return so();
|
|
6232
6232
|
this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
|
|
6233
6233
|
});
|
|
6234
6234
|
}
|
|
6235
6235
|
hide() {
|
|
6236
|
-
return
|
|
6236
|
+
return ie(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
6237
6237
|
if (this.state.disposed)
|
|
6238
6238
|
return so();
|
|
6239
6239
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -6305,13 +6305,13 @@ class xr {
|
|
|
6305
6305
|
}
|
|
6306
6306
|
}
|
|
6307
6307
|
handleShow() {
|
|
6308
|
-
return
|
|
6308
|
+
return ie(this, null, function* () {
|
|
6309
6309
|
var t;
|
|
6310
6310
|
this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
|
|
6311
6311
|
});
|
|
6312
6312
|
}
|
|
6313
6313
|
handleHide() {
|
|
6314
|
-
return
|
|
6314
|
+
return ie(this, null, function* () {
|
|
6315
6315
|
var t;
|
|
6316
6316
|
this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
|
|
6317
6317
|
});
|
|
@@ -6564,7 +6564,7 @@ function Ur(n) {
|
|
|
6564
6564
|
};
|
|
6565
6565
|
}
|
|
6566
6566
|
function Sy(n, t, e) {
|
|
6567
|
-
return
|
|
6567
|
+
return ie(this, null, function* () {
|
|
6568
6568
|
var w, E, k;
|
|
6569
6569
|
if (!t)
|
|
6570
6570
|
return;
|
|
@@ -6606,7 +6606,7 @@ function Sy(n, t, e) {
|
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
6608
|
function b0(n, t, e) {
|
|
6609
|
-
return
|
|
6609
|
+
return ie(this, null, function* () {
|
|
6610
6610
|
var g, v;
|
|
6611
6611
|
if (!t)
|
|
6612
6612
|
return;
|
|
@@ -6955,7 +6955,7 @@ function Qr(n, t = 0) {
|
|
|
6955
6955
|
t <= 0 ? So(n) : So(() => Qr(n, t - 1));
|
|
6956
6956
|
}
|
|
6957
6957
|
function Oy() {
|
|
6958
|
-
return
|
|
6958
|
+
return ie(this, null, function* () {
|
|
6959
6959
|
return new Promise((n) => {
|
|
6960
6960
|
So(() => n());
|
|
6961
6961
|
});
|
|
@@ -7097,7 +7097,7 @@ const dS = (n, t) => {
|
|
|
7097
7097
|
c.add(M);
|
|
7098
7098
|
}
|
|
7099
7099
|
c.add(u);
|
|
7100
|
-
const p = () =>
|
|
7100
|
+
const p = () => ie(void 0, null, function* () {
|
|
7101
7101
|
var _, q, ee, K, se;
|
|
7102
7102
|
if (s || !((q = (_ = n.work) == null ? void 0 : _.model) != null && q.file))
|
|
7103
7103
|
return;
|
|
@@ -7106,8 +7106,8 @@ const dS = (n, t) => {
|
|
|
7106
7106
|
textureArray: (ee = n.work.model) == null ? void 0 : ee.textures,
|
|
7107
7107
|
textureBaseUri: (K = n.work.model) == null ? void 0 : K.textureBase,
|
|
7108
7108
|
fetcher: (se = l.fetcher) != null ? se : void 0
|
|
7109
|
-
}).then((
|
|
7110
|
-
const le =
|
|
7109
|
+
}).then((te) => {
|
|
7110
|
+
const le = te.scene;
|
|
7111
7111
|
return le.rotateX(-Math.PI / 2), le;
|
|
7112
7112
|
});
|
|
7113
7113
|
const M = Ns(u), S = new P.Box3();
|
|
@@ -8742,7 +8742,7 @@ const pS = (n) => new Lw(n), gS = {
|
|
|
8742
8742
|
};
|
|
8743
8743
|
var xs = /* @__PURE__ */ ((n) => (n[n.FLOOR = 1] = "FLOOR", n[n.CEILING = 2] = "CEILING", n[n.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", n))(xs || {});
|
|
8744
8744
|
function js(n) {
|
|
8745
|
-
return
|
|
8745
|
+
return ie(this, null, function* () {
|
|
8746
8746
|
try {
|
|
8747
8747
|
return [null, yield n];
|
|
8748
8748
|
} catch (t) {
|
|
@@ -9577,14 +9577,14 @@ function o2(n, t, e) {
|
|
|
9577
9577
|
};
|
|
9578
9578
|
}
|
|
9579
9579
|
const N = z.roomLabel, _ = N.positionInImage.x * 100 + "%", q = N.positionInImage.y * 100 + "%";
|
|
9580
|
-
let ee = 0, K = 0, se = 0,
|
|
9580
|
+
let ee = 0, K = 0, se = 0, te = 0, le = !1;
|
|
9581
9581
|
V.subscribe(function(Le) {
|
|
9582
9582
|
e(27, le = !!Le && Le.id === z.id);
|
|
9583
9583
|
});
|
|
9584
9584
|
const Se = (he) => {
|
|
9585
9585
|
e(8, se = he.detail);
|
|
9586
9586
|
}, ue = (he) => {
|
|
9587
|
-
e(9,
|
|
9587
|
+
e(9, te = he.detail);
|
|
9588
9588
|
}, Te = (he) => {
|
|
9589
9589
|
e(6, ee = he.detail);
|
|
9590
9590
|
}, fe = (he) => {
|
|
@@ -9599,7 +9599,7 @@ function o2(n, t, e) {
|
|
|
9599
9599
|
48 && e(18, s = I == null ? void 0 : I(z)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
9600
9600
|
8388624 && e(17, o = z.size ? b(z.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
9601
9601
|
16777232 && e(16, r = z != null && z.dimension ? C((he = z.dimension) == null ? void 0 : he.width, (Le = z.dimension) == null ? void 0 : Le.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
9602
|
-
768 && e(34, a = { width: se, height:
|
|
9602
|
+
768 && e(34, a = { width: se, height: te }), n.$$.dirty[0] & /*room*/
|
|
9603
9603
|
16 | n.$$.dirty[1] & /*labelElementSize*/
|
|
9604
9604
|
8 && e(33, l = a ? T(z, a) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
|
|
9605
9605
|
35651584 | n.$$.dirty[1] & /*isLabelInRoom*/
|
|
@@ -9628,7 +9628,7 @@ function o2(n, t, e) {
|
|
|
9628
9628
|
ee,
|
|
9629
9629
|
K,
|
|
9630
9630
|
se,
|
|
9631
|
-
|
|
9631
|
+
te,
|
|
9632
9632
|
w,
|
|
9633
9633
|
A,
|
|
9634
9634
|
v,
|
|
@@ -12638,9 +12638,9 @@ let tu = class extends Ee {
|
|
|
12638
12638
|
};
|
|
12639
12639
|
const v3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
|
|
12640
12640
|
function A3(n) {
|
|
12641
|
-
return
|
|
12641
|
+
return ie(this, null, function* () {
|
|
12642
12642
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(s) {
|
|
12643
|
-
return
|
|
12643
|
+
return ie(this, null, function* () {
|
|
12644
12644
|
const o = {
|
|
12645
12645
|
index: s.index,
|
|
12646
12646
|
url: s.url,
|
|
@@ -12701,7 +12701,7 @@ function P3(n) {
|
|
|
12701
12701
|
};
|
|
12702
12702
|
}
|
|
12703
12703
|
function rs(n) {
|
|
12704
|
-
return
|
|
12704
|
+
return ie(this, null, function* () {
|
|
12705
12705
|
const t = yield A3(n.outlines), e = n.computed_data.bounding, i = n.computed_data.floor_datas.map(y3), s = n.computed_data.entrance ? P3(n.computed_data.entrance) : null;
|
|
12706
12706
|
return {
|
|
12707
12707
|
outlines: t,
|
|
@@ -12748,7 +12748,7 @@ let us = class {
|
|
|
12748
12748
|
/**
|
|
12749
12749
|
* @realsee/dnalogel 版本号
|
|
12750
12750
|
*/
|
|
12751
|
-
d(this, "VERSION", "3.69.5-dev.
|
|
12751
|
+
d(this, "VERSION", "3.69.5-dev.6");
|
|
12752
12752
|
d(this, "NAME");
|
|
12753
12753
|
d(this, "five");
|
|
12754
12754
|
d(this, "workUtil");
|
|
@@ -12796,7 +12796,7 @@ function Jd(n) {
|
|
|
12796
12796
|
return M3(n) && !!n.isVector3;
|
|
12797
12797
|
}
|
|
12798
12798
|
function su(n, t) {
|
|
12799
|
-
return
|
|
12799
|
+
return ie(this, null, function* () {
|
|
12800
12800
|
const [e] = yield js(n.changeMode(...t));
|
|
12801
12801
|
if (e)
|
|
12802
12802
|
throw new Error("change mode canceled");
|
|
@@ -12826,7 +12826,7 @@ function x3(n, t) {
|
|
|
12826
12826
|
return !(!Ss(e, r, 2) || !Ss(i, a, 2) || o !== void 0 && o.distanceTo(l) > 0.01 || !Ss(s, c, 2));
|
|
12827
12827
|
}
|
|
12828
12828
|
function U0(n, t, e = !0) {
|
|
12829
|
-
return
|
|
12829
|
+
return ie(this, null, function* () {
|
|
12830
12830
|
if (x3(n, t) === !0)
|
|
12831
12831
|
return;
|
|
12832
12832
|
const s = n.getCurrentState();
|
|
@@ -12926,14 +12926,14 @@ let T3 = class extends kn {
|
|
|
12926
12926
|
* @param opts.isAutoShow 是否是自动展示
|
|
12927
12927
|
* @param opts.userAction 是否是用户行为
|
|
12928
12928
|
*/
|
|
12929
|
-
d(this, "show", (...i) =>
|
|
12929
|
+
d(this, "show", (...i) => ie(this, [...i], function* (e = {}) {
|
|
12930
12930
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
12931
12931
|
return;
|
|
12932
12932
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
12933
12933
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
12934
12934
|
}));
|
|
12935
12935
|
/** 隐藏户型图 */
|
|
12936
|
-
d(this, "hide", (...i) =>
|
|
12936
|
+
d(this, "hide", (...i) => ie(this, [...i], function* (e = {}) {
|
|
12937
12937
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
12938
12938
|
}));
|
|
12939
12939
|
/** 更新户型图大小 */
|
|
@@ -12958,7 +12958,7 @@ let T3 = class extends kn {
|
|
|
12958
12958
|
const { userAction: i } = e;
|
|
12959
12959
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
12960
12960
|
});
|
|
12961
|
-
d(this, "_show", (e) =>
|
|
12961
|
+
d(this, "_show", (e) => ie(this, null, function* () {
|
|
12962
12962
|
var r;
|
|
12963
12963
|
if (!this.state.enabled)
|
|
12964
12964
|
return;
|
|
@@ -12974,7 +12974,7 @@ let T3 = class extends kn {
|
|
|
12974
12974
|
immediately: !1,
|
|
12975
12975
|
isAutoShow: !1,
|
|
12976
12976
|
userAction: !0
|
|
12977
|
-
}, s = B(B({}, i), e), o = () =>
|
|
12977
|
+
}, s = B(B({}, i), e), o = () => ie(this, null, function* () {
|
|
12978
12978
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
12979
12979
|
let a = !1, l;
|
|
12980
12980
|
this.showRejection = (u) => {
|
|
@@ -13114,7 +13114,7 @@ let T3 = class extends kn {
|
|
|
13114
13114
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
|
|
13115
13115
|
}
|
|
13116
13116
|
load(e, i, s = !0) {
|
|
13117
|
-
return
|
|
13117
|
+
return ie(this, null, function* () {
|
|
13118
13118
|
function o(h) {
|
|
13119
13119
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
13120
13120
|
}
|
|
@@ -13156,7 +13156,7 @@ let T3 = class extends kn {
|
|
|
13156
13156
|
this.updateState({ config: e }, i), this.render();
|
|
13157
13157
|
}
|
|
13158
13158
|
formatData(e) {
|
|
13159
|
-
return
|
|
13159
|
+
return ie(this, null, function* () {
|
|
13160
13160
|
return yield rs(e.data);
|
|
13161
13161
|
});
|
|
13162
13162
|
}
|
|
@@ -15937,14 +15937,14 @@ let j3 = class extends kn {
|
|
|
15937
15937
|
* @param opts.isAutoShow 是否是自动展示
|
|
15938
15938
|
* @param opts.userAction 是否是用户行为
|
|
15939
15939
|
*/
|
|
15940
|
-
d(this, "show", (...i) =>
|
|
15940
|
+
d(this, "show", (...i) => ie(this, [...i], function* (e = {}) {
|
|
15941
15941
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
15942
15942
|
return;
|
|
15943
15943
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
15944
15944
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
15945
15945
|
}));
|
|
15946
15946
|
/** 隐藏户型图 */
|
|
15947
|
-
d(this, "hide", (...i) =>
|
|
15947
|
+
d(this, "hide", (...i) => ie(this, [...i], function* (e = {}) {
|
|
15948
15948
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
15949
15949
|
}));
|
|
15950
15950
|
/** 更新户型图大小 */
|
|
@@ -15969,7 +15969,7 @@ let j3 = class extends kn {
|
|
|
15969
15969
|
const { userAction: i } = e;
|
|
15970
15970
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
15971
15971
|
});
|
|
15972
|
-
d(this, "_show", (e) =>
|
|
15972
|
+
d(this, "_show", (e) => ie(this, null, function* () {
|
|
15973
15973
|
var r;
|
|
15974
15974
|
if (!this.state.enabled)
|
|
15975
15975
|
return;
|
|
@@ -15985,7 +15985,7 @@ let j3 = class extends kn {
|
|
|
15985
15985
|
immediately: !1,
|
|
15986
15986
|
isAutoShow: !1,
|
|
15987
15987
|
userAction: !0
|
|
15988
|
-
}, s = B(B({}, i), e), o = () =>
|
|
15988
|
+
}, s = B(B({}, i), e), o = () => ie(this, null, function* () {
|
|
15989
15989
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
15990
15990
|
let a = !1, l;
|
|
15991
15991
|
this.showRejection = (u) => {
|
|
@@ -16120,7 +16120,7 @@ let j3 = class extends kn {
|
|
|
16120
16120
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), yi(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16121
16121
|
}
|
|
16122
16122
|
load(e, i, s = !0) {
|
|
16123
|
-
return
|
|
16123
|
+
return ie(this, null, function* () {
|
|
16124
16124
|
function o(h) {
|
|
16125
16125
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
16126
16126
|
}
|
|
@@ -16189,7 +16189,7 @@ let j3 = class extends kn {
|
|
|
16189
16189
|
this.container.style.left = o * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
16190
16190
|
}
|
|
16191
16191
|
formatData(e) {
|
|
16192
|
-
return
|
|
16192
|
+
return ie(this, null, function* () {
|
|
16193
16193
|
return yield rs(e.data);
|
|
16194
16194
|
});
|
|
16195
16195
|
}
|
|
@@ -16371,7 +16371,7 @@ let R3 = class extends kn {
|
|
|
16371
16371
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16372
16372
|
}
|
|
16373
16373
|
load(e, i, s = !0) {
|
|
16374
|
-
return
|
|
16374
|
+
return ie(this, null, function* () {
|
|
16375
16375
|
function o(h) {
|
|
16376
16376
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
16377
16377
|
}
|
|
@@ -16396,7 +16396,7 @@ let R3 = class extends kn {
|
|
|
16396
16396
|
return e.appendChild(this.container), this.render(), this;
|
|
16397
16397
|
}
|
|
16398
16398
|
show() {
|
|
16399
|
-
return
|
|
16399
|
+
return ie(this, arguments, function* (e = {}) {
|
|
16400
16400
|
if (this.state.visible)
|
|
16401
16401
|
return;
|
|
16402
16402
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -16404,7 +16404,7 @@ let R3 = class extends kn {
|
|
|
16404
16404
|
});
|
|
16405
16405
|
}
|
|
16406
16406
|
hide() {
|
|
16407
|
-
return
|
|
16407
|
+
return ie(this, arguments, function* (e = {}) {
|
|
16408
16408
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
16409
16409
|
return;
|
|
16410
16410
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -16439,12 +16439,12 @@ let R3 = class extends kn {
|
|
|
16439
16439
|
this.updateState({ config: e }, i), this.render();
|
|
16440
16440
|
}
|
|
16441
16441
|
formatData(e) {
|
|
16442
|
-
return
|
|
16442
|
+
return ie(this, null, function* () {
|
|
16443
16443
|
return yield rs(e.data);
|
|
16444
16444
|
});
|
|
16445
16445
|
}
|
|
16446
16446
|
_show(e) {
|
|
16447
|
-
return
|
|
16447
|
+
return ie(this, null, function* () {
|
|
16448
16448
|
if (!this.state.enabled)
|
|
16449
16449
|
return;
|
|
16450
16450
|
this.isHiddenByHideFunc = !1;
|
|
@@ -16455,7 +16455,7 @@ let R3 = class extends kn {
|
|
|
16455
16455
|
});
|
|
16456
16456
|
}
|
|
16457
16457
|
_hide(e) {
|
|
16458
|
-
return
|
|
16458
|
+
return ie(this, null, function* () {
|
|
16459
16459
|
if (!this.state.enabled)
|
|
16460
16460
|
return;
|
|
16461
16461
|
const { userAction: i } = e;
|
|
@@ -17326,7 +17326,7 @@ let i5 = class extends kn {
|
|
|
17326
17326
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
|
|
17327
17327
|
}
|
|
17328
17328
|
load(e, i, s = !0) {
|
|
17329
|
-
return
|
|
17329
|
+
return ie(this, null, function* () {
|
|
17330
17330
|
function o(c) {
|
|
17331
17331
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
17332
17332
|
}
|
|
@@ -17335,7 +17335,7 @@ let i5 = class extends kn {
|
|
|
17335
17335
|
});
|
|
17336
17336
|
}
|
|
17337
17337
|
show() {
|
|
17338
|
-
return
|
|
17338
|
+
return ie(this, arguments, function* (e = {}) {
|
|
17339
17339
|
if (this.state.visible)
|
|
17340
17340
|
return;
|
|
17341
17341
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -17343,7 +17343,7 @@ let i5 = class extends kn {
|
|
|
17343
17343
|
});
|
|
17344
17344
|
}
|
|
17345
17345
|
hide() {
|
|
17346
|
-
return
|
|
17346
|
+
return ie(this, arguments, function* (e = {}) {
|
|
17347
17347
|
if (!this.state.visible)
|
|
17348
17348
|
return;
|
|
17349
17349
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -17385,7 +17385,7 @@ let i5 = class extends kn {
|
|
|
17385
17385
|
this.data && (this.extraObjects = C3(e, this.five, this.data), this.render());
|
|
17386
17386
|
}
|
|
17387
17387
|
formatData(e) {
|
|
17388
|
-
return
|
|
17388
|
+
return ie(this, null, function* () {
|
|
17389
17389
|
return yield rs(e.data);
|
|
17390
17390
|
});
|
|
17391
17391
|
}
|
|
@@ -18433,8 +18433,8 @@ var J0 = function() {
|
|
|
18433
18433
|
createCamera: function(b) {
|
|
18434
18434
|
var C, I;
|
|
18435
18435
|
if (b.children.forEach(function(se) {
|
|
18436
|
-
var
|
|
18437
|
-
|
|
18436
|
+
var te = n.Objects.NodeAttribute[se.ID];
|
|
18437
|
+
te !== void 0 && (I = te);
|
|
18438
18438
|
}), I === void 0)
|
|
18439
18439
|
C = new Ao();
|
|
18440
18440
|
else {
|
|
@@ -18659,7 +18659,7 @@ var J0 = function() {
|
|
|
18659
18659
|
if (N.materialIndex.forEach(function(Se, ue) {
|
|
18660
18660
|
Se !== K && (S.addGroup(se, ue - se, K), K = Se, se = ue);
|
|
18661
18661
|
}), S.groups.length > 0) {
|
|
18662
|
-
var
|
|
18662
|
+
var te = S.groups[S.groups.length - 1], le = te.start + te.count;
|
|
18663
18663
|
le !== N.materialIndex.length && S.addGroup(le, N.materialIndex.length - le, K);
|
|
18664
18664
|
}
|
|
18665
18665
|
S.groups.length === 0 && S.addGroup(0, N.materialIndex.length, N.materialIndex[0]);
|
|
@@ -18692,16 +18692,16 @@ var J0 = function() {
|
|
|
18692
18692
|
vertexWeights: [],
|
|
18693
18693
|
weightsIndices: []
|
|
18694
18694
|
}, I = 0, M = 0, S = !1, T = [], N = [], _ = [], q = [], ee = [], K = [], se = this;
|
|
18695
|
-
return b.vertexIndices.forEach(function(
|
|
18695
|
+
return b.vertexIndices.forEach(function(te, le) {
|
|
18696
18696
|
var Se = !1;
|
|
18697
|
-
|
|
18697
|
+
te < 0 && (te = te ^ -1, Se = !0);
|
|
18698
18698
|
var ue = [], Te = [];
|
|
18699
|
-
if (T.push(
|
|
18700
|
-
var fe = v(le, I,
|
|
18699
|
+
if (T.push(te * 3, te * 3 + 1, te * 3 + 2), b.color) {
|
|
18700
|
+
var fe = v(le, I, te, b.color);
|
|
18701
18701
|
_.push(fe[0], fe[1], fe[2]);
|
|
18702
18702
|
}
|
|
18703
18703
|
if (b.skeleton) {
|
|
18704
|
-
if (b.weightTable[
|
|
18704
|
+
if (b.weightTable[te] !== void 0 && b.weightTable[te].forEach(function(Re) {
|
|
18705
18705
|
Te.push(Re.weight), ue.push(Re.id);
|
|
18706
18706
|
}), Te.length > 4) {
|
|
18707
18707
|
S || (console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."), S = !0);
|
|
@@ -18723,13 +18723,13 @@ var J0 = function() {
|
|
|
18723
18723
|
ee.push(Te[$]), K.push(ue[$]);
|
|
18724
18724
|
}
|
|
18725
18725
|
if (b.normal) {
|
|
18726
|
-
var fe = v(le, I,
|
|
18726
|
+
var fe = v(le, I, te, b.normal);
|
|
18727
18727
|
N.push(fe[0], fe[1], fe[2]);
|
|
18728
18728
|
}
|
|
18729
18729
|
if (b.material && b.material.mappingType !== "AllSame")
|
|
18730
|
-
var Me = v(le, I,
|
|
18730
|
+
var Me = v(le, I, te, b.material)[0];
|
|
18731
18731
|
b.uv && b.uv.forEach(function(Re, ve) {
|
|
18732
|
-
var Be = v(le, I,
|
|
18732
|
+
var Be = v(le, I, te, Re);
|
|
18733
18733
|
q[ve] === void 0 && (q[ve] = []), q[ve].push(Be[0]), q[ve].push(Be[1]);
|
|
18734
18734
|
}), M++, Se && (se.genFace(
|
|
18735
18735
|
C,
|
|
@@ -18748,8 +18748,8 @@ var J0 = function() {
|
|
|
18748
18748
|
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
|
|
18749
18749
|
genFace: function(b, C, I, M, S, T, N, _, q, ee) {
|
|
18750
18750
|
for (var K = 2; K < ee; K++)
|
|
18751
|
-
b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(M), b.materialIndex.push(M), b.materialIndex.push(M)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se,
|
|
18752
|
-
b.uvs[
|
|
18751
|
+
b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(M), b.materialIndex.push(M), b.materialIndex.push(M)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se, te) {
|
|
18752
|
+
b.uvs[te] === void 0 && (b.uvs[te] = []), b.uvs[te].push(N[te][0]), b.uvs[te].push(N[te][1]), b.uvs[te].push(N[te][(K - 1) * 2]), b.uvs[te].push(N[te][(K - 1) * 2 + 1]), b.uvs[te].push(N[te][K * 2]), b.uvs[te].push(N[te][K * 2 + 1]);
|
|
18753
18753
|
});
|
|
18754
18754
|
},
|
|
18755
18755
|
addMorphTargets: function(b, C, I, M) {
|
|
@@ -18773,10 +18773,10 @@ var J0 = function() {
|
|
|
18773
18773
|
var se = _[K] * 3;
|
|
18774
18774
|
ee[se] = N[K * 3], ee[se + 1] = N[K * 3 + 1], ee[se + 2] = N[K * 3 + 2];
|
|
18775
18775
|
}
|
|
18776
|
-
var
|
|
18776
|
+
var te = {
|
|
18777
18777
|
vertexIndices: T,
|
|
18778
18778
|
vertexPositions: ee
|
|
18779
|
-
}, le = this.genBuffers(
|
|
18779
|
+
}, le = this.genBuffers(te), Se = new io(le.vertex, 3);
|
|
18780
18780
|
Se.name = S || I.attrName, Se.applyMatrix4(M), b.morphAttributes.position.push(Se);
|
|
18781
18781
|
},
|
|
18782
18782
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
@@ -18852,12 +18852,12 @@ var J0 = function() {
|
|
|
18852
18852
|
for (var N = 0; N < I; ++N)
|
|
18853
18853
|
S.push(S[N]);
|
|
18854
18854
|
}
|
|
18855
|
-
var K = new Rs(I, M, S, q, ee), se = K.getPoints(S.length * 7),
|
|
18855
|
+
var K = new Rs(I, M, S, q, ee), se = K.getPoints(S.length * 7), te = new Float32Array(se.length * 3);
|
|
18856
18856
|
se.forEach(function(Se, ue) {
|
|
18857
|
-
Se.toArray(
|
|
18857
|
+
Se.toArray(te, ue * 3);
|
|
18858
18858
|
});
|
|
18859
18859
|
var le = new la();
|
|
18860
|
-
return le.setAttribute("position", new nA(
|
|
18860
|
+
return le.setAttribute("position", new nA(te, 3)), le;
|
|
18861
18861
|
}
|
|
18862
18862
|
};
|
|
18863
18863
|
function r() {
|
|
@@ -18940,7 +18940,7 @@ var J0 = function() {
|
|
|
18940
18940
|
console.warn("THREE.FBXLoader: Encountered a unused curve.", _);
|
|
18941
18941
|
return;
|
|
18942
18942
|
}
|
|
18943
|
-
var
|
|
18943
|
+
var te = {
|
|
18944
18944
|
modelName: se.attrName ? aa.sanitizeNodeName(se.attrName) : "",
|
|
18945
18945
|
ID: se.id,
|
|
18946
18946
|
initialPosition: [0, 0, 0],
|
|
@@ -18948,8 +18948,8 @@ var J0 = function() {
|
|
|
18948
18948
|
initialScale: [1, 1, 1]
|
|
18949
18949
|
};
|
|
18950
18950
|
e.traverse(function(Te) {
|
|
18951
|
-
Te.ID === se.id && (
|
|
18952
|
-
}),
|
|
18951
|
+
Te.ID === se.id && (te.transform = Te.matrix, Te.userData.transformData && (te.eulerOrder = Te.userData.transformData.eulerOrder));
|
|
18952
|
+
}), te.transform || (te.transform = new nt()), "PreRotation" in se && (te.preRotation = se.PreRotation.value), "PostRotation" in se && (te.postRotation = se.PostRotation.value), S[q] = te;
|
|
18953
18953
|
}
|
|
18954
18954
|
}
|
|
18955
18955
|
S[q] && (S[q][ee.attr] = ee);
|
|
@@ -18957,11 +18957,11 @@ var J0 = function() {
|
|
|
18957
18957
|
if (S[q] === void 0) {
|
|
18958
18958
|
var le = t.get(_.ID).parents.filter(function(Le) {
|
|
18959
18959
|
return Le.relationship !== void 0;
|
|
18960
|
-
})[0].ID, Se = t.get(le).parents[0].ID, ue = t.get(Se).parents[0].ID, K = t.get(ue).parents[0].ID, se = n.Objects.Model[K],
|
|
18960
|
+
})[0].ID, Se = t.get(le).parents[0].ID, ue = t.get(Se).parents[0].ID, K = t.get(ue).parents[0].ID, se = n.Objects.Model[K], te = {
|
|
18961
18961
|
modelName: se.attrName ? aa.sanitizeNodeName(se.attrName) : "",
|
|
18962
18962
|
morphName: n.Objects.Deformer[le].attrName
|
|
18963
18963
|
};
|
|
18964
|
-
S[q] =
|
|
18964
|
+
S[q] = te;
|
|
18965
18965
|
}
|
|
18966
18966
|
S[q][ee.attr] = ee;
|
|
18967
18967
|
}
|
|
@@ -19076,9 +19076,9 @@ var J0 = function() {
|
|
|
19076
19076
|
for (var C = 1; C < b.values.length; C++) {
|
|
19077
19077
|
var I = b.values[C - 1], M = b.values[C] - I, S = Math.abs(M);
|
|
19078
19078
|
if (S >= 180) {
|
|
19079
|
-
for (var T = S / 180, N = M / T, _ = I + N, q = b.times[C - 1], ee = b.times[C] - q, K = ee / T, se = q + K,
|
|
19080
|
-
|
|
19081
|
-
b.times = V(b.times, C,
|
|
19079
|
+
for (var T = S / 180, N = M / T, _ = I + N, q = b.times[C - 1], ee = b.times[C] - q, K = ee / T, se = q + K, te = [], le = []; se < b.times[C]; )
|
|
19080
|
+
te.push(se), se += K, le.push(_), _ += N;
|
|
19081
|
+
b.times = V(b.times, C, te), b.values = V(b.values, C, le);
|
|
19082
19082
|
}
|
|
19083
19083
|
}
|
|
19084
19084
|
}
|
|
@@ -19210,8 +19210,8 @@ var J0 = function() {
|
|
|
19210
19210
|
_.push(this.parseProperty(b));
|
|
19211
19211
|
var ee = _.length > 0 ? _[0] : "", K = _.length > 1 ? _[1] : "", se = _.length > 2 ? _[2] : "";
|
|
19212
19212
|
for (I.singleProperty = S === 1 && b.getOffset() === M; M > b.getOffset(); ) {
|
|
19213
|
-
var
|
|
19214
|
-
|
|
19213
|
+
var te = this.parseNode(b, C);
|
|
19214
|
+
te !== null && this.parseSubNode(N, I, te);
|
|
19215
19215
|
}
|
|
19216
19216
|
return I.propertyList = _, typeof ee == "number" && (I.id = ee), K !== "" && (I.attrName = K), se !== "" && (I.attrType = se), N !== "" && (I.name = N), I;
|
|
19217
19217
|
},
|
|
@@ -19221,8 +19221,8 @@ var J0 = function() {
|
|
|
19221
19221
|
Array.isArray(M) ? (C[I.name] = I, I.a = M) : C[I.name] = M;
|
|
19222
19222
|
} else if (b === "Connections" && I.name === "C") {
|
|
19223
19223
|
var S = [];
|
|
19224
|
-
I.propertyList.forEach(function(se,
|
|
19225
|
-
|
|
19224
|
+
I.propertyList.forEach(function(se, te) {
|
|
19225
|
+
te !== 0 && S.push(se);
|
|
19226
19226
|
}), C.connections === void 0 && (C.connections = []), C.connections.push(S);
|
|
19227
19227
|
} else if (I.name === "Properties70") {
|
|
19228
19228
|
var T = Object.keys(I);
|
|
@@ -19459,7 +19459,7 @@ var J0 = function() {
|
|
|
19459
19459
|
}
|
|
19460
19460
|
var A = new Xn(), w = new Ae();
|
|
19461
19461
|
function E(b) {
|
|
19462
|
-
var C = new nt(), I = new nt(), M = new nt(), S = new nt(), T = new nt(), N = new nt(), _ = new nt(), q = new nt(), ee = new nt(), K = new nt(), se = new nt(),
|
|
19462
|
+
var C = new nt(), I = new nt(), M = new nt(), S = new nt(), T = new nt(), N = new nt(), _ = new nt(), q = new nt(), ee = new nt(), K = new nt(), se = new nt(), te = b.inheritType ? b.inheritType : 0;
|
|
19463
19463
|
if (b.translation && C.setPosition(w.fromArray(b.translation)), b.preRotation) {
|
|
19464
19464
|
var le = b.preRotation.map(Yi.degToRad);
|
|
19465
19465
|
le.push(b.eulerOrder), I.makeRotationFromEuler(A.fromArray(le));
|
|
@@ -19480,9 +19480,9 @@ var J0 = function() {
|
|
|
19480
19480
|
var fe = new nt();
|
|
19481
19481
|
fe.getInverse(ue).multiply(K);
|
|
19482
19482
|
var he = new nt();
|
|
19483
|
-
if (
|
|
19483
|
+
if (te === 0)
|
|
19484
19484
|
he.copy(ue).multiply(Se).multiply(fe).multiply(T);
|
|
19485
|
-
else if (
|
|
19485
|
+
else if (te === 1)
|
|
19486
19486
|
he.copy(ue).multiply(fe).multiply(Se).multiply(T);
|
|
19487
19487
|
else {
|
|
19488
19488
|
var Le = new nt().getInverse(T), $ = new nt().multiply(fe).multiply(Le);
|
|
@@ -19540,7 +19540,7 @@ const LS = (n, t) => {
|
|
|
19540
19540
|
const e = (t == null ? void 0 : t.fbx_url) || Vh, i = (g = t == null ? void 0 : t.north_rad) != null ? g : void 0, s = {};
|
|
19541
19541
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
19542
19542
|
n.on("modelLoaded", p);
|
|
19543
|
-
const c = (v) =>
|
|
19543
|
+
const c = (v) => ie(void 0, null, function* () {
|
|
19544
19544
|
var k;
|
|
19545
19545
|
const A = (v == null ? void 0 : v.fbx_url) || e;
|
|
19546
19546
|
if (l = (k = v == null ? void 0 : v.north_rad) != null ? k : i, typeof l != "number")
|
|
@@ -19593,7 +19593,7 @@ function a5(n, t) {
|
|
|
19593
19593
|
}
|
|
19594
19594
|
const l5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), zS = (n, t) => {
|
|
19595
19595
|
var g, v, A;
|
|
19596
|
-
const e = {}, i = (g = t == null ? void 0 : t.animationEnabled) != null ? g : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || Fh, a = [], l = (w) =>
|
|
19596
|
+
const e = {}, i = (g = t == null ? void 0 : t.animationEnabled) != null ? g : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || Fh, a = [], l = (w) => ie(void 0, null, function* () {
|
|
19597
19597
|
var b, C, I, M, S, T, N, _;
|
|
19598
19598
|
const E = (b = w == null ? void 0 : w.position) != null ? b : s;
|
|
19599
19599
|
if (!E)
|
|
@@ -19684,7 +19684,7 @@ const Uc = (n, t, e) => {
|
|
|
19684
19684
|
let o = mf(n), r = mf(t);
|
|
19685
19685
|
return e === gn.Anticlockwise && o < r && (o += s), e === gn.Clockwise && r < o && (r += s), e === gn.Loop && r - o > i ? Uc(o, r, gn.Anticlockwise) : e === gn.Loop && o - r > i ? Uc(o, r, gn.Clockwise) : { from: o, to: r };
|
|
19686
19686
|
}, OS = (n) => {
|
|
19687
|
-
const t = {}, e = (l, c, ...h) =>
|
|
19687
|
+
const t = {}, e = (l, c, ...h) => ie(void 0, [l, c, ...h], function* (o, r, a = { preload: !0 }) {
|
|
19688
19688
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((u, f) => {
|
|
19689
19689
|
const m = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
|
|
19690
19690
|
m !== void 0 ? n.moveToPano(m, B({
|
|
@@ -19708,7 +19708,7 @@ const Uc = (n, t, e) => {
|
|
|
19708
19708
|
};
|
|
19709
19709
|
return {
|
|
19710
19710
|
move: e,
|
|
19711
|
-
rotate: (l, c, ...h) =>
|
|
19711
|
+
rotate: (l, c, ...h) => ie(void 0, [l, c, ...h], function* (o, r, a = {}) {
|
|
19712
19712
|
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), n.currentMode !== Vt.Mode.Panorama && (yield n.changeMode(Vt.Mode.Panorama)), o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (a.preload && (yield n.preloadPano(o.panoIndex)), yield new Promise((m, p) => {
|
|
19713
19713
|
if (!o.panoIndex) {
|
|
19714
19714
|
m(!0);
|
|
@@ -19940,13 +19940,13 @@ const g5 = `<style type="text/css">
|
|
|
19940
19940
|
b.forEach((K) => {
|
|
19941
19941
|
if (!w.observers[K])
|
|
19942
19942
|
return;
|
|
19943
|
-
const { standingPosition: se } = w.observers[K],
|
|
19943
|
+
const { standingPosition: se } = w.observers[K], te = {
|
|
19944
19944
|
index: K,
|
|
19945
19945
|
x: se.x,
|
|
19946
19946
|
y: se.y,
|
|
19947
19947
|
z: se.z
|
|
19948
|
-
}, le = m5({ x: z, z: V },
|
|
19949
|
-
I ? le < M && Math.abs(
|
|
19948
|
+
}, le = m5({ x: z, z: V }, te);
|
|
19949
|
+
I ? le < M && Math.abs(te.y - I) < 0.3 && (M = le, S = te) : le < M && (M = le, S = te);
|
|
19950
19950
|
});
|
|
19951
19951
|
const T = new Ae(z, S.y, V);
|
|
19952
19952
|
Object.assign(T, { observers: b });
|
|
@@ -19971,7 +19971,7 @@ const g5 = `<style type="text/css">
|
|
|
19971
19971
|
}
|
|
19972
19972
|
}
|
|
19973
19973
|
return e.loaded = !0, !0;
|
|
19974
|
-
}, l = (g, v, A) =>
|
|
19974
|
+
}, l = (g, v, A) => ie(void 0, null, function* () {
|
|
19975
19975
|
const w = g || t.roomInfo, E = v || t.roomRules;
|
|
19976
19976
|
if (!w || !E)
|
|
19977
19977
|
throw new Error("标尺数据依赖不齐全!");
|
|
@@ -20068,10 +20068,10 @@ const g5 = `<style type="text/css">
|
|
|
20068
20068
|
I.style.display = "none";
|
|
20069
20069
|
continue;
|
|
20070
20070
|
}
|
|
20071
|
-
const se = M.clone().project(A),
|
|
20071
|
+
const se = M.clone().project(A), te = (se.x + 1) / 2 * D, le = (-se.y + 1) / 2 * j, Se = S.clone().project(A), ue = (Se.x + 1) / 2 * D, Te = (-Se.y + 1) / 2 * j, fe = Math.sqrt(Math.pow(ue - te, 2) + Math.pow(Te - le, 2));
|
|
20072
20072
|
let he = fe, Le = 50;
|
|
20073
20073
|
const $ = c(
|
|
20074
|
-
{ x: ~~
|
|
20074
|
+
{ x: ~~te, y: ~~le },
|
|
20075
20075
|
{
|
|
20076
20076
|
x: ~~ue,
|
|
20077
20077
|
y: ~~Te
|
|
@@ -20079,15 +20079,15 @@ const g5 = `<style type="text/css">
|
|
|
20079
20079
|
D,
|
|
20080
20080
|
j
|
|
20081
20081
|
);
|
|
20082
|
-
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x -
|
|
20082
|
+
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x - te, 2) + Math.pow($[0].y - le, 2)), Le = he / fe * 50) : z === S && (he = Math.sqrt(Math.pow($[0].x - ue, 2) + Math.pow($[0].y - Te, 2)), Le = 100 - he / fe * 50)), $ && $.length === 2) {
|
|
20083
20083
|
const de = {
|
|
20084
20084
|
x: ($[0].x + $[1].x) / 2,
|
|
20085
20085
|
y: ($[0].y + $[1].y) / 2
|
|
20086
20086
|
};
|
|
20087
|
-
Le = Math.sqrt(Math.pow(de.x -
|
|
20087
|
+
Le = Math.sqrt(Math.pow(de.x - te, 2) + Math.pow(de.y - le, 2)) / fe * 100;
|
|
20088
20088
|
}
|
|
20089
|
-
const Re = (Math.PI / 2 - Math.atan2(ue -
|
|
20090
|
-
Be >= fe || Be / 2 >= Le / 100 * fe || Be / 2 >= (1 - Le / 100) * fe ? T.style.display = "none" : (T.style.display = "block", T.style.width = fe + "px", T.style.left =
|
|
20089
|
+
const Re = (Math.PI / 2 - Math.atan2(ue - te, le - Te)) / Math.PI * 180, ve = T.querySelector(".PanoRulerPlugin-rule-label"), Be = ve.children[0].clientWidth;
|
|
20090
|
+
Be >= fe || Be / 2 >= Le / 100 * fe || Be / 2 >= (1 - Le / 100) * fe ? T.style.display = "none" : (T.style.display = "block", T.style.width = fe + "px", T.style.left = te + "px", T.style.top = le + "px", T.style.transform = `rotate(${-Re}deg)`, ve.style.left = `${Le}%`);
|
|
20091
20091
|
}
|
|
20092
20092
|
}, u = () => e1(h), f = () => {
|
|
20093
20093
|
var g, v;
|
|
@@ -20433,9 +20433,9 @@ function E5(n, t, e) {
|
|
|
20433
20433
|
const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = E.clone().sub(D).normalize().angleTo(j), V = k.clone().sub(D).normalize().angleTo(j), b = E.distanceTo(k), I = k.clone().sub(k.clone().sub(E).divide(new Ae(2, 2, 2))).distanceTo(D), { startLeft: M, startTop: S, endLeft: T, endTop: N, distance: _ } = h(E, k), ee = -((Math.PI / 2 - Math.atan2(T - M, S - N)) / Math.PI) * 180;
|
|
20434
20434
|
let K = !0;
|
|
20435
20435
|
L || (K = !1), !qt(E, L) && !qt(k, L) && (K = !1), b < 0.3 && (K = !1), z > Math.PI / 2 && (K = !1), V > Math.PI / 2 && (K = !1), I / b > 8 && (K = !1);
|
|
20436
|
-
let se = 50,
|
|
20436
|
+
let se = 50, te = _;
|
|
20437
20437
|
const le = c({ x: ~~M, y: ~~S }, { x: ~~T, y: ~~N });
|
|
20438
|
-
if (le && le.length === 1 && (qt(E, L) ? (
|
|
20438
|
+
if (le && le.length === 1 && (qt(E, L) ? (te = Math.sqrt(Math.pow(le[0].x - M, 2) + Math.pow(le[0].y - S, 2)), se = te / _ * 50) : qt(k, L) && (te = Math.sqrt(Math.pow(le[0].x - T, 2) + Math.pow(le[0].y - N, 2)), se = 100 - te / _ * 50)), le && le.length === 2) {
|
|
20439
20439
|
const Se = {
|
|
20440
20440
|
x: (le[0].x + le[1].x) / 2,
|
|
20441
20441
|
y: (le[0].y + le[1].y) / 2
|
|
@@ -20461,9 +20461,9 @@ function E5(n, t, e) {
|
|
|
20461
20461
|
const M = C.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = I.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
|
|
20462
20462
|
return M - S;
|
|
20463
20463
|
}), b = k.lines.map((C) => {
|
|
20464
|
-
var
|
|
20464
|
+
var te, le;
|
|
20465
20465
|
const I = C.start, M = C.end, { startLeft: S, startTop: T, distance: N, deg: _, visible: q, labelOffset: ee, ruleLength: K } = u(new Ae(I[0], -I[1], -I[2]), new Ae(M[0], -M[1], -M[2]), V), se = [];
|
|
20466
|
-
return C.children && ((
|
|
20466
|
+
return C.children && ((te = C.children) == null ? void 0 : te.length) > 0 && ((le = C.children) == null || le.forEach((Se) => {
|
|
20467
20467
|
const ue = Se.start, Te = Se.end, { distance: fe } = h(new Ae(ue[0], -ue[1], -ue[2]), new Ae(Te[0], -Te[1], -Te[2]));
|
|
20468
20468
|
se.push({ width: fe, state: Se.state });
|
|
20469
20469
|
})), {
|
|
@@ -20511,13 +20511,13 @@ let k5 = class {
|
|
|
20511
20511
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
20512
20512
|
"style",
|
|
20513
20513
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
20514
|
-
), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () =>
|
|
20514
|
+
), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => ie(this, null, function* () {
|
|
20515
20515
|
var o, r;
|
|
20516
20516
|
(r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
|
|
20517
20517
|
})), this.five.once("dispose", () => this.dispose());
|
|
20518
20518
|
}
|
|
20519
20519
|
load(t) {
|
|
20520
|
-
return
|
|
20520
|
+
return ie(this, null, function* () {
|
|
20521
20521
|
if (!this.five.work)
|
|
20522
20522
|
return;
|
|
20523
20523
|
const e = t.data;
|
|
@@ -20533,7 +20533,7 @@ let k5 = class {
|
|
|
20533
20533
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
20534
20534
|
}
|
|
20535
20535
|
render() {
|
|
20536
|
-
return
|
|
20536
|
+
return ie(this, null, function* () {
|
|
20537
20537
|
var t;
|
|
20538
20538
|
if (this.state.enabled) {
|
|
20539
20539
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -20578,14 +20578,14 @@ function S5() {
|
|
|
20578
20578
|
}
|
|
20579
20579
|
const D5 = new P.TextureLoader();
|
|
20580
20580
|
function Ds(n) {
|
|
20581
|
-
return
|
|
20581
|
+
return ie(this, null, function* () {
|
|
20582
20582
|
return new Promise((t, e) => {
|
|
20583
20583
|
D5.load(n, t, void 0, e);
|
|
20584
20584
|
}).then((t) => (t.encoding = P.sRGBEncoding, t.minFilter = P.NearestFilter, t.magFilter = P.NearestFilter, t));
|
|
20585
20585
|
});
|
|
20586
20586
|
}
|
|
20587
20587
|
function t1(n) {
|
|
20588
|
-
return
|
|
20588
|
+
return ie(this, null, function* () {
|
|
20589
20589
|
return Ds(n).then((t) => {
|
|
20590
20590
|
const e = n.startsWith("data:") ? n.includes("png") : new URL(n, location.href).pathname.toLowerCase().endsWith(".png");
|
|
20591
20591
|
return { texture: t, transparent: e };
|
|
@@ -20779,7 +20779,7 @@ class T5 extends kn {
|
|
|
20779
20779
|
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", i)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", i)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", i)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", i)), e.config && this.init();
|
|
20780
20780
|
}
|
|
20781
20781
|
load(e, i, s = !0) {
|
|
20782
|
-
return
|
|
20782
|
+
return ie(this, null, function* () {
|
|
20783
20783
|
const o = yield this.formatData(e);
|
|
20784
20784
|
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = B({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
20785
20785
|
});
|
|
@@ -20792,7 +20792,7 @@ class T5 extends kn {
|
|
|
20792
20792
|
* @todo 逻辑需要细分
|
|
20793
20793
|
*/
|
|
20794
20794
|
init() {
|
|
20795
|
-
return
|
|
20795
|
+
return ie(this, null, function* () {
|
|
20796
20796
|
var s, o, r, a;
|
|
20797
20797
|
const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
|
|
20798
20798
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
|
|
@@ -20801,7 +20801,7 @@ class T5 extends kn {
|
|
|
20801
20801
|
});
|
|
20802
20802
|
}
|
|
20803
20803
|
loadCompassMesh() {
|
|
20804
|
-
return
|
|
20804
|
+
return ie(this, null, function* () {
|
|
20805
20805
|
const e = this.state.config.compassImageUrl, i = yield Ds(e), s = new P.CircleGeometry(0.7, 32), o = new P.MeshBasicMaterial({
|
|
20806
20806
|
map: i,
|
|
20807
20807
|
transparent: !0,
|
|
@@ -20812,7 +20812,7 @@ class T5 extends kn {
|
|
|
20812
20812
|
});
|
|
20813
20813
|
}
|
|
20814
20814
|
loadLogoMesh() {
|
|
20815
|
-
return
|
|
20815
|
+
return ie(this, null, function* () {
|
|
20816
20816
|
if (!this.state.config.logoURL)
|
|
20817
20817
|
return;
|
|
20818
20818
|
const e = this.state.config.logoURL, i = yield Ds(e);
|
|
@@ -20827,7 +20827,7 @@ class T5 extends kn {
|
|
|
20827
20827
|
});
|
|
20828
20828
|
}
|
|
20829
20829
|
loadEntryDoorMesh() {
|
|
20830
|
-
return
|
|
20830
|
+
return ie(this, null, function* () {
|
|
20831
20831
|
const e = this.state.config.entryDoorImageUrl, i = yield Ds(e), s = new P.PlaneGeometry(0.2, 0.16), o = new P.MeshBasicMaterial({
|
|
20832
20832
|
map: i,
|
|
20833
20833
|
transparent: !0,
|
|
@@ -27000,9 +27000,9 @@ class KC {
|
|
|
27000
27000
|
}
|
|
27001
27001
|
}
|
|
27002
27002
|
const hc = 1e-3, rp = 0.01, ap = _h, US = (n, t) => {
|
|
27003
|
-
var ee, K, se,
|
|
27003
|
+
var ee, K, se, te, le, Se, ue, Te;
|
|
27004
27004
|
let e = t == null ? void 0 : t.container, i = 1.4;
|
|
27005
|
-
const s = (ee = t == null ? void 0 : t.wait) != null ? ee : 200, o = (K = t == null ? void 0 : t.maxNumberOnScreen) != null ? K : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (
|
|
27005
|
+
const s = (ee = t == null ? void 0 : t.wait) != null ? ee : 200, o = (K = t == null ? void 0 : t.maxNumberOnScreen) != null ? K : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (te = t == null ? void 0 : t.nearTolerance) != null ? te : 100, l = (le = t == null ? void 0 : t.upsideHeight) != null ? le : 1.6, c = (Se = t == null ? void 0 : t.minDistance) != null ? Se : 1.2, h = (ue = t == null ? void 0 : t.maxDistance) != null ? ue : 3.5, u = yl(n), f = document.createElement("div");
|
|
27006
27006
|
f.classList.add("PanoSpatialTagPlugin"), Object.assign(f.style, YC);
|
|
27007
27007
|
const m = new Vo();
|
|
27008
27008
|
let p = new Image();
|
|
@@ -27510,13 +27510,13 @@ function a4(n, t, e) {
|
|
|
27510
27510
|
}
|
|
27511
27511
|
const L = (M, S) => {
|
|
27512
27512
|
const T = S.map((_) => {
|
|
27513
|
-
const q = A(M, _), ee = _.name.length * r4, K = k(_.modelPosition[1], c),
|
|
27514
|
-
if (!
|
|
27515
|
-
return ce(B({}, _), { visible:
|
|
27513
|
+
const q = A(M, _), ee = _.name.length * r4, K = k(_.modelPosition[1], c), te = (r ? v(M, _) : !0) && !E([q[0], q[1] + K], ee);
|
|
27514
|
+
if (!te)
|
|
27515
|
+
return ce(B({}, _), { visible: te });
|
|
27516
27516
|
p.push(q);
|
|
27517
27517
|
const le = w(q);
|
|
27518
27518
|
return ce(B({}, _), {
|
|
27519
|
-
visible:
|
|
27519
|
+
visible: te,
|
|
27520
27520
|
transform: le,
|
|
27521
27521
|
strokeLength: K
|
|
27522
27522
|
});
|
|
@@ -27789,7 +27789,7 @@ const u4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27789
27789
|
L(new Error("Video download Error: " + D.status));
|
|
27790
27790
|
}, D.onerror = (j) => L(j), D.open("GET", A), D.responseType = "blob", D.send();
|
|
27791
27791
|
});
|
|
27792
|
-
}, f = (A, w) =>
|
|
27792
|
+
}, f = (A, w) => ie(void 0, null, function* () {
|
|
27793
27793
|
const { video_src: E, video_poster_src: k, points: L } = A;
|
|
27794
27794
|
e.videoSource = E, e.rectPoints = h4(L).map((D) => D.map(({ x: j, y: z, z: V }) => new P.Vector3(j, z, V))), e.imageTexture = h(k), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
27795
27795
|
}), m = (A) => {
|
|
@@ -28237,7 +28237,7 @@ function E4(n, t, e) {
|
|
|
28237
28237
|
return ce(B({}, q), { visible: !1 });
|
|
28238
28238
|
const ee = E(S, q);
|
|
28239
28239
|
q.name.length * I4;
|
|
28240
|
-
const K = y4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0,
|
|
28240
|
+
const K = y4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, te = o ? A(S, q) : !1, le = se && !te;
|
|
28241
28241
|
if (!le)
|
|
28242
28242
|
return ce(B({}, q), { visible: le });
|
|
28243
28243
|
g.push(ee);
|
|
@@ -28886,8 +28886,8 @@ function s8(n) {
|
|
|
28886
28886
|
}, T = z1([C, I], [M, S]);
|
|
28887
28887
|
if (T && k.push(V), !T && k.length) {
|
|
28888
28888
|
k.push(V);
|
|
28889
|
-
const N = new P.Vector2(C.x, C.y).distanceTo(new P.Vector2(M.x, M.y)), _ = new P.Vector2(I.x, I.y).distanceTo(new P.Vector2(S.x, S.y)), q = 300, ee = [], K = [], se = Math.max(0, k[0] - e * q),
|
|
28890
|
-
for (let Te = se; Te <
|
|
28889
|
+
const N = new P.Vector2(C.x, C.y).distanceTo(new P.Vector2(M.x, M.y)), _ = new P.Vector2(I.x, I.y).distanceTo(new P.Vector2(S.x, S.y)), q = 300, ee = [], K = [], se = Math.max(0, k[0] - e * q), te = k[0];
|
|
28890
|
+
for (let Te = se; Te < te; Te++)
|
|
28891
28891
|
N < _ ? ee.push({ x: v[Te * 6 + 0], y: v[Te * 6 + 2] }) : ee.push({ x: v[Te * 6 + 3], y: v[Te * 6 + 5] });
|
|
28892
28892
|
const le = k[k.length - 1], Se = Math.min(l - 1, k[k.length - 1] + e * q);
|
|
28893
28893
|
for (let Te = le; Te < Se; Te++)
|
|
@@ -29532,31 +29532,20 @@ class F1 extends H1 {
|
|
|
29532
29532
|
d(this, "buttonMesh");
|
|
29533
29533
|
d(this, "videoTextureMap");
|
|
29534
29534
|
d(this, "ImageTextureMap");
|
|
29535
|
-
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? pu : a === "withoutText" ? eh : typeof a == "string" ? a : eh)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(si(...i)), this.
|
|
29535
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? pu : a === "withoutText" ? eh : typeof a == "string" ? a : eh)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(si(...i)), this.videoCoverSrc && l ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
29536
|
+
l ? this.addButtonMesh() : this.play(!0);
|
|
29537
|
+
}), this.addEventListener("removed", () => {
|
|
29536
29538
|
this.remove(...this.children);
|
|
29537
29539
|
}), this.addEventListener("dispose", () => {
|
|
29538
29540
|
var f;
|
|
29539
29541
|
(f = this.disposers) == null || f.forEach((m) => m == null ? void 0 : m());
|
|
29540
29542
|
});
|
|
29541
29543
|
}
|
|
29542
|
-
/**
|
|
29543
|
-
* 初始化内容显示逻辑
|
|
29544
|
-
* 确保在视频加载期间始终有内容显示
|
|
29545
|
-
*/
|
|
29546
|
-
initializeContent(e) {
|
|
29547
|
-
return te(this, null, function* () {
|
|
29548
|
-
this.videoCoverSrc && this.addCoverMesh().then(() => {
|
|
29549
|
-
this.addButtonMesh();
|
|
29550
|
-
}), this.addVideoMesh().then(() => {
|
|
29551
|
-
e && this.showPauseUI(), e || this.play(!0);
|
|
29552
|
-
});
|
|
29553
|
-
});
|
|
29554
|
-
}
|
|
29555
29544
|
play(e = !1) {
|
|
29556
|
-
return
|
|
29557
|
-
this.videoMesh || (yield this.addVideoMesh()), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((i) => {
|
|
29545
|
+
return ie(this, null, function* () {
|
|
29546
|
+
this.videoMesh || (yield this.addVideoMesh()), this.videoInstance.paused && (this.videoMesh.needsRender = !0, this.videoInstance.play().then(() => this.showPlayUI()).catch((i) => {
|
|
29558
29547
|
this.pause(), console.error("play error", i);
|
|
29559
|
-
}), this.videoInstance.muted = e, this.render();
|
|
29548
|
+
})), this.videoInstance.muted = e, this.render();
|
|
29560
29549
|
});
|
|
29561
29550
|
}
|
|
29562
29551
|
pause() {
|
|
@@ -29570,11 +29559,13 @@ class F1 extends H1 {
|
|
|
29570
29559
|
this.disposers.push(() => s);
|
|
29571
29560
|
}
|
|
29572
29561
|
showPlayUI() {
|
|
29573
|
-
this.coverMesh &&
|
|
29562
|
+
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0, this.render();
|
|
29574
29563
|
}
|
|
29575
29564
|
showPauseUI() {
|
|
29576
|
-
return
|
|
29577
|
-
this.coverMesh ? (this.
|
|
29565
|
+
return ie(this, null, function* () {
|
|
29566
|
+
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => {
|
|
29567
|
+
this.buttonMesh.visible = !0, this.render();
|
|
29568
|
+
});
|
|
29578
29569
|
});
|
|
29579
29570
|
}
|
|
29580
29571
|
render() {
|
|
@@ -29582,31 +29573,33 @@ class F1 extends H1 {
|
|
|
29582
29573
|
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
29583
29574
|
}
|
|
29584
29575
|
addCoverMesh() {
|
|
29585
|
-
return
|
|
29576
|
+
return ie(this, null, function* () {
|
|
29586
29577
|
if (this.children.includes(this.coverMesh))
|
|
29587
29578
|
return;
|
|
29588
|
-
const e = yield (() =>
|
|
29579
|
+
const e = yield (() => ie(this, null, function* () {
|
|
29589
29580
|
if (this.coverMesh)
|
|
29590
29581
|
return this.coverMesh;
|
|
29591
29582
|
if (!this.videoCoverSrc)
|
|
29592
29583
|
return;
|
|
29593
29584
|
const { texture: i, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), o = new P.MeshBasicMaterial({ transparent: !1, map: i }), r = _a(this.objectFit, this.cornerPoints, i.image.width / i.image.height), a = new dc(r, o);
|
|
29594
|
-
return a.position.copy(new Ae(0, 0, 0)), a.name = "videoCoverMesh", o.needsUpdate = !0, i.needsUpdate = !0, a
|
|
29585
|
+
return a.position.copy(new Ae(0, 0, 0)), a.name = "videoCoverMesh", o.needsUpdate = !0, i.needsUpdate = !0, a.raycast = () => {
|
|
29586
|
+
}, a;
|
|
29595
29587
|
}))();
|
|
29596
29588
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
29597
29589
|
});
|
|
29598
29590
|
}
|
|
29599
29591
|
addVideoMesh() {
|
|
29600
|
-
return
|
|
29592
|
+
return ie(this, null, function* () {
|
|
29601
29593
|
var s;
|
|
29602
29594
|
if (this.children.includes(this.videoMesh))
|
|
29603
29595
|
return;
|
|
29604
|
-
const e = yield (() =>
|
|
29596
|
+
const e = yield (() => ie(this, null, function* () {
|
|
29605
29597
|
if (this.videoMesh)
|
|
29606
29598
|
return this.videoMesh;
|
|
29607
29599
|
if (!this.src)
|
|
29608
29600
|
return;
|
|
29609
|
-
const o = this.getVideoTexture(this.src), { texture: r } = yield this.getImageTexture(this.videoCoverSrc), a = new P.MeshBasicMaterial({ transparent: !1, map: o })
|
|
29601
|
+
const o = this.getVideoTexture(this.src), { texture: r } = yield this.getImageTexture(this.videoCoverSrc), a = new P.MeshBasicMaterial({ transparent: !1, map: o });
|
|
29602
|
+
let l = _a(this.objectFit, this.cornerPoints, r.image.width / r.image.height);
|
|
29610
29603
|
o.needsUpdate = !0, a.needsUpdate = !0;
|
|
29611
29604
|
const c = new dc(l, a);
|
|
29612
29605
|
return c.name = "videoMesh", c.position.copy(new Ae(0, 0, 0)), c;
|
|
@@ -29630,10 +29623,10 @@ class F1 extends H1 {
|
|
|
29630
29623
|
});
|
|
29631
29624
|
}
|
|
29632
29625
|
addButtonMesh() {
|
|
29633
|
-
return
|
|
29626
|
+
return ie(this, null, function* () {
|
|
29634
29627
|
if (this.children.includes(this.buttonMesh))
|
|
29635
29628
|
return;
|
|
29636
|
-
const e = yield (() =>
|
|
29629
|
+
const e = yield (() => ie(this, null, function* () {
|
|
29637
29630
|
var m, p, g, v;
|
|
29638
29631
|
if (this.buttonMesh)
|
|
29639
29632
|
return this.buttonMesh;
|
|
@@ -29653,7 +29646,7 @@ class F1 extends H1 {
|
|
|
29653
29646
|
});
|
|
29654
29647
|
}
|
|
29655
29648
|
getImageTexture(e) {
|
|
29656
|
-
return
|
|
29649
|
+
return ie(this, null, function* () {
|
|
29657
29650
|
var s, o;
|
|
29658
29651
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
29659
29652
|
return this.ImageTextureMap.get(e);
|
|
@@ -29668,6 +29661,12 @@ class F1 extends H1 {
|
|
|
29668
29661
|
const i = k8(e);
|
|
29669
29662
|
return (o = this.videoTextureMap) == null || o.set(e, i), i;
|
|
29670
29663
|
}
|
|
29664
|
+
hide() {
|
|
29665
|
+
this.visible = !1, this.videoMesh && this.videoInstance && !this.videoInstance.paused && this.pause();
|
|
29666
|
+
}
|
|
29667
|
+
show() {
|
|
29668
|
+
this.visible = !0;
|
|
29669
|
+
}
|
|
29671
29670
|
}
|
|
29672
29671
|
class Vr {
|
|
29673
29672
|
constructor() {
|
|
@@ -30208,7 +30207,7 @@ class vu {
|
|
|
30208
30207
|
* @description 找到标签
|
|
30209
30208
|
*/
|
|
30210
30209
|
find(t) {
|
|
30211
|
-
return
|
|
30210
|
+
return ie(this, null, function* () {
|
|
30212
30211
|
var s;
|
|
30213
30212
|
const e = this.fiveState;
|
|
30214
30213
|
if (!this.fiveState)
|
|
@@ -30233,11 +30232,11 @@ class vu {
|
|
|
30233
30232
|
* @description 闪烁
|
|
30234
30233
|
*/
|
|
30235
30234
|
blink(t) {
|
|
30236
|
-
return
|
|
30235
|
+
return ie(this, null, function* () {
|
|
30237
30236
|
var a, l, c, h;
|
|
30238
30237
|
yield this.ready();
|
|
30239
30238
|
const e = (a = this.enabled) != null ? a : !0, i = (l = this.state) == null ? void 0 : l.visible, s = e && i;
|
|
30240
|
-
s === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) =>
|
|
30239
|
+
s === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => ie(this, null, function* () {
|
|
30241
30240
|
if (this.dom || this.contentDom) {
|
|
30242
30241
|
u();
|
|
30243
30242
|
return;
|
|
@@ -30245,7 +30244,7 @@ class vu {
|
|
|
30245
30244
|
const f = setInterval(() => {
|
|
30246
30245
|
(this.dom || this.contentDom) && (u(), clearInterval(f));
|
|
30247
30246
|
}, 16.7);
|
|
30248
|
-
})) : this.stickType === "Model" && !((c = this.model) != null && c.object) ? yield (h = this.model) == null ? void 0 : h.promise : this.stickType === "Plane" && (yield new Promise((u) =>
|
|
30247
|
+
})) : this.stickType === "Model" && !((c = this.model) != null && c.object) ? yield (h = this.model) == null ? void 0 : h.promise : this.stickType === "Plane" && (yield new Promise((u) => ie(this, null, function* () {
|
|
30249
30248
|
if (this.mediaPlane) {
|
|
30250
30249
|
u();
|
|
30251
30250
|
return;
|
|
@@ -33634,7 +33633,7 @@ var Ma = g9, ll = {}, m9 = {
|
|
|
33634
33633
|
(function(n, t) {
|
|
33635
33634
|
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]", m = "[object Number]", p = "[object Object]", g = "[object Promise]", v = "[object RegExp]", A = "[object Set]", w = "[object String]", E = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", V = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", I = "[object Uint8Array]", M = "[object Uint8ClampedArray]", S = "[object Uint16Array]", T = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, _ = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
|
|
33636
33635
|
K[o] = K[r] = K[L] = K[D] = K[a] = K[l] = K[j] = K[z] = K[V] = K[b] = K[C] = K[f] = K[m] = K[p] = K[v] = K[A] = K[w] = K[E] = K[I] = K[M] = K[S] = K[T] = !0, K[c] = K[h] = K[k] = !1;
|
|
33637
|
-
var se = typeof ki == "object" && ki && ki.Object === Object && ki,
|
|
33636
|
+
var se = typeof ki == "object" && ki && ki.Object === Object && ki, te = typeof self == "object" && self && self.Object === Object && self, le = se || te || Function("return this")(), Se = t && !t.nodeType && t, ue = Se && !0 && n && !n.nodeType && n, Te = ue && ue.exports === Se;
|
|
33638
33637
|
function fe(x, H) {
|
|
33639
33638
|
return x.set(H[0], H[1]), x;
|
|
33640
33639
|
}
|
|
@@ -34085,7 +34084,7 @@ var cl = {}, A9 = {
|
|
|
34085
34084
|
}
|
|
34086
34085
|
};
|
|
34087
34086
|
(function(n, t) {
|
|
34088
|
-
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]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", E = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]", V = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", M = "[object Float32Array]", S = "[object Float64Array]", T = "[object Int8Array]", N = "[object Int16Array]", _ = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", se = "[object Uint32Array]",
|
|
34087
|
+
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]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", E = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]", V = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", M = "[object Float32Array]", S = "[object Float64Array]", T = "[object Int8Array]", N = "[object Int16Array]", _ = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", se = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, le = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, ue = {};
|
|
34089
34088
|
ue[M] = ue[S] = ue[T] = ue[N] = ue[_] = ue[q] = ue[ee] = ue[K] = ue[se] = !0, ue[a] = ue[l] = ue[C] = ue[h] = ue[I] = ue[u] = ue[f] = ue[m] = ue[g] = ue[v] = ue[w] = ue[L] = ue[D] = ue[j] = ue[b] = !1;
|
|
34090
34089
|
var Te = typeof ki == "object" && ki && ki.Object === Object && ki, fe = typeof self == "object" && self && self.Object === Object && self, he = Te || fe || Function("return this")(), Le = t && !t.nodeType && t, $ = Le && !0 && n && !n.nodeType && n, Me = $ && $.exports === Le, Re = Me && Te.process, ve = function() {
|
|
34091
34090
|
try {
|
|
@@ -34148,7 +34147,7 @@ var cl = {}, A9 = {
|
|
|
34148
34147
|
var x = /[^.]+$/.exec(ai && ai.keys && ai.keys.IE_PROTO || "");
|
|
34149
34148
|
return x ? "Symbol(src)_1." + x : "";
|
|
34150
34149
|
}(), Gt = Ft.toString, Xo = RegExp(
|
|
34151
|
-
"^" + pi.call(rt).replace(
|
|
34150
|
+
"^" + pi.call(rt).replace(te, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
34152
34151
|
), ps = Me ? he.Buffer : void 0, xn = he.Symbol, Us = he.Uint8Array, Sn = Ft.propertyIsEnumerable, Ci = zt.splice, gi = xn ? xn.toStringTag : void 0, Dn = Object.getOwnPropertySymbols, Tn = ps ? ps.isBuffer : void 0, Gi = st(Object.keys, Object), nn = Z(he, "DataView"), sn = Z(he, "Map"), gs = Z(he, "Promise"), ms = Z(he, "Set"), Ln = Z(he, "WeakMap"), Wi = Z(Object, "create"), Qs = ti(nn), Li = ti(sn), zn = ti(gs), Yo = ti(ms), Zo = ti(Ln), vs = xn ? xn.prototype : void 0, on = vs ? vs.valueOf : void 0;
|
|
34153
34152
|
function Mt(x) {
|
|
34154
34153
|
var H = -1, J = x == null ? 0 : x.length;
|
|
@@ -34696,7 +34695,7 @@ class D9 {
|
|
|
34696
34695
|
this.reset();
|
|
34697
34696
|
const i = Math.min(S9, Math.max(this._autoplayDuration, 1));
|
|
34698
34697
|
let s = -i;
|
|
34699
|
-
this._interval = x9(() =>
|
|
34698
|
+
this._interval = x9(() => ie(this, null, function* () {
|
|
34700
34699
|
if (this._paused)
|
|
34701
34700
|
return;
|
|
34702
34701
|
s += i;
|
|
@@ -34859,17 +34858,17 @@ function T9(n) {
|
|
|
34859
34858
|
r.focused = !r.focused;
|
|
34860
34859
|
},
|
|
34861
34860
|
_applyAutoplayIfNeeded(l) {
|
|
34862
|
-
return
|
|
34861
|
+
return ie(this, arguments, function* ({ data: r, methods: a }) {
|
|
34863
34862
|
if (!r.infinite && (r.autoplayDirection === as && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Bo && r.currentParticleIndex === 0)) {
|
|
34864
34863
|
t.reset();
|
|
34865
34864
|
return;
|
|
34866
34865
|
}
|
|
34867
34866
|
if (r.autoplay) {
|
|
34868
34867
|
const c = () => rh({
|
|
34869
|
-
[as]: () =>
|
|
34868
|
+
[as]: () => ie(this, null, function* () {
|
|
34870
34869
|
return a.showNextPage();
|
|
34871
34870
|
}),
|
|
34872
|
-
[Bo]: () =>
|
|
34871
|
+
[Bo]: () => ie(this, null, function* () {
|
|
34873
34872
|
return a.showPrevPage();
|
|
34874
34873
|
})
|
|
34875
34874
|
})(r.autoplayDirection);
|
|
@@ -34879,7 +34878,7 @@ function T9(n) {
|
|
|
34879
34878
|
},
|
|
34880
34879
|
// makes delayed jump to 1st or last element
|
|
34881
34880
|
_jumpIfNeeded(l) {
|
|
34882
|
-
return
|
|
34881
|
+
return ie(this, arguments, function* ({ data: r, methods: a }) {
|
|
34883
34882
|
let c = !1;
|
|
34884
34883
|
return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
|
|
34885
34884
|
r.particlesCount - r.clonesCountTotal,
|
|
@@ -34892,24 +34891,24 @@ function T9(n) {
|
|
|
34892
34891
|
});
|
|
34893
34892
|
},
|
|
34894
34893
|
changePage(h, u, f) {
|
|
34895
|
-
return
|
|
34894
|
+
return ie(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
34896
34895
|
if (t.reset(), r.disabled)
|
|
34897
34896
|
return;
|
|
34898
34897
|
r.disabled = !0, l(), yield a.offsetPage({ animated: Cr(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
34899
34898
|
});
|
|
34900
34899
|
},
|
|
34901
34900
|
showNextPage(c, h) {
|
|
34902
|
-
return
|
|
34901
|
+
return ie(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
34903
34902
|
r.disabled || (yield a.changePage(a._next, l));
|
|
34904
34903
|
});
|
|
34905
34904
|
},
|
|
34906
34905
|
showPrevPage(c, h) {
|
|
34907
|
-
return
|
|
34906
|
+
return ie(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
34908
34907
|
r.disabled || (yield a.changePage(a._prev, l));
|
|
34909
34908
|
});
|
|
34910
34909
|
},
|
|
34911
34910
|
showParticle(c, h, u) {
|
|
34912
|
-
return
|
|
34911
|
+
return ie(this, arguments, function* ({ methods: r }, a, l) {
|
|
34913
34912
|
yield r.changePage(
|
|
34914
34913
|
() => r._moveToParticle(a),
|
|
34915
34914
|
l
|
|
@@ -34928,7 +34927,7 @@ function T9(n) {
|
|
|
34928
34927
|
});
|
|
34929
34928
|
},
|
|
34930
34929
|
showPage(c, h, u) {
|
|
34931
|
-
return
|
|
34930
|
+
return ie(this, arguments, function* ({ methods: r }, a, l) {
|
|
34932
34931
|
const f = r._getParticleIndexByPageIndex(a);
|
|
34933
34932
|
yield r.showParticle(f, l);
|
|
34934
34933
|
});
|
|
@@ -35515,7 +35514,7 @@ function F9(n, t, e) {
|
|
|
35515
35514
|
}), g = cs();
|
|
35516
35515
|
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: I = 1 } = t, { particlesToScroll: M = 1 } = t;
|
|
35517
35516
|
function S(de, ye) {
|
|
35518
|
-
return
|
|
35517
|
+
return ie(this, null, function* () {
|
|
35519
35518
|
const ze = Cr(ye, "animated", !0);
|
|
35520
35519
|
if (typeof de != "number")
|
|
35521
35520
|
throw new Error("pageIndex should be a number");
|
|
@@ -35523,13 +35522,13 @@ function F9(n, t, e) {
|
|
|
35523
35522
|
});
|
|
35524
35523
|
}
|
|
35525
35524
|
function T(de) {
|
|
35526
|
-
return
|
|
35525
|
+
return ie(this, null, function* () {
|
|
35527
35526
|
const ye = Cr(de, "animated", !0);
|
|
35528
35527
|
yield m.showPrevPage({ animated: ye });
|
|
35529
35528
|
});
|
|
35530
35529
|
}
|
|
35531
35530
|
function N(de) {
|
|
35532
|
-
return
|
|
35531
|
+
return ie(this, null, function* () {
|
|
35533
35532
|
const ye = Cr(de, "animated", !0);
|
|
35534
35533
|
yield m.showNextPage({ animated: ye });
|
|
35535
35534
|
});
|
|
@@ -35554,14 +35553,14 @@ function F9(n, t, e) {
|
|
|
35554
35553
|
});
|
|
35555
35554
|
}
|
|
35556
35555
|
Lt(() => {
|
|
35557
|
-
|
|
35556
|
+
ie(this, null, function* () {
|
|
35558
35557
|
yield pd(), ee && q && (u.particlesCountWithoutClones = ee.children.length, yield pd(), u.infinite && se(), u.particlesCount = ee.children.length, m.showPage(E, { animated: !1 }), K.observe(q));
|
|
35559
35558
|
});
|
|
35560
35559
|
}), ri(() => {
|
|
35561
35560
|
K.disconnect(), f.reset();
|
|
35562
35561
|
});
|
|
35563
|
-
function
|
|
35564
|
-
return
|
|
35562
|
+
function te(de) {
|
|
35563
|
+
return ie(this, null, function* () {
|
|
35565
35564
|
yield m.showPage(de, { animated: !0 });
|
|
35566
35565
|
});
|
|
35567
35566
|
}
|
|
@@ -35569,7 +35568,7 @@ function F9(n, t, e) {
|
|
|
35569
35568
|
C && (u.durationMs = 0);
|
|
35570
35569
|
}
|
|
35571
35570
|
function Se(de) {
|
|
35572
|
-
return
|
|
35571
|
+
return ie(this, null, function* () {
|
|
35573
35572
|
C && (yield rh({
|
|
35574
35573
|
[as]: m.showNextPage,
|
|
35575
35574
|
[Bo]: m.showPrevPage
|
|
@@ -35583,7 +35582,7 @@ function F9(n, t, e) {
|
|
|
35583
35582
|
C && m.showParticle(u.currentParticleIndex);
|
|
35584
35583
|
}
|
|
35585
35584
|
function fe() {
|
|
35586
|
-
return
|
|
35585
|
+
return ie(this, null, function* () {
|
|
35587
35586
|
C && (yield m.offsetPage({ animated: !0 }));
|
|
35588
35587
|
});
|
|
35589
35588
|
}
|
|
@@ -35607,7 +35606,7 @@ function F9(n, t, e) {
|
|
|
35607
35606
|
q = de, e(12, q);
|
|
35608
35607
|
});
|
|
35609
35608
|
}
|
|
35610
|
-
const Be = (de) =>
|
|
35609
|
+
const Be = (de) => te(de.detail);
|
|
35611
35610
|
return n.$$set = (de) => {
|
|
35612
35611
|
"timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, E = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, V = de.autoplayProgressVisible), "dots" in de && e(4, b = de.dots), "swiping" in de && e(30, C = de.swiping), "particlesToShow" in de && e(31, I = de.particlesToShow), "particlesToScroll" in de && e(32, M = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
|
|
35613
35612
|
}, n.$$.update = () => {
|
|
@@ -35637,7 +35636,7 @@ function F9(n, t, e) {
|
|
|
35637
35636
|
q,
|
|
35638
35637
|
ee,
|
|
35639
35638
|
m,
|
|
35640
|
-
|
|
35639
|
+
te,
|
|
35641
35640
|
le,
|
|
35642
35641
|
Se,
|
|
35643
35642
|
ue,
|
|
@@ -37267,7 +37266,7 @@ class yg {
|
|
|
37267
37266
|
* 测试音频URL的可访问性
|
|
37268
37267
|
*/
|
|
37269
37268
|
static testAudioUrl(t) {
|
|
37270
|
-
return
|
|
37269
|
+
return ie(this, null, function* () {
|
|
37271
37270
|
try {
|
|
37272
37271
|
const e = yield fetch(t, { method: "HEAD" });
|
|
37273
37272
|
return {
|
|
@@ -37288,7 +37287,7 @@ class yg {
|
|
|
37288
37287
|
* 尝试创建和测试音频元素
|
|
37289
37288
|
*/
|
|
37290
37289
|
static testAudioElement(t) {
|
|
37291
|
-
return
|
|
37290
|
+
return ie(this, null, function* () {
|
|
37292
37291
|
return new Promise((e) => {
|
|
37293
37292
|
const i = new Audio();
|
|
37294
37293
|
let s = !1;
|
|
@@ -37332,7 +37331,7 @@ class yg {
|
|
|
37332
37331
|
* 完整的音频诊断
|
|
37333
37332
|
*/
|
|
37334
37333
|
static diagnoseAudio(t) {
|
|
37335
|
-
return
|
|
37334
|
+
return ie(this, null, function* () {
|
|
37336
37335
|
var r;
|
|
37337
37336
|
console.group("🎵 音频诊断报告"), console.group("1. 浏览器支持检查");
|
|
37338
37337
|
const e = this.checkBrowserSupport();
|
|
@@ -37405,7 +37404,7 @@ class hM extends Audio {
|
|
|
37405
37404
|
return ((e = this.audioInstance) == null ? void 0 : e.duration) || 0;
|
|
37406
37405
|
}
|
|
37407
37406
|
play() {
|
|
37408
|
-
return
|
|
37407
|
+
return ie(this, null, function* () {
|
|
37409
37408
|
var i, s, o;
|
|
37410
37409
|
if (this.tryplaying)
|
|
37411
37410
|
return;
|
|
@@ -38666,7 +38665,7 @@ class RM extends Ee {
|
|
|
38666
38665
|
}
|
|
38667
38666
|
const vc = /* @__PURE__ */ new Map();
|
|
38668
38667
|
function ov(n) {
|
|
38669
|
-
return
|
|
38668
|
+
return ie(this, null, function* () {
|
|
38670
38669
|
return new Promise((t, e) => {
|
|
38671
38670
|
if (!n) {
|
|
38672
38671
|
e(Error("url is empty"));
|
|
@@ -38678,7 +38677,7 @@ function ov(n) {
|
|
|
38678
38677
|
});
|
|
38679
38678
|
}
|
|
38680
38679
|
function _M(n) {
|
|
38681
|
-
return
|
|
38680
|
+
return ie(this, null, function* () {
|
|
38682
38681
|
const { url: t, ratio: e = 3 } = n, i = (() => {
|
|
38683
38682
|
if (vc.has(t))
|
|
38684
38683
|
return vc.get(t);
|
|
@@ -38692,7 +38691,7 @@ function _M(n) {
|
|
|
38692
38691
|
});
|
|
38693
38692
|
}
|
|
38694
38693
|
function BM(n) {
|
|
38695
|
-
return
|
|
38694
|
+
return ie(this, null, function* () {
|
|
38696
38695
|
const { steps: t, url: e, ratio: i = 3, fps: s = 24 } = n;
|
|
38697
38696
|
if (!t)
|
|
38698
38697
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -39149,13 +39148,13 @@ function ZM(n, t, e) {
|
|
|
39149
39148
|
let i, s, o, r, a, l, c, h, u, f, m, { width: p = null } = t, { icon: g = null } = t, { shadow: v = !1 } = t;
|
|
39150
39149
|
const A = cs();
|
|
39151
39150
|
function w(L) {
|
|
39152
|
-
return
|
|
39151
|
+
return ie(this, null, function* () {
|
|
39153
39152
|
const D = yield BM(L);
|
|
39154
39153
|
return A("iconLoaded", D), D;
|
|
39155
39154
|
});
|
|
39156
39155
|
}
|
|
39157
39156
|
function E(L) {
|
|
39158
|
-
return
|
|
39157
|
+
return ie(this, null, function* () {
|
|
39159
39158
|
if (typeof m == "number")
|
|
39160
39159
|
return ce(B({}, L), { width: m });
|
|
39161
39160
|
const D = yield _M(L);
|
|
@@ -40304,12 +40303,12 @@ class av extends vu {
|
|
|
40304
40303
|
super(e, i);
|
|
40305
40304
|
d(this, "loading", !1);
|
|
40306
40305
|
/** 加载外部模型 */
|
|
40307
|
-
d(this, "loadModel", () =>
|
|
40306
|
+
d(this, "loadModel", () => ie(this, null, function* () {
|
|
40308
40307
|
var r, a;
|
|
40309
40308
|
const e = this.data.modelUrl;
|
|
40310
40309
|
if (!e || (this.loading = !0, yield yi(this.five), !this.plugin.tags.includes(this)))
|
|
40311
40310
|
return;
|
|
40312
|
-
const i = B8(e).then((l) =>
|
|
40311
|
+
const i = B8(e).then((l) => ie(this, null, function* () {
|
|
40313
40312
|
var u;
|
|
40314
40313
|
const c = Object.assign(l.scene, {
|
|
40315
40314
|
customID: this.id,
|
|
@@ -40411,7 +40410,7 @@ class D7 extends vu {
|
|
|
40411
40410
|
super.setData(...t), this.computeRenderType() === "Mesh" ? ((s = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : s.type) === "Video" ? this.renderVideoPlane() : ((r = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : r.type) === "Image" && this.renderImagePlane() : (a = this.tag3DContentSvelte) == null || a.svelteApp.$set({ tag: this });
|
|
40412
40411
|
}
|
|
40413
40412
|
loadModel() {
|
|
40414
|
-
return
|
|
40413
|
+
return ie(this, null, function* () {
|
|
40415
40414
|
var e, i, s, o, r, a;
|
|
40416
40415
|
if (yield yi(this.five), this.computeRenderType() === "Mesh")
|
|
40417
40416
|
((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((o = (s = this.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane();
|
|
@@ -40454,42 +40453,48 @@ class D7 extends vu {
|
|
|
40454
40453
|
});
|
|
40455
40454
|
}
|
|
40456
40455
|
renderVideoPlane() {
|
|
40457
|
-
var
|
|
40456
|
+
var r;
|
|
40458
40457
|
const t = this.data.mediaData[0];
|
|
40459
40458
|
if (!t)
|
|
40460
40459
|
return;
|
|
40461
40460
|
const { url: e } = t;
|
|
40462
40461
|
if (!e)
|
|
40463
40462
|
return;
|
|
40464
|
-
const i = this.currentVisible
|
|
40465
|
-
|
|
40466
|
-
|
|
40463
|
+
const i = this.currentVisible;
|
|
40464
|
+
!!(this.mediaPlane && !i);
|
|
40465
|
+
const s = (() => !!(!this.mediaPlane && i))(), o = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
40466
|
+
if (this.mediaPlane && this.mediaPlane) {
|
|
40467
|
+
const a = this.mediaPlane;
|
|
40468
|
+
i && a.show(), i || a.hide();
|
|
40469
|
+
}
|
|
40470
|
+
if (s || o) {
|
|
40471
|
+
const a = this.position.map(Ki), l = new F1(e, a, {
|
|
40467
40472
|
videoCoverSrc: t.videoCoverUrl,
|
|
40468
40473
|
playButton: this.data.playIcon,
|
|
40469
|
-
paused: !((
|
|
40474
|
+
paused: !((r = this.data.autoplayConfig) != null && r.autoplayVideo),
|
|
40470
40475
|
objectFit: this.data.objectFit,
|
|
40471
40476
|
videoTextureMap: x7,
|
|
40472
40477
|
ImageTextureMap: S7,
|
|
40473
40478
|
domEvents: this.plugin.domEvents
|
|
40474
40479
|
});
|
|
40475
40480
|
this.plugin.domEvents.addAutoBindEventListener(
|
|
40476
|
-
|
|
40481
|
+
l,
|
|
40477
40482
|
"click",
|
|
40478
|
-
(
|
|
40479
|
-
var
|
|
40480
|
-
|
|
40483
|
+
(h) => {
|
|
40484
|
+
var u;
|
|
40485
|
+
l.videoInstance && !((u = l.videoInstance) != null && u.paused) && l.videoInstance.muted === !1 && this.plugin.hooks.emit("playStateChange", { event: h, state: "playing", tag: this, mediaInstance: l.videoInstance });
|
|
40481
40486
|
}
|
|
40482
|
-
),
|
|
40483
|
-
|
|
40484
|
-
this.plugin.mediaStore.set({ currentMediaElement:
|
|
40485
|
-
}),
|
|
40486
|
-
this.plugin.hooks.emit("playStateChange", { event:
|
|
40487
|
-
}),
|
|
40488
|
-
this.plugin.hooks.emit("playStateChange", { event:
|
|
40487
|
+
), l.onVideoReady = (h) => {
|
|
40488
|
+
h.addEventListener("play", (u) => {
|
|
40489
|
+
this.plugin.mediaStore.set({ currentMediaElement: l.videoInstance }), this.plugin.hooks.emit("playStateChange", { event: u, state: "playing", tag: this, mediaInstance: l.videoInstance });
|
|
40490
|
+
}), h.addEventListener("pause", (u) => {
|
|
40491
|
+
this.plugin.hooks.emit("playStateChange", { event: u, state: "paused", tag: this, mediaInstance: l.videoInstance });
|
|
40492
|
+
}), h.addEventListener("ended", (u) => {
|
|
40493
|
+
this.plugin.hooks.emit("playStateChange", { event: u, state: "paused", tag: this, mediaInstance: l.videoInstance });
|
|
40489
40494
|
});
|
|
40490
40495
|
};
|
|
40491
|
-
const
|
|
40492
|
-
|
|
40496
|
+
const c = (h) => (this.five.on("renderFrame", h), () => this.five.off("renderFrame", h));
|
|
40497
|
+
l.initialRenderHooks(c), this.mediaPlane = l, this.play = () => l.play(), this.pause = () => l.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
40493
40498
|
}
|
|
40494
40499
|
this.five.needsRender = !0;
|
|
40495
40500
|
}
|
|
@@ -41043,16 +41048,16 @@ function N7(n, t, e) {
|
|
|
41043
41048
|
const se = (Se = (le = h.style) == null ? void 0 : le.point) == null ? void 0 : Se.width;
|
|
41044
41049
|
if (typeof se == "number")
|
|
41045
41050
|
return se;
|
|
41046
|
-
const
|
|
41047
|
-
if (typeof
|
|
41048
|
-
return
|
|
41049
|
-
if (
|
|
41051
|
+
const te = (Te = (ue = h.style) == null ? void 0 : ue.point) == null ? void 0 : Te.size;
|
|
41052
|
+
if (typeof te == "number")
|
|
41053
|
+
return te;
|
|
41054
|
+
if (te === "S")
|
|
41050
41055
|
return 18;
|
|
41051
|
-
if (
|
|
41056
|
+
if (te === "M")
|
|
41052
41057
|
return 20;
|
|
41053
|
-
if (
|
|
41058
|
+
if (te === "L")
|
|
41054
41059
|
return 24;
|
|
41055
|
-
if (
|
|
41060
|
+
if (te === "XL")
|
|
41056
41061
|
return 28;
|
|
41057
41062
|
})()), n.$$.dirty & /*tag*/
|
|
41058
41063
|
2 && e(6, a = h.contentType === "Audio" && h.data.appearance === "plane");
|
|
@@ -42157,26 +42162,26 @@ function Pk(n) {
|
|
|
42157
42162
|
return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
|
|
42158
42163
|
}
|
|
42159
42164
|
function Ck(n, t, e) {
|
|
42160
|
-
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, E, k, L, D, j, z, V, b, C, I, { $$slots: M = {}, $$scope: S } = t, { tag: T } = t, { config: N = {} } = t, { theme: _ = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ee = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration:
|
|
42165
|
+
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, E, k, L, D, j, z, V, b, C, I, { $$slots: M = {}, $$scope: S } = t, { tag: T } = t, { config: N = {} } = t, { theme: _ = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ee = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: te = 0 } = t, le = 0, Se = "00:00", ue = null, Te = 0, fe = 0;
|
|
42161
42166
|
function he() {
|
|
42162
|
-
return
|
|
42167
|
+
return te > 0 ? se / te * 100 : 0;
|
|
42163
42168
|
}
|
|
42164
42169
|
function Le() {
|
|
42165
|
-
if (!K ||
|
|
42170
|
+
if (!K || te <= 0) {
|
|
42166
42171
|
ue = null;
|
|
42167
42172
|
return;
|
|
42168
42173
|
}
|
|
42169
|
-
const Be = (Date.now() - Te) / 1e3, de = se + Be, ze = Math.min(de /
|
|
42174
|
+
const Be = (Date.now() - Te) / 1e3, de = se + Be, ze = Math.min(de / te * 100, 100) - fe;
|
|
42170
42175
|
Math.abs(ze) > 0.05 && (fe += ze * 0.2), ue = requestAnimationFrame(Le);
|
|
42171
42176
|
}
|
|
42172
42177
|
function $() {
|
|
42173
42178
|
if (!s)
|
|
42174
42179
|
return;
|
|
42175
42180
|
const ve = he();
|
|
42176
|
-
|
|
42181
|
+
te > 0 ? (K || (fe = ve), e(9, le = fe), e(10, Se = Pk(fe / 100 * te)), Te = Date.now()) : (fe = 0, e(9, le = 0), e(10, Se = "00:00"));
|
|
42177
42182
|
}
|
|
42178
42183
|
function Me() {
|
|
42179
|
-
K &&
|
|
42184
|
+
K && te > 0 ? ue || Le() : ue && (cancelAnimationFrame(ue), ue = null);
|
|
42180
42185
|
}
|
|
42181
42186
|
function Re() {
|
|
42182
42187
|
ee && (ee.paused ? ee.play() : ee.pause());
|
|
@@ -42184,7 +42189,7 @@ function Ck(n, t, e) {
|
|
|
42184
42189
|
return ri(() => {
|
|
42185
42190
|
ue && (cancelAnimationFrame(ue), ue = null);
|
|
42186
42191
|
}), n.$$set = (ve) => {
|
|
42187
|
-
"tag" in ve && e(2, T = ve.tag), "config" in ve && e(23, N = ve.config), "theme" in ve && e(24, _ = ve.theme), "placement" in ve && e(0, q = ve.placement), "audioInstance" in ve && e(25, ee = ve.audioInstance), "audioPlaying" in ve && e(1, K = ve.audioPlaying), "audioCurrentTime" in ve && e(26, se = ve.audioCurrentTime), "audioDuration" in ve && e(27,
|
|
42192
|
+
"tag" in ve && e(2, T = ve.tag), "config" in ve && e(23, N = ve.config), "theme" in ve && e(24, _ = ve.theme), "placement" in ve && e(0, q = ve.placement), "audioInstance" in ve && e(25, ee = ve.audioInstance), "audioPlaying" in ve && e(1, K = ve.audioPlaying), "audioCurrentTime" in ve && e(26, se = ve.audioCurrentTime), "audioDuration" in ve && e(27, te = ve.audioDuration), "$$scope" in ve && e(37, S = ve.$$scope);
|
|
42188
42193
|
}, n.$$.update = () => {
|
|
42189
42194
|
var ve, Be, de, ye, ze, Xe;
|
|
42190
42195
|
n.$$.dirty[0] & /*tag*/
|
|
@@ -42276,7 +42281,7 @@ function Ck(n, t, e) {
|
|
|
42276
42281
|
_,
|
|
42277
42282
|
ee,
|
|
42278
42283
|
se,
|
|
42279
|
-
|
|
42284
|
+
te,
|
|
42280
42285
|
V,
|
|
42281
42286
|
j,
|
|
42282
42287
|
D,
|
|
@@ -43349,16 +43354,16 @@ function Fk(n, t, e) {
|
|
|
43349
43354
|
}, se = ($) => {
|
|
43350
43355
|
f || ue(), $.stopPropagation(), m.emit("click", { event: $, target: "TagPopoverContent", tag: p });
|
|
43351
43356
|
};
|
|
43352
|
-
let
|
|
43357
|
+
let te = null, le = !1;
|
|
43353
43358
|
function Se() {
|
|
43354
|
-
w &&
|
|
43359
|
+
w && te && te.parentNode !== w && w.appendChild(te);
|
|
43355
43360
|
}
|
|
43356
43361
|
Lt(() => {
|
|
43357
43362
|
(!A || A === document.body) && console.warn("TagPopover 组件警告:禁止使用 document.body 作为 wrapperElement,请传入自定义容器元素。"), le = !0, Se(), A && A !== document.body && e(25, A.style.overflow = "hidden", A);
|
|
43358
43363
|
}), qh(() => {
|
|
43359
43364
|
le && Se();
|
|
43360
43365
|
}), ri(() => {
|
|
43361
|
-
|
|
43366
|
+
te && te.parentNode && te.parentNode.removeChild(te), A && A !== document.body && e(25, A.style.overflow = "", A);
|
|
43362
43367
|
});
|
|
43363
43368
|
function ue() {
|
|
43364
43369
|
typeof L == "function" && L(), b("close");
|
|
@@ -43376,7 +43381,7 @@ function Fk(n, t, e) {
|
|
|
43376
43381
|
}
|
|
43377
43382
|
function Le($) {
|
|
43378
43383
|
qe[$ ? "unshift" : "push"](() => {
|
|
43379
|
-
|
|
43384
|
+
te = $, e(10, te);
|
|
43380
43385
|
});
|
|
43381
43386
|
}
|
|
43382
43387
|
return n.$$set = ($) => {
|
|
@@ -43431,7 +43436,7 @@ function Fk(n, t, e) {
|
|
|
43431
43436
|
V,
|
|
43432
43437
|
S,
|
|
43433
43438
|
C,
|
|
43434
|
-
|
|
43439
|
+
te,
|
|
43435
43440
|
f,
|
|
43436
43441
|
u,
|
|
43437
43442
|
h,
|
|
@@ -43985,7 +43990,7 @@ function Zk(n, t, e) {
|
|
|
43985
43990
|
);
|
|
43986
43991
|
}, se = () => {
|
|
43987
43992
|
C = !0, V && clearTimeout(V);
|
|
43988
|
-
},
|
|
43993
|
+
}, te = () => {
|
|
43989
43994
|
C = !1, K(!1);
|
|
43990
43995
|
}, le = ($) => {
|
|
43991
43996
|
var Me, Re, ve, Be, de, ye;
|
|
@@ -44078,7 +44083,7 @@ function Zk(n, t, e) {
|
|
|
44078
44083
|
D,
|
|
44079
44084
|
q,
|
|
44080
44085
|
se,
|
|
44081
|
-
|
|
44086
|
+
te,
|
|
44082
44087
|
le,
|
|
44083
44088
|
Se,
|
|
44084
44089
|
ue,
|
|
@@ -44382,7 +44387,7 @@ class ah extends D8 {
|
|
|
44382
44387
|
/** 全局 hover 启用状态,默认 true */
|
|
44383
44388
|
d(this, "globalHoverEnabled", !0);
|
|
44384
44389
|
/** 更改 tag 模型 */
|
|
44385
|
-
d(this, "changeTagModel", (e, i) =>
|
|
44390
|
+
d(this, "changeTagModel", (e, i) => ie(this, null, function* () {
|
|
44386
44391
|
var s;
|
|
44387
44392
|
e.data = et({}, e.data, i), yield (s = e.loadModel) == null ? void 0 : s.call(e);
|
|
44388
44393
|
}));
|
|
@@ -44418,7 +44423,7 @@ class ah extends D8 {
|
|
|
44418
44423
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
44419
44424
|
}, 1e3);
|
|
44420
44425
|
});
|
|
44421
|
-
d(this, "handleFivePanoArrived", () =>
|
|
44426
|
+
d(this, "handleFivePanoArrived", () => ie(this, null, function* () {
|
|
44422
44427
|
this.filter2DPointTag.forEach((e) => {
|
|
44423
44428
|
e.state.visible = !1, e.applyVisible();
|
|
44424
44429
|
}), this.tagsDo(this.tags, (e) => {
|
|
@@ -44506,7 +44511,7 @@ class ah extends D8 {
|
|
|
44506
44511
|
* @description 加载数据
|
|
44507
44512
|
*/
|
|
44508
44513
|
load(e) {
|
|
44509
|
-
return
|
|
44514
|
+
return ie(this, null, function* () {
|
|
44510
44515
|
var o, r;
|
|
44511
44516
|
this.clearTags();
|
|
44512
44517
|
try {
|
|
@@ -44539,7 +44544,7 @@ class ah extends D8 {
|
|
|
44539
44544
|
* @description 添加标签
|
|
44540
44545
|
*/
|
|
44541
44546
|
addTag(e) {
|
|
44542
|
-
return
|
|
44547
|
+
return ie(this, null, function* () {
|
|
44543
44548
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
44544
44549
|
const r = gu(o);
|
|
44545
44550
|
if (r === "2DPoint" || r === "3DPoint")
|
|
@@ -44549,7 +44554,7 @@ class ah extends D8 {
|
|
|
44549
44554
|
if (r === "Plane")
|
|
44550
44555
|
return new D7(this, o);
|
|
44551
44556
|
});
|
|
44552
|
-
return s.forEach((o) => m8(o)), this.tags.push(...s), this.tagsLengthWillUpdate = !0, yi(this.five).then(() =>
|
|
44557
|
+
return s.forEach((o) => m8(o)), this.tags.push(...s), this.tagsLengthWillUpdate = !0, yi(this.five).then(() => ie(this, null, function* () {
|
|
44553
44558
|
var o, r;
|
|
44554
44559
|
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(s, (a) => {
|
|
44555
44560
|
this.tags.includes(a) && (a.updateVisible(), a.updateZIndex());
|
|
@@ -44586,7 +44591,7 @@ class ah extends D8 {
|
|
|
44586
44591
|
});
|
|
44587
44592
|
}
|
|
44588
44593
|
show(e) {
|
|
44589
|
-
return
|
|
44594
|
+
return ie(this, null, function* () {
|
|
44590
44595
|
if (this.checkDisposed())
|
|
44591
44596
|
return;
|
|
44592
44597
|
const { userAction: i = !0 } = e != null ? e : {};
|
|
@@ -44594,7 +44599,7 @@ class ah extends D8 {
|
|
|
44594
44599
|
});
|
|
44595
44600
|
}
|
|
44596
44601
|
hide(e) {
|
|
44597
|
-
return
|
|
44602
|
+
return ie(this, null, function* () {
|
|
44598
44603
|
if (this.checkDisposed())
|
|
44599
44604
|
return;
|
|
44600
44605
|
const { userAction: i = !0 } = e != null ? e : {};
|
|
@@ -44635,7 +44640,7 @@ class ah extends D8 {
|
|
|
44635
44640
|
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
44636
44641
|
*/
|
|
44637
44642
|
blinkTagById(e, i) {
|
|
44638
|
-
return
|
|
44643
|
+
return ie(this, null, function* () {
|
|
44639
44644
|
var s;
|
|
44640
44645
|
return (s = this.getTagById(e)) == null ? void 0 : s.blink(i);
|
|
44641
44646
|
});
|
|
@@ -44724,7 +44729,7 @@ class ah extends D8 {
|
|
|
44724
44729
|
* @description 设置 unfolded
|
|
44725
44730
|
*/
|
|
44726
44731
|
setUnfolded() {
|
|
44727
|
-
return
|
|
44732
|
+
return ie(this, null, function* () {
|
|
44728
44733
|
return new Promise((e) => {
|
|
44729
44734
|
setTimeout(() => {
|
|
44730
44735
|
this.setUnfoldedByCamera(), e();
|
|
@@ -45694,7 +45699,7 @@ class uv extends us {
|
|
|
45694
45699
|
* @description Show guide line
|
|
45695
45700
|
*/
|
|
45696
45701
|
show(e) {
|
|
45697
|
-
return
|
|
45702
|
+
return ie(this, null, function* () {
|
|
45698
45703
|
this.setState({ visible: !0 }, e);
|
|
45699
45704
|
});
|
|
45700
45705
|
}
|
|
@@ -45702,7 +45707,7 @@ class uv extends us {
|
|
|
45702
45707
|
* @description Hide guide line
|
|
45703
45708
|
*/
|
|
45704
45709
|
hide(e) {
|
|
45705
|
-
return
|
|
45710
|
+
return ie(this, null, function* () {
|
|
45706
45711
|
this.setState({ visible: !1 }, e);
|
|
45707
45712
|
});
|
|
45708
45713
|
}
|
|
@@ -45903,7 +45908,7 @@ let dv = class extends uv {
|
|
|
45903
45908
|
return i ? this.setState(i) : (this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed)), Promise.resolve();
|
|
45904
45909
|
}
|
|
45905
45910
|
handlePlay() {
|
|
45906
|
-
return new Promise((e, i) =>
|
|
45911
|
+
return new Promise((e, i) => ie(this, null, function* () {
|
|
45907
45912
|
var l;
|
|
45908
45913
|
this.hooks.emit("play", { userAction: !0 });
|
|
45909
45914
|
const s = this.getPauseData();
|
|
@@ -45949,7 +45954,7 @@ function u6(n, t) {
|
|
|
45949
45954
|
const e = lm(n), i = lm(t);
|
|
45950
45955
|
return e.angleTo(i);
|
|
45951
45956
|
}
|
|
45952
|
-
const d6 = (n) =>
|
|
45957
|
+
const d6 = (n) => ie(void 0, null, function* () {
|
|
45953
45958
|
try {
|
|
45954
45959
|
n().then(() => {
|
|
45955
45960
|
}, () => {
|
|
@@ -45966,7 +45971,7 @@ function fv(n) {
|
|
|
45966
45971
|
});
|
|
45967
45972
|
}
|
|
45968
45973
|
function f6(n) {
|
|
45969
|
-
return
|
|
45974
|
+
return ie(this, null, function* () {
|
|
45970
45975
|
return new Promise((t) => {
|
|
45971
45976
|
if (n.work) {
|
|
45972
45977
|
t();
|
|
@@ -46007,7 +46012,7 @@ class xu extends uv {
|
|
|
46007
46012
|
* @description Load Data and State
|
|
46008
46013
|
*/
|
|
46009
46014
|
load(e, i, s) {
|
|
46010
|
-
return
|
|
46015
|
+
return ie(this, null, function* () {
|
|
46011
46016
|
var h, u;
|
|
46012
46017
|
this.clear();
|
|
46013
46018
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
@@ -46051,7 +46056,7 @@ class xu extends uv {
|
|
|
46051
46056
|
* @description Format data
|
|
46052
46057
|
*/
|
|
46053
46058
|
formatData(e) {
|
|
46054
|
-
return
|
|
46059
|
+
return ie(this, null, function* () {
|
|
46055
46060
|
this.five.work || (yield f6(this.five));
|
|
46056
46061
|
const i = (() => {
|
|
46057
46062
|
const s = e;
|
|
@@ -46103,7 +46108,7 @@ class xu extends uv {
|
|
|
46103
46108
|
*/
|
|
46104
46109
|
// eslint-disable-next-line complexity
|
|
46105
46110
|
handlePlay(e) {
|
|
46106
|
-
return
|
|
46111
|
+
return ie(this, null, function* () {
|
|
46107
46112
|
var m;
|
|
46108
46113
|
const { data: i, state: s, privateState: o, hooks: r } = this;
|
|
46109
46114
|
if (o.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
|
|
@@ -46113,7 +46118,7 @@ class xu extends uv {
|
|
|
46113
46118
|
const l = i.keyframes, c = this.getPauseData();
|
|
46114
46119
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
46115
46120
|
let h = !1;
|
|
46116
|
-
const f = yield (() =>
|
|
46121
|
+
const f = yield (() => ie(this, null, function* () {
|
|
46117
46122
|
var p, g;
|
|
46118
46123
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
46119
46124
|
return e.playFromIndex;
|
|
@@ -46202,7 +46207,7 @@ class xu extends uv {
|
|
|
46202
46207
|
* @description Play single keyframe
|
|
46203
46208
|
*/
|
|
46204
46209
|
playKeyframe(e, i) {
|
|
46205
|
-
return
|
|
46210
|
+
return ie(this, null, function* () {
|
|
46206
46211
|
var o;
|
|
46207
46212
|
const { privateState: s } = this;
|
|
46208
46213
|
return ((o = this.privateState.currentPlayKeyframe) == null ? void 0 : o.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), s.currentPlayQueue.push(this.getPlayPromise(e, i)), this.actionPromiseQueue();
|
|
@@ -46212,7 +46217,7 @@ class xu extends uv {
|
|
|
46212
46217
|
* @description: getPlayPromise
|
|
46213
46218
|
*/
|
|
46214
46219
|
getPlayPromise(s) {
|
|
46215
|
-
return
|
|
46220
|
+
return ie(this, arguments, function* (e, i = {}) {
|
|
46216
46221
|
var r;
|
|
46217
46222
|
const o = e.data;
|
|
46218
46223
|
if (i.duration = (r = i.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!o)
|
|
@@ -46247,7 +46252,7 @@ class xu extends uv {
|
|
|
46247
46252
|
* @description Action promise queue in sequence
|
|
46248
46253
|
*/
|
|
46249
46254
|
actionPromiseQueue() {
|
|
46250
|
-
return
|
|
46255
|
+
return ie(this, null, function* () {
|
|
46251
46256
|
const { privateState: e } = this;
|
|
46252
46257
|
return new Promise((i, s) => {
|
|
46253
46258
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -46267,7 +46272,7 @@ class xu extends uv {
|
|
|
46267
46272
|
* @description Action move keyframe
|
|
46268
46273
|
*/
|
|
46269
46274
|
move(e, i) {
|
|
46270
|
-
return
|
|
46275
|
+
return ie(this, null, function* () {
|
|
46271
46276
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
46272
46277
|
yield this.changeMode(e);
|
|
46273
46278
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -46280,7 +46285,7 @@ class xu extends uv {
|
|
|
46280
46285
|
* @description Action rotate keyframe
|
|
46281
46286
|
*/
|
|
46282
46287
|
rotate(e, i) {
|
|
46283
|
-
return
|
|
46288
|
+
return ie(this, null, function* () {
|
|
46284
46289
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
46285
46290
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
46286
46291
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -46292,7 +46297,7 @@ class xu extends uv {
|
|
|
46292
46297
|
* @description Update five camera
|
|
46293
46298
|
*/
|
|
46294
46299
|
updateCamera(s) {
|
|
46295
|
-
return
|
|
46300
|
+
return ie(this, arguments, function* (e, i = {}) {
|
|
46296
46301
|
const { five: o, privateState: r, state: a } = this, l = (() => {
|
|
46297
46302
|
var m, p;
|
|
46298
46303
|
const u = (m = a.config) == null ? void 0 : m.speedConfig, f = (p = e.rotateSpeed) != null ? p : u == null ? void 0 : u.rotateSpeed;
|
|
@@ -46320,7 +46325,7 @@ class xu extends uv {
|
|
|
46320
46325
|
* @description: Change five pano
|
|
46321
46326
|
*/
|
|
46322
46327
|
changePano(e, i) {
|
|
46323
|
-
return
|
|
46328
|
+
return ie(this, null, function* () {
|
|
46324
46329
|
const { five: s, privateState: o, state: r } = this;
|
|
46325
46330
|
if (typeof e.panoIndex != "number" || e.panoIndex === s.panoIndex)
|
|
46326
46331
|
return;
|
|
@@ -46361,7 +46366,7 @@ class xu extends uv {
|
|
|
46361
46366
|
* @description Change five mode
|
|
46362
46367
|
*/
|
|
46363
46368
|
changeMode(e, i) {
|
|
46364
|
-
return
|
|
46369
|
+
return ie(this, null, function* () {
|
|
46365
46370
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, i), this.privateState.modeChanging = !1);
|
|
46366
46371
|
});
|
|
46367
46372
|
}
|
|
@@ -46406,7 +46411,7 @@ class pv {
|
|
|
46406
46411
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
46407
46412
|
}
|
|
46408
46413
|
walk(t) {
|
|
46409
|
-
return
|
|
46414
|
+
return ie(this, null, function* () {
|
|
46410
46415
|
if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
|
|
46411
46416
|
const e = B({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield js(g6(this.five, e));
|
|
46412
46417
|
if (i)
|
|
@@ -46421,13 +46426,13 @@ class pv {
|
|
|
46421
46426
|
}
|
|
46422
46427
|
}
|
|
46423
46428
|
function p6(n, t) {
|
|
46424
|
-
return
|
|
46429
|
+
return ie(this, null, function* () {
|
|
46425
46430
|
const e = new dv(n);
|
|
46426
46431
|
yield e.load(t), e.playFromStart();
|
|
46427
46432
|
});
|
|
46428
46433
|
}
|
|
46429
46434
|
function g6(n, t) {
|
|
46430
|
-
return
|
|
46435
|
+
return ie(this, null, function* () {
|
|
46431
46436
|
if (t.panoIndexList.length === 0)
|
|
46432
46437
|
return;
|
|
46433
46438
|
const e = n.getCurrentState();
|
|
@@ -46493,7 +46498,7 @@ let m6 = class extends kn {
|
|
|
46493
46498
|
return this._disposed;
|
|
46494
46499
|
}
|
|
46495
46500
|
load(e, i, s = !0) {
|
|
46496
|
-
return
|
|
46501
|
+
return ie(this, null, function* () {
|
|
46497
46502
|
var p, g, v, A, w, E, k;
|
|
46498
46503
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
46499
46504
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
@@ -46517,19 +46522,19 @@ let m6 = class extends kn {
|
|
|
46517
46522
|
});
|
|
46518
46523
|
}
|
|
46519
46524
|
formatData(e) {
|
|
46520
|
-
return
|
|
46525
|
+
return ie(this, null, function* () {
|
|
46521
46526
|
return this.getDataWithoutVersion(e);
|
|
46522
46527
|
});
|
|
46523
46528
|
}
|
|
46524
46529
|
/** 展示插件 */
|
|
46525
46530
|
show(e) {
|
|
46526
|
-
return
|
|
46531
|
+
return ie(this, null, function* () {
|
|
46527
46532
|
this.setState({ visible: !0 }, e);
|
|
46528
46533
|
});
|
|
46529
46534
|
}
|
|
46530
46535
|
/** 隐藏插件 */
|
|
46531
46536
|
hide(e) {
|
|
46532
|
-
return
|
|
46537
|
+
return ie(this, null, function* () {
|
|
46533
46538
|
this.setState({ visible: !1 }, e);
|
|
46534
46539
|
});
|
|
46535
46540
|
}
|
|
@@ -47677,7 +47682,7 @@ class U6 {
|
|
|
47677
47682
|
* @description Show guide line
|
|
47678
47683
|
*/
|
|
47679
47684
|
show(t) {
|
|
47680
|
-
return
|
|
47685
|
+
return ie(this, null, function* () {
|
|
47681
47686
|
this.setState({ visible: !0 }, t);
|
|
47682
47687
|
});
|
|
47683
47688
|
}
|
|
@@ -47685,7 +47690,7 @@ class U6 {
|
|
|
47685
47690
|
* @description Hide guide line
|
|
47686
47691
|
*/
|
|
47687
47692
|
hide(t) {
|
|
47688
|
-
return
|
|
47693
|
+
return ie(this, null, function* () {
|
|
47689
47694
|
this.setState({ visible: !1 }, t);
|
|
47690
47695
|
});
|
|
47691
47696
|
}
|
|
@@ -47969,12 +47974,12 @@ class X6 extends Jr {
|
|
|
47969
47974
|
if (T.equals(S))
|
|
47970
47975
|
return I;
|
|
47971
47976
|
if (C === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
47972
|
-
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0,
|
|
47973
|
-
this.startInfo.dragPointInCenterBottom = K || se ||
|
|
47977
|
+
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, te = ee.z < 0 && M.z >= 0;
|
|
47978
|
+
this.startInfo.dragPointInCenterBottom = K || se || te;
|
|
47974
47979
|
}
|
|
47975
47980
|
if (C === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
47976
|
-
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0,
|
|
47977
|
-
this.startInfo.dragPointInCenterLeft = K || se ||
|
|
47981
|
+
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, te = ee.z < 0 && M.z >= 0;
|
|
47982
|
+
this.startInfo.dragPointInCenterLeft = K || se || te;
|
|
47978
47983
|
}
|
|
47979
47984
|
const _ = new Ae().subVectors(T, S), q = _.length();
|
|
47980
47985
|
return q > 0.3 ? (console.warn("offset.length() > 0.3, skipped", q), I) : _;
|
|
@@ -48348,7 +48353,7 @@ class mv extends us {
|
|
|
48348
48353
|
* @description Show guide line
|
|
48349
48354
|
*/
|
|
48350
48355
|
show(e) {
|
|
48351
|
-
return
|
|
48356
|
+
return ie(this, null, function* () {
|
|
48352
48357
|
this.setState({ visible: !0 }, e);
|
|
48353
48358
|
});
|
|
48354
48359
|
}
|
|
@@ -48356,7 +48361,7 @@ class mv extends us {
|
|
|
48356
48361
|
* @description Hide guide line
|
|
48357
48362
|
*/
|
|
48358
48363
|
hide(e) {
|
|
48359
|
-
return
|
|
48364
|
+
return ie(this, null, function* () {
|
|
48360
48365
|
this.setState({ visible: !1 }, e);
|
|
48361
48366
|
});
|
|
48362
48367
|
}
|
|
@@ -49191,7 +49196,7 @@ class mo extends P.Mesh {
|
|
|
49191
49196
|
return e.wrapS = P.RepeatWrapping, e.wrapT = P.RepeatWrapping, e;
|
|
49192
49197
|
}
|
|
49193
49198
|
hide(e) {
|
|
49194
|
-
return
|
|
49199
|
+
return ie(this, null, function* () {
|
|
49195
49200
|
var o;
|
|
49196
49201
|
(o = this.opacityAnime) == null || o.dispose();
|
|
49197
49202
|
const i = 0;
|
|
@@ -49206,7 +49211,7 @@ class mo extends P.Mesh {
|
|
|
49206
49211
|
});
|
|
49207
49212
|
}
|
|
49208
49213
|
show(e) {
|
|
49209
|
-
return
|
|
49214
|
+
return ie(this, null, function* () {
|
|
49210
49215
|
var o;
|
|
49211
49216
|
(o = this.opacityAnime) == null || o.dispose();
|
|
49212
49217
|
const i = 1;
|
|
@@ -49365,10 +49370,10 @@ let wx = class extends kn {
|
|
|
49365
49370
|
*/
|
|
49366
49371
|
// eslint-disable-next-line max-params
|
|
49367
49372
|
load(e, i, s, o) {
|
|
49368
|
-
return
|
|
49373
|
+
return ie(this, null, function* () {
|
|
49369
49374
|
const r = this.data;
|
|
49370
49375
|
this.data = yield this.formatData(e, o), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
49371
|
-
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((u) =>
|
|
49376
|
+
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((u) => ie(this, [u], function* ({ id: a, texture: l, path: c, radius: h }) {
|
|
49372
49377
|
const f = yield this.loadPipeTexture(l), m = { id: a, path: c, textureURL: l, texture: f, geometryConfig: { radius: h } };
|
|
49373
49378
|
return new yx(m);
|
|
49374
49379
|
}))
|
|
@@ -49432,7 +49437,7 @@ let wx = class extends kn {
|
|
|
49432
49437
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
49433
49438
|
*/
|
|
49434
49439
|
show() {
|
|
49435
|
-
return
|
|
49440
|
+
return ie(this, arguments, function* (e = {}) {
|
|
49436
49441
|
if (this.state.visible)
|
|
49437
49442
|
return;
|
|
49438
49443
|
const i = B({
|
|
@@ -49449,7 +49454,7 @@ let wx = class extends kn {
|
|
|
49449
49454
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
49450
49455
|
*/
|
|
49451
49456
|
hide() {
|
|
49452
|
-
return
|
|
49457
|
+
return ie(this, arguments, function* (e = {}) {
|
|
49453
49458
|
if (this.state.visible === !1)
|
|
49454
49459
|
return;
|
|
49455
49460
|
const i = B({
|
|
@@ -49470,7 +49475,7 @@ let wx = class extends kn {
|
|
|
49470
49475
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
49471
49476
|
* */
|
|
49472
49477
|
switchPipelines(e) {
|
|
49473
|
-
return
|
|
49478
|
+
return ie(this, null, function* () {
|
|
49474
49479
|
var c, h, u, f, m, p;
|
|
49475
49480
|
if (!this.data)
|
|
49476
49481
|
return;
|
|
@@ -49511,7 +49516,7 @@ let wx = class extends kn {
|
|
|
49511
49516
|
this.updateState({ speed: i }, s), this._setSpeed(i);
|
|
49512
49517
|
}
|
|
49513
49518
|
formatData(e, i) {
|
|
49514
|
-
return
|
|
49519
|
+
return ie(this, null, function* () {
|
|
49515
49520
|
return lx(e, i);
|
|
49516
49521
|
});
|
|
49517
49522
|
}
|
|
@@ -49522,7 +49527,7 @@ let wx = class extends kn {
|
|
|
49522
49527
|
this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
49523
49528
|
}
|
|
49524
49529
|
_show(e) {
|
|
49525
|
-
return
|
|
49530
|
+
return ie(this, null, function* () {
|
|
49526
49531
|
var o;
|
|
49527
49532
|
this.hooks.emit("show", { userAction: e.userAction });
|
|
49528
49533
|
const i = (o = e == null ? void 0 : e.anime) != null ? o : { duration: 500 }, s = this.findPipeObjectWithTarget(this.state.target);
|
|
@@ -49530,7 +49535,7 @@ let wx = class extends kn {
|
|
|
49530
49535
|
});
|
|
49531
49536
|
}
|
|
49532
49537
|
_hide(e) {
|
|
49533
|
-
return
|
|
49538
|
+
return ie(this, null, function* () {
|
|
49534
49539
|
var s;
|
|
49535
49540
|
this.hooks.emit("hide", { userAction: e.userAction });
|
|
49536
49541
|
const i = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 };
|
|
@@ -49538,7 +49543,7 @@ let wx = class extends kn {
|
|
|
49538
49543
|
});
|
|
49539
49544
|
}
|
|
49540
49545
|
_switchPipelines(e) {
|
|
49541
|
-
return
|
|
49546
|
+
return ie(this, null, function* () {
|
|
49542
49547
|
if (!this.data)
|
|
49543
49548
|
return;
|
|
49544
49549
|
const i = this.findPipeObjectWithTarget(e.target), s = e.hideAnime;
|
|
@@ -49562,7 +49567,7 @@ let wx = class extends kn {
|
|
|
49562
49567
|
}
|
|
49563
49568
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
49564
49569
|
loadPipeTexture(e) {
|
|
49565
|
-
return
|
|
49570
|
+
return ie(this, null, function* () {
|
|
49566
49571
|
const i = this.texturePromiseCache.get(e);
|
|
49567
49572
|
if (i)
|
|
49568
49573
|
return i;
|
|
@@ -50196,7 +50201,7 @@ let Sx = class extends kn {
|
|
|
50196
50201
|
}
|
|
50197
50202
|
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
50198
50203
|
load(e) {
|
|
50199
|
-
return
|
|
50204
|
+
return ie(this, null, function* () {
|
|
50200
50205
|
const i = this.data;
|
|
50201
50206
|
this.data = this.formatData(e), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.forEach((s) => s.unmount()), this.itemMap.clear(), this.childrenMountedState = !1, this.checkMsg.childrenMountedState = "", this.data.list.forEach((s) => {
|
|
50202
50207
|
const o = new kx(this, s);
|
|
@@ -50235,7 +50240,7 @@ let Sx = class extends kn {
|
|
|
50235
50240
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50236
50241
|
*/
|
|
50237
50242
|
show(e) {
|
|
50238
|
-
return
|
|
50243
|
+
return ie(this, null, function* () {
|
|
50239
50244
|
if (this.state.visible)
|
|
50240
50245
|
return Promise.resolve();
|
|
50241
50246
|
if (this.disposed)
|
|
@@ -50249,7 +50254,7 @@ let Sx = class extends kn {
|
|
|
50249
50254
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50250
50255
|
*/
|
|
50251
50256
|
hide(e) {
|
|
50252
|
-
return
|
|
50257
|
+
return ie(this, null, function* () {
|
|
50253
50258
|
if (this.state.visible === !1)
|
|
50254
50259
|
return;
|
|
50255
50260
|
const i = B({ userAction: !0 }, e);
|
|
@@ -50360,12 +50365,12 @@ let Sx = class extends kn {
|
|
|
50360
50365
|
this.hooks.emit("disable", { userAction: e.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
50361
50366
|
}
|
|
50362
50367
|
_show(e) {
|
|
50363
|
-
return
|
|
50368
|
+
return ie(this, null, function* () {
|
|
50364
50369
|
this.hooks.emit("show", e), this.five.needsRender = !0;
|
|
50365
50370
|
});
|
|
50366
50371
|
}
|
|
50367
50372
|
_hide(e) {
|
|
50368
|
-
return
|
|
50373
|
+
return ie(this, null, function* () {
|
|
50369
50374
|
this.hooks.emit("hide", e), this.five.needsRender = !0;
|
|
50370
50375
|
});
|
|
50371
50376
|
}
|
|
@@ -50491,7 +50496,7 @@ class Dx extends us {
|
|
|
50491
50496
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50492
50497
|
*/
|
|
50493
50498
|
show(e) {
|
|
50494
|
-
return
|
|
50499
|
+
return ie(this, null, function* () {
|
|
50495
50500
|
if (this.state.visible)
|
|
50496
50501
|
return Promise.resolve();
|
|
50497
50502
|
if (this.disposed)
|
|
@@ -50505,7 +50510,7 @@ class Dx extends us {
|
|
|
50505
50510
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50506
50511
|
*/
|
|
50507
50512
|
hide(e) {
|
|
50508
|
-
return
|
|
50513
|
+
return ie(this, null, function* () {
|
|
50509
50514
|
if (this.state.visible === !1)
|
|
50510
50515
|
return;
|
|
50511
50516
|
const i = B({ userAction: !0 }, e);
|
|
@@ -50568,7 +50573,7 @@ class Dx extends us {
|
|
|
50568
50573
|
}
|
|
50569
50574
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
50570
50575
|
reloadTexture(e) {
|
|
50571
|
-
return
|
|
50576
|
+
return ie(this, null, function* () {
|
|
50572
50577
|
if (this.mesh.material.map = null, e !== "") {
|
|
50573
50578
|
const i = Ds(e);
|
|
50574
50579
|
this.textureLoadingPromise = i;
|
|
@@ -51028,7 +51033,7 @@ class mm extends Fi {
|
|
|
51028
51033
|
(e = this.creatingObject) == null || e.redo();
|
|
51029
51034
|
}
|
|
51030
51035
|
create(e) {
|
|
51031
|
-
return
|
|
51036
|
+
return ie(this, null, function* () {
|
|
51032
51037
|
this.removeChildren();
|
|
51033
51038
|
const i = new $n(e);
|
|
51034
51039
|
this.polyLineMesh = i, this.add(this.polyLineMesh), this.creatingObject = jx(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
@@ -51134,7 +51139,7 @@ class vm extends Fi {
|
|
|
51134
51139
|
* @description: 创建点
|
|
51135
51140
|
*/
|
|
51136
51141
|
create(e) {
|
|
51137
|
-
return
|
|
51142
|
+
return ie(this, null, function* () {
|
|
51138
51143
|
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new Cn(e)), yield Pv(this.pointMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51139
51144
|
});
|
|
51140
51145
|
}
|
|
@@ -51265,7 +51270,7 @@ class Am extends Fi {
|
|
|
51265
51270
|
return (i = (e = this.creatingObject) == null ? void 0 : e.redo) == null ? void 0 : i.call(e);
|
|
51266
51271
|
}
|
|
51267
51272
|
create(e) {
|
|
51268
|
-
return
|
|
51273
|
+
return ie(this, null, function* () {
|
|
51269
51274
|
var s;
|
|
51270
51275
|
this.children.forEach((o) => {
|
|
51271
51276
|
o.parent === this && this.remove(o);
|
|
@@ -51297,11 +51302,11 @@ function Ou(n, t, e) {
|
|
|
51297
51302
|
var Te;
|
|
51298
51303
|
return (Te = ue.parent) == null ? void 0 : Te.remove(ue);
|
|
51299
51304
|
});
|
|
51300
|
-
const
|
|
51305
|
+
const te = (Se = (le = n.line) == null ? void 0 : le.style) != null ? Se : n.style;
|
|
51301
51306
|
m = v.map((ue, Te) => {
|
|
51302
51307
|
var he;
|
|
51303
|
-
const fe = new Cn(ce(B({},
|
|
51304
|
-
color: (he =
|
|
51308
|
+
const fe = new Cn(ce(B({}, te), {
|
|
51309
|
+
color: (he = te.pointColor) != null ? he : te.lineColor,
|
|
51305
51310
|
tip: void 0,
|
|
51306
51311
|
point: ue
|
|
51307
51312
|
}));
|
|
@@ -51309,38 +51314,38 @@ function Ou(n, t, e) {
|
|
|
51309
51314
|
});
|
|
51310
51315
|
}
|
|
51311
51316
|
function g() {
|
|
51312
|
-
m.forEach((
|
|
51317
|
+
m.forEach((te) => {
|
|
51313
51318
|
var le;
|
|
51314
|
-
return (le =
|
|
51319
|
+
return (le = te.parent) == null ? void 0 : le.remove(te);
|
|
51315
51320
|
}), m = [];
|
|
51316
51321
|
}
|
|
51317
51322
|
t.enable(), l && t.setAdherePoints([]);
|
|
51318
51323
|
const v = [];
|
|
51319
51324
|
let A, w, E = !1, k;
|
|
51320
51325
|
const L = [], D = () => v.length > 0, j = () => L.length > 0, z = () => {
|
|
51321
|
-
var
|
|
51322
|
-
D() && (L.push(v.pop()), C(k), p(), (
|
|
51326
|
+
var te;
|
|
51327
|
+
D() && (L.push(v.pop()), C(k), p(), (te = e == null ? void 0 : e.onUndo) == null || te.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51323
51328
|
}, V = () => {
|
|
51324
|
-
var
|
|
51325
|
-
j() && (v.push(L.pop()), C(k), p(), (
|
|
51326
|
-
}, b = (
|
|
51329
|
+
var te;
|
|
51330
|
+
j() && (v.push(L.pop()), C(k), p(), (te = e == null ? void 0 : e.onRedo) == null || te.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51331
|
+
}, b = (te) => {
|
|
51327
51332
|
var Se;
|
|
51328
51333
|
L.length = 0;
|
|
51329
|
-
let le = v.length === 0 ?
|
|
51334
|
+
let le = v.length === 0 ? te.point : A.clone();
|
|
51330
51335
|
l && (le = le.clone().setY(h)), v.push(le), n.setPoints(v, { closed: !1 }), p(), (Se = e == null ? void 0 : e.onPointPlaced) == null || Se.call(e, v), E && (I(), s());
|
|
51331
|
-
}, C = (
|
|
51336
|
+
}, C = (te) => {
|
|
51332
51337
|
const le = () => {
|
|
51333
51338
|
u.setPoints([]), f.setPoints([]), n.setPoints(v), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render();
|
|
51334
51339
|
};
|
|
51335
|
-
if (!
|
|
51340
|
+
if (!te) {
|
|
51336
51341
|
le(), p();
|
|
51337
51342
|
return;
|
|
51338
51343
|
}
|
|
51339
|
-
if (k =
|
|
51344
|
+
if (k = te, !(v != null && v.length))
|
|
51340
51345
|
return le();
|
|
51341
51346
|
const Se = v.at(-1).clone();
|
|
51342
|
-
if (v.length < 3 && (l ? (A =
|
|
51343
|
-
l ? A =
|
|
51347
|
+
if (v.length < 3 && (l ? (A = te.point.clone().setY(h), u.setPoints([Se, A]), f.setPoints([])) : a === "none" ? (A = te.point, u.setPoints([Se, A]), f.setPoints([])) : a === "xoz" ? (w = w != null ? w : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), v[0]), t.plane = w, A = w.projectPoint(te.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, te.point])) : a === "y" && (v.length === 1 ? (A = te.point, u.setPoints([Se, A]), f.setPoints([])) : (w = w != null ? w : new P.Plane().setFromCoplanarPoints(v[0], v[1], new P.Vector3(0, 1, 0).add(v[0])), t.plane = w, A = w.projectPoint(te.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, te.point])))), v.length >= 3) {
|
|
51348
|
+
l ? A = te.point.clone().setY(h) : A = n.projectPoint(te.point);
|
|
51344
51349
|
const ue = v[0];
|
|
51345
51350
|
let Te = !1;
|
|
51346
51351
|
if (typeof (e == null ? void 0 : e.autoClosePixelDistance) == "number") {
|
|
@@ -51351,12 +51356,12 @@ function Ou(n, t, e) {
|
|
|
51351
51356
|
x: (ze.x * 0.5 + 0.5) * he,
|
|
51352
51357
|
y: (1 - (ze.y * 0.5 + 0.5)) * Le
|
|
51353
51358
|
};
|
|
51354
|
-
}, Me = $(ue), Re = $(A), ve = $(
|
|
51359
|
+
}, Me = $(ue), Re = $(A), ve = $(te.point), Be = Math.sqrt(Fn(Me.x - Re.x, 2) + Fn(Me.y - Re.y, 2)), de = Math.sqrt(Fn(Me.x - ve.x, 2) + Fn(Me.y - ve.y, 2));
|
|
51355
51360
|
(Be < e.autoClosePixelDistance || de < e.autoClosePixelDistance) && (Te = !0);
|
|
51356
51361
|
}
|
|
51357
51362
|
} else
|
|
51358
|
-
(ue.distanceTo(A) < 0.2 || ue.distanceTo(
|
|
51359
|
-
Te ? (A = ue,
|
|
51363
|
+
(ue.distanceTo(A) < 0.2 || ue.distanceTo(te.point) < 0.2) && (Te = !0);
|
|
51364
|
+
Te ? (A = ue, te.point.copy(ue), t.pointSelectorHelper.updateWithIntersect(te, { emitEvent: !1 }), E = !0) : E = !1, u.setPoints([Se, A]), f.setPoints([A, te.point]);
|
|
51360
51365
|
}
|
|
51361
51366
|
v.length >= 2 ? (n.setPoints([...v, A], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, u.setStyle({ lineColor: 16734553 }), f.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, u.setStyle({ lineColor: n.lineColor }), f.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]), p();
|
|
51362
51367
|
}, I = () => {
|
|
@@ -51774,13 +51779,13 @@ class bm extends Fi {
|
|
|
51774
51779
|
(e = this.prismMesh) == null || e.unhighlight();
|
|
51775
51780
|
}
|
|
51776
51781
|
create(e) {
|
|
51777
|
-
return
|
|
51782
|
+
return ie(this, null, function* () {
|
|
51778
51783
|
this.prismMesh = new zs(e), this.add(this.prismMesh), yield Iv(this.prismMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51779
51784
|
});
|
|
51780
51785
|
}
|
|
51781
51786
|
}
|
|
51782
51787
|
function Iv(n, t) {
|
|
51783
|
-
return
|
|
51788
|
+
return ie(this, null, function* () {
|
|
51784
51789
|
const e = n.parent, i = new fh(n.style);
|
|
51785
51790
|
e.add(i), yield Ou(i, t).finished, e.remove(i), n.setPoints({ points: i.points });
|
|
51786
51791
|
const s = new wi();
|
|
@@ -51977,7 +51982,7 @@ class ym extends Fi {
|
|
|
51977
51982
|
(e = this.rectangleMesh) == null || e.unhighlight();
|
|
51978
51983
|
}
|
|
51979
51984
|
create(e) {
|
|
51980
|
-
return
|
|
51985
|
+
return ie(this, null, function* () {
|
|
51981
51986
|
this.removeChildren();
|
|
51982
51987
|
const i = new hl(e);
|
|
51983
51988
|
this.rectangleMesh = i, this.add(this.rectangleMesh), yield Ru(this.rectangleMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
@@ -52197,7 +52202,7 @@ class wm extends Fi {
|
|
|
52197
52202
|
(e = this.circleMesh) == null || e.unhighlight();
|
|
52198
52203
|
}
|
|
52199
52204
|
create(e) {
|
|
52200
|
-
return
|
|
52205
|
+
return ie(this, null, function* () {
|
|
52201
52206
|
this.children.forEach((s) => {
|
|
52202
52207
|
s.parent === this && this.remove(s);
|
|
52203
52208
|
}), this.children.length = 0;
|
|
@@ -52381,13 +52386,13 @@ class Pm extends Fi {
|
|
|
52381
52386
|
(e = this.cylinderMesh) == null || e.unhighlight();
|
|
52382
52387
|
}
|
|
52383
52388
|
create(e) {
|
|
52384
|
-
return
|
|
52389
|
+
return ie(this, null, function* () {
|
|
52385
52390
|
this.cylinderMesh = new ph(e), this.add(this.cylinderMesh), yield Tv(this.cylinderMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
52386
52391
|
});
|
|
52387
52392
|
}
|
|
52388
52393
|
}
|
|
52389
52394
|
function Tv(n, t) {
|
|
52390
|
-
return
|
|
52395
|
+
return ie(this, null, function* () {
|
|
52391
52396
|
const e = n.parent;
|
|
52392
52397
|
yield _u(n.bottomCircle, t);
|
|
52393
52398
|
const i = new wi();
|
|
@@ -52563,14 +52568,14 @@ class Cm extends Fi {
|
|
|
52563
52568
|
(e = this.boxMesh) == null || e.unhighlight();
|
|
52564
52569
|
}
|
|
52565
52570
|
create(e) {
|
|
52566
|
-
return
|
|
52571
|
+
return ie(this, null, function* () {
|
|
52567
52572
|
this.removeChildren(), this.boxMesh = new gh(e), this.add(this.boxMesh), yield zv(this.boxMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
52568
52573
|
});
|
|
52569
52574
|
}
|
|
52570
52575
|
}
|
|
52571
52576
|
function zv(n, t, e) {
|
|
52572
|
-
return
|
|
52573
|
-
return new Promise((i, s) =>
|
|
52577
|
+
return ie(this, null, function* () {
|
|
52578
|
+
return new Promise((i, s) => ie(this, null, function* () {
|
|
52574
52579
|
const o = n.parent;
|
|
52575
52580
|
if (!o) {
|
|
52576
52581
|
s(new Error("No container"));
|
|
@@ -52656,7 +52661,7 @@ class Im extends Fi {
|
|
|
52656
52661
|
(e = this.creatingObject) == null || e.redo();
|
|
52657
52662
|
}
|
|
52658
52663
|
create(e) {
|
|
52659
|
-
return
|
|
52664
|
+
return ie(this, null, function* () {
|
|
52660
52665
|
this.removeChildren();
|
|
52661
52666
|
const i = new Rr(e);
|
|
52662
52667
|
this.lineMesh = i, this.add(this.lineMesh), this.creatingObject = Ov(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
@@ -52788,7 +52793,7 @@ const vo = class extends Ct {
|
|
|
52788
52793
|
* @description: 开始绘制点
|
|
52789
52794
|
*/
|
|
52790
52795
|
createPoint(...e) {
|
|
52791
|
-
return
|
|
52796
|
+
return ie(this, null, function* () {
|
|
52792
52797
|
var i, s;
|
|
52793
52798
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.point, e[0]), this.createItem(vm, ...e);
|
|
52794
52799
|
});
|
|
@@ -52797,7 +52802,7 @@ const vo = class extends Ct {
|
|
|
52797
52802
|
* @description: 开始绘制线段
|
|
52798
52803
|
*/
|
|
52799
52804
|
createLine(...e) {
|
|
52800
|
-
return
|
|
52805
|
+
return ie(this, null, function* () {
|
|
52801
52806
|
var i, s;
|
|
52802
52807
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.line, e[0]), this.createItem(Im, ...e);
|
|
52803
52808
|
});
|
|
@@ -52806,7 +52811,7 @@ const vo = class extends Ct {
|
|
|
52806
52811
|
* @deprecated use createLine instead
|
|
52807
52812
|
*/
|
|
52808
52813
|
createline(...e) {
|
|
52809
|
-
return
|
|
52814
|
+
return ie(this, null, function* () {
|
|
52810
52815
|
this.createLine(...e);
|
|
52811
52816
|
});
|
|
52812
52817
|
}
|
|
@@ -52814,7 +52819,7 @@ const vo = class extends Ct {
|
|
|
52814
52819
|
* @description: 开始绘制空间折线
|
|
52815
52820
|
*/
|
|
52816
52821
|
createPolyline(...e) {
|
|
52817
|
-
return
|
|
52822
|
+
return ie(this, null, function* () {
|
|
52818
52823
|
var i, s;
|
|
52819
52824
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.polyline, e[0]), this.createItem(mm, ...e);
|
|
52820
52825
|
});
|
|
@@ -52823,7 +52828,7 @@ const vo = class extends Ct {
|
|
|
52823
52828
|
* @description: 开始绘制平面多边形
|
|
52824
52829
|
*/
|
|
52825
52830
|
createPolygon(...e) {
|
|
52826
|
-
return
|
|
52831
|
+
return ie(this, null, function* () {
|
|
52827
52832
|
var i, s;
|
|
52828
52833
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.polygon, e[0]), this.createItem(Am, ...e);
|
|
52829
52834
|
});
|
|
@@ -52832,7 +52837,7 @@ const vo = class extends Ct {
|
|
|
52832
52837
|
* @description: 开始绘制多棱柱
|
|
52833
52838
|
*/
|
|
52834
52839
|
createPrism(...e) {
|
|
52835
|
-
return
|
|
52840
|
+
return ie(this, null, function* () {
|
|
52836
52841
|
var i, s;
|
|
52837
52842
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.prism, e[0]), this.createItem(bm, ...e);
|
|
52838
52843
|
});
|
|
@@ -52841,7 +52846,7 @@ const vo = class extends Ct {
|
|
|
52841
52846
|
* @description: 开始绘制矩形
|
|
52842
52847
|
*/
|
|
52843
52848
|
createRectangle(...e) {
|
|
52844
|
-
return
|
|
52849
|
+
return ie(this, null, function* () {
|
|
52845
52850
|
var i, s;
|
|
52846
52851
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.rectangle, e[0]), this.createItem(ym, ...e);
|
|
52847
52852
|
});
|
|
@@ -52850,7 +52855,7 @@ const vo = class extends Ct {
|
|
|
52850
52855
|
* @description: 开始绘制圆形
|
|
52851
52856
|
*/
|
|
52852
52857
|
createCircle(...e) {
|
|
52853
|
-
return
|
|
52858
|
+
return ie(this, null, function* () {
|
|
52854
52859
|
var i, s;
|
|
52855
52860
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.circle, e[0]), this.createItem(wm, ...e);
|
|
52856
52861
|
});
|
|
@@ -52859,7 +52864,7 @@ const vo = class extends Ct {
|
|
|
52859
52864
|
* @description: 开始绘制圆柱
|
|
52860
52865
|
*/
|
|
52861
52866
|
createCylinder(...e) {
|
|
52862
|
-
return
|
|
52867
|
+
return ie(this, null, function* () {
|
|
52863
52868
|
var i, s;
|
|
52864
52869
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.cylinder, e[0]), this.createItem(Pm, ...e);
|
|
52865
52870
|
});
|
|
@@ -52868,7 +52873,7 @@ const vo = class extends Ct {
|
|
|
52868
52873
|
* @description: 开始绘制 Box
|
|
52869
52874
|
*/
|
|
52870
52875
|
createBox(...e) {
|
|
52871
|
-
return
|
|
52876
|
+
return ie(this, null, function* () {
|
|
52872
52877
|
var i, s;
|
|
52873
52878
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.box, e[0]), this.createItem(Cm, ...e);
|
|
52874
52879
|
});
|
|
@@ -52888,7 +52893,7 @@ const vo = class extends Ct {
|
|
|
52888
52893
|
Ux(this.items, (e) => e.delete()), this.five.needsRender = !0;
|
|
52889
52894
|
}
|
|
52890
52895
|
createItem(e, ...i) {
|
|
52891
|
-
return
|
|
52896
|
+
return ie(this, null, function* () {
|
|
52892
52897
|
this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
|
|
52893
52898
|
const s = new e();
|
|
52894
52899
|
this.creatingItem = s, this.group.add(s);
|
|
@@ -53154,7 +53159,7 @@ class $x extends kn {
|
|
|
53154
53159
|
d(this, "handleDisable", () => {
|
|
53155
53160
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
|
|
53156
53161
|
});
|
|
53157
|
-
d(this, "onFiveEveryReady", () =>
|
|
53162
|
+
d(this, "onFiveEveryReady", () => ie(this, null, function* () {
|
|
53158
53163
|
if (this.five.state.mode === "Panorama")
|
|
53159
53164
|
return;
|
|
53160
53165
|
const e = this.items.filter((l) => l instanceof Dc).map((l) => l.tag), i = e.filter((l) => l.position && l.visible && l.enabled);
|
|
@@ -53186,7 +53191,7 @@ class $x extends kn {
|
|
|
53186
53191
|
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
53187
53192
|
}
|
|
53188
53193
|
load(e) {
|
|
53189
|
-
return
|
|
53194
|
+
return ie(this, null, function* () {
|
|
53190
53195
|
if (this.clear(), this.data = e, this.originalOpacities.clear(), yield yi(this.five), this.data !== e)
|
|
53191
53196
|
return;
|
|
53192
53197
|
this.clear();
|