@realsee/dnalogel 3.61.7-alpha.1 → 3.61.7-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +24 -24
- package/dist/index.js +828 -823
- package/dist/index.umd.js +24 -24
- package/docs/assets/highlight.css +21 -21
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +3 -3
- 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/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 +5 -5
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +3 -3
- 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.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/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/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +3 -3
- 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.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.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.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 +5 -5
- 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 +5 -5
- 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.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -4
- 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/GuideLinePluginType.RouteConfig.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.EventMap.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/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/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +5 -5
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.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.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/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/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/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 +1 -1
- 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/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/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.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/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +13 -13
- package/libs/shared-utils/three/PointSelector/index.js +99 -94
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import { LineGeometry as AA, LineMaterial as bA, THREE_Line2 as yA, Line as wA }
|
|
|
43
43
|
import { GLTFLoader as CA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function PA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.61.7-alpha.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.61.7-alpha.2",
|
|
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",
|
|
@@ -390,10 +390,10 @@ var Ui = Object.freeze({
|
|
|
390
390
|
s[o] = l ? [] : {};
|
|
391
391
|
var u = i[o];
|
|
392
392
|
if (!this._isDynamic) {
|
|
393
|
-
var
|
|
393
|
+
var w = {};
|
|
394
394
|
for (var b in u)
|
|
395
|
-
|
|
396
|
-
i[o] = u =
|
|
395
|
+
w[b] = u[b];
|
|
396
|
+
i[o] = u = w;
|
|
397
397
|
}
|
|
398
398
|
this._setupProperties(m, e[o], u, s[o], r);
|
|
399
399
|
} else
|
|
@@ -458,8 +458,8 @@ var Ui = Object.freeze({
|
|
|
458
458
|
var a = t - this._startTime, l = this._duration + ((s = this._repeatDelayTime) !== null && s !== void 0 ? s : this._delayTime), c = this._duration + this._repeat * l, h = function() {
|
|
459
459
|
if (i._duration === 0 || a > c)
|
|
460
460
|
return 1;
|
|
461
|
-
var m = Math.trunc(a / l), b = a - m * l,
|
|
462
|
-
return
|
|
461
|
+
var m = Math.trunc(a / l), b = a - m * l, w = Math.min(b / i._duration, 1);
|
|
462
|
+
return w === 0 && a === i._duration ? 1 : w;
|
|
463
463
|
}, u = h(), f = this._easingFunction(u);
|
|
464
464
|
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, f), this._onUpdateCallback && this._onUpdateCallback(this._object, u), this._duration === 0 || a >= this._duration)
|
|
465
465
|
if (this._repeat > 0) {
|
|
@@ -963,9 +963,9 @@ let VA = class extends RA {
|
|
|
963
963
|
let g = [];
|
|
964
964
|
const v = this;
|
|
965
965
|
v.tween = zA({ step: 0 }, { step: l.length - 1 }, h).onUpdate(({ step: m }) => {
|
|
966
|
-
var
|
|
966
|
+
var w;
|
|
967
967
|
if (v.tweening = !0, !v.ready)
|
|
968
|
-
return a.clearRect(0, 0, v.canvas[u].width, v.canvas[u].height), (
|
|
968
|
+
return a.clearRect(0, 0, v.canvas[u].width, v.canvas[u].height), (w = v.tween) == null ? void 0 : w.stop();
|
|
969
969
|
const b = Math.floor(m);
|
|
970
970
|
if (!g.find((M) => M === b)) {
|
|
971
971
|
if (g.push(b), p.push(El(l[b], v.clientWidth, v.clientHeight)), p.length < 3)
|
|
@@ -1670,7 +1670,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1670
1670
|
}, "extend", "Use `assign`."), b = g(function(j, W) {
|
|
1671
1671
|
return m(j, W, !0);
|
|
1672
1672
|
}, "merge", "Use `assign`.");
|
|
1673
|
-
function
|
|
1673
|
+
function w(O, j, W) {
|
|
1674
1674
|
var te = j.prototype, ce;
|
|
1675
1675
|
ce = O.prototype = Object.create(te), ce.constructor = O, ce._super = te, W && v(ce, W);
|
|
1676
1676
|
}
|
|
@@ -1719,7 +1719,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return -1;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function C(O) {
|
|
1723
1723
|
return Array.prototype.slice.call(O, 0);
|
|
1724
1724
|
}
|
|
1725
1725
|
function x(O, j, W) {
|
|
@@ -1872,7 +1872,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1872
1872
|
function hi() {
|
|
1873
1873
|
this.evEl = ks, this.evWin = vn, this.pressed = !1, Je.apply(this, arguments);
|
|
1874
1874
|
}
|
|
1875
|
-
|
|
1875
|
+
w(hi, Je, {
|
|
1876
1876
|
/**
|
|
1877
1877
|
* handle mouse events
|
|
1878
1878
|
* @param {Object} ev
|
|
@@ -1904,7 +1904,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1904
1904
|
function qi() {
|
|
1905
1905
|
this.evEl = bn, this.evWin = Ri, Je.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
1906
1906
|
}
|
|
1907
|
-
|
|
1907
|
+
w(qi, Je, {
|
|
1908
1908
|
/**
|
|
1909
1909
|
* handle mouse events
|
|
1910
1910
|
* @param {Object} ev
|
|
@@ -1928,7 +1928,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1928
1928
|
function yn() {
|
|
1929
1929
|
this.evTarget = $n, this.evWin = es, this.started = !1, Je.apply(this, arguments);
|
|
1930
1930
|
}
|
|
1931
|
-
|
|
1931
|
+
w(yn, Je, {
|
|
1932
1932
|
handler: function(j) {
|
|
1933
1933
|
var W = Ki[j.type];
|
|
1934
1934
|
if (W === ie && (this.started = !0), !!this.started) {
|
|
@@ -1943,7 +1943,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
1945
|
function Bi(O, j) {
|
|
1946
|
-
var W =
|
|
1946
|
+
var W = C(O.touches), te = C(O.changedTouches);
|
|
1947
1947
|
return j & (ke | pe) && (W = x(W.concat(te), "identifier", !0)), [W, te];
|
|
1948
1948
|
}
|
|
1949
1949
|
var Ds = {
|
|
@@ -1955,7 +1955,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1955
1955
|
function wn() {
|
|
1956
1956
|
this.evTarget = yi, this.targetIds = {}, Je.apply(this, arguments);
|
|
1957
1957
|
}
|
|
1958
|
-
|
|
1958
|
+
w(wn, Je, {
|
|
1959
1959
|
handler: function(j) {
|
|
1960
1960
|
var W = Ds[j.type], te = zr.call(this, j, W);
|
|
1961
1961
|
te && this.callback(this.manager, W, {
|
|
@@ -1967,10 +1967,10 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1967
1967
|
}
|
|
1968
1968
|
});
|
|
1969
1969
|
function zr(O, j) {
|
|
1970
|
-
var W =
|
|
1970
|
+
var W = C(O.touches), te = this.targetIds;
|
|
1971
1971
|
if (j & (ie | we) && W.length === 1)
|
|
1972
1972
|
return te[W[0].identifier] = !0, [W, W];
|
|
1973
|
-
var ce, be, Ne =
|
|
1973
|
+
var ce, be, Ne = C(O.changedTouches), pt = [], At = this.target;
|
|
1974
1974
|
if (be = W.filter(function(Mt) {
|
|
1975
1975
|
return H(Mt.target, At);
|
|
1976
1976
|
}), j === ie)
|
|
@@ -1991,7 +1991,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1991
1991
|
var O = M(this.handler, this);
|
|
1992
1992
|
this.touch = new wn(this.manager, O), this.mouse = new hi(this.manager, O), this.primaryTouch = null, this.lastTouches = [];
|
|
1993
1993
|
}
|
|
1994
|
-
|
|
1994
|
+
w($i, Je, {
|
|
1995
1995
|
/**
|
|
1996
1996
|
* handle mouse and touch events
|
|
1997
1997
|
* @param {Hammer} manager
|
|
@@ -2267,7 +2267,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2267
2267
|
function Qt() {
|
|
2268
2268
|
Wt.apply(this, arguments);
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2270
|
+
w(Qt, Wt, {
|
|
2271
2271
|
/**
|
|
2272
2272
|
* @namespace
|
|
2273
2273
|
* @memberof AttrRecognizer
|
|
@@ -2303,7 +2303,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2303
2303
|
function En() {
|
|
2304
2304
|
Qt.apply(this, arguments), this.pX = null, this.pY = null;
|
|
2305
2305
|
}
|
|
2306
|
-
|
|
2306
|
+
w(En, Qt, {
|
|
2307
2307
|
/**
|
|
2308
2308
|
* @namespace
|
|
2309
2309
|
* @memberof PanRecognizer
|
|
@@ -2334,7 +2334,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2334
2334
|
function _i() {
|
|
2335
2335
|
Qt.apply(this, arguments);
|
|
2336
2336
|
}
|
|
2337
|
-
|
|
2337
|
+
w(_i, Qt, {
|
|
2338
2338
|
/**
|
|
2339
2339
|
* @namespace
|
|
2340
2340
|
* @memberof PinchRecognizer
|
|
@@ -2361,7 +2361,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2361
2361
|
function nn() {
|
|
2362
2362
|
Wt.apply(this, arguments), this._timer = null, this._input = null;
|
|
2363
2363
|
}
|
|
2364
|
-
|
|
2364
|
+
w(nn, Wt, {
|
|
2365
2365
|
/**
|
|
2366
2366
|
* @namespace
|
|
2367
2367
|
* @memberof PressRecognizer
|
|
@@ -2399,7 +2399,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2399
2399
|
function Ci() {
|
|
2400
2400
|
Qt.apply(this, arguments);
|
|
2401
2401
|
}
|
|
2402
|
-
|
|
2402
|
+
w(Ci, Qt, {
|
|
2403
2403
|
/**
|
|
2404
2404
|
* @namespace
|
|
2405
2405
|
* @memberof RotateRecognizer
|
|
@@ -2419,7 +2419,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2419
2419
|
function Mn() {
|
|
2420
2420
|
Qt.apply(this, arguments);
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
w(Mn, Qt, {
|
|
2423
2423
|
/**
|
|
2424
2424
|
* @namespace
|
|
2425
2425
|
* @memberof SwipeRecognizer
|
|
@@ -2446,7 +2446,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2446
2446
|
function sn() {
|
|
2447
2447
|
Wt.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
2448
2448
|
}
|
|
2449
|
-
|
|
2449
|
+
w(sn, Wt, {
|
|
2450
2450
|
/**
|
|
2451
2451
|
* @namespace
|
|
2452
2452
|
* @memberof PinchRecognizer
|
|
@@ -2784,7 +2784,7 @@ var pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2784
2784
|
merge: b,
|
|
2785
2785
|
extend: m,
|
|
2786
2786
|
assign: v,
|
|
2787
|
-
inherit:
|
|
2787
|
+
inherit: w,
|
|
2788
2788
|
bindFn: M,
|
|
2789
2789
|
prefixed: k
|
|
2790
2790
|
});
|
|
@@ -2879,7 +2879,7 @@ class qc {
|
|
|
2879
2879
|
if (!this.five.renderer || !this.containerDom)
|
|
2880
2880
|
return;
|
|
2881
2881
|
const { scale: t, context: e, width: i, height: s } = this, r = this.five.renderer.getSize(new y.Vector2()), [o, a] = (() => {
|
|
2882
|
-
if (this.renderCenter
|
|
2882
|
+
if (this.renderCenter.isVector3) {
|
|
2883
2883
|
const v = this.renderCenter.clone().project(this.five.camera);
|
|
2884
2884
|
return [(v.x + 1) / 2 * r.x, (v.y + 1) / 2 * r.y];
|
|
2885
2885
|
} else
|
|
@@ -2903,7 +2903,7 @@ class qc {
|
|
|
2903
2903
|
if (!this.containerDom)
|
|
2904
2904
|
return;
|
|
2905
2905
|
const { width: t, height: e } = this, { clientWidth: i, clientHeight: s } = this.containerDom, [r, o, a] = (() => {
|
|
2906
|
-
if (this.renderCenter
|
|
2906
|
+
if (this.renderCenter.isVector3) {
|
|
2907
2907
|
const l = this.renderCenter.clone().project(this.five.camera);
|
|
2908
2908
|
return [
|
|
2909
2909
|
//
|
|
@@ -2998,10 +2998,10 @@ let KA = function(n) {
|
|
|
2998
2998
|
const b = (m = v.mode) != null ? m : "front";
|
|
2999
2999
|
(!n || b === n) && (v.element.style.display = "none");
|
|
3000
3000
|
}
|
|
3001
|
-
for (let b = 0,
|
|
3001
|
+
for (let b = 0, w = v.children.length; b < w; b++)
|
|
3002
3002
|
p(v.children[b]);
|
|
3003
3003
|
}
|
|
3004
|
-
function g(v, m, b,
|
|
3004
|
+
function g(v, m, b, w, M) {
|
|
3005
3005
|
var E;
|
|
3006
3006
|
if (v.visible === !1) {
|
|
3007
3007
|
p(v);
|
|
@@ -3027,13 +3027,13 @@ let KA = function(n) {
|
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
3029
|
for (let T = 0, S = v.children.length; T < S; T++)
|
|
3030
|
-
g(v.children[T], m, b,
|
|
3030
|
+
g(v.children[T], m, b, w, M);
|
|
3031
3031
|
}
|
|
3032
3032
|
this.render = function(v, m) {
|
|
3033
3033
|
let b = m.projectionMatrix.elements[5] * r;
|
|
3034
3034
|
if (a.camera.fov !== b && (m.isPerspectiveCamera ? (l.style.WebkitPerspective = b + "px", l.style.perspective = b + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), a.camera.fov = b), v.autoUpdate === !0 && v.updateMatrixWorld(), m.parent === null && m.updateMatrixWorld(), m.isOrthographicCamera)
|
|
3035
|
-
var
|
|
3036
|
-
let E = m.isOrthographicCamera ? "scale(" + b + ")translate(" + h(
|
|
3035
|
+
var w = -(m.right + m.left) / 2, M = (m.top + m.bottom) / 2;
|
|
3036
|
+
let E = m.isOrthographicCamera ? "scale(" + b + ")translate(" + h(w) + "px," + h(M) + "px)" + u(m.matrixWorldInverse) : "translateZ(" + b + "px)" + u(m.matrixWorldInverse), T = E + "translate(" + s + "px," + r + "px)";
|
|
3037
3037
|
a.camera.style !== T && (c.style.WebkitTransform = T, c.style.transform = T, a.camera.style = T);
|
|
3038
3038
|
const S = v.uuid + "_" + performance.now().toString();
|
|
3039
3039
|
g(v, v, m, E, S), a.objects.forEach(function(_, H) {
|
|
@@ -4169,65 +4169,70 @@ class eh extends wt {
|
|
|
4169
4169
|
* @description: 更新 pointSelectorHelper 的焦点位置
|
|
4170
4170
|
*/
|
|
4171
4171
|
d(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
4172
|
+
var o, a, l, c, h, u;
|
|
4172
4173
|
if (!e) {
|
|
4173
4174
|
this.onLeave(), this.five.getElement().style.cursor = Du;
|
|
4174
4175
|
return;
|
|
4175
4176
|
}
|
|
4176
4177
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
4177
|
-
const i = B({}, e)
|
|
4178
|
+
const i = B({}, e), s = {
|
|
4179
|
+
x: this.mouseNdcPosition.x,
|
|
4180
|
+
y: 1 - this.mouseNdcPosition.y
|
|
4181
|
+
}, r = this.five.renderer.getSize(new y.Vector2());
|
|
4178
4182
|
if (typeof this.adherePoints == "function" && typeof this.adhereRadius == "number") {
|
|
4179
|
-
for (const
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
if (r.distanceTo(e.point) < this.adhereRadius)
|
|
4184
|
-
i.point = r.clone(), i.isAdsorbed = !0;
|
|
4183
|
+
for (const f of this.adhereLine) {
|
|
4184
|
+
let p = f.closestPointToPoint(e.point, !1, new y.Vector3());
|
|
4185
|
+
if (p.distanceTo(e.point) < this.adhereRadius)
|
|
4186
|
+
(!this.plane || this.plane.distanceToPoint(p) < 0.01) && (p = (a = (o = this.plane) == null ? void 0 : o.projectPoint(p, new y.Vector3())) != null ? a : p, i.point = p.clone(), i.isAdsorbed = !0);
|
|
4185
4187
|
else {
|
|
4186
|
-
const
|
|
4188
|
+
const g = _n({
|
|
4187
4189
|
raycaster: new Ia(this.five.camera.position, e.point.clone().sub(this.five.camera.position).normalize()),
|
|
4188
|
-
line:
|
|
4190
|
+
line: f,
|
|
4189
4191
|
clampToLine: !1
|
|
4190
|
-
}),
|
|
4191
|
-
if (
|
|
4192
|
-
const
|
|
4193
|
-
x: (
|
|
4194
|
-
y: (1 -
|
|
4195
|
-
},
|
|
4196
|
-
x:
|
|
4197
|
-
y:
|
|
4192
|
+
}), v = g.clone().project(this.five.camera);
|
|
4193
|
+
if (v.z <= 1) {
|
|
4194
|
+
const m = {
|
|
4195
|
+
x: (v.x + 1) / 2,
|
|
4196
|
+
y: (1 - v.y) / 2
|
|
4197
|
+
}, b = {
|
|
4198
|
+
x: Math.abs(m.x - s.x) * r.width,
|
|
4199
|
+
y: Math.abs(m.y - s.y) * r.height
|
|
4198
4200
|
};
|
|
4199
|
-
|
|
4201
|
+
let w = g.clone();
|
|
4202
|
+
b.x < 10 && b.y < 10 && (!this.plane || this.plane.distanceToPoint(w) < 0.01) && (w = (c = (l = this.plane) == null ? void 0 : l.projectPoint(w, new y.Vector3())) != null ? c : w, i.point = w.clone(), i.isAdsorbed = !0);
|
|
4200
4203
|
}
|
|
4201
4204
|
}
|
|
4202
4205
|
}
|
|
4203
|
-
for (const
|
|
4204
|
-
const
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4206
|
+
for (const f of this.adherePoints({ intersection: e, pointSelectorInstance: this })) {
|
|
4207
|
+
const p = f instanceof y.Face3 ? new y.Vector3(f.a, f.b, f.c) : f;
|
|
4208
|
+
if (p.IsAlwaysVisible = f.IsAlwaysVisible, this.plane && this.plane.distanceToPoint(p) > 0.01)
|
|
4209
|
+
continue;
|
|
4210
|
+
if (p.distanceTo(e.point) < this.adhereRadius) {
|
|
4211
|
+
i.point = (u = (h = this.plane) == null ? void 0 : h.projectPoint(p, new y.Vector3())) != null ? u : p.clone(), !this.plane && f instanceof y.Face3 && (i.face = f), i.isAdsorbed = !0;
|
|
4207
4212
|
break;
|
|
4208
4213
|
} else {
|
|
4209
|
-
const
|
|
4210
|
-
if (
|
|
4211
|
-
|
|
4212
|
-
const
|
|
4213
|
-
x: (
|
|
4214
|
-
y: (1 -
|
|
4215
|
-
},
|
|
4216
|
-
x:
|
|
4217
|
-
y:
|
|
4214
|
+
const v = p.clone().project(this.five.camera);
|
|
4215
|
+
if (v.z > 1)
|
|
4216
|
+
continue;
|
|
4217
|
+
const m = this.five.renderer.getSize(new y.Vector2()), b = {
|
|
4218
|
+
x: (v.x + 1) / 2,
|
|
4219
|
+
y: (1 - v.y) / 2
|
|
4220
|
+
}, w = {
|
|
4221
|
+
x: Math.abs(b.x - s.x) * m.width,
|
|
4222
|
+
y: Math.abs(b.y - s.y) * m.height
|
|
4218
4223
|
};
|
|
4219
|
-
if (
|
|
4220
|
-
let
|
|
4221
|
-
if (
|
|
4222
|
-
|
|
4224
|
+
if (w.x < 10 && w.y < 10) {
|
|
4225
|
+
let M = !1;
|
|
4226
|
+
if (p.IsAlwaysVisible)
|
|
4227
|
+
M = !0;
|
|
4223
4228
|
else {
|
|
4224
|
-
const
|
|
4225
|
-
|
|
4226
|
-
const
|
|
4227
|
-
|
|
4229
|
+
const E = new y.Raycaster();
|
|
4230
|
+
E.setFromCamera(p.clone(), this.five.camera);
|
|
4231
|
+
const T = this.five.model.intersectRaycaster(E, void 0, !0)[0], S = 0.1, _ = this.five.camera.position.distanceTo(p);
|
|
4232
|
+
T && T.distance < _ + S && (M = !0);
|
|
4228
4233
|
}
|
|
4229
|
-
if (
|
|
4230
|
-
i.point =
|
|
4234
|
+
if (M) {
|
|
4235
|
+
i.point = p.clone(), !this.plane && f instanceof y.Face3 && (i.face = f), i.isAdsorbed = !0;
|
|
4231
4236
|
break;
|
|
4232
4237
|
}
|
|
4233
4238
|
}
|
|
@@ -4392,8 +4397,8 @@ let Wm = class extends dn {
|
|
|
4392
4397
|
i.classList.add(`${Tu}__container`);
|
|
4393
4398
|
const v = new ue().subVectors(s[1], s[0]), m = new ue().subVectors(s[3], s[0]), b = new ue().crossVectors(v, m).normalize();
|
|
4394
4399
|
this.lookAt(b);
|
|
4395
|
-
const
|
|
4396
|
-
this.rotateOnWorldAxis(E,
|
|
4400
|
+
const w = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new ue().crossVectors(w, M).normalize();
|
|
4401
|
+
this.rotateOnWorldAxis(E, w.angleTo(M)), this.position.copy(p), this.addEventListener("added", () => {
|
|
4397
4402
|
var A;
|
|
4398
4403
|
this.mode === "front" && ((A = this.opacityMesh) == null || A.removeFromParent());
|
|
4399
4404
|
}), this.addEventListener("removed", () => {
|
|
@@ -4690,11 +4695,11 @@ function ih(n, t) {
|
|
|
4690
4695
|
return e && e.applyMatrix4(zb(n.matrixWorld.clone())), e;
|
|
4691
4696
|
}
|
|
4692
4697
|
const zb = (n) => {
|
|
4693
|
-
const t = n.elements, e = t[0], i = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], p = t[11], g = t[12], v = t[13], m = t[14], b = t[15],
|
|
4698
|
+
const t = n.elements, e = t[0], i = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], p = t[11], g = t[12], v = t[13], m = t[14], b = t[15], w = u * m * c - v * f * c + v * l * p - a * m * p - u * l * b + a * f * b, M = g * f * c - h * m * c - g * l * p + o * m * p + h * l * b - o * f * b, E = h * v * c - g * u * c + g * a * p - o * v * p - h * a * b + o * u * b, T = g * u * l - h * v * l - g * a * f + o * v * f + h * a * m - o * u * m, S = e * w + i * M + s * E + r * T;
|
|
4694
4699
|
if (S === 0)
|
|
4695
4700
|
return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
4696
4701
|
const _ = 1 / S;
|
|
4697
|
-
return t[0] =
|
|
4702
|
+
return t[0] = w * _, t[1] = (v * f * r - u * m * r - v * s * p + i * m * p + u * s * b - i * f * b) * _, t[2] = (a * m * r - v * l * r + v * s * c - i * m * c - a * s * b + i * l * b) * _, t[3] = (u * l * r - a * f * r - u * s * c + i * f * c + a * s * p - i * l * p) * _, t[4] = M * _, t[5] = (h * m * r - g * f * r + g * s * p - e * m * p - h * s * b + e * f * b) * _, t[6] = (g * l * r - o * m * r - g * s * c + e * m * c + o * s * b - e * l * b) * _, t[7] = (o * f * r - h * l * r + h * s * c - e * f * c - o * s * p + e * l * p) * _, t[8] = E * _, t[9] = (g * u * r - h * v * r - g * i * p + e * v * p + h * i * b - e * u * b) * _, t[10] = (o * v * r - g * a * r + g * i * c - e * v * c - o * i * b + e * a * b) * _, t[11] = (h * a * r - o * u * r - h * i * c + e * u * c + o * i * p - e * a * p) * _, t[12] = T * _, t[13] = (h * v * s - g * u * s + g * i * f - e * v * f - h * i * m + e * u * m) * _, t[14] = (g * a * s - o * v * s - g * i * l + e * v * l + o * i * m - e * a * m) * _, t[15] = (o * u * s - h * a * s + h * i * l - e * u * l - o * i * f + e * a * f) * _, n;
|
|
4698
4703
|
};
|
|
4699
4704
|
var qm = {
|
|
4700
4705
|
update: null,
|
|
@@ -4797,8 +4802,8 @@ function $m(n, t) {
|
|
|
4797
4802
|
break;
|
|
4798
4803
|
} else
|
|
4799
4804
|
b = 0;
|
|
4800
|
-
var
|
|
4801
|
-
return xa.springs[n] =
|
|
4805
|
+
var w = m * v * 1e3;
|
|
4806
|
+
return xa.springs[n] = w, w;
|
|
4802
4807
|
}
|
|
4803
4808
|
return t ? f : p;
|
|
4804
4809
|
}
|
|
@@ -4849,11 +4854,11 @@ var Bb = function() {
|
|
|
4849
4854
|
for (var v = 0; v < n; ++v)
|
|
4850
4855
|
g[v] = r(v * t, h, f);
|
|
4851
4856
|
function m(b) {
|
|
4852
|
-
for (var
|
|
4853
|
-
|
|
4857
|
+
for (var w = 0, M = 1, E = n - 1; M !== E && g[M] <= b; ++M)
|
|
4858
|
+
w += t;
|
|
4854
4859
|
--M;
|
|
4855
|
-
var T = (b - g[M]) / (g[M + 1] - g[M]), S =
|
|
4856
|
-
return _ >= 1e-3 ? l(b, S, h, f) : _ === 0 ? S : a(b,
|
|
4860
|
+
var T = (b - g[M]) / (g[M + 1] - g[M]), S = w + T * t, _ = o(S, h, f);
|
|
4861
|
+
return _ >= 1e-3 ? l(b, S, h, f) : _ === 0 ? S : a(b, w, w + t, h, f);
|
|
4857
4862
|
}
|
|
4858
4863
|
return function(b) {
|
|
4859
4864
|
return h === u && f === p || b === 0 || b === 1 ? b : r(m(b), u, p);
|
|
@@ -5385,46 +5390,46 @@ function ju() {
|
|
|
5385
5390
|
function lt(n) {
|
|
5386
5391
|
n === void 0 && (n = {});
|
|
5387
5392
|
var t = 0, e = 0, i = 0, s, r = 0, o = null;
|
|
5388
|
-
function a(
|
|
5393
|
+
function a(w) {
|
|
5389
5394
|
var M = window.Promise && new Promise(function(E) {
|
|
5390
5395
|
return o = E;
|
|
5391
5396
|
});
|
|
5392
|
-
return
|
|
5397
|
+
return w.finished = M, M;
|
|
5393
5398
|
}
|
|
5394
5399
|
var l = r1(n);
|
|
5395
5400
|
a(l);
|
|
5396
5401
|
function c() {
|
|
5397
|
-
var
|
|
5398
|
-
|
|
5402
|
+
var w = l.direction;
|
|
5403
|
+
w !== "alternate" && (l.direction = w !== "normal" ? "normal" : "reverse"), l.reversed = !l.reversed, s.forEach(function(M) {
|
|
5399
5404
|
return M.reversed = l.reversed;
|
|
5400
5405
|
});
|
|
5401
5406
|
}
|
|
5402
|
-
function h(
|
|
5403
|
-
return l.reversed ? l.duration -
|
|
5407
|
+
function h(w) {
|
|
5408
|
+
return l.reversed ? l.duration - w : w;
|
|
5404
5409
|
}
|
|
5405
5410
|
function u() {
|
|
5406
5411
|
t = 0, e = h(l.currentTime) * (1 / lt.speed);
|
|
5407
5412
|
}
|
|
5408
|
-
function f(
|
|
5409
|
-
M && M.seek(
|
|
5413
|
+
function f(w, M) {
|
|
5414
|
+
M && M.seek(w - M.timelineOffset);
|
|
5410
5415
|
}
|
|
5411
|
-
function p(
|
|
5416
|
+
function p(w) {
|
|
5412
5417
|
if (l.reversePlayback)
|
|
5413
5418
|
for (var E = r; E--; )
|
|
5414
|
-
f(
|
|
5419
|
+
f(w, s[E]);
|
|
5415
5420
|
else
|
|
5416
5421
|
for (var M = 0; M < r; M++)
|
|
5417
|
-
f(
|
|
5422
|
+
f(w, s[M]);
|
|
5418
5423
|
}
|
|
5419
|
-
function g(
|
|
5424
|
+
function g(w) {
|
|
5420
5425
|
for (var M = 0, E = l.animations, T = E.length; M < T; ) {
|
|
5421
5426
|
var S = E[M], _ = S.animatable, H = S.tweens, Z = H.length - 1, A = H[Z];
|
|
5422
5427
|
Z && (A = $a(H, function(Re) {
|
|
5423
|
-
return
|
|
5428
|
+
return w < Re.end;
|
|
5424
5429
|
})[0] || A);
|
|
5425
|
-
for (var I = Ni(
|
|
5430
|
+
for (var I = Ni(w - A.start - A.delay, 0, A.duration) / A.duration, C = isNaN(I) ? 1 : A.easing(I), x = A.to.strings, k = A.round, L = [], R = A.to.numbers.length, V = void 0, J = 0; J < R; J++) {
|
|
5426
5431
|
var ee = void 0, K = A.to.numbers[J], re = A.from.numbers[J] || 0;
|
|
5427
|
-
A.isPath ? ee = qb(A.value,
|
|
5432
|
+
A.isPath ? ee = qb(A.value, C * K, A.isPathTargetInsideSVG) : ee = re + C * (K - re), k && (A.isColor && J > 2 || (ee = Math.round(ee * k) / k)), L.push(ee);
|
|
5428
5433
|
}
|
|
5429
5434
|
var ne = x.length;
|
|
5430
5435
|
if (!ne)
|
|
@@ -5440,28 +5445,28 @@ function lt(n) {
|
|
|
5440
5445
|
cg[S.type](_.target, S.property, V, _.transforms), S.currentValue = V, M++;
|
|
5441
5446
|
}
|
|
5442
5447
|
}
|
|
5443
|
-
function v(
|
|
5444
|
-
l[
|
|
5448
|
+
function v(w) {
|
|
5449
|
+
l[w] && !l.passThrough && l[w](l);
|
|
5445
5450
|
}
|
|
5446
5451
|
function m() {
|
|
5447
5452
|
l.remaining && l.remaining !== !0 && l.remaining--;
|
|
5448
5453
|
}
|
|
5449
|
-
function b(
|
|
5450
|
-
var M = l.duration, E = l.delay, T = M - l.endDelay, S = h(
|
|
5451
|
-
l.progress = Ni(S / M * 100, 0, 100), l.reversePlayback = S < l.currentTime, s && p(S), !l.began && l.currentTime > 0 && (l.began = !0, v("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, v("loopBegin")), S <= E && l.currentTime !== 0 && g(0), (S >= T && l.currentTime !== M || !M) && g(M), S > E && S < T ? (l.changeBegan || (l.changeBegan = !0, l.changeCompleted = !1, v("changeBegin")), v("change"), g(S)) : l.changeBegan && (l.changeCompleted = !0, l.changeBegan = !1, v("changeComplete")), l.currentTime = Ni(S, 0, M), l.began && v("update"),
|
|
5454
|
+
function b(w) {
|
|
5455
|
+
var M = l.duration, E = l.delay, T = M - l.endDelay, S = h(w);
|
|
5456
|
+
l.progress = Ni(S / M * 100, 0, 100), l.reversePlayback = S < l.currentTime, s && p(S), !l.began && l.currentTime > 0 && (l.began = !0, v("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, v("loopBegin")), S <= E && l.currentTime !== 0 && g(0), (S >= T && l.currentTime !== M || !M) && g(M), S > E && S < T ? (l.changeBegan || (l.changeBegan = !0, l.changeCompleted = !1, v("changeBegin")), v("change"), g(S)) : l.changeBegan && (l.changeCompleted = !0, l.changeBegan = !1, v("changeComplete")), l.currentTime = Ni(S, 0, M), l.began && v("update"), w >= M && (e = 0, m(), l.remaining ? (t = i, v("loopComplete"), l.loopBegan = !1, l.direction === "alternate" && c()) : (l.paused = !0, l.completed || (l.completed = !0, v("loopComplete"), v("complete"), !l.passThrough && "Promise" in window && (o(), a(l)))));
|
|
5452
5457
|
}
|
|
5453
5458
|
return l.reset = function() {
|
|
5454
|
-
var
|
|
5455
|
-
l.passThrough = !1, l.currentTime = 0, l.progress = 0, l.paused = !0, l.began = !1, l.loopBegan = !1, l.changeBegan = !1, l.completed = !1, l.changeCompleted = !1, l.reversePlayback = !1, l.reversed =
|
|
5459
|
+
var w = l.direction;
|
|
5460
|
+
l.passThrough = !1, l.currentTime = 0, l.progress = 0, l.paused = !0, l.began = !1, l.loopBegan = !1, l.changeBegan = !1, l.completed = !1, l.changeCompleted = !1, l.reversePlayback = !1, l.reversed = w === "reverse", l.remaining = l.loop, s = l.children, r = s.length;
|
|
5456
5461
|
for (var M = r; M--; )
|
|
5457
5462
|
l.children[M].reset();
|
|
5458
|
-
(l.reversed && l.loop !== !0 ||
|
|
5459
|
-
}, l._onDocumentVisibility = u, l.set = function(
|
|
5460
|
-
return hg(
|
|
5461
|
-
}, l.tick = function(
|
|
5462
|
-
i =
|
|
5463
|
-
}, l.seek = function(
|
|
5464
|
-
b(h(
|
|
5463
|
+
(l.reversed && l.loop !== !0 || w === "alternate" && l.loop === 1) && l.remaining++, g(l.reversed ? l.duration : 0);
|
|
5464
|
+
}, l._onDocumentVisibility = u, l.set = function(w, M) {
|
|
5465
|
+
return hg(w, M), l;
|
|
5466
|
+
}, l.tick = function(w) {
|
|
5467
|
+
i = w, t || (t = i), b((i + (e - t)) * lt.speed);
|
|
5468
|
+
}, l.seek = function(w) {
|
|
5469
|
+
b(h(w));
|
|
5465
5470
|
}, l.pause = function() {
|
|
5466
5471
|
l.paused = !0, u();
|
|
5467
5472
|
}, l.play = function() {
|
|
@@ -5470,8 +5475,8 @@ function lt(n) {
|
|
|
5470
5475
|
c(), l.completed = !l.reversed, u();
|
|
5471
5476
|
}, l.restart = function() {
|
|
5472
5477
|
l.reset(), l.play();
|
|
5473
|
-
}, l.remove = function(
|
|
5474
|
-
var M = dh(
|
|
5478
|
+
}, l.remove = function(w) {
|
|
5479
|
+
var M = dh(w);
|
|
5475
5480
|
fg(M, l);
|
|
5476
5481
|
}, l.reset(), l.autoplay && l.play(), l;
|
|
5477
5482
|
}
|
|
@@ -5497,7 +5502,7 @@ function o1(n) {
|
|
|
5497
5502
|
function a1(n, t) {
|
|
5498
5503
|
t === void 0 && (t = {});
|
|
5499
5504
|
var e = t.direction || "normal", i = t.easing ? sh(t.easing) : null, s = t.grid, r = t.axis, o = t.from || 0, a = o === "first", l = o === "center", c = o === "last", h = Le.arr(n), u = parseFloat(h ? n[0] : n), f = h ? parseFloat(n[1]) : 0, p = un(h ? n[1] : n) || 0, g = t.start || 0 + (h ? u : 0), v = [], m = 0;
|
|
5500
|
-
return function(b,
|
|
5505
|
+
return function(b, w, M) {
|
|
5501
5506
|
if (a && (o = 0), l && (o = (M - 1) / 2), c && (o = M - 1), !v.length) {
|
|
5502
5507
|
for (var E = 0; E < M; E++) {
|
|
5503
5508
|
if (!s)
|
|
@@ -5514,8 +5519,8 @@ function a1(n, t) {
|
|
|
5514
5519
|
return r ? x < 0 ? x * -1 : -x : Math.abs(m - x);
|
|
5515
5520
|
}));
|
|
5516
5521
|
}
|
|
5517
|
-
var
|
|
5518
|
-
return g +
|
|
5522
|
+
var C = h ? (f - u) / m : u;
|
|
5523
|
+
return g + C * (Math.round(v[w] * 100) / 100) + p;
|
|
5519
5524
|
};
|
|
5520
5525
|
}
|
|
5521
5526
|
function l1(n) {
|
|
@@ -5654,13 +5659,13 @@ function To(n) {
|
|
|
5654
5659
|
}
|
|
5655
5660
|
function h1(n, t, e) {
|
|
5656
5661
|
return $(this, null, function* () {
|
|
5657
|
-
var
|
|
5662
|
+
var w, M, E;
|
|
5658
5663
|
if (!t)
|
|
5659
5664
|
return;
|
|
5660
5665
|
const i = Jm(t);
|
|
5661
5666
|
if (!i)
|
|
5662
5667
|
return;
|
|
5663
|
-
const s = new Za(n), r = (
|
|
5668
|
+
const s = new Za(n), r = (w = e == null ? void 0 : e.scale) != null ? w : 1.4, o = i.center, a = n.camera.position.clone().sub(o).setY(0).normalize(), l = n.state.mode === "Mapview" ? n.state.fov : 60, h = Math.max(1.5, i.radius * r), u = h * (1 / Math.tan(y.MathUtils.degToRad(l / 2)));
|
|
5664
5669
|
let f = 0;
|
|
5665
5670
|
const p = [], g = (T) => {
|
|
5666
5671
|
const S = y.MathUtils.degToRad(T);
|
|
@@ -5669,7 +5674,7 @@ function h1(n, t, e) {
|
|
|
5669
5674
|
for (; f !== 360; ) {
|
|
5670
5675
|
let T = 0;
|
|
5671
5676
|
const S = g(f), _ = (A) => {
|
|
5672
|
-
const I = A.distanceTo(S),
|
|
5677
|
+
const I = A.distanceTo(S), C = new y.Raycaster(A, S.clone().sub(A).normalize()), x = s.model.intersectRaycaster(C, void 0, !0)[0], k = x == null ? void 0 : x.distance;
|
|
5673
5678
|
Fe(k) ? k > I && (T += 1) : T += 1;
|
|
5674
5679
|
}, H = i.clampPoint(S, new y.Vector3());
|
|
5675
5680
|
_(H);
|
|
@@ -5702,14 +5707,14 @@ function mg(n, t, e) {
|
|
|
5702
5707
|
const i = (v = e == null ? void 0 : e.distance) != null ? v : 3, s = new Za(n), r = n.camera.position.clone().sub(t).setY(0).normalize(), o = n.state.mode === "Mapview" ? n.state.fov : 60, a = i, l = a * Math.cos(y.MathUtils.degToRad(o / 2)), c = a * Math.sin(y.MathUtils.degToRad(o / 2));
|
|
5703
5708
|
let h = 0;
|
|
5704
5709
|
const u = [], f = (b) => {
|
|
5705
|
-
const
|
|
5706
|
-
return r.clone().applyAxisAngle(new y.Vector3(0, 1, 0),
|
|
5710
|
+
const w = y.MathUtils.degToRad(b);
|
|
5711
|
+
return r.clone().applyAxisAngle(new y.Vector3(0, 1, 0), w).clone().multiplyScalar(l).add(new y.Vector3(0, c, 0)).add(t);
|
|
5707
5712
|
};
|
|
5708
5713
|
for (; h !== 360; ) {
|
|
5709
5714
|
let b = 0;
|
|
5710
|
-
const
|
|
5715
|
+
const w = f(h);
|
|
5711
5716
|
if (((E) => {
|
|
5712
|
-
const T = E.distanceTo(
|
|
5717
|
+
const T = E.distanceTo(w), S = new y.Raycaster(E, w.clone().sub(E).normalize()), _ = s.model.intersectRaycaster(S, void 0, !0)[0], H = _ == null ? void 0 : _.distance;
|
|
5713
5718
|
Fe(H) ? H > T && (b += 1) : b += 1;
|
|
5714
5719
|
})(t), u[b] = h, b === 1)
|
|
5715
5720
|
break;
|
|
@@ -5834,8 +5839,8 @@ class vo {
|
|
|
5834
5839
|
a.params.Points.threshold = 0.02;
|
|
5835
5840
|
const l = a.intersectObjects(s, !0), c = [];
|
|
5836
5841
|
o.forEach((b) => {
|
|
5837
|
-
const
|
|
5838
|
-
c.push(...
|
|
5842
|
+
const w = b.intersectRaycaster(a);
|
|
5843
|
+
c.push(...w);
|
|
5839
5844
|
});
|
|
5840
5845
|
const h = 0.01;
|
|
5841
5846
|
if (c.length > 0 && l.length > 0 && c[0].distance + h < l[0].distance)
|
|
@@ -5876,10 +5881,10 @@ class vo {
|
|
|
5876
5881
|
if (a)
|
|
5877
5882
|
break;
|
|
5878
5883
|
b.draggable && (e === "dragstart" && (b._dragging = !0, this.dragging = !0), e === "dragend" && (b._dragging = !1, this.dragging = !1));
|
|
5879
|
-
const
|
|
5880
|
-
if (!
|
|
5884
|
+
const w = b._domEvent;
|
|
5885
|
+
if (!w)
|
|
5881
5886
|
continue;
|
|
5882
|
-
const M =
|
|
5887
|
+
const M = w[`${e}Handler`];
|
|
5883
5888
|
if (M)
|
|
5884
5889
|
for (const [E, T] of M) {
|
|
5885
5890
|
if (T != null && T.noEmitWhenNotInScene && f.type !== "Scene" || ((v = this.config) != null && v.noEmitWhenHide || T != null && T.noEmitWhenHide) && !th(b))
|
|
@@ -6137,9 +6142,9 @@ class w1 {
|
|
|
6137
6142
|
}
|
|
6138
6143
|
}
|
|
6139
6144
|
const P5 = (n, t) => {
|
|
6140
|
-
var I,
|
|
6145
|
+
var I, C;
|
|
6141
6146
|
const e = new wt();
|
|
6142
|
-
let i = (
|
|
6147
|
+
let i = (C = (I = t == null ? void 0 : t.initialState) == null ? void 0 : I.enabled) != null ? C : !0, s = !1, r = !0, o = null;
|
|
6143
6148
|
const l = B(B({}, {
|
|
6144
6149
|
lookAtCurrentCamera: !1,
|
|
6145
6150
|
lockedPanoIndex: null,
|
|
@@ -6188,7 +6193,7 @@ const P5 = (n, t) => {
|
|
|
6188
6193
|
c.remove(u), u = new y.Object3D(), c.add(u), s = !1, e.emit("willLoad"), S();
|
|
6189
6194
|
}, b = () => {
|
|
6190
6195
|
i && (s || g());
|
|
6191
|
-
},
|
|
6196
|
+
}, w = () => {
|
|
6192
6197
|
i || (i = !0, c.add(u), !s && n.work && g(), S());
|
|
6193
6198
|
}, M = () => {
|
|
6194
6199
|
i && (c.remove(u), r = !0, _(), i = !1);
|
|
@@ -6222,7 +6227,7 @@ const P5 = (n, t) => {
|
|
|
6222
6227
|
}, A = () => ({
|
|
6223
6228
|
enabled: i
|
|
6224
6229
|
});
|
|
6225
|
-
return n.on("loaded", b), n.on("willLoad", m), n.on("cameraDirectionUpdate", S), n.on("dispose", H), n.on("renderFrame", _), n.on("cameraPositionUpdate", S), { appendTo: E, refresh: T, changeConfigs: Z, enable:
|
|
6230
|
+
return n.on("loaded", b), n.on("willLoad", m), n.on("cameraDirectionUpdate", S), n.on("dispose", H), n.on("renderFrame", _), n.on("cameraPositionUpdate", S), { appendTo: E, refresh: T, changeConfigs: Z, enable: w, disable: M, getCurrentState: A, hooks: e };
|
|
6226
6231
|
};
|
|
6227
6232
|
function ur(n) {
|
|
6228
6233
|
const t = [];
|
|
@@ -6401,7 +6406,7 @@ class bo {
|
|
|
6401
6406
|
T && T.add(g);
|
|
6402
6407
|
}, m = () => {
|
|
6403
6408
|
p || (v(), this.render(t), this.hooks.emit("render"));
|
|
6404
|
-
}, b = (T) => this.setVisibleById(g.id, T),
|
|
6409
|
+
}, b = (T) => this.setVisibleById(g.id, T), w = (T) => this.setEnabledById(g.id, T), M = () => (p = !0, g.removeFromParent(), !0), E = l === "front" ? yt.frontModeStore.css3DRenderer : yt.behindModeStore.css3DRenderer;
|
|
6405
6410
|
return c && m(), {
|
|
6406
6411
|
id: g.uuid,
|
|
6407
6412
|
container: h,
|
|
@@ -6410,9 +6415,9 @@ class bo {
|
|
|
6410
6415
|
show: () => b(!0),
|
|
6411
6416
|
hide: () => b(!1),
|
|
6412
6417
|
setVisible: b,
|
|
6413
|
-
enable: () =>
|
|
6414
|
-
disable: () =>
|
|
6415
|
-
setEnabled:
|
|
6418
|
+
enable: () => w(!0),
|
|
6419
|
+
disable: () => w(!1),
|
|
6420
|
+
setEnabled: w,
|
|
6416
6421
|
dispose: M,
|
|
6417
6422
|
appendToElement: (T) => E.setWrapper(T)
|
|
6418
6423
|
};
|
|
@@ -6766,11 +6771,11 @@ const E5 = (n) => {
|
|
|
6766
6771
|
};
|
|
6767
6772
|
return t.disposers.push(b), { clear: b, pointAxesHelperMesh: m };
|
|
6768
6773
|
}, r = (h, u = 0) => {
|
|
6769
|
-
var b,
|
|
6774
|
+
var b, w;
|
|
6770
6775
|
const f = (b = n == null ? void 0 : n.camera) == null ? void 0 : b.position;
|
|
6771
6776
|
if (!f)
|
|
6772
6777
|
return !1;
|
|
6773
|
-
const p = h.distanceTo(f), g = h.sub(f).normalize(), v = new Ir(f, g), m = (
|
|
6778
|
+
const p = h.distanceTo(f), g = h.sub(f).normalize(), v = new Ir(f, g), m = (w = n.model.intersectRaycaster(v)) == null ? void 0 : w[0];
|
|
6774
6779
|
return !(m && m.distance + u < p);
|
|
6775
6780
|
}, o = () => t.intersection, a = () => {
|
|
6776
6781
|
var h, u;
|
|
@@ -7192,10 +7197,10 @@ function Qn(n, t, e) {
|
|
|
7192
7197
|
function h() {
|
|
7193
7198
|
const { delay: f = 0, duration: p = 300, easing: g = fn, tick: v = oe, css: m } = s || Eh;
|
|
7194
7199
|
m && (o = La(n, 0, 1, p, f, g, m, l++)), v(0, 1);
|
|
7195
|
-
const b = vh() + f,
|
|
7200
|
+
const b = vh() + f, w = b + p;
|
|
7196
7201
|
a && a.abort(), r = !0, gt(() => ds(n, !0, "start")), a = bh((M) => {
|
|
7197
7202
|
if (r) {
|
|
7198
|
-
if (M >=
|
|
7203
|
+
if (M >= w)
|
|
7199
7204
|
return v(1, 0), ds(n, !0, "end"), c(), r = !1;
|
|
7200
7205
|
if (M >= b) {
|
|
7201
7206
|
const E = g((M - b) / p);
|
|
@@ -7266,12 +7271,12 @@ function Xi(n, t, e, i) {
|
|
|
7266
7271
|
};
|
|
7267
7272
|
}
|
|
7268
7273
|
function f(p) {
|
|
7269
|
-
const { delay: g = 0, duration: v = 300, easing: m = fn, tick: b = oe, css:
|
|
7274
|
+
const { delay: g = 0, duration: v = 300, easing: m = fn, tick: b = oe, css: w } = r || Eh, M = {
|
|
7270
7275
|
start: vh() + g,
|
|
7271
7276
|
b: p
|
|
7272
7277
|
};
|
|
7273
|
-
p || (M.group = Wi, Wi.r += 1), a || l ? l = M : (
|
|
7274
|
-
if (l && E > l.start && (a = u(l, v), l = null, ds(n, a.b, "start"),
|
|
7278
|
+
p || (M.group = Wi, Wi.r += 1), a || l ? l = M : (w && (h(), c = La(n, o, p, v, g, m, w)), p && b(0, 1), a = u(M, v), gt(() => ds(n, p, "start")), bh((E) => {
|
|
7279
|
+
if (l && E > l.start && (a = u(l, v), l = null, ds(n, a.b, "start"), w && (h(), c = La(n, o, a.b, a.duration, 0, m, r.css))), a) {
|
|
7275
7280
|
if (E >= a.end)
|
|
7276
7281
|
b(o = a.b, 1 - o), ds(n, a.b, "end"), l || (a.b ? h() : --a.group.r || Ct(a.group.c)), a = null;
|
|
7277
7282
|
else if (E >= a.start) {
|
|
@@ -7342,11 +7347,11 @@ function Ti(n, t, e, i, s, r, o, a, l, c, h, u) {
|
|
|
7342
7347
|
const v = {};
|
|
7343
7348
|
for (; g--; )
|
|
7344
7349
|
v[n[g].key] = g;
|
|
7345
|
-
const m = [], b = /* @__PURE__ */ new Map(),
|
|
7350
|
+
const m = [], b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), M = [];
|
|
7346
7351
|
for (g = p; g--; ) {
|
|
7347
7352
|
const _ = u(s, r, g), H = e(_);
|
|
7348
7353
|
let Z = o.get(H);
|
|
7349
|
-
Z ? i && M.push(() => Z.p(_, t)) : (Z = c(H, _), Z.c()), b.set(H, m[g] = Z), H in v &&
|
|
7354
|
+
Z ? i && M.push(() => Z.p(_, t)) : (Z = c(H, _), Z.c()), b.set(H, m[g] = Z), H in v && w.set(H, Math.abs(g - v[H]));
|
|
7350
7355
|
}
|
|
7351
7356
|
const E = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set();
|
|
7352
7357
|
function S(_) {
|
|
@@ -7354,7 +7359,7 @@ function Ti(n, t, e, i, s, r, o, a, l, c, h, u) {
|
|
|
7354
7359
|
}
|
|
7355
7360
|
for (; f && p; ) {
|
|
7356
7361
|
const _ = m[p - 1], H = n[f - 1], Z = _.key, A = H.key;
|
|
7357
|
-
_ === H ? (h = _.first, f--, p--) : b.has(A) ? !o.has(Z) || E.has(Z) ? S(_) : T.has(A) ? f-- :
|
|
7362
|
+
_ === H ? (h = _.first, f--, p--) : b.has(A) ? !o.has(Z) || E.has(Z) ? S(_) : T.has(A) ? f-- : w.get(Z) > w.get(A) ? (T.add(Z), S(_)) : (E.add(A), f--) : (l(H, o), f--);
|
|
7358
7363
|
}
|
|
7359
7364
|
for (; f--; ) {
|
|
7360
7365
|
const _ = n[f];
|
|
@@ -7980,12 +7985,12 @@ function my(n, t, e) {
|
|
|
7980
7985
|
const [_] = s.model.intersectRaycaster(M);
|
|
7981
7986
|
return !(_ && _.distance + 1 < S);
|
|
7982
7987
|
}
|
|
7983
|
-
function h(b,
|
|
7984
|
-
const E = new ue(b.position.x, b.position.y, b.position.z).clone().project(s.camera), T = Math.ceil((E.x + 1) / 2 *
|
|
7988
|
+
function h(b, w) {
|
|
7989
|
+
const E = new ue(b.position.x, b.position.y, b.position.z).clone().project(s.camera), T = Math.ceil((E.x + 1) / 2 * w.x), S = Math.ceil((-E.y + 1) / 2 * w.y);
|
|
7985
7990
|
return `translate(${T}px, ${S}px)`;
|
|
7986
7991
|
}
|
|
7987
7992
|
function u(b) {
|
|
7988
|
-
const { rendererSize:
|
|
7993
|
+
const { rendererSize: w } = b, M = /* @__PURE__ */ new Map();
|
|
7989
7994
|
function E(S) {
|
|
7990
7995
|
const _ = M.get(S.id);
|
|
7991
7996
|
if (_)
|
|
@@ -7994,7 +7999,7 @@ function my(n, t, e) {
|
|
|
7994
7999
|
return M.set(S.id, I), I;
|
|
7995
8000
|
}
|
|
7996
8001
|
return r.map((S) => {
|
|
7997
|
-
const _ = c(S), H = _ ? h(S,
|
|
8002
|
+
const _ = c(S), H = _ ? h(S, w) : S.transform, Z = E(S), I = r.filter((C) => C.visible && E(C) < Z).length * 10;
|
|
7998
8003
|
return he(B({}, S), { visible: _, transform: H, zIndex: I });
|
|
7999
8004
|
});
|
|
8000
8005
|
}
|
|
@@ -8673,7 +8678,7 @@ function Ry(n, t) {
|
|
|
8673
8678
|
return s;
|
|
8674
8679
|
}
|
|
8675
8680
|
function By(n, t, e) {
|
|
8676
|
-
let i, s, r, o, a, l, c, h, u, f, p, g, v, { pxmm: m } = t, { roomAreaEnable: b } = t, { roomNameEnable:
|
|
8681
|
+
let i, s, r, o, a, l, c, h, u, f, p, g, v, { pxmm: m } = t, { roomAreaEnable: b } = t, { roomNameEnable: w } = t, { roomDimensionEnable: M } = t, { room: E } = t, { hoveredRoom: T } = t, { getRoomAreaText: S } = t, { getRoomDimensionText: _ } = t, { getLabelElement: H } = t, { adaptiveRoomLabelVisibleEnable: Z } = t;
|
|
8677
8682
|
function A(ie, we) {
|
|
8678
8683
|
if (we.width === 0 || we.height === 0)
|
|
8679
8684
|
return () => !1;
|
|
@@ -8688,7 +8693,7 @@ function By(n, t, e) {
|
|
|
8688
8693
|
].every((ze) => Ry(ze, Je));
|
|
8689
8694
|
};
|
|
8690
8695
|
}
|
|
8691
|
-
const I = document.body.clientWidth,
|
|
8696
|
+
const I = document.body.clientWidth, C = document.body.clientHeight, x = E.roomLabel, k = x.positionInImage.x * 100 + "%", L = x.positionInImage.y * 100 + "%", R = (I < 500 || C < 500 ? 10 : 14) + "px", V = (I < 500 || C < 500 ? 8 : 12) + "px";
|
|
8692
8697
|
let J = 0, ee = 0, K = 0, re = 0, ne = !1;
|
|
8693
8698
|
T.subscribe(function(we) {
|
|
8694
8699
|
e(25, ne = !!we && we.id === E.id);
|
|
@@ -8703,7 +8708,7 @@ function By(n, t, e) {
|
|
|
8703
8708
|
e(6, ee = ie.detail);
|
|
8704
8709
|
};
|
|
8705
8710
|
return n.$$set = (ie) => {
|
|
8706
|
-
"pxmm" in ie && e(20, m = ie.pxmm), "roomAreaEnable" in ie && e(0, b = ie.roomAreaEnable), "roomNameEnable" in ie && e(1,
|
|
8711
|
+
"pxmm" in ie && e(20, m = ie.pxmm), "roomAreaEnable" in ie && e(0, b = ie.roomAreaEnable), "roomNameEnable" in ie && e(1, w = ie.roomNameEnable), "roomDimensionEnable" in ie && e(2, M = ie.roomDimensionEnable), "room" in ie && e(3, E = ie.room), "hoveredRoom" in ie && e(21, T = ie.hoveredRoom), "getRoomAreaText" in ie && e(22, S = ie.getRoomAreaText), "getRoomDimensionText" in ie && e(23, _ = ie.getRoomDimensionText), "getLabelElement" in ie && e(4, H = ie.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ie && e(24, Z = ie.adaptiveRoomLabelVisibleEnable);
|
|
8707
8712
|
}, n.$$.update = () => {
|
|
8708
8713
|
var ie, we;
|
|
8709
8714
|
n.$$.dirty[0] & /*getLabelElement, room*/
|
|
@@ -8726,7 +8731,7 @@ function By(n, t, e) {
|
|
|
8726
8731
|
201326592 && e(9, v = l && !u);
|
|
8727
8732
|
}, [
|
|
8728
8733
|
b,
|
|
8729
|
-
|
|
8734
|
+
w,
|
|
8730
8735
|
M,
|
|
8731
8736
|
E,
|
|
8732
8737
|
H,
|
|
@@ -9013,7 +9018,7 @@ function Hy(n, t, e) {
|
|
|
9013
9018
|
if (n.$$.dirty & /*floorplanData, floorIndex*/
|
|
9014
9019
|
6144 && e(10, i = l.floorDatas[s].rooms), n.$$.dirty & /*floorplanData, clientWidth*/
|
|
9015
9020
|
4352) {
|
|
9016
|
-
const { max: b, min:
|
|
9021
|
+
const { max: b, min: w } = l.bounding, M = b.x - w.x;
|
|
9017
9022
|
e(9, v = g / M);
|
|
9018
9023
|
}
|
|
9019
9024
|
}, [
|
|
@@ -9236,7 +9241,7 @@ function Qy(n, t, e) {
|
|
|
9236
9241
|
});
|
|
9237
9242
|
u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
9238
9243
|
const f = h[h.length - 1] - h[0], p = h.map((g, v, m) => {
|
|
9239
|
-
const b = v === 0 ? 0 : g - m[v - 1],
|
|
9244
|
+
const b = v === 0 ? 0 : g - m[v - 1], w = v === 0 ? 0 : (g + m[v - 1]) / 2, M = a ? (w - r.min.x - Ws + Qs) / l : 0, E = a ? 0 : (w - r.min.y - Ws + Qs) / c;
|
|
9240
9245
|
return { left: M, bottom: E, distance: b };
|
|
9241
9246
|
}).filter(({ distance: g }) => g / f > 0.1);
|
|
9242
9247
|
return n.$$set = (g) => {
|
|
@@ -10325,8 +10330,8 @@ function kw(n) {
|
|
|
10325
10330
|
function Dw(n, t, e) {
|
|
10326
10331
|
let { panoIndex: i } = t, { floorplanData: s } = t, { lastPanoramaLongitude: r } = t, { cameraImageUrl: o } = t;
|
|
10327
10332
|
const { observers: a } = s, l = a[i], c = l.positionInImage.x, h = l.positionInImage.y, u = c * 100 + "%", f = h * 100 + "%", p = -al(r) + 45, g = document.body.clientWidth, v = document.body.clientHeight, b = `${(g < 500 || v < 500 ? 17 : 37) / 16}rem`;
|
|
10328
|
-
return n.$$set = (
|
|
10329
|
-
"panoIndex" in
|
|
10333
|
+
return n.$$set = (w) => {
|
|
10334
|
+
"panoIndex" in w && e(5, i = w.panoIndex), "floorplanData" in w && e(6, s = w.floorplanData), "lastPanoramaLongitude" in w && e(7, r = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, o = w.cameraImageUrl);
|
|
10330
10335
|
}, [
|
|
10331
10336
|
o,
|
|
10332
10337
|
u,
|
|
@@ -10474,7 +10479,7 @@ function Vw(n) {
|
|
|
10474
10479
|
), b = (
|
|
10475
10480
|
/*ruleLabelsEnable*/
|
|
10476
10481
|
n[10] && pd(n)
|
|
10477
|
-
),
|
|
10482
|
+
), w = (
|
|
10478
10483
|
/*cameraEnable*/
|
|
10479
10484
|
n[4] && md(n)
|
|
10480
10485
|
), M = (
|
|
@@ -10483,10 +10488,10 @@ function Vw(n) {
|
|
|
10483
10488
|
);
|
|
10484
10489
|
return {
|
|
10485
10490
|
c() {
|
|
10486
|
-
ve(t.$$.fragment), e = le(), p && p.c(), i = le(), ve(s.$$.fragment), r = le(), m && m.c(), o = le(), b && b.c(), a = le(),
|
|
10491
|
+
ve(t.$$.fragment), e = le(), p && p.c(), i = le(), ve(s.$$.fragment), r = le(), m && m.c(), o = le(), b && b.c(), a = le(), w && w.c(), l = le(), M && M.c(), c = Be();
|
|
10487
10492
|
},
|
|
10488
10493
|
m(E, T) {
|
|
10489
|
-
me(t, E, T), X(E, e, T), p && p.m(E, T), X(E, i, T), me(s, E, T), X(E, r, T), m && m.m(E, T), X(E, o, T), b && b.m(E, T), X(E, a, T),
|
|
10494
|
+
me(t, E, T), X(E, e, T), p && p.m(E, T), X(E, i, T), me(s, E, T), X(E, r, T), m && m.m(E, T), X(E, o, T), b && b.m(E, T), X(E, a, T), w && w.m(E, T), X(E, l, T), M && M.m(E, T), X(E, c, T), h = !0;
|
|
10490
10495
|
},
|
|
10491
10496
|
p(E, T) {
|
|
10492
10497
|
const S = T & /*floorIndex, floorplanData*/
|
|
@@ -10530,9 +10535,9 @@ function Vw(n) {
|
|
|
10530
10535
|
1024 && F(b, 1)) : (b = pd(E), b.c(), F(b, 1), b.m(a.parentNode, a)) : b && (Ie(), Y(b, 1, 1, () => {
|
|
10531
10536
|
b = null;
|
|
10532
10537
|
}), Ee()), /*cameraEnable*/
|
|
10533
|
-
E[4] ?
|
|
10534
|
-
16 && F(
|
|
10535
|
-
|
|
10538
|
+
E[4] ? w ? (w.p(E, T), T & /*cameraEnable*/
|
|
10539
|
+
16 && F(w, 1)) : (w = md(E), w.c(), F(w, 1), w.m(l.parentNode, l)) : w && (Ie(), Y(w, 1, 1, () => {
|
|
10540
|
+
w = null;
|
|
10536
10541
|
}), Ee()), /*compassEnable*/
|
|
10537
10542
|
E[22] ? M ? (M.p(E, T), T & /*compassEnable*/
|
|
10538
10543
|
4194304 && F(M, 1)) : (M = gd(E), M.c(), F(M, 1), M.m(c.parentNode, c)) : M && (Ie(), Y(M, 1, 1, () => {
|
|
@@ -10540,13 +10545,13 @@ function Vw(n) {
|
|
|
10540
10545
|
}), Ee());
|
|
10541
10546
|
},
|
|
10542
10547
|
i(E) {
|
|
10543
|
-
h || (F(t.$$.fragment, E), F(p), F(s.$$.fragment, E), F(m), F(b), F(
|
|
10548
|
+
h || (F(t.$$.fragment, E), F(p), F(s.$$.fragment, E), F(m), F(b), F(w), F(M), h = !0);
|
|
10544
10549
|
},
|
|
10545
10550
|
o(E) {
|
|
10546
|
-
Y(t.$$.fragment, E), Y(p), Y(s.$$.fragment, E), Y(m), Y(b), Y(
|
|
10551
|
+
Y(t.$$.fragment, E), Y(p), Y(s.$$.fragment, E), Y(m), Y(b), Y(w), Y(M), h = !1;
|
|
10547
10552
|
},
|
|
10548
10553
|
d(E) {
|
|
10549
|
-
ge(t, E), E && U(e), p && p.d(E), E && U(i), ge(s, E), E && U(r), m && m.d(E), E && U(o), b && b.d(E), E && U(a),
|
|
10554
|
+
ge(t, E), E && U(e), p && p.d(E), E && U(i), ge(s, E), E && U(r), m && m.d(E), E && U(o), b && b.d(E), E && U(a), w && w.d(E), E && U(l), M && M.d(E), E && U(c);
|
|
10550
10555
|
}
|
|
10551
10556
|
};
|
|
10552
10557
|
}
|
|
@@ -10967,12 +10972,12 @@ function Fw(n) {
|
|
|
10967
10972
|
};
|
|
10968
10973
|
}
|
|
10969
10974
|
function Hw(n, t, e) {
|
|
10970
|
-
let i, s, { panoIndex: r } = t, { isCurrent: o } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: m } = t, { getRoomAreaText: b } = t, { getRoomDimensionText:
|
|
10975
|
+
let i, s, { panoIndex: r } = t, { isCurrent: o } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: m } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: w } = t, { getLabelElement: M } = t, { getRuleDistanceText: E } = t, { adaptiveRoomLabelVisibleEnable: T } = t, { highlightData: S } = t, { missingFloorConfig: _ } = t, { lastPanoramaLongitude: H } = t, { cameraImageUrl: Z } = t, { northDesc: A } = t, { compassEnable: I } = t, { store: C = void 0 } = t;
|
|
10971
10976
|
const x = kh(void 0);
|
|
10972
10977
|
return x.subscribe((k) => {
|
|
10973
|
-
|
|
10978
|
+
C && e(25, C.roomOnMouse = k, C);
|
|
10974
10979
|
}), n.$$set = (k) => {
|
|
10975
|
-
"panoIndex" in k && e(0, r = k.panoIndex), "isCurrent" in k && e(1, o = k.isCurrent), "floorIndex" in k && e(2, a = k.floorIndex), "highlightEnable" in k && e(3, l = k.highlightEnable), "cameraEnable" in k && e(4, c = k.cameraEnable), "hoverEnable" in k && e(5, h = k.hoverEnable), "roomLabelsEnable" in k && e(6, u = k.roomLabelsEnable), "roomAreaEnable" in k && e(7, f = k.roomAreaEnable), "roomNameEnable" in k && e(8, p = k.roomNameEnable), "roomDimensionEnable" in k && e(9, g = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(10, v = k.ruleLabelsEnable), "floorplanData" in k && e(11, m = k.floorplanData), "getRoomAreaText" in k && e(12, b = k.getRoomAreaText), "getRoomDimensionText" in k && e(13,
|
|
10980
|
+
"panoIndex" in k && e(0, r = k.panoIndex), "isCurrent" in k && e(1, o = k.isCurrent), "floorIndex" in k && e(2, a = k.floorIndex), "highlightEnable" in k && e(3, l = k.highlightEnable), "cameraEnable" in k && e(4, c = k.cameraEnable), "hoverEnable" in k && e(5, h = k.hoverEnable), "roomLabelsEnable" in k && e(6, u = k.roomLabelsEnable), "roomAreaEnable" in k && e(7, f = k.roomAreaEnable), "roomNameEnable" in k && e(8, p = k.roomNameEnable), "roomDimensionEnable" in k && e(9, g = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(10, v = k.ruleLabelsEnable), "floorplanData" in k && e(11, m = k.floorplanData), "getRoomAreaText" in k && e(12, b = k.getRoomAreaText), "getRoomDimensionText" in k && e(13, w = k.getRoomDimensionText), "getLabelElement" in k && e(14, M = k.getLabelElement), "getRuleDistanceText" in k && e(15, E = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(16, T = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(17, S = k.highlightData), "missingFloorConfig" in k && e(18, _ = k.missingFloorConfig), "lastPanoramaLongitude" in k && e(19, H = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(20, Z = k.cameraImageUrl), "northDesc" in k && e(21, A = k.northDesc), "compassEnable" in k && e(22, I = k.compassEnable), "store" in k && e(25, C = k.store);
|
|
10976
10981
|
}, n.$$.update = () => {
|
|
10977
10982
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
10978
10983
|
2052 && e(26, i = m.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -10991,7 +10996,7 @@ function Hw(n, t, e) {
|
|
|
10991
10996
|
v,
|
|
10992
10997
|
m,
|
|
10993
10998
|
b,
|
|
10994
|
-
|
|
10999
|
+
w,
|
|
10995
11000
|
M,
|
|
10996
11001
|
E,
|
|
10997
11002
|
T,
|
|
@@ -11003,7 +11008,7 @@ function Hw(n, t, e) {
|
|
|
11003
11008
|
I,
|
|
11004
11009
|
s,
|
|
11005
11010
|
x,
|
|
11006
|
-
|
|
11011
|
+
C,
|
|
11007
11012
|
i
|
|
11008
11013
|
];
|
|
11009
11014
|
}
|
|
@@ -11387,9 +11392,9 @@ function Ww(n) {
|
|
|
11387
11392
|
};
|
|
11388
11393
|
}
|
|
11389
11394
|
function Qw(n, t, e) {
|
|
11390
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: r } = t, { panoIndex: o } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: p } = t, { roomNameEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: m } = t, { floorplanData: b } = t, { lastPanoramaLongitude:
|
|
11391
|
-
return n.$$set = (
|
|
11392
|
-
"duration" in
|
|
11395
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: r } = t, { panoIndex: o } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: p } = t, { roomNameEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: m } = t, { floorplanData: b } = t, { lastPanoramaLongitude: w } = t, { cameraImageUrl: M } = t, { getRoomAreaText: E } = t, { getRoomDimensionText: T } = t, { getLabelElement: S } = t, { getRuleDistanceText: _ } = t, { adaptiveRoomLabelVisibleEnable: H } = t, { highlightData: Z } = t, { missingFloorConfig: A } = t, { store: I = void 0 } = t;
|
|
11396
|
+
return n.$$set = (C) => {
|
|
11397
|
+
"duration" in C && e(0, i = C.duration), "visible" in C && e(1, s = C.visible), "northDesc" in C && e(2, r = C.northDesc), "panoIndex" in C && e(3, o = C.panoIndex), "floorIndex" in C && e(4, a = C.floorIndex), "cameraEnable" in C && e(5, l = C.cameraEnable), "hoverEnable" in C && e(6, c = C.hoverEnable), "highlightEnable" in C && e(7, h = C.highlightEnable), "compassEnable" in C && e(8, u = C.compassEnable), "roomLabelsEnable" in C && e(9, f = C.roomLabelsEnable), "roomAreaEnable" in C && e(10, p = C.roomAreaEnable), "roomNameEnable" in C && e(11, g = C.roomNameEnable), "roomDimensionEnable" in C && e(12, v = C.roomDimensionEnable), "ruleLabelsEnable" in C && e(13, m = C.ruleLabelsEnable), "floorplanData" in C && e(14, b = C.floorplanData), "lastPanoramaLongitude" in C && e(15, w = C.lastPanoramaLongitude), "cameraImageUrl" in C && e(16, M = C.cameraImageUrl), "getRoomAreaText" in C && e(17, E = C.getRoomAreaText), "getRoomDimensionText" in C && e(18, T = C.getRoomDimensionText), "getLabelElement" in C && e(19, S = C.getLabelElement), "getRuleDistanceText" in C && e(20, _ = C.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in C && e(21, H = C.adaptiveRoomLabelVisibleEnable), "highlightData" in C && e(22, Z = C.highlightData), "missingFloorConfig" in C && e(23, A = C.missingFloorConfig), "store" in C && e(24, I = C.store);
|
|
11393
11398
|
}, [
|
|
11394
11399
|
i,
|
|
11395
11400
|
s,
|
|
@@ -11406,7 +11411,7 @@ function Qw(n, t, e) {
|
|
|
11406
11411
|
v,
|
|
11407
11412
|
m,
|
|
11408
11413
|
b,
|
|
11409
|
-
|
|
11414
|
+
w,
|
|
11410
11415
|
M,
|
|
11411
11416
|
E,
|
|
11412
11417
|
T,
|
|
@@ -11567,7 +11572,7 @@ let Xn = class {
|
|
|
11567
11572
|
/**
|
|
11568
11573
|
* @realsee/dnalogel 版本号
|
|
11569
11574
|
*/
|
|
11570
|
-
d(this, "VERSION", "3.61.7-alpha.
|
|
11575
|
+
d(this, "VERSION", "3.61.7-alpha.2");
|
|
11571
11576
|
d(this, "NAME");
|
|
11572
11577
|
d(this, "five");
|
|
11573
11578
|
d(this, "workUtil");
|
|
@@ -12713,8 +12718,8 @@ function fC(n) {
|
|
|
12713
12718
|
return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
|
|
12714
12719
|
}
|
|
12715
12720
|
function pC(n, t, e) {
|
|
12716
|
-
var
|
|
12717
|
-
let i, s, r, o, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, p = (M = (
|
|
12721
|
+
var w, M;
|
|
12722
|
+
let i, s, r, o, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, p = (M = (w = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? M : 0;
|
|
12718
12723
|
function g(E, T) {
|
|
12719
12724
|
const S = E.bounding, _ = E.observers[T];
|
|
12720
12725
|
if (!_)
|
|
@@ -13364,7 +13369,7 @@ function kC(n, t, e) {
|
|
|
13364
13369
|
Zt(() => (i.on("panoArrived", b), () => {
|
|
13365
13370
|
i.off("panoArrived", b);
|
|
13366
13371
|
}));
|
|
13367
|
-
const
|
|
13372
|
+
const w = (S) => {
|
|
13368
13373
|
e(8, p = S.detail);
|
|
13369
13374
|
}, M = (S) => {
|
|
13370
13375
|
e(9, g = S.detail);
|
|
@@ -13394,7 +13399,7 @@ function kC(n, t, e) {
|
|
|
13394
13399
|
u,
|
|
13395
13400
|
f,
|
|
13396
13401
|
m,
|
|
13397
|
-
|
|
13402
|
+
w,
|
|
13398
13403
|
M
|
|
13399
13404
|
];
|
|
13400
13405
|
}
|
|
@@ -13762,13 +13767,13 @@ Zn.prototype.k = function() {
|
|
|
13762
13767
|
this.j(OC, zC);
|
|
13763
13768
|
break;
|
|
13764
13769
|
case 2:
|
|
13765
|
-
for (var h = fi(this, 5) + 257, u = fi(this, 5) + 1, f = fi(this, 4) + 4, p = new (at ? Uint8Array : Array)(Bl.length), g = ri, v = ri, m = ri, b = ri,
|
|
13770
|
+
for (var h = fi(this, 5) + 257, u = fi(this, 5) + 1, f = fi(this, 4) + 4, p = new (at ? Uint8Array : Array)(Bl.length), g = ri, v = ri, m = ri, b = ri, w = ri, M = ri, E = ri, S = ri, T = ri, S = 0; S < f; ++S)
|
|
13766
13771
|
p[Bl[S]] = fi(this, 3);
|
|
13767
13772
|
if (!at)
|
|
13768
13773
|
for (S = f, f = p.length; S < f; ++S)
|
|
13769
13774
|
p[Bl[S]] = 0;
|
|
13770
13775
|
for (g = ls(p), b = new (at ? Uint8Array : Array)(h + u), S = 0, T = h + u; S < T; )
|
|
13771
|
-
switch (
|
|
13776
|
+
switch (w = wo(this, g), w) {
|
|
13772
13777
|
case 16:
|
|
13773
13778
|
for (E = 3 + fi(this, 2); E--; )
|
|
13774
13779
|
b[S++] = M;
|
|
@@ -13784,7 +13789,7 @@ Zn.prototype.k = function() {
|
|
|
13784
13789
|
M = 0;
|
|
13785
13790
|
break;
|
|
13786
13791
|
default:
|
|
13787
|
-
M = b[S++] =
|
|
13792
|
+
M = b[S++] = w;
|
|
13788
13793
|
}
|
|
13789
13794
|
v = ls(at ? b.subarray(0, h) : b.slice(0, h)), m = ls(at ? b.subarray(h) : b.slice(h)), this.j(v, m);
|
|
13790
13795
|
break;
|
|
@@ -14050,15 +14055,15 @@ var Bd = Yg.Zlib, Jg = {
|
|
|
14050
14055
|
for (var u = 0; u <= e; ++u)
|
|
14051
14056
|
a[0][u] = l[u][e];
|
|
14052
14057
|
for (var Z = 0; Z <= e; ++Z) {
|
|
14053
|
-
for (var m = 0, b = 1,
|
|
14054
|
-
|
|
14055
|
-
|
|
14058
|
+
for (var m = 0, b = 1, w = [], o = 0; o <= e; ++o)
|
|
14059
|
+
w[o] = r.slice(0);
|
|
14060
|
+
w[0][0] = 1;
|
|
14056
14061
|
for (var M = 1; M <= i; ++M) {
|
|
14057
14062
|
var E = 0, T = Z - M, S = e - M;
|
|
14058
|
-
Z >= M && (
|
|
14063
|
+
Z >= M && (w[b][0] = w[m][0] / l[S + 1][T], E = w[b][0] * l[T][S]);
|
|
14059
14064
|
for (var _ = T >= -1 ? 1 : -T, H = Z - 1 <= S ? M - 1 : e - Z, u = _; u <= H; ++u)
|
|
14060
|
-
|
|
14061
|
-
Z <= S && (
|
|
14065
|
+
w[b][u] = (w[m][u] - w[m][u - 1]) / l[S + 1][T + u], E += w[b][u] * l[T + u][S];
|
|
14066
|
+
Z <= S && (w[b][M] = -w[m][M - 1] / l[S + 1][Z], E += w[b][M] * l[Z][S]), a[M][Z] = E;
|
|
14062
14067
|
var u = m;
|
|
14063
14068
|
m = b, b = u;
|
|
14064
14069
|
}
|
|
@@ -14189,7 +14194,7 @@ var qg = function() {
|
|
|
14189
14194
|
}
|
|
14190
14195
|
i.prototype = Object.assign(Object.create(pu.prototype), {
|
|
14191
14196
|
constructor: i,
|
|
14192
|
-
load: function(A, I,
|
|
14197
|
+
load: function(A, I, C, x) {
|
|
14193
14198
|
var k = this, L = k.path === "" ? Pl.extractUrlBase(A) : k.path, R = new G0(this.manager);
|
|
14194
14199
|
R.setPath(k.path), R.setResponseType("arraybuffer"), R.load(
|
|
14195
14200
|
A,
|
|
@@ -14200,7 +14205,7 @@ var qg = function() {
|
|
|
14200
14205
|
x ? x(J) : console.error(J), k.manager.itemError(A);
|
|
14201
14206
|
}
|
|
14202
14207
|
},
|
|
14203
|
-
|
|
14208
|
+
C,
|
|
14204
14209
|
x
|
|
14205
14210
|
);
|
|
14206
14211
|
},
|
|
@@ -14208,12 +14213,12 @@ var qg = function() {
|
|
|
14208
14213
|
if (u(A))
|
|
14209
14214
|
n = new l().parse(A);
|
|
14210
14215
|
else {
|
|
14211
|
-
var
|
|
14212
|
-
if (!f(
|
|
14216
|
+
var C = S(A);
|
|
14217
|
+
if (!f(C))
|
|
14213
14218
|
throw new Error("THREE.FBXLoader: Unknown format.");
|
|
14214
|
-
if (p(
|
|
14215
|
-
throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: " + p(
|
|
14216
|
-
n = new a().parse(
|
|
14219
|
+
if (p(C) < 7e3)
|
|
14220
|
+
throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: " + p(C));
|
|
14221
|
+
n = new a().parse(C);
|
|
14217
14222
|
}
|
|
14218
14223
|
var x = new Yc(this.manager).setPath(this.resourcePath || I).setCrossOrigin(this.crossOrigin);
|
|
14219
14224
|
return new s(x, this.manager).parse(n);
|
|
@@ -14226,8 +14231,8 @@ var qg = function() {
|
|
|
14226
14231
|
constructor: s,
|
|
14227
14232
|
parse: function() {
|
|
14228
14233
|
t = this.parseConnections();
|
|
14229
|
-
var A = this.parseImages(), I = this.parseTextures(A),
|
|
14230
|
-
return this.parseScene(x, k,
|
|
14234
|
+
var A = this.parseImages(), I = this.parseTextures(A), C = this.parseMaterials(I), x = this.parseDeformers(), k = new r().parse(x);
|
|
14235
|
+
return this.parseScene(x, k, C), e;
|
|
14231
14236
|
},
|
|
14232
14237
|
// Parses FBXTree.Connections which holds parent-child connections between objects (e.g. material -> texture, model->geometry )
|
|
14233
14238
|
// and details the connection type
|
|
@@ -14235,8 +14240,8 @@ var qg = function() {
|
|
|
14235
14240
|
var A = /* @__PURE__ */ new Map();
|
|
14236
14241
|
if ("Connections" in n) {
|
|
14237
14242
|
var I = n.Connections.connections;
|
|
14238
|
-
I.forEach(function(
|
|
14239
|
-
var x =
|
|
14243
|
+
I.forEach(function(C) {
|
|
14244
|
+
var x = C[0], k = C[1], L = C[2];
|
|
14240
14245
|
A.has(x) || A.set(x, {
|
|
14241
14246
|
parents: [],
|
|
14242
14247
|
children: []
|
|
@@ -14258,13 +14263,13 @@ var qg = function() {
|
|
|
14258
14263
|
parseImages: function() {
|
|
14259
14264
|
var A = {}, I = {};
|
|
14260
14265
|
if ("Video" in n.Objects) {
|
|
14261
|
-
var
|
|
14262
|
-
for (var x in
|
|
14263
|
-
var k =
|
|
14266
|
+
var C = n.Objects.Video;
|
|
14267
|
+
for (var x in C) {
|
|
14268
|
+
var k = C[x], L = parseInt(x);
|
|
14264
14269
|
if (A[L] = k.RelativeFilename || k.Filename, "Content" in k) {
|
|
14265
14270
|
var R = k.Content instanceof ArrayBuffer && k.Content.byteLength > 0, V = typeof k.Content == "string" && k.Content !== "";
|
|
14266
14271
|
if (R || V) {
|
|
14267
|
-
var J = this.parseImage(
|
|
14272
|
+
var J = this.parseImage(C[x]);
|
|
14268
14273
|
I[k.RelativeFilename || k.Filename] = J;
|
|
14269
14274
|
}
|
|
14270
14275
|
}
|
|
@@ -14278,7 +14283,7 @@ var qg = function() {
|
|
|
14278
14283
|
},
|
|
14279
14284
|
// Parse embedded image data in FBXTree.Video.Content
|
|
14280
14285
|
parseImage: function(A) {
|
|
14281
|
-
var I = A.Content,
|
|
14286
|
+
var I = A.Content, C = A.RelativeFilename || A.Filename, x = C.slice(C.lastIndexOf(".") + 1).toLowerCase(), k;
|
|
14282
14287
|
switch (x) {
|
|
14283
14288
|
case "bmp":
|
|
14284
14289
|
k = "image/bmp";
|
|
@@ -14294,7 +14299,7 @@ var qg = function() {
|
|
|
14294
14299
|
k = "image/tiff";
|
|
14295
14300
|
break;
|
|
14296
14301
|
case "tga":
|
|
14297
|
-
this.manager.getHandler(".tga") === null && console.warn("FBXLoader: TGA loader not found, skipping ",
|
|
14302
|
+
this.manager.getHandler(".tga") === null && console.warn("FBXLoader: TGA loader not found, skipping ", C), k = "image/tga";
|
|
14298
14303
|
break;
|
|
14299
14304
|
default:
|
|
14300
14305
|
console.warn('FBXLoader: Image type "' + x + '" is not supported.');
|
|
@@ -14311,9 +14316,9 @@ var qg = function() {
|
|
|
14311
14316
|
parseTextures: function(A) {
|
|
14312
14317
|
var I = /* @__PURE__ */ new Map();
|
|
14313
14318
|
if ("Texture" in n.Objects) {
|
|
14314
|
-
var
|
|
14315
|
-
for (var x in
|
|
14316
|
-
var k = this.parseTexture(
|
|
14319
|
+
var C = n.Objects.Texture;
|
|
14320
|
+
for (var x in C) {
|
|
14321
|
+
var k = this.parseTexture(C[x], A);
|
|
14317
14322
|
I.set(parseInt(x), k);
|
|
14318
14323
|
}
|
|
14319
14324
|
}
|
|
@@ -14321,34 +14326,34 @@ var qg = function() {
|
|
|
14321
14326
|
},
|
|
14322
14327
|
// Parse individual node in FBXTree.Objects.Texture
|
|
14323
14328
|
parseTexture: function(A, I) {
|
|
14324
|
-
var
|
|
14325
|
-
|
|
14329
|
+
var C = this.loadTexture(A, I);
|
|
14330
|
+
C.ID = A.id, C.name = A.attrName;
|
|
14326
14331
|
var x = A.WrapModeU, k = A.WrapModeV, L = x !== void 0 ? x.value : 0, R = k !== void 0 ? k.value : 0;
|
|
14327
|
-
if (
|
|
14332
|
+
if (C.wrapS = L === 0 ? mu : gu, C.wrapT = R === 0 ? mu : gu, "Scaling" in A) {
|
|
14328
14333
|
var V = A.Scaling.value;
|
|
14329
|
-
|
|
14334
|
+
C.repeat.x = V[0], C.repeat.y = V[1];
|
|
14330
14335
|
}
|
|
14331
|
-
return
|
|
14336
|
+
return C;
|
|
14332
14337
|
},
|
|
14333
14338
|
// load a texture specified as a blob or data URI, or via an external URL using TextureLoader
|
|
14334
14339
|
loadTexture: function(A, I) {
|
|
14335
|
-
var
|
|
14336
|
-
k !== void 0 && k.length > 0 && I[k[0].ID] !== void 0 && (
|
|
14340
|
+
var C, x = this.textureLoader.path, k = t.get(A.id).children;
|
|
14341
|
+
k !== void 0 && k.length > 0 && I[k[0].ID] !== void 0 && (C = I[k[0].ID], (C.indexOf("blob:") === 0 || C.indexOf("data:") === 0) && this.textureLoader.setPath(void 0));
|
|
14337
14342
|
var L, R = A.FileName.slice(-3).toLowerCase();
|
|
14338
14343
|
if (R === "tga") {
|
|
14339
14344
|
var V = this.manager.getHandler(".tga");
|
|
14340
|
-
V === null ? (console.warn("FBXLoader: TGA loader not found, creating placeholder texture for", A.RelativeFilename), L = new vu()) : L = V.load(
|
|
14345
|
+
V === null ? (console.warn("FBXLoader: TGA loader not found, creating placeholder texture for", A.RelativeFilename), L = new vu()) : L = V.load(C);
|
|
14341
14346
|
} else
|
|
14342
|
-
R === "psd" ? (console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for", A.RelativeFilename), L = new vu()) : L = this.textureLoader.load(
|
|
14347
|
+
R === "psd" ? (console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for", A.RelativeFilename), L = new vu()) : L = this.textureLoader.load(C);
|
|
14343
14348
|
return this.textureLoader.setPath(x), L;
|
|
14344
14349
|
},
|
|
14345
14350
|
// Parse nodes in FBXTree.Objects.Material
|
|
14346
14351
|
parseMaterials: function(A) {
|
|
14347
14352
|
var I = /* @__PURE__ */ new Map();
|
|
14348
14353
|
if ("Material" in n.Objects) {
|
|
14349
|
-
var
|
|
14350
|
-
for (var x in
|
|
14351
|
-
var k = this.parseMaterial(
|
|
14354
|
+
var C = n.Objects.Material;
|
|
14355
|
+
for (var x in C) {
|
|
14356
|
+
var k = this.parseMaterial(C[x], A);
|
|
14352
14357
|
k !== null && I.set(parseInt(x), k);
|
|
14353
14358
|
}
|
|
14354
14359
|
}
|
|
@@ -14358,10 +14363,10 @@ var qg = function() {
|
|
|
14358
14363
|
// Materials are connected to texture maps in FBXTree.Objects.Textures
|
|
14359
14364
|
// FBX format currently only supports Lambert and Phong shading models
|
|
14360
14365
|
parseMaterial: function(A, I) {
|
|
14361
|
-
var
|
|
14362
|
-
if (typeof k == "object" && (k = k.value), !t.has(
|
|
14366
|
+
var C = A.id, x = A.attrName, k = A.ShadingModel;
|
|
14367
|
+
if (typeof k == "object" && (k = k.value), !t.has(C))
|
|
14363
14368
|
return null;
|
|
14364
|
-
var L = this.parseParameters(A, I,
|
|
14369
|
+
var L = this.parseParameters(A, I, C), R;
|
|
14365
14370
|
switch (k.toLowerCase()) {
|
|
14366
14371
|
case "phong":
|
|
14367
14372
|
R = new Il();
|
|
@@ -14377,11 +14382,11 @@ var qg = function() {
|
|
|
14377
14382
|
},
|
|
14378
14383
|
// Parse FBX material and return parameters suitable for a three.js material
|
|
14379
14384
|
// Also parse the texture map and return any textures associated with the material
|
|
14380
|
-
parseParameters: function(A, I,
|
|
14385
|
+
parseParameters: function(A, I, C) {
|
|
14381
14386
|
var x = {};
|
|
14382
14387
|
A.BumpFactor && (x.bumpScale = A.BumpFactor.value), A.Diffuse ? x.color = new Kt().fromArray(A.Diffuse.value) : A.DiffuseColor && A.DiffuseColor.type === "Color" && (x.color = new Kt().fromArray(A.DiffuseColor.value)), A.DisplacementFactor && (x.displacementScale = A.DisplacementFactor.value), A.Emissive ? x.emissive = new Kt().fromArray(A.Emissive.value) : A.EmissiveColor && A.EmissiveColor.type === "Color" && (x.emissive = new Kt().fromArray(A.EmissiveColor.value)), A.EmissiveFactor && (x.emissiveIntensity = parseFloat(A.EmissiveFactor.value)), A.Opacity && (x.opacity = parseFloat(A.Opacity.value)), x.opacity < 1 && (x.transparent = !0), A.ReflectionFactor && (x.reflectivity = A.ReflectionFactor.value), A.Shininess && (x.shininess = A.Shininess.value), A.Specular ? x.specular = new Kt().fromArray(A.Specular.value) : A.SpecularColor && A.SpecularColor.type === "Color" && (x.specular = new Kt().fromArray(A.SpecularColor.value));
|
|
14383
14388
|
var k = this;
|
|
14384
|
-
return t.get(
|
|
14389
|
+
return t.get(C).children.forEach(function(L) {
|
|
14385
14390
|
var R = L.relationship;
|
|
14386
14391
|
switch (R) {
|
|
14387
14392
|
case "Bump":
|
|
@@ -14434,17 +14439,17 @@ var qg = function() {
|
|
|
14434
14439
|
parseDeformers: function() {
|
|
14435
14440
|
var A = {}, I = {};
|
|
14436
14441
|
if ("Deformer" in n.Objects) {
|
|
14437
|
-
var
|
|
14438
|
-
for (var x in
|
|
14439
|
-
var k =
|
|
14442
|
+
var C = n.Objects.Deformer;
|
|
14443
|
+
for (var x in C) {
|
|
14444
|
+
var k = C[x], L = t.get(parseInt(x));
|
|
14440
14445
|
if (k.attrType === "Skin") {
|
|
14441
|
-
var R = this.parseSkeleton(L,
|
|
14446
|
+
var R = this.parseSkeleton(L, C);
|
|
14442
14447
|
R.ID = x, L.parents.length > 1 && console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."), R.geometryID = L.parents[0].ID, A[x] = R;
|
|
14443
14448
|
} else if (k.attrType === "BlendShape") {
|
|
14444
14449
|
var V = {
|
|
14445
14450
|
id: x
|
|
14446
14451
|
};
|
|
14447
|
-
V.rawTargets = this.parseMorphTargets(L,
|
|
14452
|
+
V.rawTargets = this.parseMorphTargets(L, C), V.id = x, L.parents.length > 1 && console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."), I[x] = V;
|
|
14448
14453
|
}
|
|
14449
14454
|
}
|
|
14450
14455
|
}
|
|
@@ -14457,7 +14462,7 @@ var qg = function() {
|
|
|
14457
14462
|
// The top level skeleton node has type 'Skin' and sub nodes have type 'Cluster'
|
|
14458
14463
|
// Each skin node represents a skeleton and each cluster node represents a bone
|
|
14459
14464
|
parseSkeleton: function(A, I) {
|
|
14460
|
-
var
|
|
14465
|
+
var C = [];
|
|
14461
14466
|
return A.children.forEach(function(x) {
|
|
14462
14467
|
var k = I[x.ID];
|
|
14463
14468
|
if (k.attrType === "Cluster") {
|
|
@@ -14469,16 +14474,16 @@ var qg = function() {
|
|
|
14469
14474
|
// transform: new Matrix4().fromArray( boneNode.Transform.a ),
|
|
14470
14475
|
// linkMode: boneNode.Mode,
|
|
14471
14476
|
};
|
|
14472
|
-
"Indexes" in k && (L.indices = k.Indexes.a, L.weights = k.Weights.a),
|
|
14477
|
+
"Indexes" in k && (L.indices = k.Indexes.a, L.weights = k.Weights.a), C.push(L);
|
|
14473
14478
|
}
|
|
14474
14479
|
}), {
|
|
14475
|
-
rawBones:
|
|
14480
|
+
rawBones: C,
|
|
14476
14481
|
bones: []
|
|
14477
14482
|
};
|
|
14478
14483
|
},
|
|
14479
14484
|
// The top level morph deformer node has type "BlendShape" and sub nodes have type "BlendShapeChannel"
|
|
14480
14485
|
parseMorphTargets: function(A, I) {
|
|
14481
|
-
for (var
|
|
14486
|
+
for (var C = [], x = 0; x < A.children.length; x++) {
|
|
14482
14487
|
var k = A.children[x], L = I[k.ID], R = {
|
|
14483
14488
|
name: L.attrName,
|
|
14484
14489
|
initialWeight: L.DeformPercent,
|
|
@@ -14489,14 +14494,14 @@ var qg = function() {
|
|
|
14489
14494
|
return;
|
|
14490
14495
|
R.geoID = t.get(parseInt(k.ID)).children.filter(function(V) {
|
|
14491
14496
|
return V.relationship === void 0;
|
|
14492
|
-
})[0].ID,
|
|
14497
|
+
})[0].ID, C.push(R);
|
|
14493
14498
|
}
|
|
14494
|
-
return
|
|
14499
|
+
return C;
|
|
14495
14500
|
},
|
|
14496
14501
|
// create the main Group() to be returned by the loader
|
|
14497
|
-
parseScene: function(A, I,
|
|
14502
|
+
parseScene: function(A, I, C) {
|
|
14498
14503
|
e = new jn();
|
|
14499
|
-
var x = this.parseModels(A.skeletons, I,
|
|
14504
|
+
var x = this.parseModels(A.skeletons, I, C), k = n.Objects.Model, L = this;
|
|
14500
14505
|
x.forEach(function(V) {
|
|
14501
14506
|
var J = k[V.ID];
|
|
14502
14507
|
L.setLookAtProperties(V, J);
|
|
@@ -14516,7 +14521,7 @@ var qg = function() {
|
|
|
14516
14521
|
e.children.length === 1 && e.children[0].isGroup && (e.children[0].animations = R, e = e.children[0]), e.animations = R;
|
|
14517
14522
|
},
|
|
14518
14523
|
// parse nodes in FBXTree.Objects.Model
|
|
14519
|
-
parseModels: function(A, I,
|
|
14524
|
+
parseModels: function(A, I, C) {
|
|
14520
14525
|
var x = /* @__PURE__ */ new Map(), k = n.Objects.Model;
|
|
14521
14526
|
for (var L in k) {
|
|
14522
14527
|
var R = parseInt(L), V = k[L], J = t.get(R), ee = this.buildSkeleton(J, A, R, V.attrName);
|
|
@@ -14529,7 +14534,7 @@ var qg = function() {
|
|
|
14529
14534
|
ee = this.createLight(J);
|
|
14530
14535
|
break;
|
|
14531
14536
|
case "Mesh":
|
|
14532
|
-
ee = this.createMesh(J, I,
|
|
14537
|
+
ee = this.createMesh(J, I, C);
|
|
14533
14538
|
break;
|
|
14534
14539
|
case "NurbsCurve":
|
|
14535
14540
|
ee = this.createCurve(J, I);
|
|
@@ -14549,7 +14554,7 @@ var qg = function() {
|
|
|
14549
14554
|
}
|
|
14550
14555
|
return x;
|
|
14551
14556
|
},
|
|
14552
|
-
buildSkeleton: function(A, I,
|
|
14557
|
+
buildSkeleton: function(A, I, C, x) {
|
|
14553
14558
|
var k = null;
|
|
14554
14559
|
return A.parents.forEach(function(L) {
|
|
14555
14560
|
for (var R in I) {
|
|
@@ -14557,7 +14562,7 @@ var qg = function() {
|
|
|
14557
14562
|
V.rawBones.forEach(function(J, ee) {
|
|
14558
14563
|
if (J.ID === L.ID) {
|
|
14559
14564
|
var K = k;
|
|
14560
|
-
k = new Au(), k.matrixWorld.copy(J.transformLink), k.name = x ? Yo.sanitizeNodeName(x) : "", k.ID =
|
|
14565
|
+
k = new Au(), k.matrixWorld.copy(J.transformLink), k.name = x ? Yo.sanitizeNodeName(x) : "", k.ID = C, V.bones[ee] = k, K !== null && k.add(K);
|
|
14561
14566
|
}
|
|
14562
14567
|
});
|
|
14563
14568
|
}
|
|
@@ -14565,24 +14570,24 @@ var qg = function() {
|
|
|
14565
14570
|
},
|
|
14566
14571
|
// create a PerspectiveCamera or OrthographicCamera
|
|
14567
14572
|
createCamera: function(A) {
|
|
14568
|
-
var I,
|
|
14573
|
+
var I, C;
|
|
14569
14574
|
if (A.children.forEach(function(re) {
|
|
14570
14575
|
var ne = n.Objects.NodeAttribute[re.ID];
|
|
14571
|
-
ne !== void 0 && (
|
|
14572
|
-
}),
|
|
14576
|
+
ne !== void 0 && (C = ne);
|
|
14577
|
+
}), C === void 0)
|
|
14573
14578
|
I = new tr();
|
|
14574
14579
|
else {
|
|
14575
14580
|
var x = 0;
|
|
14576
|
-
|
|
14581
|
+
C.CameraProjectionType !== void 0 && C.CameraProjectionType.value === 1 && (x = 1);
|
|
14577
14582
|
var k = 1;
|
|
14578
|
-
|
|
14583
|
+
C.NearPlane !== void 0 && (k = C.NearPlane.value / 1e3);
|
|
14579
14584
|
var L = 1e3;
|
|
14580
|
-
|
|
14585
|
+
C.FarPlane !== void 0 && (L = C.FarPlane.value / 1e3);
|
|
14581
14586
|
var R = window.innerWidth, V = window.innerHeight;
|
|
14582
|
-
|
|
14587
|
+
C.AspectWidth !== void 0 && C.AspectHeight !== void 0 && (R = C.AspectWidth.value, V = C.AspectHeight.value);
|
|
14583
14588
|
var J = R / V, ee = 45;
|
|
14584
|
-
|
|
14585
|
-
var K =
|
|
14589
|
+
C.FieldOfView !== void 0 && (ee = C.FieldOfView.value);
|
|
14590
|
+
var K = C.FocalLength ? C.FocalLength.value : null;
|
|
14586
14591
|
switch (x) {
|
|
14587
14592
|
case 0:
|
|
14588
14593
|
I = new Y0(ee, J, k, L), K !== null && I.setFocalLength(K);
|
|
@@ -14599,21 +14604,21 @@ var qg = function() {
|
|
|
14599
14604
|
},
|
|
14600
14605
|
// Create a DirectionalLight, PointLight or SpotLight
|
|
14601
14606
|
createLight: function(A) {
|
|
14602
|
-
var I,
|
|
14607
|
+
var I, C;
|
|
14603
14608
|
if (A.children.forEach(function(K) {
|
|
14604
14609
|
var re = n.Objects.NodeAttribute[K.ID];
|
|
14605
|
-
re !== void 0 && (
|
|
14606
|
-
}),
|
|
14610
|
+
re !== void 0 && (C = re);
|
|
14611
|
+
}), C === void 0)
|
|
14607
14612
|
I = new tr();
|
|
14608
14613
|
else {
|
|
14609
14614
|
var x;
|
|
14610
|
-
|
|
14615
|
+
C.LightType === void 0 ? x = 0 : x = C.LightType.value;
|
|
14611
14616
|
var k = 16777215;
|
|
14612
|
-
|
|
14613
|
-
var L =
|
|
14614
|
-
|
|
14617
|
+
C.Color !== void 0 && (k = new Kt().fromArray(C.Color.value));
|
|
14618
|
+
var L = C.Intensity === void 0 ? 1 : C.Intensity.value / 100;
|
|
14619
|
+
C.CastLightOnObject !== void 0 && C.CastLightOnObject.value === 0 && (L = 0);
|
|
14615
14620
|
var R = 0;
|
|
14616
|
-
|
|
14621
|
+
C.FarAttenuationEnd !== void 0 && (C.EnableFarAttenuation !== void 0 && C.EnableFarAttenuation.value === 0 ? R = 0 : R = C.FarAttenuationEnd.value);
|
|
14617
14622
|
var V = 1;
|
|
14618
14623
|
switch (x) {
|
|
14619
14624
|
case 0:
|
|
@@ -14624,22 +14629,22 @@ var qg = function() {
|
|
|
14624
14629
|
break;
|
|
14625
14630
|
case 2:
|
|
14626
14631
|
var J = Math.PI / 3;
|
|
14627
|
-
|
|
14632
|
+
C.InnerAngle !== void 0 && (J = Hi.degToRad(C.InnerAngle.value));
|
|
14628
14633
|
var ee = 0;
|
|
14629
|
-
|
|
14634
|
+
C.OuterAngle !== void 0 && (ee = Hi.degToRad(C.OuterAngle.value), ee = Math.max(ee, 1)), I = new X0(k, L, R, J, ee, V);
|
|
14630
14635
|
break;
|
|
14631
14636
|
default:
|
|
14632
|
-
console.warn("THREE.FBXLoader: Unknown light type " +
|
|
14637
|
+
console.warn("THREE.FBXLoader: Unknown light type " + C.LightType.value + ", defaulting to a PointLight."), I = new bu(k, L);
|
|
14633
14638
|
break;
|
|
14634
14639
|
}
|
|
14635
|
-
|
|
14640
|
+
C.CastShadows !== void 0 && C.CastShadows.value === 1 && (I.castShadow = !0);
|
|
14636
14641
|
}
|
|
14637
14642
|
return I;
|
|
14638
14643
|
},
|
|
14639
|
-
createMesh: function(A, I,
|
|
14644
|
+
createMesh: function(A, I, C) {
|
|
14640
14645
|
var x, k = null, L = null, R = [];
|
|
14641
14646
|
return A.children.forEach(function(V) {
|
|
14642
|
-
I.has(V.ID) && (k = I.get(V.ID)),
|
|
14647
|
+
I.has(V.ID) && (k = I.get(V.ID)), C.has(V.ID) && R.push(C.get(V.ID));
|
|
14643
14648
|
}), R.length > 1 ? L = R : R.length > 0 ? L = R[0] : (L = new Il({ color: 13421772 }), R.push(L)), "color" in k.attributes && R.forEach(function(V) {
|
|
14644
14649
|
V.vertexColors = !0;
|
|
14645
14650
|
}), k.FBX_Deformer ? (R.forEach(function(V) {
|
|
@@ -14647,20 +14652,20 @@ var qg = function() {
|
|
|
14647
14652
|
}), x = new J0(k, L), x.normalizeSkinWeights()) : x = new ir(k, L), x;
|
|
14648
14653
|
},
|
|
14649
14654
|
createCurve: function(A, I) {
|
|
14650
|
-
var
|
|
14655
|
+
var C = A.children.reduce(function(k, L) {
|
|
14651
14656
|
return I.has(L.ID) && (k = I.get(L.ID)), k;
|
|
14652
14657
|
}, null), x = new q0({ color: 3342591, linewidth: 1 });
|
|
14653
|
-
return new K0(
|
|
14658
|
+
return new K0(C, x);
|
|
14654
14659
|
},
|
|
14655
14660
|
// parse the model node for transform data
|
|
14656
14661
|
getTransformData: function(A, I) {
|
|
14657
|
-
var
|
|
14658
|
-
"InheritType" in I && (
|
|
14662
|
+
var C = {};
|
|
14663
|
+
"InheritType" in I && (C.inheritType = parseInt(I.InheritType.value)), "RotationOrder" in I ? C.eulerOrder = E(I.RotationOrder.value) : C.eulerOrder = "ZYX", "Lcl_Translation" in I && (C.translation = I.Lcl_Translation.value), "PreRotation" in I && (C.preRotation = I.PreRotation.value), "Lcl_Rotation" in I && (C.rotation = I.Lcl_Rotation.value), "PostRotation" in I && (C.postRotation = I.PostRotation.value), "Lcl_Scaling" in I && (C.scale = I.Lcl_Scaling.value), "ScalingOffset" in I && (C.scalingOffset = I.ScalingOffset.value), "ScalingPivot" in I && (C.scalingPivot = I.ScalingPivot.value), "RotationOffset" in I && (C.rotationOffset = I.RotationOffset.value), "RotationPivot" in I && (C.rotationPivot = I.RotationPivot.value), A.userData.transformData = C;
|
|
14659
14664
|
},
|
|
14660
14665
|
setLookAtProperties: function(A, I) {
|
|
14661
14666
|
if ("LookAtProperty" in I) {
|
|
14662
|
-
var
|
|
14663
|
-
|
|
14667
|
+
var C = t.get(A.ID).children;
|
|
14668
|
+
C.forEach(function(x) {
|
|
14664
14669
|
if (x.relationship === "LookAtProperty") {
|
|
14665
14670
|
var k = n.Objects.Model[x.ID];
|
|
14666
14671
|
if ("Lcl_Translation" in k) {
|
|
@@ -14671,7 +14676,7 @@ var qg = function() {
|
|
|
14671
14676
|
});
|
|
14672
14677
|
}
|
|
14673
14678
|
},
|
|
14674
|
-
bindSkeleton: function(A, I,
|
|
14679
|
+
bindSkeleton: function(A, I, C) {
|
|
14675
14680
|
var x = this.parsePoseNodes();
|
|
14676
14681
|
for (var k in A) {
|
|
14677
14682
|
var L = A[k], R = t.get(parseInt(L.ID)).parents;
|
|
@@ -14679,8 +14684,8 @@ var qg = function() {
|
|
|
14679
14684
|
if (I.has(V.ID)) {
|
|
14680
14685
|
var J = V.ID, ee = t.get(J);
|
|
14681
14686
|
ee.parents.forEach(function(K) {
|
|
14682
|
-
if (
|
|
14683
|
-
var re =
|
|
14687
|
+
if (C.has(K.ID)) {
|
|
14688
|
+
var re = C.get(K.ID);
|
|
14684
14689
|
re.bind(new $0(L.bones), x[K.ID]);
|
|
14685
14690
|
}
|
|
14686
14691
|
});
|
|
@@ -14692,9 +14697,9 @@ var qg = function() {
|
|
|
14692
14697
|
var A = {};
|
|
14693
14698
|
if ("Pose" in n.Objects) {
|
|
14694
14699
|
var I = n.Objects.Pose;
|
|
14695
|
-
for (var
|
|
14696
|
-
if (I[
|
|
14697
|
-
var x = I[
|
|
14700
|
+
for (var C in I)
|
|
14701
|
+
if (I[C].attrType === "BindPose") {
|
|
14702
|
+
var x = I[C].PoseNode;
|
|
14698
14703
|
Array.isArray(x) ? x.forEach(function(k) {
|
|
14699
14704
|
A[k.Node] = new tt().fromArray(k.Matrix.a);
|
|
14700
14705
|
}) : A[x.Node] = new tt().fromArray(x.Matrix.a);
|
|
@@ -14705,9 +14710,9 @@ var qg = function() {
|
|
|
14705
14710
|
// Parse ambient color in FBXTree.GlobalSettings - if it's not set to black (default), create an ambient light
|
|
14706
14711
|
createAmbientLight: function() {
|
|
14707
14712
|
if ("GlobalSettings" in n && "AmbientColor" in n.GlobalSettings) {
|
|
14708
|
-
var A = n.GlobalSettings.AmbientColor.value, I = A[0],
|
|
14709
|
-
if (I !== 0 ||
|
|
14710
|
-
var k = new Kt(I,
|
|
14713
|
+
var A = n.GlobalSettings.AmbientColor.value, I = A[0], C = A[1], x = A[2];
|
|
14714
|
+
if (I !== 0 || C !== 0 || x !== 0) {
|
|
14715
|
+
var k = new Kt(I, C, x);
|
|
14711
14716
|
e.add(new eA(k, 1));
|
|
14712
14717
|
}
|
|
14713
14718
|
}
|
|
@@ -14715,12 +14720,12 @@ var qg = function() {
|
|
|
14715
14720
|
setupMorphMaterials: function() {
|
|
14716
14721
|
var A = this;
|
|
14717
14722
|
e.traverse(function(I) {
|
|
14718
|
-
I.isMesh && I.geometry.morphAttributes.position && I.geometry.morphAttributes.position.length && (Array.isArray(I.material) ? I.material.forEach(function(
|
|
14719
|
-
A.setupMorphMaterial(I,
|
|
14723
|
+
I.isMesh && I.geometry.morphAttributes.position && I.geometry.morphAttributes.position.length && (Array.isArray(I.material) ? I.material.forEach(function(C, x) {
|
|
14724
|
+
A.setupMorphMaterial(I, C, x);
|
|
14720
14725
|
}) : A.setupMorphMaterial(I, I.material));
|
|
14721
14726
|
});
|
|
14722
14727
|
},
|
|
14723
|
-
setupMorphMaterial: function(A, I,
|
|
14728
|
+
setupMorphMaterial: function(A, I, C) {
|
|
14724
14729
|
var x = A.uuid, k = I.uuid, L = !1;
|
|
14725
14730
|
if (e.traverse(function(V) {
|
|
14726
14731
|
V.isMesh && (Array.isArray(V.material) ? V.material.forEach(function(J) {
|
|
@@ -14728,7 +14733,7 @@ var qg = function() {
|
|
|
14728
14733
|
}) : V.material.uuid === k && V.uuid !== x && (L = !0));
|
|
14729
14734
|
}), L === !0) {
|
|
14730
14735
|
var R = I.clone();
|
|
14731
|
-
R.morphTargets = !0,
|
|
14736
|
+
R.morphTargets = !0, C === void 0 ? A.material = R : A.material[C] = R;
|
|
14732
14737
|
} else
|
|
14733
14738
|
I.morphTargets = !0;
|
|
14734
14739
|
}
|
|
@@ -14741,26 +14746,26 @@ var qg = function() {
|
|
|
14741
14746
|
parse: function(A) {
|
|
14742
14747
|
var I = /* @__PURE__ */ new Map();
|
|
14743
14748
|
if ("Geometry" in n.Objects) {
|
|
14744
|
-
var
|
|
14745
|
-
for (var x in
|
|
14746
|
-
var k = t.get(parseInt(x)), L = this.parseGeometry(k,
|
|
14749
|
+
var C = n.Objects.Geometry;
|
|
14750
|
+
for (var x in C) {
|
|
14751
|
+
var k = t.get(parseInt(x)), L = this.parseGeometry(k, C[x], A);
|
|
14747
14752
|
I.set(parseInt(x), L);
|
|
14748
14753
|
}
|
|
14749
14754
|
}
|
|
14750
14755
|
return I;
|
|
14751
14756
|
},
|
|
14752
14757
|
// Parse single node in FBXTree.Objects.Geometry
|
|
14753
|
-
parseGeometry: function(A, I,
|
|
14758
|
+
parseGeometry: function(A, I, C) {
|
|
14754
14759
|
switch (I.attrType) {
|
|
14755
14760
|
case "Mesh":
|
|
14756
|
-
return this.parseMeshGeometry(A, I,
|
|
14761
|
+
return this.parseMeshGeometry(A, I, C);
|
|
14757
14762
|
case "NurbsCurve":
|
|
14758
14763
|
return this.parseNurbsGeometry(I);
|
|
14759
14764
|
}
|
|
14760
14765
|
},
|
|
14761
14766
|
// Parse single node mesh geometry in FBXTree.Objects.Geometry
|
|
14762
|
-
parseMeshGeometry: function(A, I,
|
|
14763
|
-
var x =
|
|
14767
|
+
parseMeshGeometry: function(A, I, C) {
|
|
14768
|
+
var x = C.skeletons, k = [], L = A.parents.map(function(K) {
|
|
14764
14769
|
return n.Objects.Model[K.ID];
|
|
14765
14770
|
});
|
|
14766
14771
|
if (L.length !== 0) {
|
|
@@ -14768,7 +14773,7 @@ var qg = function() {
|
|
|
14768
14773
|
return x[re.ID] !== void 0 && (K = x[re.ID]), K;
|
|
14769
14774
|
}, null);
|
|
14770
14775
|
A.children.forEach(function(K) {
|
|
14771
|
-
|
|
14776
|
+
C.morphTargets[K.ID] !== void 0 && k.push(C.morphTargets[K.ID]);
|
|
14772
14777
|
});
|
|
14773
14778
|
var V = L[0], J = {};
|
|
14774
14779
|
"RotationOrder" in V && (J.eulerOrder = E(V.RotationOrder.value)), "InheritType" in V && (J.inheritType = parseInt(V.InheritType.value)), "GeometricTranslation" in V && (J.translation = V.GeometricTranslation.value), "GeometricRotation" in V && (J.rotation = V.GeometricRotation.value), "GeometricScaling" in V && (J.scale = V.GeometricScaling.value);
|
|
@@ -14777,7 +14782,7 @@ var qg = function() {
|
|
|
14777
14782
|
}
|
|
14778
14783
|
},
|
|
14779
14784
|
// Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
|
|
14780
|
-
genGeometry: function(A, I,
|
|
14785
|
+
genGeometry: function(A, I, C, x) {
|
|
14781
14786
|
var k = new Xo();
|
|
14782
14787
|
A.attrName && (k.name = A.attrName);
|
|
14783
14788
|
var L = this.parseGeoNode(A, I), R = this.genBuffers(L), V = new _s(R.vertex, 3);
|
|
@@ -14798,23 +14803,23 @@ var qg = function() {
|
|
|
14798
14803
|
}
|
|
14799
14804
|
k.groups.length === 0 && k.addGroup(0, R.materialIndex.length, R.materialIndex[0]);
|
|
14800
14805
|
}
|
|
14801
|
-
return this.addMorphTargets(k, A,
|
|
14806
|
+
return this.addMorphTargets(k, A, C, x), k;
|
|
14802
14807
|
},
|
|
14803
14808
|
parseGeoNode: function(A, I) {
|
|
14804
|
-
var
|
|
14805
|
-
if (
|
|
14806
|
-
|
|
14809
|
+
var C = {};
|
|
14810
|
+
if (C.vertexPositions = A.Vertices !== void 0 ? A.Vertices.a : [], C.vertexIndices = A.PolygonVertexIndex !== void 0 ? A.PolygonVertexIndex.a : [], A.LayerElementColor && (C.color = this.parseVertexColors(A.LayerElementColor[0])), A.LayerElementMaterial && (C.material = this.parseMaterialIndices(A.LayerElementMaterial[0])), A.LayerElementNormal && (C.normal = this.parseNormals(A.LayerElementNormal[0])), A.LayerElementUV) {
|
|
14811
|
+
C.uv = [];
|
|
14807
14812
|
for (var x = 0; A.LayerElementUV[x]; )
|
|
14808
|
-
|
|
14813
|
+
C.uv.push(this.parseUVs(A.LayerElementUV[x])), x++;
|
|
14809
14814
|
}
|
|
14810
|
-
return
|
|
14815
|
+
return C.weightTable = {}, I !== null && (C.skeleton = I, I.rawBones.forEach(function(k, L) {
|
|
14811
14816
|
k.indices.forEach(function(R, V) {
|
|
14812
|
-
|
|
14817
|
+
C.weightTable[R] === void 0 && (C.weightTable[R] = []), C.weightTable[R].push({
|
|
14813
14818
|
id: L,
|
|
14814
14819
|
weight: k.weights[V]
|
|
14815
14820
|
});
|
|
14816
14821
|
});
|
|
14817
|
-
})),
|
|
14822
|
+
})), C;
|
|
14818
14823
|
},
|
|
14819
14824
|
genBuffers: function(A) {
|
|
14820
14825
|
var I = {
|
|
@@ -14825,13 +14830,13 @@ var qg = function() {
|
|
|
14825
14830
|
materialIndex: [],
|
|
14826
14831
|
vertexWeights: [],
|
|
14827
14832
|
weightsIndices: []
|
|
14828
|
-
},
|
|
14833
|
+
}, C = 0, x = 0, k = !1, L = [], R = [], V = [], J = [], ee = [], K = [], re = this;
|
|
14829
14834
|
return A.vertexIndices.forEach(function(ne, ae) {
|
|
14830
14835
|
var Se = !1;
|
|
14831
14836
|
ne < 0 && (ne = ne ^ -1, Se = !0);
|
|
14832
14837
|
var Ae = [], Re = [];
|
|
14833
14838
|
if (L.push(ne * 3, ne * 3 + 1, ne * 3 + 2), A.color) {
|
|
14834
|
-
var ie = m(ae,
|
|
14839
|
+
var ie = m(ae, C, ne, A.color);
|
|
14835
14840
|
V.push(ie[0], ie[1], ie[2]);
|
|
14836
14841
|
}
|
|
14837
14842
|
if (A.skeleton) {
|
|
@@ -14857,13 +14862,13 @@ var qg = function() {
|
|
|
14857
14862
|
ee.push(Re[pe]), K.push(Ae[pe]);
|
|
14858
14863
|
}
|
|
14859
14864
|
if (A.normal) {
|
|
14860
|
-
var ie = m(ae,
|
|
14865
|
+
var ie = m(ae, C, ne, A.normal);
|
|
14861
14866
|
R.push(ie[0], ie[1], ie[2]);
|
|
14862
14867
|
}
|
|
14863
14868
|
if (A.material && A.material.mappingType !== "AllSame")
|
|
14864
|
-
var Xe = m(ae,
|
|
14869
|
+
var Xe = m(ae, C, ne, A.material)[0];
|
|
14865
14870
|
A.uv && A.uv.forEach(function(je, De) {
|
|
14866
|
-
var Ue = m(ae,
|
|
14871
|
+
var Ue = m(ae, C, ne, je);
|
|
14867
14872
|
J[De] === void 0 && (J[De] = []), J[De].push(Ue[0]), J[De].push(Ue[1]);
|
|
14868
14873
|
}), x++, Se && (re.genFace(
|
|
14869
14874
|
I,
|
|
@@ -14876,21 +14881,21 @@ var qg = function() {
|
|
|
14876
14881
|
ee,
|
|
14877
14882
|
K,
|
|
14878
14883
|
x
|
|
14879
|
-
),
|
|
14884
|
+
), C++, x = 0, L = [], R = [], V = [], J = [], ee = [], K = []);
|
|
14880
14885
|
}), I;
|
|
14881
14886
|
},
|
|
14882
14887
|
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
|
|
14883
|
-
genFace: function(A, I,
|
|
14888
|
+
genFace: function(A, I, C, x, k, L, R, V, J, ee) {
|
|
14884
14889
|
for (var K = 2; K < ee; K++)
|
|
14885
|
-
A.vertex.push(I.vertexPositions[
|
|
14890
|
+
A.vertex.push(I.vertexPositions[C[0]]), A.vertex.push(I.vertexPositions[C[1]]), A.vertex.push(I.vertexPositions[C[2]]), A.vertex.push(I.vertexPositions[C[(K - 1) * 3]]), A.vertex.push(I.vertexPositions[C[(K - 1) * 3 + 1]]), A.vertex.push(I.vertexPositions[C[(K - 1) * 3 + 2]]), A.vertex.push(I.vertexPositions[C[K * 3]]), A.vertex.push(I.vertexPositions[C[K * 3 + 1]]), A.vertex.push(I.vertexPositions[C[K * 3 + 2]]), I.skeleton && (A.vertexWeights.push(V[0]), A.vertexWeights.push(V[1]), A.vertexWeights.push(V[2]), A.vertexWeights.push(V[3]), A.vertexWeights.push(V[(K - 1) * 4]), A.vertexWeights.push(V[(K - 1) * 4 + 1]), A.vertexWeights.push(V[(K - 1) * 4 + 2]), A.vertexWeights.push(V[(K - 1) * 4 + 3]), A.vertexWeights.push(V[K * 4]), A.vertexWeights.push(V[K * 4 + 1]), A.vertexWeights.push(V[K * 4 + 2]), A.vertexWeights.push(V[K * 4 + 3]), A.weightsIndices.push(J[0]), A.weightsIndices.push(J[1]), A.weightsIndices.push(J[2]), A.weightsIndices.push(J[3]), A.weightsIndices.push(J[(K - 1) * 4]), A.weightsIndices.push(J[(K - 1) * 4 + 1]), A.weightsIndices.push(J[(K - 1) * 4 + 2]), A.weightsIndices.push(J[(K - 1) * 4 + 3]), A.weightsIndices.push(J[K * 4]), A.weightsIndices.push(J[K * 4 + 1]), A.weightsIndices.push(J[K * 4 + 2]), A.weightsIndices.push(J[K * 4 + 3])), I.color && (A.colors.push(L[0]), A.colors.push(L[1]), A.colors.push(L[2]), A.colors.push(L[(K - 1) * 3]), A.colors.push(L[(K - 1) * 3 + 1]), A.colors.push(L[(K - 1) * 3 + 2]), A.colors.push(L[K * 3]), A.colors.push(L[K * 3 + 1]), A.colors.push(L[K * 3 + 2])), I.material && I.material.mappingType !== "AllSame" && (A.materialIndex.push(x), A.materialIndex.push(x), A.materialIndex.push(x)), I.normal && (A.normal.push(k[0]), A.normal.push(k[1]), A.normal.push(k[2]), A.normal.push(k[(K - 1) * 3]), A.normal.push(k[(K - 1) * 3 + 1]), A.normal.push(k[(K - 1) * 3 + 2]), A.normal.push(k[K * 3]), A.normal.push(k[K * 3 + 1]), A.normal.push(k[K * 3 + 2])), I.uv && I.uv.forEach(function(re, ne) {
|
|
14886
14891
|
A.uvs[ne] === void 0 && (A.uvs[ne] = []), A.uvs[ne].push(R[ne][0]), A.uvs[ne].push(R[ne][1]), A.uvs[ne].push(R[ne][(K - 1) * 2]), A.uvs[ne].push(R[ne][(K - 1) * 2 + 1]), A.uvs[ne].push(R[ne][K * 2]), A.uvs[ne].push(R[ne][K * 2 + 1]);
|
|
14887
14892
|
});
|
|
14888
14893
|
},
|
|
14889
|
-
addMorphTargets: function(A, I,
|
|
14890
|
-
if (
|
|
14894
|
+
addMorphTargets: function(A, I, C, x) {
|
|
14895
|
+
if (C.length !== 0) {
|
|
14891
14896
|
A.morphTargetsRelative = !0, A.morphAttributes.position = [];
|
|
14892
14897
|
var k = this;
|
|
14893
|
-
|
|
14898
|
+
C.forEach(function(L) {
|
|
14894
14899
|
L.rawTargets.forEach(function(R) {
|
|
14895
14900
|
var V = n.Objects.Geometry[R.geoID];
|
|
14896
14901
|
V !== void 0 && k.genMorphGeometry(A, I, V, x, R.name);
|
|
@@ -14902,8 +14907,8 @@ var qg = function() {
|
|
|
14902
14907
|
// in FBXTree.Objects.Geometry, however it can only have attributes for position, normal
|
|
14903
14908
|
// and a special attribute Index defining which vertices of the original geometry are affected
|
|
14904
14909
|
// Normal and position attributes only have data for the vertices that are affected by the morph
|
|
14905
|
-
genMorphGeometry: function(A, I,
|
|
14906
|
-
for (var L = I.PolygonVertexIndex !== void 0 ? I.PolygonVertexIndex.a : [], R =
|
|
14910
|
+
genMorphGeometry: function(A, I, C, x, k) {
|
|
14911
|
+
for (var L = I.PolygonVertexIndex !== void 0 ? I.PolygonVertexIndex.a : [], R = C.Vertices !== void 0 ? C.Vertices.a : [], V = C.Indexes !== void 0 ? C.Indexes.a : [], J = A.attributes.position.count * 3, ee = new Float32Array(J), K = 0; K < V.length; K++) {
|
|
14907
14912
|
var re = V[K] * 3;
|
|
14908
14913
|
ee[re] = R[K * 3], ee[re + 1] = R[K * 3 + 1], ee[re + 2] = R[K * 3 + 2];
|
|
14909
14914
|
}
|
|
@@ -14911,51 +14916,51 @@ var qg = function() {
|
|
|
14911
14916
|
vertexIndices: L,
|
|
14912
14917
|
vertexPositions: ee
|
|
14913
14918
|
}, ae = this.genBuffers(ne), Se = new _s(ae.vertex, 3);
|
|
14914
|
-
Se.name = k ||
|
|
14919
|
+
Se.name = k || C.attrName, Se.applyMatrix4(x), A.morphAttributes.position.push(Se);
|
|
14915
14920
|
},
|
|
14916
14921
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
14917
14922
|
parseNormals: function(A) {
|
|
14918
|
-
var I = A.MappingInformationType,
|
|
14919
|
-
return
|
|
14923
|
+
var I = A.MappingInformationType, C = A.ReferenceInformationType, x = A.Normals.a, k = [];
|
|
14924
|
+
return C === "IndexToDirect" && ("NormalIndex" in A ? k = A.NormalIndex.a : "NormalsIndex" in A && (k = A.NormalsIndex.a)), {
|
|
14920
14925
|
dataSize: 3,
|
|
14921
14926
|
buffer: x,
|
|
14922
14927
|
indices: k,
|
|
14923
14928
|
mappingType: I,
|
|
14924
|
-
referenceType:
|
|
14929
|
+
referenceType: C
|
|
14925
14930
|
};
|
|
14926
14931
|
},
|
|
14927
14932
|
// Parse UVs from FBXTree.Objects.Geometry.LayerElementUV if it exists
|
|
14928
14933
|
parseUVs: function(A) {
|
|
14929
|
-
var I = A.MappingInformationType,
|
|
14930
|
-
return
|
|
14934
|
+
var I = A.MappingInformationType, C = A.ReferenceInformationType, x = A.UV.a, k = [];
|
|
14935
|
+
return C === "IndexToDirect" && (k = A.UVIndex.a), {
|
|
14931
14936
|
dataSize: 2,
|
|
14932
14937
|
buffer: x,
|
|
14933
14938
|
indices: k,
|
|
14934
14939
|
mappingType: I,
|
|
14935
|
-
referenceType:
|
|
14940
|
+
referenceType: C
|
|
14936
14941
|
};
|
|
14937
14942
|
},
|
|
14938
14943
|
// Parse Vertex Colors from FBXTree.Objects.Geometry.LayerElementColor if it exists
|
|
14939
14944
|
parseVertexColors: function(A) {
|
|
14940
|
-
var I = A.MappingInformationType,
|
|
14941
|
-
return
|
|
14945
|
+
var I = A.MappingInformationType, C = A.ReferenceInformationType, x = A.Colors.a, k = [];
|
|
14946
|
+
return C === "IndexToDirect" && (k = A.ColorIndex.a), {
|
|
14942
14947
|
dataSize: 4,
|
|
14943
14948
|
buffer: x,
|
|
14944
14949
|
indices: k,
|
|
14945
14950
|
mappingType: I,
|
|
14946
|
-
referenceType:
|
|
14951
|
+
referenceType: C
|
|
14947
14952
|
};
|
|
14948
14953
|
},
|
|
14949
14954
|
// Parse mapping and material data in FBXTree.Objects.Geometry.LayerElementMaterial if it exists
|
|
14950
14955
|
parseMaterialIndices: function(A) {
|
|
14951
|
-
var I = A.MappingInformationType,
|
|
14956
|
+
var I = A.MappingInformationType, C = A.ReferenceInformationType;
|
|
14952
14957
|
if (I === "NoMappingInformation")
|
|
14953
14958
|
return {
|
|
14954
14959
|
dataSize: 1,
|
|
14955
14960
|
buffer: [0],
|
|
14956
14961
|
indices: [0],
|
|
14957
14962
|
mappingType: "AllSame",
|
|
14958
|
-
referenceType:
|
|
14963
|
+
referenceType: C
|
|
14959
14964
|
};
|
|
14960
14965
|
for (var x = A.Materials.a, k = [], L = 0; L < x.length; ++L)
|
|
14961
14966
|
k.push(L);
|
|
@@ -14964,7 +14969,7 @@ var qg = function() {
|
|
|
14964
14969
|
buffer: x,
|
|
14965
14970
|
indices: k,
|
|
14966
14971
|
mappingType: I,
|
|
14967
|
-
referenceType:
|
|
14972
|
+
referenceType: C
|
|
14968
14973
|
};
|
|
14969
14974
|
},
|
|
14970
14975
|
// Generate a NurbGeometry from a node in FBXTree.Objects.Geometry
|
|
@@ -14976,17 +14981,17 @@ var qg = function() {
|
|
|
14976
14981
|
var I = parseInt(A.Order);
|
|
14977
14982
|
if (isNaN(I))
|
|
14978
14983
|
return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", A.Order, A.id), new Xo();
|
|
14979
|
-
for (var
|
|
14984
|
+
for (var C = I - 1, x = A.KnotVector.a, k = [], L = A.Points.a, R = 0, V = L.length; R < V; R += 4)
|
|
14980
14985
|
k.push(new cs().fromArray(L, R));
|
|
14981
14986
|
var J, ee;
|
|
14982
14987
|
if (A.Form === "Closed")
|
|
14983
14988
|
k.push(k[0]);
|
|
14984
14989
|
else if (A.Form === "Periodic") {
|
|
14985
|
-
J =
|
|
14986
|
-
for (var R = 0; R <
|
|
14990
|
+
J = C, ee = x.length - 1 - J;
|
|
14991
|
+
for (var R = 0; R < C; ++R)
|
|
14987
14992
|
k.push(k[R]);
|
|
14988
14993
|
}
|
|
14989
|
-
var K = new bs(
|
|
14994
|
+
var K = new bs(C, x, k, J, ee), re = K.getPoints(k.length * 7), ne = new Float32Array(re.length * 3);
|
|
14990
14995
|
re.forEach(function(Se, Ae) {
|
|
14991
14996
|
Se.toArray(ne, Ae * 3);
|
|
14992
14997
|
});
|
|
@@ -15002,8 +15007,8 @@ var qg = function() {
|
|
|
15002
15007
|
parse: function() {
|
|
15003
15008
|
var A = [], I = this.parseClips();
|
|
15004
15009
|
if (I !== void 0)
|
|
15005
|
-
for (var
|
|
15006
|
-
var x = I[
|
|
15010
|
+
for (var C in I) {
|
|
15011
|
+
var x = I[C], k = this.addClip(x);
|
|
15007
15012
|
A.push(k);
|
|
15008
15013
|
}
|
|
15009
15014
|
return A;
|
|
@@ -15012,8 +15017,8 @@ var qg = function() {
|
|
|
15012
15017
|
if (n.Objects.AnimationCurve !== void 0) {
|
|
15013
15018
|
var A = this.parseAnimationCurveNodes();
|
|
15014
15019
|
this.parseAnimationCurves(A);
|
|
15015
|
-
var I = this.parseAnimationLayers(A),
|
|
15016
|
-
return
|
|
15020
|
+
var I = this.parseAnimationLayers(A), C = this.parseAnimStacks(I);
|
|
15021
|
+
return C;
|
|
15017
15022
|
}
|
|
15018
15023
|
},
|
|
15019
15024
|
// parse nodes in FBXTree.Objects.AnimationCurveNode
|
|
@@ -15021,8 +15026,8 @@ var qg = function() {
|
|
|
15021
15026
|
// and is referenced by an AnimationLayer
|
|
15022
15027
|
parseAnimationCurveNodes: function() {
|
|
15023
15028
|
var A = n.Objects.AnimationCurveNode, I = /* @__PURE__ */ new Map();
|
|
15024
|
-
for (var
|
|
15025
|
-
var x = A[
|
|
15029
|
+
for (var C in A) {
|
|
15030
|
+
var x = A[C];
|
|
15026
15031
|
if (x.attrName.match(/S|R|T|DeformPercent/) !== null) {
|
|
15027
15032
|
var k = {
|
|
15028
15033
|
id: x.id,
|
|
@@ -15039,11 +15044,11 @@ var qg = function() {
|
|
|
15039
15044
|
// axis ( e.g. times and values of x rotation)
|
|
15040
15045
|
parseAnimationCurves: function(A) {
|
|
15041
15046
|
var I = n.Objects.AnimationCurve;
|
|
15042
|
-
for (var
|
|
15047
|
+
for (var C in I) {
|
|
15043
15048
|
var x = {
|
|
15044
|
-
id: I[
|
|
15045
|
-
times: I[
|
|
15046
|
-
values: I[
|
|
15049
|
+
id: I[C].id,
|
|
15050
|
+
times: I[C].KeyTime.a.map(g),
|
|
15051
|
+
values: I[C].KeyValueFloat.a
|
|
15047
15052
|
}, k = t.get(x.id);
|
|
15048
15053
|
if (k !== void 0) {
|
|
15049
15054
|
var L = k.parents[0].ID, R = k.parents[0].relationship;
|
|
@@ -15055,7 +15060,7 @@ var qg = function() {
|
|
|
15055
15060
|
// to various AnimationCurveNodes and is referenced by an AnimationStack node
|
|
15056
15061
|
// note: theoretically a stack can have multiple layers, however in practice there always seems to be one per stack
|
|
15057
15062
|
parseAnimationLayers: function(A) {
|
|
15058
|
-
var I = n.Objects.AnimationLayer,
|
|
15063
|
+
var I = n.Objects.AnimationLayer, C = /* @__PURE__ */ new Map();
|
|
15059
15064
|
for (var x in I) {
|
|
15060
15065
|
var k = [], L = t.get(parseInt(x));
|
|
15061
15066
|
if (L !== void 0) {
|
|
@@ -15100,38 +15105,38 @@ var qg = function() {
|
|
|
15100
15105
|
k[J][ee.attr] = ee;
|
|
15101
15106
|
}
|
|
15102
15107
|
}
|
|
15103
|
-
}),
|
|
15108
|
+
}), C.set(parseInt(x), k);
|
|
15104
15109
|
}
|
|
15105
15110
|
}
|
|
15106
|
-
return
|
|
15111
|
+
return C;
|
|
15107
15112
|
},
|
|
15108
15113
|
// parse nodes in FBXTree.Objects.AnimationStack. These are the top level node in the animation
|
|
15109
15114
|
// hierarchy. Each Stack node will be used to create a AnimationClip
|
|
15110
15115
|
parseAnimStacks: function(A) {
|
|
15111
|
-
var I = n.Objects.AnimationStack,
|
|
15116
|
+
var I = n.Objects.AnimationStack, C = {};
|
|
15112
15117
|
for (var x in I) {
|
|
15113
15118
|
var k = t.get(parseInt(x)).children;
|
|
15114
15119
|
k.length > 1 && console.warn(
|
|
15115
15120
|
"THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers."
|
|
15116
15121
|
);
|
|
15117
15122
|
var L = A.get(k[0].ID);
|
|
15118
|
-
|
|
15123
|
+
C[x] = {
|
|
15119
15124
|
name: I[x].attrName,
|
|
15120
15125
|
layer: L
|
|
15121
15126
|
};
|
|
15122
15127
|
}
|
|
15123
|
-
return
|
|
15128
|
+
return C;
|
|
15124
15129
|
},
|
|
15125
15130
|
addClip: function(A) {
|
|
15126
|
-
var I = [],
|
|
15131
|
+
var I = [], C = this;
|
|
15127
15132
|
return A.layer.forEach(function(x) {
|
|
15128
|
-
I = I.concat(
|
|
15133
|
+
I = I.concat(C.generateTracks(x));
|
|
15129
15134
|
}), new sA(A.name, -1, I);
|
|
15130
15135
|
},
|
|
15131
15136
|
generateTracks: function(A) {
|
|
15132
|
-
var I = [],
|
|
15133
|
-
if (A.transform && A.transform.decompose(
|
|
15134
|
-
var L = this.generateVectorTrack(A.modelName, A.T.curves,
|
|
15137
|
+
var I = [], C = new ue(), x = new Ys(), k = new ue();
|
|
15138
|
+
if (A.transform && A.transform.decompose(C, x, k), C = C.toArray(), x = new as().setFromQuaternion(x, A.eulerOrder).toArray(), k = k.toArray(), A.T !== void 0 && Object.keys(A.T.curves).length > 0) {
|
|
15139
|
+
var L = this.generateVectorTrack(A.modelName, A.T.curves, C, "position");
|
|
15135
15140
|
L !== void 0 && I.push(L);
|
|
15136
15141
|
}
|
|
15137
15142
|
if (A.R !== void 0 && Object.keys(A.R.curves).length > 0) {
|
|
@@ -15155,36 +15160,36 @@ var qg = function() {
|
|
|
15155
15160
|
}
|
|
15156
15161
|
return I;
|
|
15157
15162
|
},
|
|
15158
|
-
generateVectorTrack: function(A, I,
|
|
15159
|
-
var k = this.getTimesForAllAxes(I), L = this.getKeyframeTrackValues(k, I,
|
|
15163
|
+
generateVectorTrack: function(A, I, C, x) {
|
|
15164
|
+
var k = this.getTimesForAllAxes(I), L = this.getKeyframeTrackValues(k, I, C);
|
|
15160
15165
|
return new rA(A + "." + x, k, L);
|
|
15161
15166
|
},
|
|
15162
|
-
generateRotationTrack: function(A, I,
|
|
15167
|
+
generateRotationTrack: function(A, I, C, x, k, L) {
|
|
15163
15168
|
I.x !== void 0 && (this.interpolateRotations(I.x), I.x.values = I.x.values.map(Hi.degToRad)), I.y !== void 0 && (this.interpolateRotations(I.y), I.y.values = I.y.values.map(Hi.degToRad)), I.z !== void 0 && (this.interpolateRotations(I.z), I.z.values = I.z.values.map(Hi.degToRad));
|
|
15164
|
-
var R = this.getTimesForAllAxes(I), V = this.getKeyframeTrackValues(R, I,
|
|
15169
|
+
var R = this.getTimesForAllAxes(I), V = this.getKeyframeTrackValues(R, I, C);
|
|
15165
15170
|
x !== void 0 && (x = x.map(Hi.degToRad), x.push(L), x = new as().fromArray(x), x = new Ys().setFromEuler(x)), k !== void 0 && (k = k.map(Hi.degToRad), k.push(L), k = new as().fromArray(k), k = new Ys().setFromEuler(k).inverse());
|
|
15166
15171
|
for (var J = new Ys(), ee = new as(), K = [], re = 0; re < V.length; re += 3)
|
|
15167
15172
|
ee.set(V[re], V[re + 1], V[re + 2], L), J.setFromEuler(ee), x !== void 0 && J.premultiply(x), k !== void 0 && J.multiply(k), J.toArray(K, re / 3 * 4);
|
|
15168
15173
|
return new oA(A + ".quaternion", R, K);
|
|
15169
15174
|
},
|
|
15170
15175
|
generateMorphTrack: function(A) {
|
|
15171
|
-
var I = A.DeformPercent.curves.morph,
|
|
15176
|
+
var I = A.DeformPercent.curves.morph, C = I.values.map(function(k) {
|
|
15172
15177
|
return k / 100;
|
|
15173
15178
|
}), x = e.getObjectByName(A.modelName).morphTargetDictionary[A.morphName];
|
|
15174
|
-
return new aA(A.modelName + ".morphTargetInfluences[" + x + "]", I.times,
|
|
15179
|
+
return new aA(A.modelName + ".morphTargetInfluences[" + x + "]", I.times, C);
|
|
15175
15180
|
},
|
|
15176
15181
|
// For all animated objects, times are defined separately for each axis
|
|
15177
15182
|
// Here we'll combine the times into one sorted array without duplicates
|
|
15178
15183
|
getTimesForAllAxes: function(A) {
|
|
15179
15184
|
var I = [];
|
|
15180
|
-
return A.x !== void 0 && (I = I.concat(A.x.times)), A.y !== void 0 && (I = I.concat(A.y.times)), A.z !== void 0 && (I = I.concat(A.z.times)), I = I.sort(function(
|
|
15181
|
-
return
|
|
15182
|
-
}).filter(function(
|
|
15183
|
-
return k.indexOf(
|
|
15185
|
+
return A.x !== void 0 && (I = I.concat(A.x.times)), A.y !== void 0 && (I = I.concat(A.y.times)), A.z !== void 0 && (I = I.concat(A.z.times)), I = I.sort(function(C, x) {
|
|
15186
|
+
return C - x;
|
|
15187
|
+
}).filter(function(C, x, k) {
|
|
15188
|
+
return k.indexOf(C) == x;
|
|
15184
15189
|
}), I;
|
|
15185
15190
|
},
|
|
15186
|
-
getKeyframeTrackValues: function(A, I,
|
|
15187
|
-
var x =
|
|
15191
|
+
getKeyframeTrackValues: function(A, I, C) {
|
|
15192
|
+
var x = C, k = [], L = -1, R = -1, V = -1;
|
|
15188
15193
|
return A.forEach(function(J) {
|
|
15189
15194
|
if (I.x && (L = I.x.times.indexOf(J)), I.y && (R = I.y.times.indexOf(J)), I.z && (V = I.z.times.indexOf(J)), L !== -1) {
|
|
15190
15195
|
var ee = I.x.values[L];
|
|
@@ -15208,9 +15213,9 @@ var qg = function() {
|
|
|
15208
15213
|
// PI, so we'll interpolate large rotations
|
|
15209
15214
|
interpolateRotations: function(A) {
|
|
15210
15215
|
for (var I = 1; I < A.values.length; I++) {
|
|
15211
|
-
var
|
|
15216
|
+
var C = A.values[I - 1], x = A.values[I] - C, k = Math.abs(x);
|
|
15212
15217
|
if (k >= 180) {
|
|
15213
|
-
for (var L = k / 180, R = x / L, V =
|
|
15218
|
+
for (var L = k / 180, R = x / L, V = C + R, J = A.times[I - 1], ee = A.times[I] - J, K = ee / L, re = J + K, ne = [], ae = []; re < A.times[I]; )
|
|
15214
15219
|
ne.push(re), re += K, ae.push(V), V += R;
|
|
15215
15220
|
A.times = Z(A.times, I, ne), A.values = Z(A.values, I, ae);
|
|
15216
15221
|
}
|
|
@@ -15241,30 +15246,30 @@ var qg = function() {
|
|
|
15241
15246
|
},
|
|
15242
15247
|
parse: function(A) {
|
|
15243
15248
|
this.currentIndent = 0, this.allNodes = new h(), this.nodeStack = [], this.currentProp = [], this.currentPropName = "";
|
|
15244
|
-
var I = this,
|
|
15245
|
-
return
|
|
15249
|
+
var I = this, C = A.split(/[\r\n]+/);
|
|
15250
|
+
return C.forEach(function(x, k) {
|
|
15246
15251
|
var L = x.match(/^[\s\t]*;/), R = x.match(/^[\s\t]*$/);
|
|
15247
15252
|
if (!(L || R)) {
|
|
15248
15253
|
var V = x.match("^\\t{" + I.currentIndent + "}(\\w+):(.*){", ""), J = x.match("^\\t{" + I.currentIndent + "}(\\w+):[\\s\\t\\r\\n](.*)"), ee = x.match("^\\t{" + (I.currentIndent - 1) + "}}");
|
|
15249
|
-
V ? I.parseNodeBegin(x, V) : J ? I.parseNodeProperty(x, J,
|
|
15254
|
+
V ? I.parseNodeBegin(x, V) : J ? I.parseNodeProperty(x, J, C[++k]) : ee ? I.popStack() : x.match(/^[^\s\t}]/) && I.parseNodePropertyContinued(x);
|
|
15250
15255
|
}
|
|
15251
15256
|
}), this.allNodes;
|
|
15252
15257
|
},
|
|
15253
15258
|
parseNodeBegin: function(A, I) {
|
|
15254
|
-
var
|
|
15259
|
+
var C = I[1].trim().replace(/^"/, "").replace(/"$/, ""), x = I[2].split(",").map(function(V) {
|
|
15255
15260
|
return V.trim().replace(/^"/, "").replace(/"$/, "");
|
|
15256
|
-
}), k = { name:
|
|
15257
|
-
this.currentIndent === 0 ? this.allNodes.add(
|
|
15261
|
+
}), k = { name: C }, L = this.parseNodeAttr(x), R = this.getCurrentNode();
|
|
15262
|
+
this.currentIndent === 0 ? this.allNodes.add(C, k) : C in R ? (C === "PoseNode" ? R.PoseNode.push(k) : R[C].id !== void 0 && (R[C] = {}, R[C][R[C].id] = R[C]), L.id !== "" && (R[C][L.id] = k)) : typeof L.id == "number" ? (R[C] = {}, R[C][L.id] = k) : C !== "Properties70" && (C === "PoseNode" ? R[C] = [k] : R[C] = k), typeof L.id == "number" && (k.id = L.id), L.name !== "" && (k.attrName = L.name), L.type !== "" && (k.attrType = L.type), this.pushStack(k);
|
|
15258
15263
|
},
|
|
15259
15264
|
parseNodeAttr: function(A) {
|
|
15260
15265
|
var I = A[0];
|
|
15261
15266
|
A[0] !== "" && (I = parseInt(A[0]), isNaN(I) && (I = A[0]));
|
|
15262
|
-
var
|
|
15263
|
-
return A.length > 1 && (
|
|
15267
|
+
var C = "", x = "";
|
|
15268
|
+
return A.length > 1 && (C = A[1].replace(/^(\w+)::/, ""), x = A[2]), { id: I, name: C, type: x };
|
|
15264
15269
|
},
|
|
15265
|
-
parseNodeProperty: function(A, I,
|
|
15270
|
+
parseNodeProperty: function(A, I, C) {
|
|
15266
15271
|
var x = I[1].replace(/^"/, "").replace(/"$/, "").trim(), k = I[2].replace(/^"/, "").replace(/"$/, "").trim();
|
|
15267
|
-
x === "Content" && k === "," && (k =
|
|
15272
|
+
x === "Content" && k === "," && (k = C.replace(/"/g, "").replace(/,$/, "").trim());
|
|
15268
15273
|
var L = this.getCurrentNode(), R = L.name;
|
|
15269
15274
|
if (R === "Properties70") {
|
|
15270
15275
|
this.parseNodeSpecialProperty(A, x, k);
|
|
@@ -15283,8 +15288,8 @@ var qg = function() {
|
|
|
15283
15288
|
I.a += A, A.slice(-1) !== "," && (I.a = T(I.a));
|
|
15284
15289
|
},
|
|
15285
15290
|
// parse "Property70"
|
|
15286
|
-
parseNodeSpecialProperty: function(A, I,
|
|
15287
|
-
var x =
|
|
15291
|
+
parseNodeSpecialProperty: function(A, I, C) {
|
|
15292
|
+
var x = C.split('",').map(function(ee) {
|
|
15288
15293
|
return ee.trim().replace(/^\"/, "").replace(/\s/, "_");
|
|
15289
15294
|
}), k = x[0], L = x[1], R = x[2], V = x[3], J = x[4];
|
|
15290
15295
|
switch (L) {
|
|
@@ -15321,10 +15326,10 @@ var qg = function() {
|
|
|
15321
15326
|
parse: function(A) {
|
|
15322
15327
|
var I = new c(A);
|
|
15323
15328
|
I.skip(23);
|
|
15324
|
-
var
|
|
15325
|
-
console.info("THREE.FBXLoader: FBX binary version: " +
|
|
15329
|
+
var C = I.getUint32();
|
|
15330
|
+
console.info("THREE.FBXLoader: FBX binary version: " + C);
|
|
15326
15331
|
for (var x = new h(); !this.endOfContent(I); ) {
|
|
15327
|
-
var k = this.parseNode(I,
|
|
15332
|
+
var k = this.parseNode(I, C);
|
|
15328
15333
|
k !== null && x.add(k.name, k);
|
|
15329
15334
|
}
|
|
15330
15335
|
return x;
|
|
@@ -15335,7 +15340,7 @@ var qg = function() {
|
|
|
15335
15340
|
},
|
|
15336
15341
|
// recursively parse nodes until the end of the file is reached
|
|
15337
15342
|
parseNode: function(A, I) {
|
|
15338
|
-
var
|
|
15343
|
+
var C = {}, x = I >= 7500 ? A.getUint64() : A.getUint32(), k = I >= 7500 ? A.getUint64() : A.getUint32();
|
|
15339
15344
|
I >= 7500 ? A.getUint64() : A.getUint32();
|
|
15340
15345
|
var L = A.getUint8(), R = A.getString(L);
|
|
15341
15346
|
if (x === 0)
|
|
@@ -15343,36 +15348,36 @@ var qg = function() {
|
|
|
15343
15348
|
for (var V = [], J = 0; J < k; J++)
|
|
15344
15349
|
V.push(this.parseProperty(A));
|
|
15345
15350
|
var ee = V.length > 0 ? V[0] : "", K = V.length > 1 ? V[1] : "", re = V.length > 2 ? V[2] : "";
|
|
15346
|
-
for (
|
|
15351
|
+
for (C.singleProperty = k === 1 && A.getOffset() === x; x > A.getOffset(); ) {
|
|
15347
15352
|
var ne = this.parseNode(A, I);
|
|
15348
|
-
ne !== null && this.parseSubNode(R,
|
|
15353
|
+
ne !== null && this.parseSubNode(R, C, ne);
|
|
15349
15354
|
}
|
|
15350
|
-
return
|
|
15355
|
+
return C.propertyList = V, typeof ee == "number" && (C.id = ee), K !== "" && (C.attrName = K), re !== "" && (C.attrType = re), R !== "" && (C.name = R), C;
|
|
15351
15356
|
},
|
|
15352
|
-
parseSubNode: function(A, I,
|
|
15353
|
-
if (
|
|
15354
|
-
var x =
|
|
15355
|
-
Array.isArray(x) ? (I[
|
|
15356
|
-
} else if (A === "Connections" &&
|
|
15357
|
+
parseSubNode: function(A, I, C) {
|
|
15358
|
+
if (C.singleProperty === !0) {
|
|
15359
|
+
var x = C.propertyList[0];
|
|
15360
|
+
Array.isArray(x) ? (I[C.name] = C, C.a = x) : I[C.name] = x;
|
|
15361
|
+
} else if (A === "Connections" && C.name === "C") {
|
|
15357
15362
|
var k = [];
|
|
15358
|
-
|
|
15363
|
+
C.propertyList.forEach(function(re, ne) {
|
|
15359
15364
|
ne !== 0 && k.push(re);
|
|
15360
15365
|
}), I.connections === void 0 && (I.connections = []), I.connections.push(k);
|
|
15361
|
-
} else if (
|
|
15362
|
-
var L = Object.keys(
|
|
15366
|
+
} else if (C.name === "Properties70") {
|
|
15367
|
+
var L = Object.keys(C);
|
|
15363
15368
|
L.forEach(function(re) {
|
|
15364
|
-
I[re] =
|
|
15369
|
+
I[re] = C[re];
|
|
15365
15370
|
});
|
|
15366
|
-
} else if (A === "Properties70" &&
|
|
15367
|
-
var R =
|
|
15368
|
-
R.indexOf("Lcl ") === 0 && (R = R.replace("Lcl ", "Lcl_")), V.indexOf("Lcl ") === 0 && (V = V.replace("Lcl ", "Lcl_")), V === "Color" || V === "ColorRGB" || V === "Vector" || V === "Vector3D" || V.indexOf("Lcl_") === 0 ? K = [
|
|
15371
|
+
} else if (A === "Properties70" && C.name === "P") {
|
|
15372
|
+
var R = C.propertyList[0], V = C.propertyList[1], J = C.propertyList[2], ee = C.propertyList[3], K;
|
|
15373
|
+
R.indexOf("Lcl ") === 0 && (R = R.replace("Lcl ", "Lcl_")), V.indexOf("Lcl ") === 0 && (V = V.replace("Lcl ", "Lcl_")), V === "Color" || V === "ColorRGB" || V === "Vector" || V === "Vector3D" || V.indexOf("Lcl_") === 0 ? K = [C.propertyList[4], C.propertyList[5], C.propertyList[6]] : K = C.propertyList[4], I[R] = {
|
|
15369
15374
|
type: V,
|
|
15370
15375
|
type2: J,
|
|
15371
15376
|
flag: ee,
|
|
15372
15377
|
value: K
|
|
15373
15378
|
};
|
|
15374
15379
|
} else
|
|
15375
|
-
I[
|
|
15380
|
+
I[C.name] === void 0 ? typeof C.id == "number" ? (I[C.name] = {}, I[C.name][C.id] = C) : I[C.name] = C : C.name === "PoseNode" ? (Array.isArray(I[C.name]) || (I[C.name] = [I[C.name]]), I[C.name].push(C)) : I[C.name][C.id] === void 0 && (I[C.name][C.id] = C);
|
|
15376
15381
|
},
|
|
15377
15382
|
parseProperty: function(A) {
|
|
15378
15383
|
var I = A.getString(1);
|
|
@@ -15388,11 +15393,11 @@ var qg = function() {
|
|
|
15388
15393
|
case "L":
|
|
15389
15394
|
return A.getInt64();
|
|
15390
15395
|
case "R":
|
|
15391
|
-
var
|
|
15392
|
-
return A.getArrayBuffer(
|
|
15396
|
+
var C = A.getUint32();
|
|
15397
|
+
return A.getArrayBuffer(C);
|
|
15393
15398
|
case "S":
|
|
15394
|
-
var
|
|
15395
|
-
return A.getString(
|
|
15399
|
+
var C = A.getUint32();
|
|
15400
|
+
return A.getString(C);
|
|
15396
15401
|
case "Y":
|
|
15397
15402
|
return A.getInt16();
|
|
15398
15403
|
case "b":
|
|
@@ -15459,7 +15464,7 @@ var qg = function() {
|
|
|
15459
15464
|
return (this.getUint8() & 1) === 1;
|
|
15460
15465
|
},
|
|
15461
15466
|
getBooleanArray: function(A) {
|
|
15462
|
-
for (var I = [],
|
|
15467
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15463
15468
|
I.push(this.getBoolean());
|
|
15464
15469
|
return I;
|
|
15465
15470
|
},
|
|
@@ -15476,7 +15481,7 @@ var qg = function() {
|
|
|
15476
15481
|
return this.offset += 4, A;
|
|
15477
15482
|
},
|
|
15478
15483
|
getInt32Array: function(A) {
|
|
15479
|
-
for (var I = [],
|
|
15484
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15480
15485
|
I.push(this.getInt32());
|
|
15481
15486
|
return I;
|
|
15482
15487
|
},
|
|
@@ -15494,7 +15499,7 @@ var qg = function() {
|
|
|
15494
15499
|
return this.littleEndian ? (A = this.getUint32(), I = this.getUint32()) : (I = this.getUint32(), A = this.getUint32()), I & 2147483648 ? (I = ~I & 4294967295, A = ~A & 4294967295, A === 4294967295 && (I = I + 1 & 4294967295), A = A + 1 & 4294967295, -(I * 4294967296 + A)) : I * 4294967296 + A;
|
|
15495
15500
|
},
|
|
15496
15501
|
getInt64Array: function(A) {
|
|
15497
|
-
for (var I = [],
|
|
15502
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15498
15503
|
I.push(this.getInt64());
|
|
15499
15504
|
return I;
|
|
15500
15505
|
},
|
|
@@ -15508,7 +15513,7 @@ var qg = function() {
|
|
|
15508
15513
|
return this.offset += 4, A;
|
|
15509
15514
|
},
|
|
15510
15515
|
getFloat32Array: function(A) {
|
|
15511
|
-
for (var I = [],
|
|
15516
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15512
15517
|
I.push(this.getFloat32());
|
|
15513
15518
|
return I;
|
|
15514
15519
|
},
|
|
@@ -15517,7 +15522,7 @@ var qg = function() {
|
|
|
15517
15522
|
return this.offset += 8, A;
|
|
15518
15523
|
},
|
|
15519
15524
|
getFloat64Array: function(A) {
|
|
15520
|
-
for (var I = [],
|
|
15525
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15521
15526
|
I.push(this.getFloat64());
|
|
15522
15527
|
return I;
|
|
15523
15528
|
},
|
|
@@ -15526,8 +15531,8 @@ var qg = function() {
|
|
|
15526
15531
|
return this.offset += A, I;
|
|
15527
15532
|
},
|
|
15528
15533
|
getString: function(A) {
|
|
15529
|
-
for (var I = [],
|
|
15530
|
-
I[
|
|
15534
|
+
for (var I = [], C = 0; C < A; C++)
|
|
15535
|
+
I[C] = this.getUint8();
|
|
15531
15536
|
var x = I.indexOf(0);
|
|
15532
15537
|
return x >= 0 && (I = I.slice(0, x)), Pl.decodeText(new Uint8Array(I));
|
|
15533
15538
|
}
|
|
@@ -15545,10 +15550,10 @@ var qg = function() {
|
|
|
15545
15550
|
return A.byteLength >= I.length && I === S(A, 0, I.length);
|
|
15546
15551
|
}
|
|
15547
15552
|
function f(A) {
|
|
15548
|
-
var I = ["K", "a", "y", "d", "a", "r", "a", "\\", "F", "B", "X", "\\", "B", "i", "n", "a", "r", "y", "\\", "\\"],
|
|
15553
|
+
var I = ["K", "a", "y", "d", "a", "r", "a", "\\", "F", "B", "X", "\\", "B", "i", "n", "a", "r", "y", "\\", "\\"], C = 0;
|
|
15549
15554
|
function x(R) {
|
|
15550
15555
|
var V = A[R - 1];
|
|
15551
|
-
return A = A.slice(
|
|
15556
|
+
return A = A.slice(C + R), C++, V;
|
|
15552
15557
|
}
|
|
15553
15558
|
for (var k = 0; k < I.length; ++k) {
|
|
15554
15559
|
var L = x(1);
|
|
@@ -15558,9 +15563,9 @@ var qg = function() {
|
|
|
15558
15563
|
return !0;
|
|
15559
15564
|
}
|
|
15560
15565
|
function p(A) {
|
|
15561
|
-
var I = /FBXVersion: (\d+)/,
|
|
15562
|
-
if (
|
|
15563
|
-
var x = parseInt(
|
|
15566
|
+
var I = /FBXVersion: (\d+)/, C = A.match(I);
|
|
15567
|
+
if (C) {
|
|
15568
|
+
var x = parseInt(C[1]);
|
|
15564
15569
|
return x;
|
|
15565
15570
|
}
|
|
15566
15571
|
throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.");
|
|
@@ -15569,7 +15574,7 @@ var qg = function() {
|
|
|
15569
15574
|
return A / 46186158e3;
|
|
15570
15575
|
}
|
|
15571
15576
|
var v = [];
|
|
15572
|
-
function m(A, I,
|
|
15577
|
+
function m(A, I, C, x) {
|
|
15573
15578
|
var k;
|
|
15574
15579
|
switch (x.mappingType) {
|
|
15575
15580
|
case "ByPolygonVertex":
|
|
@@ -15579,7 +15584,7 @@ var qg = function() {
|
|
|
15579
15584
|
k = I;
|
|
15580
15585
|
break;
|
|
15581
15586
|
case "ByVertice":
|
|
15582
|
-
k =
|
|
15587
|
+
k = C;
|
|
15583
15588
|
break;
|
|
15584
15589
|
case "AllSame":
|
|
15585
15590
|
k = x.indices[0];
|
|
@@ -15591,12 +15596,12 @@ var qg = function() {
|
|
|
15591
15596
|
var L = k * x.dataSize, R = L + x.dataSize;
|
|
15592
15597
|
return H(v, x.buffer, L, R);
|
|
15593
15598
|
}
|
|
15594
|
-
var b = new as(),
|
|
15599
|
+
var b = new as(), w = new ue();
|
|
15595
15600
|
function M(A) {
|
|
15596
|
-
var I = new tt(),
|
|
15597
|
-
if (A.translation && I.setPosition(
|
|
15601
|
+
var I = new tt(), C = new tt(), x = new tt(), k = new tt(), L = new tt(), R = new tt(), V = new tt(), J = new tt(), ee = new tt(), K = new tt(), re = new tt(), ne = A.inheritType ? A.inheritType : 0;
|
|
15602
|
+
if (A.translation && I.setPosition(w.fromArray(A.translation)), A.preRotation) {
|
|
15598
15603
|
var ae = A.preRotation.map(Hi.degToRad);
|
|
15599
|
-
ae.push(A.eulerOrder),
|
|
15604
|
+
ae.push(A.eulerOrder), C.makeRotationFromEuler(b.fromArray(ae));
|
|
15600
15605
|
}
|
|
15601
15606
|
if (A.rotation) {
|
|
15602
15607
|
var ae = A.rotation.map(Hi.degToRad);
|
|
@@ -15606,8 +15611,8 @@ var qg = function() {
|
|
|
15606
15611
|
var ae = A.postRotation.map(Hi.degToRad);
|
|
15607
15612
|
ae.push(A.eulerOrder), k.makeRotationFromEuler(b.fromArray(ae));
|
|
15608
15613
|
}
|
|
15609
|
-
A.scale && L.scale(
|
|
15610
|
-
var Se =
|
|
15614
|
+
A.scale && L.scale(w.fromArray(A.scale)), A.scalingOffset && V.setPosition(w.fromArray(A.scalingOffset)), A.scalingPivot && R.setPosition(w.fromArray(A.scalingPivot)), A.rotationOffset && J.setPosition(w.fromArray(A.rotationOffset)), A.rotationPivot && ee.setPosition(w.fromArray(A.rotationPivot)), A.parentMatrixWorld && (K = A.parentMatrixWorld);
|
|
15615
|
+
var Se = C.multiply(x).multiply(k), Ae = new tt();
|
|
15611
15616
|
K.extractRotation(Ae);
|
|
15612
15617
|
var Re = new tt();
|
|
15613
15618
|
Re.copyPosition(K);
|
|
@@ -15623,7 +15628,7 @@ var qg = function() {
|
|
|
15623
15628
|
we.copy(Ae).multiply(Se).multiply(pe).multiply(L);
|
|
15624
15629
|
}
|
|
15625
15630
|
var Xe = new tt().getInverse(ee), je = new tt().getInverse(R), De = new tt();
|
|
15626
|
-
De.copy(I).multiply(J).multiply(ee).multiply(
|
|
15631
|
+
De.copy(I).multiply(J).multiply(ee).multiply(C).multiply(x).multiply(k).multiply(Xe).multiply(V).multiply(R).multiply(L).multiply(je);
|
|
15627
15632
|
var Ue = new tt().copyPosition(De), de = new tt().copy(K).multiply(Ue);
|
|
15628
15633
|
return re.copyPosition(de), De = new tt().multiply(re).multiply(we), De;
|
|
15629
15634
|
}
|
|
@@ -15647,25 +15652,25 @@ var qg = function() {
|
|
|
15647
15652
|
return A === 6 ? (console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."), I[0]) : I[A];
|
|
15648
15653
|
}
|
|
15649
15654
|
function T(A) {
|
|
15650
|
-
var I = A.split(",").map(function(
|
|
15651
|
-
return parseFloat(
|
|
15655
|
+
var I = A.split(",").map(function(C) {
|
|
15656
|
+
return parseFloat(C);
|
|
15652
15657
|
});
|
|
15653
15658
|
return I;
|
|
15654
15659
|
}
|
|
15655
|
-
function S(A, I,
|
|
15656
|
-
return I === void 0 && (I = 0),
|
|
15660
|
+
function S(A, I, C) {
|
|
15661
|
+
return I === void 0 && (I = 0), C === void 0 && (C = A.byteLength), Pl.decodeText(new Uint8Array(A, I, C));
|
|
15657
15662
|
}
|
|
15658
15663
|
function _(A, I) {
|
|
15659
|
-
for (var
|
|
15660
|
-
A[x] = I[
|
|
15664
|
+
for (var C = 0, x = A.length, k = I.length; C < k; C++, x++)
|
|
15665
|
+
A[x] = I[C];
|
|
15661
15666
|
}
|
|
15662
|
-
function H(A, I,
|
|
15663
|
-
for (var k =
|
|
15667
|
+
function H(A, I, C, x) {
|
|
15668
|
+
for (var k = C, L = 0; k < x; k++, L++)
|
|
15664
15669
|
A[L] = I[k];
|
|
15665
15670
|
return A;
|
|
15666
15671
|
}
|
|
15667
|
-
function Z(A, I,
|
|
15668
|
-
return A.slice(0, I).concat(
|
|
15672
|
+
function Z(A, I, C) {
|
|
15673
|
+
return A.slice(0, I).concat(C).concat(A.slice(I));
|
|
15669
15674
|
}
|
|
15670
15675
|
return i;
|
|
15671
15676
|
}();
|
|
@@ -15696,8 +15701,8 @@ const W5 = (n, t) => {
|
|
|
15696
15701
|
const b = 0.6;
|
|
15697
15702
|
if (m >= Math.PI / 4)
|
|
15698
15703
|
return s.yBase - (b + 1.6);
|
|
15699
|
-
const
|
|
15700
|
-
return s.yBase - (b *
|
|
15704
|
+
const w = m * (4 / Math.PI);
|
|
15705
|
+
return s.yBase - (b * w + 1.6);
|
|
15701
15706
|
}, f = () => {
|
|
15702
15707
|
if (!s.object)
|
|
15703
15708
|
return;
|
|
@@ -15710,7 +15715,7 @@ const W5 = (n, t) => {
|
|
|
15710
15715
|
const m = s.object;
|
|
15711
15716
|
if (!m)
|
|
15712
15717
|
return;
|
|
15713
|
-
const b = n.model.bounding,
|
|
15718
|
+
const b = n.model.bounding, w = b.max.x - b.min.x, M = b.max.z - b.min.z, E = Math.max(w, M), {
|
|
15714
15719
|
max: { x: T, z: S },
|
|
15715
15720
|
min: { x: _, y: H, z: Z }
|
|
15716
15721
|
} = b;
|
|
@@ -15727,12 +15732,12 @@ function jC(n, t) {
|
|
|
15727
15732
|
}
|
|
15728
15733
|
const RC = ({ x: n, y: t, z: e }) => new ue(n, t, e), Q5 = (n, t) => {
|
|
15729
15734
|
var v, m, b;
|
|
15730
|
-
const e = {}, i = (v = t.animationEnabled) != null ? v : !0, s = (m = t.position) != null ? m : void 0, r = (b = t.rad) != null ? b : void 0, o = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (
|
|
15731
|
-
var A, I,
|
|
15732
|
-
const M = (A =
|
|
15735
|
+
const e = {}, i = (v = t.animationEnabled) != null ? v : !0, s = (m = t.position) != null ? m : void 0, r = (b = t.rad) != null ? b : void 0, o = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => $(void 0, null, function* () {
|
|
15736
|
+
var A, I, C, x, k, L, R, V;
|
|
15737
|
+
const M = (A = w == null ? void 0 : w.position) != null ? A : s;
|
|
15733
15738
|
if (!M)
|
|
15734
15739
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
15735
|
-
const E = RC(M), T = (I =
|
|
15740
|
+
const E = RC(M), T = (I = w == null ? void 0 : w.rad) != null ? I : r, S = (C = w == null ? void 0 : w.fbx_url) != null ? C : o;
|
|
15736
15741
|
if (e.rad = T, T === void 0)
|
|
15737
15742
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${T}`));
|
|
15738
15743
|
const _ = yield new qg().loadAsync(S);
|
|
@@ -15747,17 +15752,17 @@ const RC = ({ x: n, y: t, z: e }) => new ue(n, t, e), Q5 = (n, t) => {
|
|
|
15747
15752
|
return;
|
|
15748
15753
|
if (!e.object)
|
|
15749
15754
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
15750
|
-
const
|
|
15755
|
+
const w = 1, M = new cA(e.object);
|
|
15751
15756
|
a.push(M);
|
|
15752
15757
|
const E = M.clipAction(e.object.animations[0]);
|
|
15753
|
-
E.timeScale =
|
|
15758
|
+
E.timeScale = w;
|
|
15754
15759
|
let T;
|
|
15755
15760
|
const S = () => {
|
|
15756
15761
|
let A = 0, I = 0;
|
|
15757
|
-
const
|
|
15762
|
+
const C = 1e3 / 30, x = (k) => {
|
|
15758
15763
|
A = requestAnimationFrame(x);
|
|
15759
15764
|
const L = k - I;
|
|
15760
|
-
L <
|
|
15765
|
+
L < C || (I = k, a.forEach((R) => R.update(L / 1e3)), n.needsRender = !0);
|
|
15761
15766
|
};
|
|
15762
15767
|
return A = requestAnimationFrame(x), () => {
|
|
15763
15768
|
cancelAnimationFrame(A);
|
|
@@ -15770,15 +15775,15 @@ const RC = ({ x: n, y: t, z: e }) => new ue(n, t, e), Q5 = (n, t) => {
|
|
|
15770
15775
|
E.stop(), T == null || T(), T = void 0;
|
|
15771
15776
|
} };
|
|
15772
15777
|
e.animation = Z;
|
|
15773
|
-
}, h = (
|
|
15778
|
+
}, h = (w) => {
|
|
15774
15779
|
var E;
|
|
15775
15780
|
if (!e.object)
|
|
15776
15781
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
15777
|
-
((E =
|
|
15782
|
+
((E = w == null ? void 0 : w.animationEnable) != null ? E : i) && (e.animation || c(), e.animation.play()), n.scene.add(e.object), n.needsRender = !0;
|
|
15778
15783
|
}, u = () => {
|
|
15779
15784
|
e.object && (e.animation && e.animation.stop(), n.scene.remove(e.object), n.needsRender = !0);
|
|
15780
|
-
}, f = (
|
|
15781
|
-
return { load: l, enable: (
|
|
15785
|
+
}, f = (w) => w === "Floorplan" ? h() : u();
|
|
15786
|
+
return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, f(n.currentMode), n.on("modeChange", f), h(w)), !0), disable: () => (e.enabled && (e.enabled = !1, u(), n.off("modeChange", f)), !0) };
|
|
15782
15787
|
}, BC = Ui;
|
|
15783
15788
|
function VC(n, t, e, i = BC.Linear.None) {
|
|
15784
15789
|
const s = new Xa(n).to(t, e).easing(i);
|
|
@@ -15864,9 +15869,9 @@ const Pc = (n, t, e) => {
|
|
|
15864
15869
|
p(!0);
|
|
15865
15870
|
}, m = () => {
|
|
15866
15871
|
p(!1);
|
|
15867
|
-
}, b = r.rotateSpeed ? Math.ceil(Math.abs(f.longitude - u.longitude) / r.rotateSpeed * 1e3) : o,
|
|
15868
|
-
r.rotation === ln.Loop &&
|
|
15869
|
-
|
|
15872
|
+
}, b = r.rotateSpeed ? Math.ceil(Math.abs(f.longitude - u.longitude) / r.rotateSpeed * 1e3) : o, w = _C(b, Ui.Linear.None).onUpdate(g).onComplete(v).onDestroy(m);
|
|
15873
|
+
r.rotation === ln.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (M = !0) => {
|
|
15874
|
+
w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), p(M);
|
|
15870
15875
|
}, t.timeoutId = setTimeout(() => {
|
|
15871
15876
|
t.interruptCallback && t.interruptCallback(!0);
|
|
15872
15877
|
}, o);
|
|
@@ -16046,8 +16051,8 @@ const GC = `<style type="text/css">
|
|
|
16046
16051
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(m)}</div>
|
|
16047
16052
|
</div>
|
|
16048
16053
|
</div>
|
|
16049
|
-
`,
|
|
16050
|
-
return
|
|
16054
|
+
`, w = document.createElement("div");
|
|
16055
|
+
return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", v), w.setAttribute("style", "display: none"), w.innerHTML = b, w;
|
|
16051
16056
|
}, s = document.createElement("div");
|
|
16052
16057
|
s.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
|
|
16053
16058
|
const r = document.createElement("div");
|
|
@@ -16056,15 +16061,15 @@ const GC = `<style type="text/css">
|
|
|
16056
16061
|
var M;
|
|
16057
16062
|
if (e.loaded)
|
|
16058
16063
|
throw new Error("标尺被重复初始化!");
|
|
16059
|
-
const b = QC(v, n),
|
|
16060
|
-
if (!
|
|
16064
|
+
const b = QC(v, n), w = n.work;
|
|
16065
|
+
if (!w)
|
|
16061
16066
|
return !1;
|
|
16062
16067
|
for (const E in m) {
|
|
16063
|
-
const T = m[E], S = (M =
|
|
16068
|
+
const T = m[E], S = (M = w.observers[0]) == null ? void 0 : M.standingPosition;
|
|
16064
16069
|
if (!S)
|
|
16065
16070
|
return;
|
|
16066
16071
|
const _ = T.map(({ x: H, z: Z, observers: A }) => {
|
|
16067
|
-
const I = A.length > 0 ? v.rooms[v.observers[A[0]]].name : "",
|
|
16072
|
+
const I = A.length > 0 ? v.rooms[v.observers[A[0]]].name : "", C = b[I] ? b[I].floor : null;
|
|
16068
16073
|
let x = 1 / 0, k = {
|
|
16069
16074
|
index: 0,
|
|
16070
16075
|
x: S.x,
|
|
@@ -16072,15 +16077,15 @@ const GC = `<style type="text/css">
|
|
|
16072
16077
|
z: S.z
|
|
16073
16078
|
};
|
|
16074
16079
|
A.forEach((K) => {
|
|
16075
|
-
if (!
|
|
16080
|
+
if (!w.observers[K])
|
|
16076
16081
|
return;
|
|
16077
|
-
const { standingPosition: re } =
|
|
16082
|
+
const { standingPosition: re } = w.observers[K], ne = {
|
|
16078
16083
|
index: K,
|
|
16079
16084
|
x: re.x,
|
|
16080
16085
|
y: re.y,
|
|
16081
16086
|
z: re.z
|
|
16082
16087
|
}, ae = WC({ x: H, z: Z }, ne);
|
|
16083
|
-
|
|
16088
|
+
C ? ae < x && Math.abs(ne.y - C) < 0.3 && (x = ae, k = ne) : ae < x && (x = ae, k = ne);
|
|
16084
16089
|
});
|
|
16085
16090
|
const L = new ue(H, k.y, Z);
|
|
16086
16091
|
Object.assign(L, { observers: A });
|
|
@@ -16100,19 +16105,19 @@ const GC = `<style type="text/css">
|
|
|
16100
16105
|
for (let H = 0; H < _.length; H++) {
|
|
16101
16106
|
let Z = H + 1;
|
|
16102
16107
|
Z >= _.length && (Z = 0);
|
|
16103
|
-
const { origin: A } = _[H], { origin: I } = _[Z],
|
|
16104
|
-
s.append(
|
|
16108
|
+
const { origin: A } = _[H], { origin: I } = _[Z], C = i(E, A.distanceTo(I));
|
|
16109
|
+
s.append(C), o[E].rules.push({ vertical: !1, rule: [A, I], $element: C });
|
|
16105
16110
|
}
|
|
16106
16111
|
}
|
|
16107
16112
|
return e.loaded = !0, !0;
|
|
16108
16113
|
}, l = (v, m, b) => $(void 0, null, function* () {
|
|
16109
|
-
const
|
|
16110
|
-
if (!
|
|
16114
|
+
const w = v || t.roomInfo, M = m || t.roomRules;
|
|
16115
|
+
if (!w || !M)
|
|
16111
16116
|
throw new Error("标尺数据依赖不齐全!");
|
|
16112
|
-
return e.loaded = !1, e.options = B(B({}, e.options), b || {}), n.model.loaded ? a(
|
|
16117
|
+
return e.loaded = !1, e.options = B(B({}, e.options), b || {}), n.model.loaded ? a(w, M) : yield new Promise((E) => n.once("modelLoaded", () => E(a(w, M))));
|
|
16113
16118
|
});
|
|
16114
16119
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
16115
|
-
const c = (v, m, b,
|
|
16120
|
+
const c = (v, m, b, w) => {
|
|
16116
16121
|
const M = [
|
|
16117
16122
|
[
|
|
16118
16123
|
{ x: 0, y: 0 },
|
|
@@ -16120,15 +16125,15 @@ const GC = `<style type="text/css">
|
|
|
16120
16125
|
],
|
|
16121
16126
|
[
|
|
16122
16127
|
{ x: 0, y: 0 },
|
|
16123
|
-
{ x: 0, y:
|
|
16128
|
+
{ x: 0, y: w }
|
|
16124
16129
|
],
|
|
16125
16130
|
[
|
|
16126
16131
|
{ x: b, y: 0 },
|
|
16127
|
-
{ x: b, y:
|
|
16132
|
+
{ x: b, y: w }
|
|
16128
16133
|
],
|
|
16129
16134
|
[
|
|
16130
|
-
{ x: 0, y:
|
|
16131
|
-
{ x: b, y:
|
|
16135
|
+
{ x: 0, y: w },
|
|
16136
|
+
{ x: b, y: w }
|
|
16132
16137
|
]
|
|
16133
16138
|
], E = [];
|
|
16134
16139
|
for (let T = 0; T < M.length; T++) {
|
|
@@ -16141,7 +16146,7 @@ const GC = `<style type="text/css">
|
|
|
16141
16146
|
const v = (Z = n.getElement()) == null ? void 0 : Z.parentElement;
|
|
16142
16147
|
if (!v || !e.loaded || Object.keys(o).length <= 0)
|
|
16143
16148
|
return;
|
|
16144
|
-
const { panoIndex: m, camera: b, currentMode:
|
|
16149
|
+
const { panoIndex: m, camera: b, currentMode: w } = n;
|
|
16145
16150
|
if (m === void 0)
|
|
16146
16151
|
return;
|
|
16147
16152
|
let M;
|
|
@@ -16154,7 +16159,7 @@ const GC = `<style type="text/css">
|
|
|
16154
16159
|
return;
|
|
16155
16160
|
}
|
|
16156
16161
|
const E = b.position, T = b.getWorldDirection(new ue()), S = v.clientWidth, _ = v.clientHeight;
|
|
16157
|
-
if (
|
|
16162
|
+
if (w !== _t.Mode.Panorama) {
|
|
16158
16163
|
for (const A in o)
|
|
16159
16164
|
for (const { $element: I } of o[A].rules)
|
|
16160
16165
|
I.style.display = "none";
|
|
@@ -16164,42 +16169,42 @@ const GC = `<style type="text/css">
|
|
|
16164
16169
|
for (const { $element: I } of o[A].rules)
|
|
16165
16170
|
I.style.display = A === M ? "block" : "none";
|
|
16166
16171
|
const [H] = o[M].origins.slice().filter((A) => A.observers.indexOf(m) >= 0).sort((A, I) => {
|
|
16167
|
-
const
|
|
16168
|
-
return
|
|
16172
|
+
const C = A.clone().setY(0).sub(E).normalize().angleTo(T.clone().setY(0)), x = I.clone().setY(0).sub(E).normalize().angleTo(T.clone().setY(0));
|
|
16173
|
+
return C - x;
|
|
16169
16174
|
});
|
|
16170
|
-
for (const { rule: A, vertical: I, $element:
|
|
16171
|
-
const [x, k] = A, L =
|
|
16175
|
+
for (const { rule: A, vertical: I, $element: C } of o[M].rules) {
|
|
16176
|
+
const [x, k] = A, L = C.querySelector(".PanoRulerPlugin-rule-line");
|
|
16172
16177
|
if (!L)
|
|
16173
16178
|
return;
|
|
16174
16179
|
if (!H) {
|
|
16175
|
-
|
|
16180
|
+
C.style.display = "none";
|
|
16176
16181
|
continue;
|
|
16177
16182
|
}
|
|
16178
16183
|
if (x !== H && k !== H) {
|
|
16179
|
-
|
|
16184
|
+
C.style.display = "none";
|
|
16180
16185
|
continue;
|
|
16181
16186
|
}
|
|
16182
16187
|
if (x.distanceTo(k) < 0.3) {
|
|
16183
|
-
|
|
16188
|
+
C.style.display = "none";
|
|
16184
16189
|
continue;
|
|
16185
16190
|
}
|
|
16186
16191
|
if (x.observers.indexOf(m) === -1 || k.observers.indexOf(m) === -1) {
|
|
16187
|
-
|
|
16192
|
+
C.style.display = "none";
|
|
16188
16193
|
continue;
|
|
16189
16194
|
}
|
|
16190
16195
|
if (x.clone().sub(E).normalize().angleTo(T) > Math.PI / 2) {
|
|
16191
|
-
|
|
16196
|
+
C.style.display = "none";
|
|
16192
16197
|
continue;
|
|
16193
16198
|
}
|
|
16194
16199
|
if (k.clone().sub(E).normalize().angleTo(T) > Math.PI / 2) {
|
|
16195
|
-
|
|
16200
|
+
C.style.display = "none";
|
|
16196
16201
|
continue;
|
|
16197
16202
|
}
|
|
16198
16203
|
const J = x.distanceTo(k);
|
|
16199
16204
|
if (k.clone().sub(
|
|
16200
16205
|
k.clone().sub(x).divide(new ue(2, 2, 2))
|
|
16201
16206
|
).distanceTo(E) / J > 8) {
|
|
16202
|
-
|
|
16207
|
+
C.style.display = "none";
|
|
16203
16208
|
continue;
|
|
16204
16209
|
}
|
|
16205
16210
|
const re = x.clone().project(b), ne = (re.x + 1) / 2 * S, ae = (-re.y + 1) / 2 * _, Se = k.clone().project(b), Ae = (Se.x + 1) / 2 * S, Re = (-Se.y + 1) / 2 * _, ie = Math.sqrt(Math.pow(Ae - ne, 2) + Math.pow(Re - ae, 2));
|
|
@@ -16231,8 +16236,8 @@ const GC = `<style type="text/css">
|
|
|
16231
16236
|
if (v.distanceText && v.distanceText !== e.options.distanceText) {
|
|
16232
16237
|
const m = v.distanceText;
|
|
16233
16238
|
e.options.distanceText = m, Object.values(o).forEach((b) => {
|
|
16234
|
-
b.rules.forEach((
|
|
16235
|
-
const [M, E] =
|
|
16239
|
+
b.rules.forEach((w) => {
|
|
16240
|
+
const [M, E] = w.rule, T = M.distanceTo(E), S = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
16236
16241
|
S && (S.innerText = m(T));
|
|
16237
16242
|
});
|
|
16238
16243
|
});
|
|
@@ -16540,9 +16545,9 @@ function KC(n) {
|
|
|
16540
16545
|
};
|
|
16541
16546
|
}
|
|
16542
16547
|
function $C(n, t, e) {
|
|
16543
|
-
var v, m, b,
|
|
16548
|
+
var v, m, b, w;
|
|
16544
16549
|
let { five: i } = t, { rulerDatas: s } = t, { options: r } = t, o = [];
|
|
16545
|
-
const a = ((m = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((
|
|
16550
|
+
const a = ((m = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((w = (b = i.getElement()) == null ? void 0 : b.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (M, E) => {
|
|
16546
16551
|
const T = [
|
|
16547
16552
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
16548
16553
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -16564,9 +16569,9 @@ function $C(n, t, e) {
|
|
|
16564
16569
|
distance: I
|
|
16565
16570
|
};
|
|
16566
16571
|
}, u = (M, E, T) => {
|
|
16567
|
-
const S = i.camera.position, _ = i.camera.getWorldDirection(new ue()), H = M.clone().sub(S).normalize().angleTo(_), Z = E.clone().sub(S).normalize().angleTo(_), A = M.distanceTo(E),
|
|
16572
|
+
const S = i.camera.position, _ = i.camera.getWorldDirection(new ue()), H = M.clone().sub(S).normalize().angleTo(_), Z = E.clone().sub(S).normalize().angleTo(_), A = M.distanceTo(E), C = E.clone().sub(E.clone().sub(M).divide(new ue(2, 2, 2))).distanceTo(S), { startLeft: x, startTop: k, endLeft: L, endTop: R, distance: V } = h(M, E), ee = -((Math.PI / 2 - Math.atan2(L - x, k - R)) / Math.PI) * 180;
|
|
16568
16573
|
let K = !0;
|
|
16569
|
-
T || (K = !1), !Ft(M, T) && !Ft(E, T) && (K = !1), A < 0.3 && (K = !1), H > Math.PI / 2 && (K = !1), Z > Math.PI / 2 && (K = !1),
|
|
16574
|
+
T || (K = !1), !Ft(M, T) && !Ft(E, T) && (K = !1), A < 0.3 && (K = !1), H > Math.PI / 2 && (K = !1), Z > Math.PI / 2 && (K = !1), C / A > 8 && (K = !1);
|
|
16570
16575
|
let re = 50, ne = V;
|
|
16571
16576
|
const ae = c({ x: ~~x, y: ~~k }, { x: ~~L, y: ~~R });
|
|
16572
16577
|
if (ae && ae.length === 1 && (Ft(M, T) ? (ne = Math.sqrt(Math.pow(ae[0].x - x, 2) + Math.pow(ae[0].y - k, 2)), re = ne / V * 50) : Ft(E, T) && (ne = Math.sqrt(Math.pow(ae[0].x - L, 2) + Math.pow(ae[0].y - R, 2)), re = 100 - ne / V * 50)), ae && ae.length === 2) {
|
|
@@ -16591,12 +16596,12 @@ function $C(n, t, e) {
|
|
|
16591
16596
|
return e(0, o = []);
|
|
16592
16597
|
if (i.currentMode !== _t.Mode.Panorama)
|
|
16593
16598
|
return e(0, o = []);
|
|
16594
|
-
const T = i.camera.position, S = i.camera.getWorldDirection(new ue()), _ = E.lines.map((I) => new ue(I.start[0], -I.start[1], -I.start[2])), H = E.lines.map((I) => new ue(I.end[0], -I.end[1], -I.end[2])), [Z] = _.concat(H).sort((I,
|
|
16595
|
-
const x = I.clone().setY(0).sub(T).normalize().angleTo(S.clone().setY(0)), k =
|
|
16599
|
+
const T = i.camera.position, S = i.camera.getWorldDirection(new ue()), _ = E.lines.map((I) => new ue(I.start[0], -I.start[1], -I.start[2])), H = E.lines.map((I) => new ue(I.end[0], -I.end[1], -I.end[2])), [Z] = _.concat(H).sort((I, C) => {
|
|
16600
|
+
const x = I.clone().setY(0).sub(T).normalize().angleTo(S.clone().setY(0)), k = C.clone().setY(0).sub(T).normalize().angleTo(S.clone().setY(0));
|
|
16596
16601
|
return x - k;
|
|
16597
16602
|
}), A = E.lines.map((I) => {
|
|
16598
16603
|
var ne, ae;
|
|
16599
|
-
const
|
|
16604
|
+
const C = I.start, x = I.end, { startLeft: k, startTop: L, distance: R, deg: V, visible: J, labelOffset: ee, ruleLength: K } = u(new ue(C[0], -C[1], -C[2]), new ue(x[0], -x[1], -x[2]), Z), re = [];
|
|
16600
16605
|
return I.children && ((ne = I.children) == null ? void 0 : ne.length) > 0 && ((ae = I.children) == null || ae.forEach((Se) => {
|
|
16601
16606
|
const Ae = Se.start, Re = Se.end, { distance: ie } = h(new ue(Ae[0], -Ae[1], -Ae[2]), new ue(Re[0], -Re[1], -Re[2]));
|
|
16602
16607
|
re.push({ width: ie, state: Se.state });
|
|
@@ -17117,8 +17122,8 @@ class yP extends nv {
|
|
|
17117
17122
|
this.hide();
|
|
17118
17123
|
return;
|
|
17119
17124
|
}
|
|
17120
|
-
const b = (f.x + 1) / 2 * s,
|
|
17121
|
-
this.containerDom.style.transform = `translate(${b}px, ${
|
|
17125
|
+
const b = (f.x + 1) / 2 * s, w = -(f.y - 1) / 2 * r, E = -(Math.atan((p.y - g.y) / (p.x - g.x)) * 180) / Math.PI, T = this.containerDom.parentElement && this.contentDom.clientWidth > v ? -20 : 0;
|
|
17126
|
+
this.containerDom.style.transform = `translate(${b}px, ${w}px) rotate(${E}deg) translateY(${T}px)`, this.show(), (_ = this.params.userDistanceItem) == null || _.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
17122
17127
|
const S = this.getCurrentContent();
|
|
17123
17128
|
this.contentDom.innerText = S;
|
|
17124
17129
|
}
|
|
@@ -17466,7 +17471,7 @@ function PP(n, t, e, i) {
|
|
|
17466
17471
|
var s = n.prev, r = n, o = n.next;
|
|
17467
17472
|
if (ut(s, r, o) >= 0)
|
|
17468
17473
|
return !1;
|
|
17469
|
-
for (var a = s.x, l = r.x, c = o.x, h = s.y, u = r.y, f = o.y, p = a < l ? a < c ? a : c : l < c ? l : c, g = h < u ? h < f ? h : f : u < f ? u : f, v = a > l ? a > c ? a : c : l > c ? l : c, m = h > u ? h > f ? h : f : u > f ? u : f, b = Ic(p, g, t, e, i),
|
|
17474
|
+
for (var a = s.x, l = r.x, c = o.x, h = s.y, u = r.y, f = o.y, p = a < l ? a < c ? a : c : l < c ? l : c, g = h < u ? h < f ? h : f : u < f ? u : f, v = a > l ? a > c ? a : c : l > c ? l : c, m = h > u ? h > f ? h : f : u > f ? u : f, b = Ic(p, g, t, e, i), w = Ic(v, m, t, e, i), M = n.prevZ, E = n.nextZ; M && M.z >= b && E && E.z <= w; ) {
|
|
17470
17475
|
if (M.x >= p && M.x <= v && M.y >= g && M.y <= m && M !== s && M !== o && Zs(a, h, l, u, c, f, M.x, M.y) && ut(M.prev, M, M.next) >= 0 || (M = M.prevZ, E.x >= p && E.x <= v && E.y >= g && E.y <= m && E !== s && E !== o && Zs(a, h, l, u, c, f, E.x, E.y) && ut(E.prev, E, E.next) >= 0))
|
|
17471
17476
|
return !1;
|
|
17472
17477
|
E = E.nextZ;
|
|
@@ -17476,7 +17481,7 @@ function PP(n, t, e, i) {
|
|
|
17476
17481
|
return !1;
|
|
17477
17482
|
M = M.prevZ;
|
|
17478
17483
|
}
|
|
17479
|
-
for (; E && E.z <=
|
|
17484
|
+
for (; E && E.z <= w; ) {
|
|
17480
17485
|
if (E.x >= p && E.x <= v && E.y >= g && E.y <= m && E !== s && E !== o && Zs(a, h, l, u, c, f, E.x, E.y) && ut(E.prev, E, E.next) >= 0)
|
|
17481
17486
|
return !1;
|
|
17482
17487
|
E = E.nextZ;
|
|
@@ -18121,10 +18126,10 @@ class zn extends ll {
|
|
|
18121
18126
|
const b = new y.Line3(
|
|
18122
18127
|
p.localToWorld(new y.Vector3(1, 0, 0)).add(m),
|
|
18123
18128
|
p.localToWorld(new y.Vector3(-1, 0, 0)).add(m)
|
|
18124
|
-
),
|
|
18129
|
+
), w = new y.Line3(
|
|
18125
18130
|
p.localToWorld(new y.Vector3(0, 1, 0)).add(m),
|
|
18126
18131
|
p.localToWorld(new y.Vector3(0, -1, 0)).add(m)
|
|
18127
|
-
), M = b.closestPointToPoint(v, !1, new y.Vector3()), E =
|
|
18132
|
+
), M = b.closestPointToPoint(v, !1, new y.Vector3()), E = w.closestPointToPoint(v, !1, new y.Vector3());
|
|
18128
18133
|
return [M, E];
|
|
18129
18134
|
}
|
|
18130
18135
|
return [];
|
|
@@ -18196,11 +18201,11 @@ class zn extends ll {
|
|
|
18196
18201
|
var v, m;
|
|
18197
18202
|
if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
|
|
18198
18203
|
return !1;
|
|
18199
|
-
const i = this.model.areas.map((b) => e.intersectObject(b.polygon, !0)[0]).sort((b,
|
|
18204
|
+
const i = this.model.areas.map((b) => e.intersectObject(b.polygon, !0)[0]).sort((b, w) => b.distance - w.distance), s = (m = (v = i[0]) == null ? void 0 : v.object) == null ? void 0 : m.parent;
|
|
18200
18205
|
if (s != null && s.isPolygonMesh) {
|
|
18201
|
-
const b = this.model.areas.find((
|
|
18206
|
+
const b = this.model.areas.find((w) => w.polygon === s);
|
|
18202
18207
|
if (b) {
|
|
18203
|
-
const { x:
|
|
18208
|
+
const { x: w, y: M } = i[0].point.clone().project(this.five.camera), E = `${(w + 1) / 2 * 100}%`, T = `${(-M + 1) / 2 * 100}%`;
|
|
18204
18209
|
return this.chooseArea(b, { left: E, top: T }), !1;
|
|
18205
18210
|
}
|
|
18206
18211
|
}
|
|
@@ -18208,7 +18213,7 @@ class zn extends ll {
|
|
|
18208
18213
|
if (!r)
|
|
18209
18214
|
return;
|
|
18210
18215
|
const o = this.five.camera, a = r.point.clone().project(o), l = this.container.clientWidth, c = this.container.clientHeight, h = new Ht(a.x * l, a.y * c), u = this.model.getAllLines().map((b) => {
|
|
18211
|
-
const [
|
|
18216
|
+
const [w, M] = b.points, E = w.position.clone().project(o), T = M.position.clone().project(o);
|
|
18212
18217
|
if (!ys(E) && !ys(T))
|
|
18213
18218
|
return null;
|
|
18214
18219
|
const S = new Ht(E.x * l, E.y * c), _ = new Ht(T.x * l, T.y * c);
|
|
@@ -18217,9 +18222,9 @@ class zn extends ll {
|
|
|
18217
18222
|
if (u.length === 0)
|
|
18218
18223
|
return;
|
|
18219
18224
|
const p = u.map((b) => {
|
|
18220
|
-
const
|
|
18221
|
-
return { id: b.id, distance:
|
|
18222
|
-
}).sort((b,
|
|
18225
|
+
const w = Vh(h, b.points);
|
|
18226
|
+
return { id: b.id, distance: w.distanceTo(h) };
|
|
18227
|
+
}).sort((b, w) => b.distance - w.distance)[0];
|
|
18223
18228
|
if (p.distance > 20)
|
|
18224
18229
|
return;
|
|
18225
18230
|
const g = this.model.getAllLines().find(({ id: b }) => b === p.id);
|
|
@@ -18448,11 +18453,11 @@ class $d extends ll {
|
|
|
18448
18453
|
});
|
|
18449
18454
|
d(this, "wantsTapGesture", (e) => {
|
|
18450
18455
|
var m;
|
|
18451
|
-
const i = this.model.areas.map((b) => e.intersectObject(b.polygon, !0)[0]).sort((b,
|
|
18456
|
+
const i = this.model.areas.map((b) => e.intersectObject(b.polygon, !0)[0]).sort((b, w) => b.distance - w.distance), s = (m = i[0]) == null ? void 0 : m.object.parent;
|
|
18452
18457
|
if (s instanceof uv) {
|
|
18453
|
-
const b = this.model.areas.find((
|
|
18458
|
+
const b = this.model.areas.find((w) => w.polygon === s);
|
|
18454
18459
|
if (b) {
|
|
18455
|
-
const { x:
|
|
18460
|
+
const { x: w, y: M } = i[0].point.clone().project(this.five.camera), E = `${(w + 1) / 2 * 100}%`, T = `${(-M + 1) / 2 * 100}%`;
|
|
18456
18461
|
return this.chooseArea(b, { left: E, top: T }), !1;
|
|
18457
18462
|
}
|
|
18458
18463
|
}
|
|
@@ -18460,7 +18465,7 @@ class $d extends ll {
|
|
|
18460
18465
|
if (!o)
|
|
18461
18466
|
return;
|
|
18462
18467
|
const a = this.five.camera, l = o.point.clone().project(a), c = this.container.clientWidth, h = this.container.clientHeight, u = new Ht(l.x * c, l.y * h), f = this.model.getAllLines().map((b) => {
|
|
18463
|
-
const [
|
|
18468
|
+
const [w, M] = b.points, E = w.position.clone().project(a), T = M.position.clone().project(a);
|
|
18464
18469
|
if (!ys(E) && !ys(T))
|
|
18465
18470
|
return null;
|
|
18466
18471
|
const S = new Ht(E.x * c, E.y * h), _ = new Ht(T.x * c, T.y * h);
|
|
@@ -18469,9 +18474,9 @@ class $d extends ll {
|
|
|
18469
18474
|
if (f.length === 0)
|
|
18470
18475
|
return;
|
|
18471
18476
|
const g = f.map((b) => {
|
|
18472
|
-
const
|
|
18473
|
-
return { id: b.id, distance:
|
|
18474
|
-
}).sort((b,
|
|
18477
|
+
const w = Vh(u, b.points);
|
|
18478
|
+
return { id: b.id, distance: w.distanceTo(u) };
|
|
18479
|
+
}).sort((b, w) => b.distance - w.distance)[0];
|
|
18475
18480
|
if (g.distance > 20)
|
|
18476
18481
|
return;
|
|
18477
18482
|
const v = this.model.getAllLines().find(({ id: b }) => b === g.id);
|
|
@@ -18656,8 +18661,8 @@ void main() {
|
|
|
18656
18661
|
}
|
|
18657
18662
|
`;
|
|
18658
18663
|
function mv(n) {
|
|
18659
|
-
var b,
|
|
18660
|
-
const t = (b = n.isMobile) != null ? b : !0, e = (
|
|
18664
|
+
var b, w;
|
|
18665
|
+
const t = (b = n.isMobile) != null ? b : !0, e = (w = n.useNormalVector) != null ? w : !0;
|
|
18661
18666
|
let i = 10349931;
|
|
18662
18667
|
e && n.ballColor >= 0 && (i = n.ballColor);
|
|
18663
18668
|
const s = new jn(), r = new hA(0.3, 0.3), o = t ? qP : KP, a = new Yc().load(o);
|
|
@@ -18810,10 +18815,10 @@ class Yr extends ll {
|
|
|
18810
18815
|
if (!s)
|
|
18811
18816
|
return;
|
|
18812
18817
|
const r = this.five.camera, o = s.point.clone().project(r), a = this.container.clientWidth, l = this.container.clientHeight, c = new Ht(o.x * a, o.y * l), h = this.model.getAllLines().map((g) => {
|
|
18813
|
-
const [v, m] = g.points, b = v.position.clone().project(r),
|
|
18814
|
-
if (!ys(b) && !ys(
|
|
18818
|
+
const [v, m] = g.points, b = v.position.clone().project(r), w = m.position.clone().project(r);
|
|
18819
|
+
if (!ys(b) && !ys(w))
|
|
18815
18820
|
return null;
|
|
18816
|
-
const M = new Ht(b.x * a, b.y * l), E = new Ht(
|
|
18821
|
+
const M = new Ht(b.x * a, b.y * l), E = new Ht(w.x * a, w.y * l);
|
|
18817
18822
|
return { id: g.id, points: [M, E] };
|
|
18818
18823
|
}).filter((g) => !!g);
|
|
18819
18824
|
if (h.length === 0)
|
|
@@ -19711,9 +19716,9 @@ function II(n) {
|
|
|
19711
19716
|
f = null;
|
|
19712
19717
|
}), Ee()), /*showController*/
|
|
19713
19718
|
m[5] ? p ? p.p(m, b) : (p = lf(m), p.c(), p.m(o, a)) : p && (p.d(1), p = null);
|
|
19714
|
-
const
|
|
19719
|
+
const w = {};
|
|
19715
19720
|
b & /*i18n*/
|
|
19716
|
-
4 && (
|
|
19721
|
+
4 && (w.options = [
|
|
19717
19722
|
{
|
|
19718
19723
|
key: "line",
|
|
19719
19724
|
value: (
|
|
@@ -19731,10 +19736,10 @@ function II(n) {
|
|
|
19731
19736
|
icon: of
|
|
19732
19737
|
}
|
|
19733
19738
|
]), b & /*measureController*/
|
|
19734
|
-
1 && (
|
|
19739
|
+
1 && (w.onChange = /*func*/
|
|
19735
19740
|
m[8]), !h && b & /*setSwitcherActiveIndex*/
|
|
19736
|
-
16 && (h = !0,
|
|
19737
|
-
m[4], Ch(() => h = !1)), c.$set(
|
|
19741
|
+
16 && (h = !0, w.setIndex = /*setSwitcherActiveIndex*/
|
|
19742
|
+
m[4], Ch(() => h = !1)), c.$set(w);
|
|
19738
19743
|
},
|
|
19739
19744
|
i(m) {
|
|
19740
19745
|
u || (F(f), F(c.$$.fragment, m), u = !0);
|
|
@@ -20333,53 +20338,53 @@ function RI(n) {
|
|
|
20333
20338
|
t = N("div"), g && g.c(), e = le(), i = N("div"), s = N("div"), r = le(), o = N("div"), v && v.c(), a = le(), l = N("div"), m && m.c(), c = le(), h = N("div"), ve(u.$$.fragment), f = le(), b && b.c(), D(s, "class", "mask svelte-ldjbp8"), D(h, "class", "main-button svelte-ldjbp8"), fe(h, "forbid", !/*allowAddPoint*/
|
|
20334
20339
|
n[5]), D(l, "class", "controller svelte-ldjbp8"), D(o, "class", "center svelte-ldjbp8"), D(i, "class", "bottom svelte-ldjbp8"), D(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
20335
20340
|
},
|
|
20336
|
-
m(
|
|
20337
|
-
X(
|
|
20341
|
+
m(w, M) {
|
|
20342
|
+
X(w, t, M), g && g.m(t, null), Q(t, e), Q(t, i), Q(i, s), Q(i, r), Q(i, o), v && v.m(o, null), Q(o, a), Q(o, l), m && m.m(l, null), Q(l, c), Q(l, h), me(u, h, null), Q(l, f), b && b.m(l, null), p = !0;
|
|
20338
20343
|
},
|
|
20339
|
-
p(
|
|
20344
|
+
p(w, [M]) {
|
|
20340
20345
|
/*showExit*/
|
|
20341
|
-
|
|
20342
|
-
2 && F(g, 1)) : (g = ff(
|
|
20346
|
+
w[1] ? g ? (g.p(w, M), M & /*showExit*/
|
|
20347
|
+
2 && F(g, 1)) : (g = ff(w), g.c(), F(g, 1), g.m(t, e)) : g && (Ie(), Y(g, 1, 1, () => {
|
|
20343
20348
|
g = null;
|
|
20344
20349
|
}), Ee()), /*measureController*/
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
9 && F(v, 1)) : (v = pf(
|
|
20350
|
+
w[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
20351
|
+
w[3] === "start" ? v ? (v.p(w, M), M & /*measureController, buttonState*/
|
|
20352
|
+
9 && F(v, 1)) : (v = pf(w), v.c(), F(v, 1), v.m(o, a)) : v && (Ie(), Y(v, 1, 1, () => {
|
|
20348
20353
|
v = null;
|
|
20349
20354
|
}), Ee()), /*showButton*/
|
|
20350
|
-
|
|
20351
|
-
16 && F(m, 1)) : (m = mf(
|
|
20355
|
+
w[4] ? m ? (m.p(w, M), M & /*showButton*/
|
|
20356
|
+
16 && F(m, 1)) : (m = mf(w), m.c(), F(m, 1), m.m(l, c)) : m && (Ie(), Y(m, 1, 1, () => {
|
|
20352
20357
|
m = null;
|
|
20353
20358
|
}), Ee());
|
|
20354
20359
|
const E = {};
|
|
20355
20360
|
M & /*buttonState*/
|
|
20356
20361
|
8 && (E.onClick = /*func*/
|
|
20357
|
-
|
|
20362
|
+
w[14]), M & /*buttonState*/
|
|
20358
20363
|
8 && (E.text = /*buttonTextMap*/
|
|
20359
|
-
|
|
20364
|
+
w[6][
|
|
20360
20365
|
/*buttonState*/
|
|
20361
|
-
|
|
20366
|
+
w[3]
|
|
20362
20367
|
]), M & /*buttonState*/
|
|
20363
20368
|
8 && (E.color = /*buttonColorMap*/
|
|
20364
|
-
|
|
20369
|
+
w[7][
|
|
20365
20370
|
/*buttonState*/
|
|
20366
|
-
|
|
20371
|
+
w[3]
|
|
20367
20372
|
]), u.$set(E), (!p || M & /*allowAddPoint*/
|
|
20368
20373
|
32) && fe(h, "forbid", !/*allowAddPoint*/
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
16 && F(b, 1)) : (b = gf(
|
|
20374
|
+
w[5]), /*showButton*/
|
|
20375
|
+
w[4] ? b ? (b.p(w, M), M & /*showButton*/
|
|
20376
|
+
16 && F(b, 1)) : (b = gf(w), b.c(), F(b, 1), b.m(l, null)) : b && (Ie(), Y(b, 1, 1, () => {
|
|
20372
20377
|
b = null;
|
|
20373
20378
|
}), Ee());
|
|
20374
20379
|
},
|
|
20375
|
-
i(
|
|
20376
|
-
p || (F(g), F(v), F(m), F(u.$$.fragment,
|
|
20380
|
+
i(w) {
|
|
20381
|
+
p || (F(g), F(v), F(m), F(u.$$.fragment, w), F(b), p = !0);
|
|
20377
20382
|
},
|
|
20378
|
-
o(
|
|
20379
|
-
Y(g), Y(v), Y(m), Y(u.$$.fragment,
|
|
20383
|
+
o(w) {
|
|
20384
|
+
Y(g), Y(v), Y(m), Y(u.$$.fragment, w), Y(b), p = !1;
|
|
20380
20385
|
},
|
|
20381
|
-
d(
|
|
20382
|
-
|
|
20386
|
+
d(w) {
|
|
20387
|
+
w && U(t), g && g.d(), v && v.d(), m && m.d(), ge(u), b && b.d();
|
|
20383
20388
|
}
|
|
20384
20389
|
};
|
|
20385
20390
|
}
|
|
@@ -20410,7 +20415,7 @@ function BI(n, t, e) {
|
|
|
20410
20415
|
p(), T("allow");
|
|
20411
20416
|
}, b = () => {
|
|
20412
20417
|
v("complete");
|
|
20413
|
-
},
|
|
20418
|
+
}, w = () => {
|
|
20414
20419
|
i.currentMeasureType === "area" && h === "complete" && v("add");
|
|
20415
20420
|
}, M = (A) => {
|
|
20416
20421
|
A.length;
|
|
@@ -20424,9 +20429,9 @@ function BI(n, t, e) {
|
|
|
20424
20429
|
A.isEmpty && v("start");
|
|
20425
20430
|
};
|
|
20426
20431
|
Zt(() => {
|
|
20427
|
-
i.hook.on("revoke", _), i.hook.on("measureTypeChange", S), i.hook.on("modeChange", E), i.hook.on("pointsChange", M), i.hook.on("allowAddPointStateChange", T), i.hook.on("readyComplete", b), i.hook.on("notReadyComplete",
|
|
20432
|
+
i.hook.on("revoke", _), i.hook.on("measureTypeChange", S), i.hook.on("modeChange", E), i.hook.on("pointsChange", M), i.hook.on("allowAddPointStateChange", T), i.hook.on("readyComplete", b), i.hook.on("notReadyComplete", w), i.hook.on("complete", E);
|
|
20428
20433
|
}), vi(() => {
|
|
20429
|
-
i.hook.off("measureTypeChange", S), i.hook.off("modeChange", E), i.hook.off("allowAddPointStateChange", T), i.hook.off("readyComplete", b), i.hook.off("pointsChange", M), i.hook.off("notReadyComplete",
|
|
20434
|
+
i.hook.off("measureTypeChange", S), i.hook.off("modeChange", E), i.hook.off("allowAddPointStateChange", T), i.hook.off("readyComplete", b), i.hook.off("pointsChange", M), i.hook.off("notReadyComplete", w), i.hook.off("complete", E);
|
|
20430
20435
|
});
|
|
20431
20436
|
const H = () => i.revoke(), Z = () => {
|
|
20432
20437
|
h === "start" ? f() : h === "add" ? p() : (h === "end" || h === "complete") && m();
|
|
@@ -20652,43 +20657,43 @@ function NI(n) {
|
|
|
20652
20657
|
};
|
|
20653
20658
|
}
|
|
20654
20659
|
function GI(n, t, e) {
|
|
20655
|
-
let { measureController: i } = t, { i18n: s = (
|
|
20656
|
-
const c = (
|
|
20660
|
+
let { measureController: i } = t, { i18n: s = (w) => w } = t, { tips: r } = t, { tipStyle: o = {} } = t, { visible: a = !0 } = t, l = null;
|
|
20661
|
+
const c = (w) => {
|
|
20657
20662
|
const M = i.currentMeasureType;
|
|
20658
20663
|
let E = "";
|
|
20659
|
-
return E = r[
|
|
20660
|
-
}, h = (
|
|
20661
|
-
e(2, f = s(c(
|
|
20664
|
+
return E = r[w], E === void 0 && (E = r[M][w]), E;
|
|
20665
|
+
}, h = (w) => {
|
|
20666
|
+
e(2, f = s(c(w)));
|
|
20662
20667
|
}, u = () => {
|
|
20663
20668
|
e(2, f = "");
|
|
20664
20669
|
};
|
|
20665
20670
|
let f = "";
|
|
20666
|
-
const p = (
|
|
20667
|
-
|
|
20671
|
+
const p = (w) => {
|
|
20672
|
+
w === "Edit" && i.changeMeasureType ? h("start") : u();
|
|
20668
20673
|
}, g = () => {
|
|
20669
20674
|
i.getCurrentMode() === "Watch" && u();
|
|
20670
20675
|
}, v = () => {
|
|
20671
20676
|
i.getCurrentMode() === "Edit" && h("start");
|
|
20672
|
-
}, m = (
|
|
20673
|
-
i.currentMeasureType === "area" && (
|
|
20677
|
+
}, m = (w) => {
|
|
20678
|
+
i.currentMeasureType === "area" && (w.length >= 2 ? h("close") : w.length === 0 ? h("start") : u());
|
|
20674
20679
|
};
|
|
20675
20680
|
Zt(() => {
|
|
20676
20681
|
p(i.getCurrentMode()), i.hook.on("modeChange", p), i.hook.on("complete", g), i.hook.on("pointsChange", m), i.hook.on("measureTypeChange", v);
|
|
20677
20682
|
}), vi(() => {
|
|
20678
20683
|
i.hook.off("modeChange", p), i.hook.off("complete", g), i.hook.off("pointsChange", m), i.hook.off("measureTypeChange", v), u();
|
|
20679
20684
|
});
|
|
20680
|
-
function b(
|
|
20681
|
-
it[
|
|
20682
|
-
l =
|
|
20685
|
+
function b(w) {
|
|
20686
|
+
it[w ? "unshift" : "push"](() => {
|
|
20687
|
+
l = w, e(1, l), e(6, o);
|
|
20683
20688
|
});
|
|
20684
20689
|
}
|
|
20685
|
-
return n.$$set = (
|
|
20686
|
-
"measureController" in
|
|
20690
|
+
return n.$$set = (w) => {
|
|
20691
|
+
"measureController" in w && e(3, i = w.measureController), "i18n" in w && e(4, s = w.i18n), "tips" in w && e(5, r = w.tips), "tipStyle" in w && e(6, o = w.tipStyle), "visible" in w && e(0, a = w.visible);
|
|
20687
20692
|
}, n.$$.update = () => {
|
|
20688
20693
|
if (n.$$.dirty & /*textDom, tipStyle*/
|
|
20689
20694
|
66 && l)
|
|
20690
|
-
for (const
|
|
20691
|
-
o.hasOwnProperty(
|
|
20695
|
+
for (const w in o)
|
|
20696
|
+
o.hasOwnProperty(w) && e(1, l.style[w] = o[w], l);
|
|
20692
20697
|
}, [a, l, f, i, s, r, o, b];
|
|
20693
20698
|
}
|
|
20694
20699
|
class WI extends Pe {
|
|
@@ -20847,22 +20852,22 @@ class ZI extends Xn {
|
|
|
20847
20852
|
), this.allowMeasureType = Array.from(new Set((p = (f = i.editParams) == null ? void 0 : f.allowMeasureType) != null ? p : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new jn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
20848
20853
|
const s = (m = (v = i.editParams) == null ? void 0 : v.pointSelectorMode) != null ? m : Fm ? "fixed" : "cursor", r = (b = this.params.openParams) != null ? b : {};
|
|
20849
20854
|
if (this.params.useUIController !== !1) {
|
|
20850
|
-
const
|
|
20855
|
+
const w = B({
|
|
20851
20856
|
container: this.container,
|
|
20852
20857
|
openParams: r,
|
|
20853
20858
|
i18n: i.i18n,
|
|
20854
20859
|
pointSelectorMode: s,
|
|
20855
20860
|
useNewUI: this.allowMeasureType.length > 1
|
|
20856
20861
|
}, Cs(this.params.useUIController));
|
|
20857
|
-
this.useUIController = new _I(this,
|
|
20862
|
+
this.useUIController = new _I(this, w);
|
|
20858
20863
|
}
|
|
20859
20864
|
if (this.params.useGuideController !== !1) {
|
|
20860
|
-
const
|
|
20865
|
+
const w = B({
|
|
20861
20866
|
container: this.container,
|
|
20862
20867
|
pointSelectorMode: s,
|
|
20863
20868
|
i18n: i.i18n
|
|
20864
20869
|
}, Cs(this.params.useGuideController));
|
|
20865
|
-
this.useGuideController = new YI(this,
|
|
20870
|
+
this.useGuideController = new YI(this, w);
|
|
20866
20871
|
}
|
|
20867
20872
|
}
|
|
20868
20873
|
appendTo(e) {
|
|
@@ -21218,9 +21223,9 @@ function tE(n) {
|
|
|
21218
21223
|
};
|
|
21219
21224
|
}
|
|
21220
21225
|
function iE(n, t, e) {
|
|
21221
|
-
let { id: i } = t, { upsideDown: s } = t, { content: r } = t, { contentZoom: o } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: u } = t, { events: f } = t, { hooks: p } = t, g = 0, v = 0, m, b,
|
|
21226
|
+
let { id: i } = t, { upsideDown: s } = t, { content: r } = t, { contentZoom: o } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: u } = t, { events: f } = t, { hooks: p } = t, g = 0, v = 0, m, b, w = setTimeout(
|
|
21222
21227
|
() => {
|
|
21223
|
-
h || e(10, b = !0),
|
|
21228
|
+
h || e(10, b = !0), w = void 0;
|
|
21224
21229
|
},
|
|
21225
21230
|
100
|
|
21226
21231
|
);
|
|
@@ -21249,15 +21254,15 @@ function iE(n, t, e) {
|
|
|
21249
21254
|
if (S === null)
|
|
21250
21255
|
return;
|
|
21251
21256
|
const [_, H] = S.split("-PanoSpatialTagPlugin-");
|
|
21252
|
-
i === _ && (p.emit("clickOrigin", { id: i, show: b }),
|
|
21257
|
+
i === _ && (p.emit("clickOrigin", { id: i, show: b }), w || (e(10, b = h), e(12, h = !h), w = setTimeout(
|
|
21253
21258
|
() => {
|
|
21254
|
-
|
|
21259
|
+
w = void 0;
|
|
21255
21260
|
},
|
|
21256
21261
|
1500
|
|
21257
21262
|
)));
|
|
21258
21263
|
});
|
|
21259
21264
|
Dg(() => {
|
|
21260
|
-
e(7, g = m.offsetWidth), e(8, v = m.offsetHeight), !
|
|
21265
|
+
e(7, g = m.offsetWidth), e(8, v = m.offsetHeight), !w && e(10, b = !h);
|
|
21261
21266
|
}), vi(() => {
|
|
21262
21267
|
p.emit("destroyTag", { id: i }), E(), u();
|
|
21263
21268
|
});
|
|
@@ -21477,7 +21482,7 @@ const _l = 1e-3, Ef = 0.01, cE = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
21477
21482
|
props: { origins: v.origins }
|
|
21478
21483
|
}), b = (ie, we) => {
|
|
21479
21484
|
T(), we && S();
|
|
21480
|
-
},
|
|
21485
|
+
}, w = () => {
|
|
21481
21486
|
v.forbidden && (v.forbidden = !1, S());
|
|
21482
21487
|
}, M = (ie, we) => {
|
|
21483
21488
|
if (v.tags.length === 0)
|
|
@@ -21640,7 +21645,7 @@ const _l = 1e-3, Ef = 0.01, cE = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
21640
21645
|
v.enabled = !1, m.$set({ origins: [] }), v.tags.forEach((ie) => {
|
|
21641
21646
|
ie.app.$destroy(), ie = null;
|
|
21642
21647
|
}), v.origins = [], v.tags = [];
|
|
21643
|
-
},
|
|
21648
|
+
}, C = () => {
|
|
21644
21649
|
v.folded = !1, v.tags.forEach((ie) => {
|
|
21645
21650
|
ie.app.$set({ folded: v.folded });
|
|
21646
21651
|
});
|
|
@@ -21659,16 +21664,16 @@ const _l = 1e-3, Ef = 0.01, cE = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
21659
21664
|
}, R = () => {
|
|
21660
21665
|
n.once("renderFrame", T);
|
|
21661
21666
|
}, V = () => {
|
|
21662
|
-
e || (e = n.getElement().parentElement), e && e.appendChild(f), v.forbidden = !1, i = n.model.bounding.getCenter(new y.Vector3()).y, S(), n.on("panoWillArrive", M), n.on("panoArrived",
|
|
21667
|
+
e || (e = n.getElement().parentElement), e && e.appendChild(f), v.forbidden = !1, i = n.model.bounding.getCenter(new y.Vector3()).y, S(), n.on("panoWillArrive", M), n.on("panoArrived", w), n.on("modeChange", E), n.on("cameraUpdate", b);
|
|
21663
21668
|
}, J = () => {
|
|
21664
21669
|
g = null, u.disposeAll(), m.$destroy(), v.tags.forEach((ie) => {
|
|
21665
21670
|
ie.app.$destroy(), ie = null;
|
|
21666
|
-
}), v.origins = [], v.tags = [], n.off("modelLoaded", V), n.off("renderFrame", T), n.off("panoWillArrive", M), n.off("panoArrived",
|
|
21671
|
+
}), v.origins = [], v.tags = [], n.off("modelLoaded", V), n.off("renderFrame", T), n.off("panoWillArrive", M), n.off("panoArrived", w), n.off("modeChange", E), n.off("cameraUpdate", b), n.off("dispose", J), window.removeEventListener("resize", R, !1);
|
|
21667
21672
|
};
|
|
21668
21673
|
return window.addEventListener("resize", R, !1), (Re = n == null ? void 0 : n.model) != null && Re.loaded ? V() : n.once("modelLoaded", V), n.on("dispose", J), {
|
|
21669
21674
|
load: H,
|
|
21670
21675
|
setIntersectObjects: Z,
|
|
21671
|
-
unfoldAll:
|
|
21676
|
+
unfoldAll: C,
|
|
21672
21677
|
foldAll: x,
|
|
21673
21678
|
unfold: k,
|
|
21674
21679
|
fold: L,
|
|
@@ -21949,7 +21954,7 @@ function AE(n, t, e) {
|
|
|
21949
21954
|
}, b = (x, k) => {
|
|
21950
21955
|
const L = new s(k.modelPosition[0], k.modelPosition[1], k.modelPosition[2]), R = x.project2d(L), V = R == null ? void 0 : R.x, J = R == null ? void 0 : R.y;
|
|
21951
21956
|
return [V, J];
|
|
21952
|
-
},
|
|
21957
|
+
}, w = (x) => `translate(${x[0]}px, ${x[1]}px)`, M = (x, k) => g.length === 0 ? !1 : !!g.find((R) => x[0] >= R[0] - k && x[0] <= R[0] + k || x[1] >= R[1] - kf && x[1] <= R[1] + kf);
|
|
21953
21958
|
function E(x, k) {
|
|
21954
21959
|
switch (k) {
|
|
21955
21960
|
case Js.SMALL:
|
|
@@ -21968,7 +21973,7 @@ function AE(n, t, e) {
|
|
|
21968
21973
|
if (!ne)
|
|
21969
21974
|
return he(B({}, V), { visible: ne });
|
|
21970
21975
|
g.push(J);
|
|
21971
|
-
const ae =
|
|
21976
|
+
const ae = w(J);
|
|
21972
21977
|
return he(B({}, V), {
|
|
21973
21978
|
visible: ne,
|
|
21974
21979
|
transform: ae,
|
|
@@ -22009,7 +22014,7 @@ function AE(n, t, e) {
|
|
|
22009
22014
|
vi(() => {
|
|
22010
22015
|
r.off("cameraUpdate", _), window.removeEventListener("resize", I, !1);
|
|
22011
22016
|
});
|
|
22012
|
-
function
|
|
22017
|
+
function C() {
|
|
22013
22018
|
f = this.clientWidth, p = this.clientHeight, e(2, f), e(3, p);
|
|
22014
22019
|
}
|
|
22015
22020
|
return n.$$set = (x) => {
|
|
@@ -22024,7 +22029,7 @@ function AE(n, t, e) {
|
|
|
22024
22029
|
o,
|
|
22025
22030
|
a,
|
|
22026
22031
|
c,
|
|
22027
|
-
|
|
22032
|
+
C
|
|
22028
22033
|
];
|
|
22029
22034
|
}
|
|
22030
22035
|
let bE = class extends Pe {
|
|
@@ -22155,17 +22160,17 @@ const CE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
22155
22160
|
}, o = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
22156
22161
|
if (e.enabled || !e.videoTexture)
|
|
22157
22162
|
return;
|
|
22158
|
-
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((
|
|
22163
|
+
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => n.scene.add(w));
|
|
22159
22164
|
const b = () => {
|
|
22160
22165
|
if (!e.videoTexture)
|
|
22161
22166
|
return;
|
|
22162
|
-
const
|
|
22167
|
+
const w = () => {
|
|
22163
22168
|
var M;
|
|
22164
|
-
e.videoTexture && ((M = e.videoTexture) == null || M.image.removeEventListener("timeupdate",
|
|
22169
|
+
e.videoTexture && ((M = e.videoTexture) == null || M.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((E) => {
|
|
22165
22170
|
E.material.map !== e.videoTexture && (E.material.map = e.videoTexture);
|
|
22166
22171
|
}), n.needsRender = !0);
|
|
22167
22172
|
};
|
|
22168
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
22173
|
+
e.videoTexture.image.addEventListener("timeupdate", w), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
22169
22174
|
i.hide();
|
|
22170
22175
|
}, e.videoTexture.image.onpause = () => {
|
|
22171
22176
|
i.show();
|
|
@@ -22181,55 +22186,55 @@ const CE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
22181
22186
|
e.enabled && (e.enabled = !1, e.videoMeshes.forEach((b) => {
|
|
22182
22187
|
b.geometry.dispose(), b.material.dispose(), n.scene.remove(b), e.videoTexture && e.videoTexture.image.pause();
|
|
22183
22188
|
}), e.videoMeshes = [], n.needsRender = !0);
|
|
22184
|
-
}, c = () => e.rectPoints.map((b,
|
|
22189
|
+
}, c = () => e.rectPoints.map((b, w) => {
|
|
22185
22190
|
const M = new y.BufferGeometry(), E = 128, T = [];
|
|
22186
22191
|
T.push(...b[0].toArray());
|
|
22187
|
-
for (let
|
|
22192
|
+
for (let C = 1; C < E; C++)
|
|
22188
22193
|
T.push(
|
|
22189
|
-
b[0].x + (b[1].x - b[0].x) *
|
|
22190
|
-
b[0].y + (b[1].y - b[0].y) *
|
|
22191
|
-
b[0].z + (b[1].z - b[0].z) *
|
|
22194
|
+
b[0].x + (b[1].x - b[0].x) * C / E,
|
|
22195
|
+
b[0].y + (b[1].y - b[0].y) * C / E,
|
|
22196
|
+
b[0].z + (b[1].z - b[0].z) * C / E
|
|
22192
22197
|
);
|
|
22193
22198
|
T.push(...b[1].toArray()), T.push(...b[2].toArray());
|
|
22194
|
-
for (let
|
|
22199
|
+
for (let C = 1; C < E; C++)
|
|
22195
22200
|
T.push(
|
|
22196
|
-
b[2].x + (b[3].x - b[2].x) *
|
|
22197
|
-
b[2].y + (b[3].y - b[2].y) *
|
|
22198
|
-
b[2].z + (b[3].z - b[2].z) *
|
|
22201
|
+
b[2].x + (b[3].x - b[2].x) * C / E,
|
|
22202
|
+
b[2].y + (b[3].y - b[2].y) * C / E,
|
|
22203
|
+
b[2].z + (b[3].z - b[2].z) * C / E
|
|
22199
22204
|
);
|
|
22200
22205
|
T.push(...b[3].toArray());
|
|
22201
22206
|
const S = [];
|
|
22202
22207
|
S.push(0, 1);
|
|
22203
|
-
for (let
|
|
22204
|
-
S.push(0, 1 -
|
|
22208
|
+
for (let C = 1; C < E; C++)
|
|
22209
|
+
S.push(0, 1 - C / E);
|
|
22205
22210
|
S.push(0, 0), S.push(1, 0);
|
|
22206
|
-
for (let
|
|
22207
|
-
S.push(1,
|
|
22211
|
+
for (let C = 1; C < E; C++)
|
|
22212
|
+
S.push(1, C / E);
|
|
22208
22213
|
S.push(1, 1);
|
|
22209
22214
|
const _ = [];
|
|
22210
|
-
for (let
|
|
22211
|
-
_.push(
|
|
22215
|
+
for (let C = 0; C < E; C++)
|
|
22216
|
+
_.push(C, C + 1, E * 2 - C, C, E * 2 - C, E * 2 + 1 - C);
|
|
22212
22217
|
M.setAttribute("position", new y.BufferAttribute(new Float32Array(T), 3)), M.setAttribute("uv", new y.BufferAttribute(new Float32Array(S), 2)), M.setIndex(new y.BufferAttribute(new Uint32Array(_), 1));
|
|
22213
22218
|
const H = new y.MeshBasicMaterial({
|
|
22214
22219
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
22215
22220
|
side: y.DoubleSide
|
|
22216
22221
|
}), Z = new y.Mesh(M, H);
|
|
22217
|
-
Z.renderOrder = 1, Z.name = `ModelTVVideoPlugin-${
|
|
22222
|
+
Z.renderOrder = 1, Z.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
22218
22223
|
const A = [b[1], b[2], b[3], b[0]], I = i.create3DDomContainer(A);
|
|
22219
22224
|
if (I != null && I.container) {
|
|
22220
|
-
const
|
|
22221
|
-
|
|
22225
|
+
const C = document.createElement("div");
|
|
22226
|
+
C.classList.add("play-icon"), C.style.width = "100%", C.style.height = "100%", C.style.display = "flex", C.style.justifyContent = "center", C.style.alignItems = "center", C.style.pointerEvents = "none", I.container.appendChild(C);
|
|
22222
22227
|
const x = document.createElement("img");
|
|
22223
22228
|
x.src = Fh, x.style.width = "200px", x.style.pointerEvents = "auto", x.onclick = () => {
|
|
22224
22229
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
22225
|
-
},
|
|
22230
|
+
}, C.appendChild(x), s.set(Z, I);
|
|
22226
22231
|
}
|
|
22227
22232
|
return Z;
|
|
22228
22233
|
}), h = (b) => {
|
|
22229
|
-
const
|
|
22230
|
-
return
|
|
22231
|
-
}, u = (b,
|
|
22232
|
-
let M =
|
|
22234
|
+
const w = new y.TextureLoader().load(b);
|
|
22235
|
+
return w.minFilter = y.LinearFilter, w.magFilter = y.LinearFilter, w.format = y.RGBFormat, w;
|
|
22236
|
+
}, u = (b, w) => {
|
|
22237
|
+
let M = w;
|
|
22233
22238
|
return new Promise((E, T) => {
|
|
22234
22239
|
const S = new XMLHttpRequest();
|
|
22235
22240
|
S.onreadystatechange = () => {
|
|
@@ -22243,14 +22248,14 @@ const CE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
22243
22248
|
T(new Error("Video download Error: " + S.status));
|
|
22244
22249
|
}, S.onerror = (_) => T(_), S.open("GET", b), S.responseType = "blob", S.send();
|
|
22245
22250
|
});
|
|
22246
|
-
}, f = (b,
|
|
22251
|
+
}, f = (b, w) => $(void 0, null, function* () {
|
|
22247
22252
|
const { video_src: M, video_poster_src: E, points: T } = b;
|
|
22248
|
-
e.videoSource = M, e.rectPoints = wE(T).map((S) => S.map(({ x: _, y: H, z: Z }) => new y.Vector3(_, H, Z))), e.imageTexture = h(E),
|
|
22253
|
+
e.videoSource = M, e.rectPoints = wE(T).map((S) => S.map(({ x: _, y: H, z: Z }) => new y.Vector3(_, H, Z))), e.imageTexture = h(E), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!b.enable, e.enabled && a();
|
|
22249
22254
|
}), p = (b) => {
|
|
22250
22255
|
if (!e.enabled)
|
|
22251
22256
|
return;
|
|
22252
|
-
const
|
|
22253
|
-
if (!(!
|
|
22257
|
+
const w = e.videoMeshes;
|
|
22258
|
+
if (!(!w || b.intersectObjects(w).length === 0))
|
|
22254
22259
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
22255
22260
|
}, g = (b) => {
|
|
22256
22261
|
b === "Floorplan" ? i.hide() : i.show();
|
|
@@ -22258,18 +22263,18 @@ const CE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
22258
22263
|
if (!e.enabled)
|
|
22259
22264
|
return;
|
|
22260
22265
|
const b = n.camera.position;
|
|
22261
|
-
if (s.forEach((
|
|
22262
|
-
const E =
|
|
22263
|
-
_ && _.distance + Z < H ?
|
|
22266
|
+
if (s.forEach((w, M) => {
|
|
22267
|
+
const E = w.css3DObject.position.clone(), T = E.clone().sub(b).normalize(), S = new y.Raycaster(b, T), _ = n.model.intersectRaycaster(S)[0], H = E.distanceTo(b), Z = 0.01;
|
|
22268
|
+
_ && _.distance + Z < H ? w.hide() : w.show();
|
|
22264
22269
|
}), !o()) {
|
|
22265
|
-
const
|
|
22270
|
+
const w = e.rectPoints.find((M) => {
|
|
22266
22271
|
const E = M[0].clone().add(M[1]).add(M[2]).add(M[3]).divideScalar(4);
|
|
22267
22272
|
return M.map((T) => T.clone().add(E).divideScalar(2)).filter((T) => {
|
|
22268
22273
|
const S = T.distanceTo(b), _ = new y.Raycaster(b, T.clone().sub(b).normalize()), H = n.model.intersectRaycaster(_)[0], Z = 0.01;
|
|
22269
22274
|
return !(H && H.distance + Z < S);
|
|
22270
22275
|
}).length >= 2;
|
|
22271
22276
|
});
|
|
22272
|
-
(!
|
|
22277
|
+
(!w || w.length === 0) && r(!0);
|
|
22273
22278
|
}
|
|
22274
22279
|
}, m = () => {
|
|
22275
22280
|
l(), e.videoTexture = void 0, n.off("modeChange", g), n.off("wantsTapGesture", p), n.off("panoArrived", v), n.off("renderFrame", () => {
|
|
@@ -22679,7 +22684,7 @@ function RE(n, t, e) {
|
|
|
22679
22684
|
const b = (k, L) => {
|
|
22680
22685
|
const R = k.camera.position.clone(), V = new i(L.modelPosition[0], L.modelPosition[1], L.modelPosition[2]), J = V.distanceTo(R);
|
|
22681
22686
|
return c !== void 0 && k.state.mode === _t.Mode.Panorama && J > c ? !1 : Sf(k, V.clone().sub(R).normalize(), R, J);
|
|
22682
|
-
},
|
|
22687
|
+
}, w = (k) => {
|
|
22683
22688
|
const { camera: L, model: R } = s, { x: V, y: J, z: ee } = k.clone().project(L), K = (V + 1) / 2, re = (2 - (J + 1)) / 2;
|
|
22684
22689
|
return !!(Math.abs(ee) < 1 && [K, re].every((Ae) => Ae < 1 && Ae >= 0));
|
|
22685
22690
|
}, M = (k, L) => {
|
|
@@ -22691,7 +22696,7 @@ function RE(n, t, e) {
|
|
|
22691
22696
|
return he(B({}, J), { visible: !1 });
|
|
22692
22697
|
const ee = M(k, J);
|
|
22693
22698
|
J.name.length * jE;
|
|
22694
|
-
const K = TE(J.modelPosition[1], l), re = k.currentMode === _t.Mode.Panorama ?
|
|
22699
|
+
const K = TE(J.modelPosition[1], l), re = k.currentMode === _t.Mode.Panorama ? w(new i(J.position[0], J.position[1], J.position[2])) : !0, ne = r ? b(k, J) : !1, ae = re && !ne;
|
|
22695
22700
|
if (!ae)
|
|
22696
22701
|
return he(B({}, J), { visible: ae });
|
|
22697
22702
|
v.push(ee);
|
|
@@ -22740,7 +22745,7 @@ function RE(n, t, e) {
|
|
|
22740
22745
|
}
|
|
22741
22746
|
}
|
|
22742
22747
|
return typeof V == "number" ? L[V] : void 0;
|
|
22743
|
-
},
|
|
22748
|
+
}, C = (k) => {
|
|
22744
22749
|
if (s.state.mode === _t.Mode.Panorama)
|
|
22745
22750
|
return;
|
|
22746
22751
|
const L = s.work.observers, R = new i().fromArray(k.position), V = I(R, L);
|
|
@@ -22780,7 +22785,7 @@ function RE(n, t, e) {
|
|
|
22780
22785
|
p,
|
|
22781
22786
|
g,
|
|
22782
22787
|
m,
|
|
22783
|
-
|
|
22788
|
+
C,
|
|
22784
22789
|
s,
|
|
22785
22790
|
r,
|
|
22786
22791
|
o,
|
|
@@ -23063,7 +23068,7 @@ class ZE extends Xn {
|
|
|
23063
23068
|
}), this.fixDoorPosition();
|
|
23064
23069
|
});
|
|
23065
23070
|
d(this, "fixDoorPosition", () => {
|
|
23066
|
-
var c, h, u, f, p, g, v, m, b,
|
|
23071
|
+
var c, h, u, f, p, g, v, m, b, w, M, E;
|
|
23067
23072
|
if (!this.state.enabled || !this.state.visible)
|
|
23068
23073
|
return;
|
|
23069
23074
|
const { panoIndex: e, camera: i } = this.five;
|
|
@@ -23075,7 +23080,7 @@ class ZE extends Xn {
|
|
|
23075
23080
|
if (this.labelItems.forEach((T, S) => {
|
|
23076
23081
|
var A;
|
|
23077
23082
|
if (T.visible) {
|
|
23078
|
-
const I = i.position.distanceTo(T.position),
|
|
23083
|
+
const I = i.position.distanceTo(T.position), C = T.position.clone().add(new ue(0, this.OffsetHeight, 0)), k = C.clone().sub(i.position).normalize().angleTo(a), L = C.clone().project(i), R = (L.x + 1) / 2.2 * 100, V = (-L.y + 1) / 2.2 * 100, J = R >= 0 && R <= 100 && V >= 0 && V <= 100 && I > this.MinVisibledistance && I <= this.MaxVisibledistance;
|
|
23079
23084
|
T.left = R, T.top = V, T.inSight = J && k < Math.PI / 2, T.cameraToward = QE(this.five), J ? l.push({ disFromCameraToLabel: I, left: R, top: V, index: S }) : T.transform = "translate(-50%, -50%)";
|
|
23080
23085
|
} else
|
|
23081
23086
|
T.inSight = !1;
|
|
@@ -23085,7 +23090,7 @@ class ZE extends Xn {
|
|
|
23085
23090
|
let T = 0;
|
|
23086
23091
|
l.sort((S, _) => _.disFromCameraToLabel - S.disFromCameraToLabel);
|
|
23087
23092
|
for (let S = 1; S < l.length; S++) {
|
|
23088
|
-
const { index: _, left: H, top: Z } = l[S - 1], { index: A, left: I, top:
|
|
23093
|
+
const { index: _, left: H, top: Z } = l[S - 1], { index: A, left: I, top: C } = l[S], x = this.container.children[_], k = this.container.children[A];
|
|
23089
23094
|
if (!x || !k)
|
|
23090
23095
|
return;
|
|
23091
23096
|
const L = {
|
|
@@ -23095,9 +23100,9 @@ class ZE extends Xn {
|
|
|
23095
23100
|
height: (g = (p = (f = x.children) == null ? void 0 : f[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
|
|
23096
23101
|
}, R = {
|
|
23097
23102
|
left: r * I / 100,
|
|
23098
|
-
top: o *
|
|
23103
|
+
top: o * C / 100,
|
|
23099
23104
|
width: (b = (m = (v = k.children) == null ? void 0 : v[0]) == null ? void 0 : m.clientWidth) != null ? b : 0,
|
|
23100
|
-
height: (E = (M = (
|
|
23105
|
+
height: (E = (M = (w = k.children) == null ? void 0 : w[0]) == null ? void 0 : M.clientHeight) != null ? E : 0
|
|
23101
23106
|
};
|
|
23102
23107
|
WE(L, R) && (T++, this.labelItems[_].transform = `translate(-50%, ${(T - 1) * 100 - 50}%)`, this.labelItems[A].transform = `translate(-50%, ${T * 100 - 50}%)`);
|
|
23103
23108
|
}
|
|
@@ -23139,8 +23144,8 @@ class ZE extends Xn {
|
|
|
23139
23144
|
x: m.x,
|
|
23140
23145
|
y: m.y,
|
|
23141
23146
|
z: m.z
|
|
23142
|
-
},
|
|
23143
|
-
|
|
23147
|
+
}, w = UE(u, b);
|
|
23148
|
+
w < f && (f = w, p = b);
|
|
23144
23149
|
}), p && (u.y = p.y + 0.01);
|
|
23145
23150
|
const g = new ue(u.x, u.y, u.z);
|
|
23146
23151
|
g.add(new ue(-0.2, 1.8, 0).applyEuler(new as(0, h.rad, 0))), this.doorLabels.push({
|
|
@@ -23306,7 +23311,7 @@ function m2(n) {
|
|
|
23306
23311
|
const a = r.getPoints(o), l = a.length;
|
|
23307
23312
|
if (l <= 2)
|
|
23308
23313
|
return { geometry: new y.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
23309
|
-
const c = c2(a.map((L) => [L.x, L.z])), u = (l - 1) * u2 * d2, f = 2 * l, p = f * f2, g = f * p2, v = new Uint32Array(u), m = new Float32Array(p), b = new Float32Array(g),
|
|
23314
|
+
const c = c2(a.map((L) => [L.x, L.z])), u = (l - 1) * u2 * d2, f = 2 * l, p = f * f2, g = f * p2, v = new Uint32Array(u), m = new Float32Array(p), b = new Float32Array(g), w = r.getLength();
|
|
23310
23315
|
let M = 0, E = 0, T = {};
|
|
23311
23316
|
const S = n.path[0].points.map((L) => new y.Vector3().fromArray(L)), _ = n.path[0].panoIndexList ? [...n.path[0].panoIndexList] : void 0, H = (() => {
|
|
23312
23317
|
const L = [];
|
|
@@ -23322,7 +23327,7 @@ function m2(n) {
|
|
|
23322
23327
|
const R = L[L.length - 1], V = [];
|
|
23323
23328
|
for (let J = 0; J < L.length; J++) {
|
|
23324
23329
|
const ee = L[J], K = J === 0 ? 0 : L[J - 1], re = J === L.length - 1 ? R : L[J + 1], ne = ee - Math.min(0.3, (ee - K) / 2), ae = ee + Math.min(0.3, (re - ee) / 2);
|
|
23325
|
-
V.push([
|
|
23330
|
+
V.push([w * (ne / R), w * (ae / R)]);
|
|
23326
23331
|
}
|
|
23327
23332
|
return V;
|
|
23328
23333
|
})();
|
|
@@ -23357,7 +23362,7 @@ function m2(n) {
|
|
|
23357
23362
|
}
|
|
23358
23363
|
const A = [];
|
|
23359
23364
|
let I;
|
|
23360
|
-
const
|
|
23365
|
+
const C = [];
|
|
23361
23366
|
for (let L = 0; L < l - 1; L++) {
|
|
23362
23367
|
if (I !== void 0 && L <= I)
|
|
23363
23368
|
continue;
|
|
@@ -23404,7 +23409,7 @@ function m2(n) {
|
|
|
23404
23409
|
const rt = pe - Ve, Pt = (ze - Ve + 1) / rt;
|
|
23405
23410
|
ne < ae ? m[ze * 6 + 1] = We + (Je - We) * Pt : m[ze * 6 + 4] = We + (Je - We) * Pt;
|
|
23406
23411
|
}
|
|
23407
|
-
|
|
23412
|
+
C.push({
|
|
23408
23413
|
start: xe,
|
|
23409
23414
|
end: Ve
|
|
23410
23415
|
});
|
|
@@ -23413,12 +23418,12 @@ function m2(n) {
|
|
|
23413
23418
|
}
|
|
23414
23419
|
}
|
|
23415
23420
|
const x = new Float32Array(f);
|
|
23416
|
-
|
|
23421
|
+
C.forEach((L) => {
|
|
23417
23422
|
for (let R = 0; R < l - 1; R++)
|
|
23418
23423
|
R >= L.start && R <= L.end ? (x[R * 2 + 0] = 1, x[R * 2 + 1] = 1) : x[R] !== 1 && (x[R * 2 + 0] = 0, x[R * 2 + 1] = 0);
|
|
23419
23424
|
});
|
|
23420
23425
|
const k = new y.BufferGeometry();
|
|
23421
|
-
return k.setAttribute("position", new y.BufferAttribute(m, 3)), k.setAttribute("uv", new y.BufferAttribute(b, 2)), k.setIndex(new y.BufferAttribute(v, 1)), { geometry: k, maxV: E, animationWillError:
|
|
23426
|
+
return k.setAttribute("position", new y.BufferAttribute(m, 3)), k.setAttribute("uv", new y.BufferAttribute(b, 2)), k.setIndex(new y.BufferAttribute(v, 1)), { geometry: k, maxV: E, animationWillError: C, curvePath: r, curvePoints: a, panoMap: T, totalLength: M };
|
|
23422
23427
|
}
|
|
23423
23428
|
function g2(n) {
|
|
23424
23429
|
if (v2(n)) {
|
|
@@ -24360,38 +24365,38 @@ function Nl(n, t, e) {
|
|
|
24360
24365
|
return n.config;
|
|
24361
24366
|
}
|
|
24362
24367
|
const s = {}, r = {}, o = {};
|
|
24363
|
-
t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([
|
|
24368
|
+
t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, M]) => {
|
|
24364
24369
|
var A, I;
|
|
24365
|
-
const E =
|
|
24370
|
+
const E = w, T = E.split("-"), S = w.startsWith("["), _ = S ? T[0].slice(1, -1) : void 0, H = S ? T.slice(1) : T, Z = _ ? ["PanoramaLike", "ModelLike"].includes(_) ? (A = r[_]) != null ? A : r[_] = {} : (I = o[_]) != null ? I : o[_] = {} : s;
|
|
24366
24371
|
if (!Z[E]) {
|
|
24367
24372
|
if (H.length === 0 && (Z[E] = M), H.length === 1) {
|
|
24368
|
-
const [
|
|
24369
|
-
(n.contentType ===
|
|
24373
|
+
const [C] = H;
|
|
24374
|
+
(n.contentType === C || C === "Any") && (Z[E] = M);
|
|
24370
24375
|
}
|
|
24371
24376
|
if (H.length === 2) {
|
|
24372
|
-
const [
|
|
24373
|
-
|
|
24377
|
+
const [C = "Any", x = "Any"] = H;
|
|
24378
|
+
C === "Mixin" && n.contentType === x && (Z[E] = M), (n.stickType === C || C === "Any") && (n.contentType === x || x === "Any") && (Z[E] = M);
|
|
24374
24379
|
}
|
|
24375
24380
|
if (H.length === 3) {
|
|
24376
|
-
const [
|
|
24381
|
+
const [C = "Any", x, k] = H;
|
|
24377
24382
|
if (x === "Audio" && n.contentType === "Audio") {
|
|
24378
24383
|
const L = n;
|
|
24379
|
-
(L.stickType ===
|
|
24384
|
+
(L.stickType === C || C === "Any") && L.data.appearance === k && (Z[E] = M);
|
|
24380
24385
|
}
|
|
24381
24386
|
}
|
|
24382
24387
|
}
|
|
24383
24388
|
});
|
|
24384
24389
|
const a = (b = n.initialConfig) != null ? b : {}, l = st({}, F2, t.globalConfig, ...Object.values(s)), c = st({}, l, a), h = {}, u = Object.values(_t.Mode);
|
|
24385
|
-
Vf(r).forEach(([
|
|
24390
|
+
Vf(r).forEach(([w, M]) => {
|
|
24386
24391
|
u.forEach((E) => {
|
|
24387
|
-
(
|
|
24392
|
+
(w === "PanoramaLike" && us(E) || w === "ModelLike" && Ei(E)) && (h[E] = st({}, l, ...Object.values(M), a, { _isMerged: !0 }));
|
|
24388
24393
|
});
|
|
24389
|
-
}), Vf(o).forEach(([
|
|
24390
|
-
const E = h[
|
|
24391
|
-
h[
|
|
24394
|
+
}), Vf(o).forEach(([w, M]) => {
|
|
24395
|
+
const E = h[w];
|
|
24396
|
+
h[w] = st({}, l, E, ...Object.values(M), a, { _isMerged: !0 });
|
|
24392
24397
|
});
|
|
24393
24398
|
const f = he(B({}, c), { configWithFiveMode: h });
|
|
24394
|
-
return _f(f), Object.values(h).forEach((
|
|
24399
|
+
return _f(f), Object.values(h).forEach((w) => _f(w)), f._isMerged = !0, f;
|
|
24395
24400
|
}
|
|
24396
24401
|
function Ff(n) {
|
|
24397
24402
|
const t = n.split("?")[0].split(".").pop();
|
|
@@ -24879,8 +24884,8 @@ class Gh {
|
|
|
24879
24884
|
return (H = _.model) == null ? void 0 : H.object;
|
|
24880
24885
|
}).filter(Fe), [S] = hn.intersectObjects(T, !0);
|
|
24881
24886
|
return S;
|
|
24882
|
-
})(), b = s.distanceTo(f),
|
|
24883
|
-
g = Math.min(g != null ? g : 1 / 0, (h = m == null ? void 0 : m.distance) != null ? h : 1 / 0), g +
|
|
24887
|
+
})(), b = s.distanceTo(f), w = (c = e.distanceAccuracy) != null ? c : 0.01;
|
|
24888
|
+
g = Math.min(g != null ? g : 1 / 0, (h = m == null ? void 0 : m.distance) != null ? h : 1 / 0), g + w >= b ? o++ : a++;
|
|
24884
24889
|
const E = (u = e.needPassed) != null ? u : 1;
|
|
24885
24890
|
if (o >= E)
|
|
24886
24891
|
return { value: !0 };
|
|
@@ -25181,8 +25186,8 @@ class zv extends dn {
|
|
|
25181
25186
|
this.domWidthPx = u, this.domHeightPx = f, i.classList.add(`${Hf}__container`);
|
|
25182
25187
|
const v = new ue().subVectors(s[1], s[0]), m = new ue().subVectors(s[3], s[0]), b = new ue().crossVectors(v, m).normalize();
|
|
25183
25188
|
this.lookAt(b);
|
|
25184
|
-
const
|
|
25185
|
-
this.rotateOnWorldAxis(E,
|
|
25189
|
+
const w = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new ue().crossVectors(w, M).normalize();
|
|
25190
|
+
this.rotateOnWorldAxis(E, w.angleTo(M)), this.position.copy(p), this._opacityMesh = new Nm(u, f), this._opacityMesh.visible = e.mode === "behind", this.add(this._opacityMesh);
|
|
25186
25191
|
}
|
|
25187
25192
|
get mode() {
|
|
25188
25193
|
return this._mode;
|
|
@@ -25602,8 +25607,8 @@ function di(n) {
|
|
|
25602
25607
|
}
|
|
25603
25608
|
function iM(n, t, e) {
|
|
25604
25609
|
let { inDelay: i = 1e3 } = t, { outDelay: s = 1e3 } = t, { visible: r = !0 } = t, { width: o = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: h = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: f = !1 } = t, { round: p = !1 } = t, { blurRadius: g } = t, { spreadRadius: v } = t, { opacity: m = 0.15 } = t, { zIndex: b = -1 } = t;
|
|
25605
|
-
return n.$$set = (
|
|
25606
|
-
"inDelay" in
|
|
25610
|
+
return n.$$set = (w) => {
|
|
25611
|
+
"inDelay" in w && e(0, i = w.inDelay), "outDelay" in w && e(1, s = w.outDelay), "visible" in w && e(2, r = w.visible), "width" in w && e(3, o = w.width), "height" in w && e(4, a = w.height), "left" in w && e(5, l = w.left), "bottom" in w && e(6, c = w.bottom), "center" in w && e(7, h = w.center), "horizontalCenter" in w && e(8, u = w.horizontalCenter), "verticalCenter" in w && e(9, f = w.verticalCenter), "round" in w && e(10, p = w.round), "blurRadius" in w && e(11, g = w.blurRadius), "spreadRadius" in w && e(12, v = w.spreadRadius), "opacity" in w && e(13, m = w.opacity), "zIndex" in w && e(14, b = w.zIndex);
|
|
25607
25612
|
}, [
|
|
25608
25613
|
i,
|
|
25609
25614
|
s,
|
|
@@ -25827,7 +25832,7 @@ function cM(n, t, e) {
|
|
|
25827
25832
|
const S = !a;
|
|
25828
25833
|
g.reversed !== S && g.reverse(), g.play();
|
|
25829
25834
|
}
|
|
25830
|
-
function
|
|
25835
|
+
function w(S) {
|
|
25831
25836
|
if (l) {
|
|
25832
25837
|
e(5, l = !1);
|
|
25833
25838
|
return;
|
|
@@ -25868,7 +25873,7 @@ function cM(n, t, e) {
|
|
|
25868
25873
|
}, n.$$.update = () => {
|
|
25869
25874
|
n.$$.dirty & /*content*/
|
|
25870
25875
|
1 && e(2, i = m(o)), n.$$.dirty & /*unfolded*/
|
|
25871
|
-
256 &&
|
|
25876
|
+
256 && w(a), n.$$.dirty & /*spanEleList*/
|
|
25872
25877
|
2 && M(v.filter((S) => !!S));
|
|
25873
25878
|
}, [
|
|
25874
25879
|
o,
|
|
@@ -26291,7 +26296,7 @@ function Jf(n) {
|
|
|
26291
26296
|
], l = !0);
|
|
26292
26297
|
},
|
|
26293
26298
|
p(f, p) {
|
|
26294
|
-
var b,
|
|
26299
|
+
var b, w;
|
|
26295
26300
|
const g = {};
|
|
26296
26301
|
p & /*unfolded*/
|
|
26297
26302
|
4 && (g.visible = /*unfolded*/
|
|
@@ -26307,7 +26312,7 @@ function Jf(n) {
|
|
|
26307
26312
|
16 && (v.outDelay = /*foldTextDelay*/
|
|
26308
26313
|
f[4] + 40 * Math.min(
|
|
26309
26314
|
/*textItems*/
|
|
26310
|
-
(
|
|
26315
|
+
(w = (b = f[6][0]) == null ? void 0 : b.content.length) != null ? w : 10,
|
|
26311
26316
|
15
|
|
26312
26317
|
)), i.$set(v);
|
|
26313
26318
|
const m = {};
|
|
@@ -26709,7 +26714,7 @@ function $f(n) {
|
|
|
26709
26714
|
me(t, p, g), X(p, e, g), X(p, i, g), Q(i, s), Q(s, r), Q(r, o), me(a, o, null), Q(r, l), h && h.m(r, null), c = !0;
|
|
26710
26715
|
},
|
|
26711
26716
|
p(p, g) {
|
|
26712
|
-
var b,
|
|
26717
|
+
var b, w;
|
|
26713
26718
|
const v = {};
|
|
26714
26719
|
g & /*unfolded*/
|
|
26715
26720
|
2 && (v.unfolded = /*unfolded*/
|
|
@@ -26723,7 +26728,7 @@ function $f(n) {
|
|
|
26723
26728
|
4 && (m.maxLine = /*titleMaxRows*/
|
|
26724
26729
|
p[2]), a.$set(m), /*tag*/
|
|
26725
26730
|
p[0].data.description || /*tag*/
|
|
26726
|
-
(
|
|
26731
|
+
(w = p[0].data.edit) != null && w.description ? h ? (h.p(p, g), g & /*tag*/
|
|
26727
26732
|
1 && F(h, 1)) : (h = ep(p), h.c(), F(h, 1), h.m(r, null)) : h && (Ie(), Y(h, 1, 1, () => {
|
|
26728
26733
|
h = null;
|
|
26729
26734
|
}), Ee()), g & /*unfolded*/
|
|
@@ -27953,8 +27958,8 @@ var ua = x3, Qa = {}, k3 = {
|
|
|
27953
27958
|
}
|
|
27954
27959
|
};
|
|
27955
27960
|
(function(n, t) {
|
|
27956
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", p = "[object Number]", g = "[object Object]", v = "[object Promise]", m = "[object RegExp]", b = "[object Set]",
|
|
27957
|
-
K[r] = K[o] = K[T] = K[S] = K[a] = K[l] = K[_] = K[H] = K[Z] = K[A] = K[I] = K[f] = K[p] = K[g] = K[m] = K[b] = K[
|
|
27961
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", p = "[object Number]", g = "[object Object]", v = "[object Promise]", m = "[object RegExp]", b = "[object Set]", w = "[object String]", M = "[object Symbol]", E = "[object WeakMap]", T = "[object ArrayBuffer]", S = "[object DataView]", _ = "[object Float32Array]", H = "[object Float64Array]", Z = "[object Int8Array]", A = "[object Int16Array]", I = "[object Int32Array]", C = "[object Uint8Array]", x = "[object Uint8ClampedArray]", k = "[object Uint16Array]", L = "[object Uint32Array]", R = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, J = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
|
|
27962
|
+
K[r] = K[o] = K[T] = K[S] = K[a] = K[l] = K[_] = K[H] = K[Z] = K[A] = K[I] = K[f] = K[p] = K[g] = K[m] = K[b] = K[w] = K[M] = K[C] = K[x] = K[k] = K[L] = !0, K[c] = K[h] = K[E] = !1;
|
|
27958
27963
|
var re = typeof pi == "object" && pi && pi.Object === Object && pi, ne = typeof self == "object" && self && self.Object === Object && self, ae = re || ne || Function("return this")(), Se = t && !t.nodeType && t, Ae = Se && !0 && n && !n.nodeType && n, Re = Ae && Ae.exports === Se;
|
|
27959
27964
|
function ie(P, z) {
|
|
27960
27965
|
return P.set(z[0], z[1]), P;
|
|
@@ -28309,7 +28314,7 @@ var ua = x3, Qa = {}, k3 = {
|
|
|
28309
28314
|
case Z:
|
|
28310
28315
|
case A:
|
|
28311
28316
|
case I:
|
|
28312
|
-
case
|
|
28317
|
+
case C:
|
|
28313
28318
|
case x:
|
|
28314
28319
|
case k:
|
|
28315
28320
|
case L:
|
|
@@ -28317,7 +28322,7 @@ var ua = x3, Qa = {}, k3 = {
|
|
|
28317
28322
|
case f:
|
|
28318
28323
|
return Mn(P, se, q);
|
|
28319
28324
|
case p:
|
|
28320
|
-
case
|
|
28325
|
+
case w:
|
|
28321
28326
|
return new _e(P);
|
|
28322
28327
|
case m:
|
|
28323
28328
|
return sn(P);
|
|
@@ -28406,8 +28411,8 @@ var Ua = {}, S3 = {
|
|
|
28406
28411
|
}
|
|
28407
28412
|
};
|
|
28408
28413
|
(function(n, t) {
|
|
28409
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, r = 2, o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", v = "[object Map]", m = "[object Number]", b = "[object Null]",
|
|
28410
|
-
Ae[x] = Ae[k] = Ae[L] = Ae[R] = Ae[V] = Ae[J] = Ae[ee] = Ae[K] = Ae[re] = !0, Ae[a] = Ae[l] = Ae[I] = Ae[h] = Ae[
|
|
28414
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, r = 2, o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", v = "[object Map]", m = "[object Number]", b = "[object Null]", w = "[object Object]", M = "[object Promise]", E = "[object Proxy]", T = "[object RegExp]", S = "[object Set]", _ = "[object String]", H = "[object Symbol]", Z = "[object Undefined]", A = "[object WeakMap]", I = "[object ArrayBuffer]", C = "[object DataView]", x = "[object Float32Array]", k = "[object Float64Array]", L = "[object Int8Array]", R = "[object Int16Array]", V = "[object Int32Array]", J = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", re = "[object Uint32Array]", ne = /[\\^$.*+?()[\]{}|]/g, ae = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, Ae = {};
|
|
28415
|
+
Ae[x] = Ae[k] = Ae[L] = Ae[R] = Ae[V] = Ae[J] = Ae[ee] = Ae[K] = Ae[re] = !0, Ae[a] = Ae[l] = Ae[I] = Ae[h] = Ae[C] = Ae[u] = Ae[f] = Ae[p] = Ae[v] = Ae[m] = Ae[w] = Ae[T] = Ae[S] = Ae[_] = Ae[A] = !1;
|
|
28411
28416
|
var Re = typeof pi == "object" && pi && pi.Object === Object && pi, ie = typeof self == "object" && self && self.Object === Object && self, we = Re || ie || Function("return this")(), ke = t && !t.nodeType && t, pe = ke && !0 && n && !n.nodeType && n, Xe = pe && pe.exports === ke, je = Xe && Re.process, De = function() {
|
|
28412
28417
|
try {
|
|
28413
28418
|
return je && je.binding && je.binding("util");
|
|
@@ -28631,8 +28636,8 @@ var Ua = {}, S3 = {
|
|
|
28631
28636
|
}
|
|
28632
28637
|
function si(P, z, q, se, _e, Te) {
|
|
28633
28638
|
var Ye = Bs(P), qe = Bs(z), bt = Ye ? l : be(P), $e = qe ? l : be(z);
|
|
28634
|
-
bt = bt == a ?
|
|
28635
|
-
var Bt = bt ==
|
|
28639
|
+
bt = bt == a ? w : bt, $e = $e == a ? w : $e;
|
|
28640
|
+
var Bt = bt == w, qt = $e == w, xt = bt == $e;
|
|
28636
28641
|
if (xt && Vs(P)) {
|
|
28637
28642
|
if (!Vs(z))
|
|
28638
28643
|
return !1;
|
|
@@ -28701,7 +28706,7 @@ var Ua = {}, S3 = {
|
|
|
28701
28706
|
}
|
|
28702
28707
|
function Fr(P, z, q, se, _e, Te, Ye) {
|
|
28703
28708
|
switch (q) {
|
|
28704
|
-
case
|
|
28709
|
+
case C:
|
|
28705
28710
|
if (P.byteLength != z.byteLength || P.byteOffset != z.byteOffset)
|
|
28706
28711
|
return !1;
|
|
28707
28712
|
P = P.buffer, z = z.buffer;
|
|
@@ -28791,12 +28796,12 @@ var Ua = {}, S3 = {
|
|
|
28791
28796
|
return vn.call(P, z);
|
|
28792
28797
|
}));
|
|
28793
28798
|
} : yl, be = Ci;
|
|
28794
|
-
(qi && be(new qi(new ArrayBuffer(1))) !=
|
|
28795
|
-
var z = Ci(P), q = z ==
|
|
28799
|
+
(qi && be(new qi(new ArrayBuffer(1))) != C || Ki && be(new Ki()) != v || $n && be($n.resolve()) != M || es && be(new es()) != S || yn && be(new yn()) != A) && (be = function(P) {
|
|
28800
|
+
var z = Ci(P), q = z == w ? P.constructor : void 0, se = q ? Yt(q) : "";
|
|
28796
28801
|
if (se)
|
|
28797
28802
|
switch (se) {
|
|
28798
28803
|
case Ds:
|
|
28799
|
-
return
|
|
28804
|
+
return C;
|
|
28800
28805
|
case yi:
|
|
28801
28806
|
return v;
|
|
28802
28807
|
case wn:
|
|
@@ -28932,25 +28937,25 @@ function B3(n, t) {
|
|
|
28932
28937
|
methods: f
|
|
28933
28938
|
});
|
|
28934
28939
|
let g = !1;
|
|
28935
|
-
const v = (b) => (...
|
|
28940
|
+
const v = (b) => (...w) => {
|
|
28936
28941
|
g = !0;
|
|
28937
|
-
const M = b(...
|
|
28942
|
+
const M = b(...w);
|
|
28938
28943
|
return g = !1, M;
|
|
28939
28944
|
};
|
|
28940
|
-
Object.entries(s).forEach(([b,
|
|
28945
|
+
Object.entries(s).forEach(([b, w]) => {
|
|
28941
28946
|
f[b] = v(
|
|
28942
|
-
(...M) =>
|
|
28947
|
+
(...M) => w(p(), ...M)
|
|
28943
28948
|
), Object.defineProperty(f[b], "name", { value: b });
|
|
28944
28949
|
}), u = new Proxy(D3(e), {
|
|
28945
|
-
get(b,
|
|
28946
|
-
return h() && !g && o(h(), { prop:
|
|
28950
|
+
get(b, w) {
|
|
28951
|
+
return h() && !g && o(h(), { prop: w, value: b[w] }), Reflect.get(...arguments);
|
|
28947
28952
|
},
|
|
28948
|
-
set(b,
|
|
28949
|
-
return b[
|
|
28953
|
+
set(b, w, M) {
|
|
28954
|
+
return b[w] === M || (Reflect.set(...arguments), h() || (r && r(w, M), a(u, w))), !0;
|
|
28950
28955
|
}
|
|
28951
|
-
}), Object.entries(i).forEach(([b,
|
|
28956
|
+
}), Object.entries(i).forEach(([b, w]) => {
|
|
28952
28957
|
c(b, () => {
|
|
28953
|
-
|
|
28958
|
+
w(p());
|
|
28954
28959
|
});
|
|
28955
28960
|
});
|
|
28956
28961
|
const m = [u, f];
|
|
@@ -29680,13 +29685,13 @@ function K3(n) {
|
|
|
29680
29685
|
), b = (
|
|
29681
29686
|
/*arrows*/
|
|
29682
29687
|
n[1] && yp(n)
|
|
29683
|
-
),
|
|
29688
|
+
), w = (
|
|
29684
29689
|
/*dots*/
|
|
29685
29690
|
n[4] && wp(n)
|
|
29686
29691
|
);
|
|
29687
29692
|
return {
|
|
29688
29693
|
c() {
|
|
29689
|
-
t = N("div"), e = N("div"), p && p.c(), i = le(), s = N("div"), r = N("div"), v && v.c(), a = le(), m && m.c(), l = le(), b && b.c(), c = le(),
|
|
29694
|
+
t = N("div"), e = N("div"), p && p.c(), i = le(), s = N("div"), r = N("div"), v && v.c(), a = le(), m && m.c(), l = le(), b && b.c(), c = le(), w && w.c(), D(r, "class", "sc-carousel__pages-container svelte-sme1z4"), G(r, "transform", "translateX(" + /*offset*/
|
|
29690
29695
|
n[8] + "px)"), G(
|
|
29691
29696
|
r,
|
|
29692
29697
|
"transition-duration",
|
|
@@ -29700,7 +29705,7 @@ function K3(n) {
|
|
|
29700
29705
|
), D(s, "class", "sc-carousel__pages-window svelte-sme1z4"), D(e, "class", "sc-carousel__content-container svelte-sme1z4"), D(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
29701
29706
|
},
|
|
29702
29707
|
m(M, E) {
|
|
29703
|
-
X(M, t, E), Q(t, e), p && p.m(e, null), Q(e, i), Q(e, s), Q(s, r), v && v.m(r, null), n[39](r), Q(s, a), m && m.m(s, null), n[40](s), Q(e, l), b && b.m(e, null), Q(t, c),
|
|
29708
|
+
X(M, t, E), Q(t, e), p && p.m(e, null), Q(e, i), Q(e, s), Q(s, r), v && v.m(r, null), n[39](r), Q(s, a), m && m.m(s, null), n[40](s), Q(e, l), b && b.m(e, null), Q(t, c), w && w.m(t, null), h = !0, u || (f = [
|
|
29704
29709
|
xi(o = hx.call(null, r, {
|
|
29705
29710
|
thresholdProvider: (
|
|
29706
29711
|
/*swipeable_function*/
|
|
@@ -29806,19 +29811,19 @@ function K3(n) {
|
|
|
29806
29811
|
2 && F(b, 1)) : (b = yp(M), b.c(), F(b, 1), b.m(e, null)) : b && (Ie(), Y(b, 1, 1, () => {
|
|
29807
29812
|
b = null;
|
|
29808
29813
|
}), Ee()), /*dots*/
|
|
29809
|
-
M[4] ?
|
|
29810
|
-
16 && F(
|
|
29811
|
-
|
|
29814
|
+
M[4] ? w ? (w.p(M, E), E[0] & /*dots*/
|
|
29815
|
+
16 && F(w, 1)) : (w = wp(M), w.c(), F(w, 1), w.m(t, null)) : w && (Ie(), Y(w, 1, 1, () => {
|
|
29816
|
+
w = null;
|
|
29812
29817
|
}), Ee());
|
|
29813
29818
|
},
|
|
29814
29819
|
i(M) {
|
|
29815
|
-
h || (F(p), F(v, M), F(m), F(b), F(
|
|
29820
|
+
h || (F(p), F(v, M), F(m), F(b), F(w), h = !0);
|
|
29816
29821
|
},
|
|
29817
29822
|
o(M) {
|
|
29818
|
-
Y(p), Y(v, M), Y(m), Y(b), Y(
|
|
29823
|
+
Y(p), Y(v, M), Y(m), Y(b), Y(w), h = !1;
|
|
29819
29824
|
},
|
|
29820
29825
|
d(M) {
|
|
29821
|
-
M && U(t), p && p.d(), v && v.d(M), n[39](null), m && m.d(), n[40](null), b && b.d(),
|
|
29826
|
+
M && U(t), p && p.d(), v && v.d(M), n[39](null), m && m.d(), n[40](null), b && b.d(), w && w.d(), u = !1, Ct(f);
|
|
29822
29827
|
}
|
|
29823
29828
|
};
|
|
29824
29829
|
}
|
|
@@ -29834,7 +29839,7 @@ function $3(n, t, e) {
|
|
|
29834
29839
|
loaded: () => e(6, r = xe)
|
|
29835
29840
|
})(de);
|
|
29836
29841
|
}), v = sl();
|
|
29837
|
-
let { timingFunction: m = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite:
|
|
29842
|
+
let { timingFunction: m = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: M = 0 } = t, { duration: E = 500 } = t, { autoplay: T = !1 } = t, { autoplayDuration: S = 3e3 } = t, { autoplayDirection: _ = Gn } = t, { pauseOnFocus: H = !1 } = t, { autoplayProgressVisible: Z = !1 } = t, { dots: A = !0 } = t, { swiping: I = !0 } = t, { particlesToShow: C = 1 } = t, { particlesToScroll: x = 1 } = t;
|
|
29838
29843
|
function k(de, xe) {
|
|
29839
29844
|
return $(this, null, function* () {
|
|
29840
29845
|
const Ve = co(xe, "animated", !0);
|
|
@@ -29930,22 +29935,22 @@ function $3(n, t, e) {
|
|
|
29930
29935
|
}
|
|
29931
29936
|
const Ue = (de) => ne(de.detail);
|
|
29932
29937
|
return n.$$set = (de) => {
|
|
29933
|
-
"timingFunction" in de && e(0, m = de.timingFunction), "arrows" in de && e(1, b = de.arrows), "infinite" in de && e(2,
|
|
29938
|
+
"timingFunction" in de && e(0, m = de.timingFunction), "arrows" in de && e(1, b = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, M = de.initialPageIndex), "duration" in de && e(25, E = de.duration), "autoplay" in de && e(26, T = de.autoplay), "autoplayDuration" in de && e(27, S = de.autoplayDuration), "autoplayDirection" in de && e(28, _ = de.autoplayDirection), "pauseOnFocus" in de && e(29, H = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, Z = de.autoplayProgressVisible), "dots" in de && e(4, A = de.dots), "swiping" in de && e(30, I = de.swiping), "particlesToShow" in de && e(31, C = de.particlesToShow), "particlesToScroll" in de && e(32, x = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
|
|
29934
29939
|
}, n.$$.update = () => {
|
|
29935
29940
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
29936
29941
|
32 && v("pageChange", o), n.$$.dirty[0] & /*infinite*/
|
|
29937
|
-
4 && (u.infinite =
|
|
29942
|
+
4 && (u.infinite = w), n.$$.dirty[0] & /*duration*/
|
|
29938
29943
|
33554432 && (u.durationMsInit = E), n.$$.dirty[0] & /*autoplay*/
|
|
29939
29944
|
67108864 && (u.autoplay = T), n.$$.dirty[0] & /*autoplayDuration*/
|
|
29940
29945
|
134217728 && (u.autoplayDuration = S), n.$$.dirty[0] & /*autoplayDirection*/
|
|
29941
29946
|
268435456 && (u.autoplayDirection = _), n.$$.dirty[0] & /*pauseOnFocus*/
|
|
29942
29947
|
536870912 && (u.pauseOnFocus = H), n.$$.dirty[1] & /*particlesToShow*/
|
|
29943
|
-
1 && (u.particlesToShowInit =
|
|
29948
|
+
1 && (u.particlesToShowInit = C), n.$$.dirty[1] & /*particlesToScroll*/
|
|
29944
29949
|
2 && (u.particlesToScrollInit = x);
|
|
29945
29950
|
}, [
|
|
29946
29951
|
m,
|
|
29947
29952
|
b,
|
|
29948
|
-
|
|
29953
|
+
w,
|
|
29949
29954
|
Z,
|
|
29950
29955
|
A,
|
|
29951
29956
|
o,
|
|
@@ -29974,7 +29979,7 @@ function $3(n, t, e) {
|
|
|
29974
29979
|
_,
|
|
29975
29980
|
H,
|
|
29976
29981
|
I,
|
|
29977
|
-
|
|
29982
|
+
C,
|
|
29978
29983
|
x,
|
|
29979
29984
|
k,
|
|
29980
29985
|
L,
|
|
@@ -30328,55 +30333,55 @@ function ak(n, t, e) {
|
|
|
30328
30333
|
function m() {
|
|
30329
30334
|
e(9, v = (a == null ? void 0 : a.type) === "Video" && !!a.videoCoverUrl);
|
|
30330
30335
|
}
|
|
30331
|
-
const b = Fn("mediaStore"),
|
|
30336
|
+
const b = Fn("mediaStore"), w = Fn("hooks"), M = () => {
|
|
30332
30337
|
v || i && (e(10, i.muted = !0, i), i.play(), i.pause(), e(10, i.muted = !1, i), e(9, v = !0));
|
|
30333
30338
|
};
|
|
30334
|
-
|
|
30335
|
-
b.subscribe(({ currentMediaElement:
|
|
30336
|
-
|
|
30339
|
+
w.on("loadVideoFirstFrame", M), Zt(() => {
|
|
30340
|
+
b.subscribe(({ currentMediaElement: C }) => {
|
|
30341
|
+
C !== i && (i == null || i.pause());
|
|
30337
30342
|
});
|
|
30338
30343
|
});
|
|
30339
|
-
const E = (
|
|
30340
|
-
e(11, g = !1), e(0, r.paused = !1, r), e(9, v = !0), i && b.set({ currentMediaElement: i }),
|
|
30341
|
-
event:
|
|
30344
|
+
const E = (C) => {
|
|
30345
|
+
e(11, g = !1), e(0, r.paused = !1, r), e(9, v = !0), i && b.set({ currentMediaElement: i }), w.emit("playStateChange", {
|
|
30346
|
+
event: C,
|
|
30342
30347
|
state: "playing",
|
|
30343
30348
|
tag: o,
|
|
30344
30349
|
mediaInstance: i
|
|
30345
30350
|
});
|
|
30346
|
-
}, T = (
|
|
30347
|
-
e(11, g = !0), e(0, r.paused = !0, r),
|
|
30348
|
-
event:
|
|
30351
|
+
}, T = (C) => {
|
|
30352
|
+
e(11, g = !0), e(0, r.paused = !0, r), w.emit("playStateChange", {
|
|
30353
|
+
event: C,
|
|
30349
30354
|
state: "paused",
|
|
30350
30355
|
tag: o,
|
|
30351
30356
|
mediaInstance: i
|
|
30352
30357
|
});
|
|
30353
|
-
}, S = (
|
|
30354
|
-
e(11, g = !0), e(0, r.paused = !0, r),
|
|
30355
|
-
event:
|
|
30358
|
+
}, S = (C) => {
|
|
30359
|
+
e(11, g = !0), e(0, r.paused = !0, r), w.emit("playStateChange", {
|
|
30360
|
+
event: C,
|
|
30356
30361
|
state: "paused",
|
|
30357
30362
|
tag: o,
|
|
30358
30363
|
mediaInstance: i
|
|
30359
30364
|
});
|
|
30360
|
-
}, _ = (
|
|
30361
|
-
e(11, g = !0), e(0, r.paused = !0, r),
|
|
30362
|
-
event:
|
|
30365
|
+
}, _ = (C) => {
|
|
30366
|
+
e(11, g = !0), e(0, r.paused = !0, r), w.emit("playStateChange", {
|
|
30367
|
+
event: C,
|
|
30363
30368
|
state: "paused",
|
|
30364
30369
|
tag: o,
|
|
30365
30370
|
mediaInstance: i
|
|
30366
30371
|
});
|
|
30367
|
-
}, H = (
|
|
30372
|
+
}, H = (C) => {
|
|
30368
30373
|
i && i.pause();
|
|
30369
30374
|
};
|
|
30370
|
-
function Z(
|
|
30371
|
-
it[
|
|
30372
|
-
r.videoInstance =
|
|
30375
|
+
function Z(C) {
|
|
30376
|
+
it[C ? "unshift" : "push"](() => {
|
|
30377
|
+
r.videoInstance = C, e(0, r);
|
|
30373
30378
|
});
|
|
30374
30379
|
}
|
|
30375
|
-
const A = () => l === "withText" ? Fh : l === "withoutText" ? Lc : l, I = (
|
|
30380
|
+
const A = () => l === "withText" ? Fh : l === "withoutText" ? Lc : l, I = (C) => {
|
|
30376
30381
|
h && i && (e(10, i.muted = !1, i), i.play());
|
|
30377
30382
|
};
|
|
30378
|
-
return n.$$set = (
|
|
30379
|
-
"mediaInstance" in
|
|
30383
|
+
return n.$$set = (C) => {
|
|
30384
|
+
"mediaInstance" in C && e(0, r = C.mediaInstance), "tag" in C && e(1, o = C.tag), "media" in C && e(2, a = C.media), "playButtonIfNeed" in C && e(3, l = C.playButtonIfNeed), "playButtonSizeIfNeed" in C && e(4, c = C.playButtonSizeIfNeed), "canPlay" in C && e(5, h = C.canPlay), "autoplayVideo" in C && e(6, u = C.autoplayVideo), "objectFit" in C && e(7, f = C.objectFit), "disableVideoIfHavePoster" in C && e(8, p = C.disableVideoIfHavePoster);
|
|
30380
30385
|
}, n.$$.update = () => {
|
|
30381
30386
|
if (n.$$.dirty & /*mediaInstance*/
|
|
30382
30387
|
1 && e(10, i = r.videoInstance), n.$$.dirty & /*media*/
|
|
@@ -30384,7 +30389,7 @@ function ak(n, t, e) {
|
|
|
30384
30389
|
16384 && s && m(), n.$$.dirty & /*videoInstance*/
|
|
30385
30390
|
1024 && i && e(11, g = i.paused), n.$$.dirty & /*media, videoPosterLoaded, videoInstance*/
|
|
30386
30391
|
1540 && (a == null ? void 0 : a.type) === "Video" && !v) {
|
|
30387
|
-
const
|
|
30392
|
+
const C = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, k = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && C;
|
|
30388
30393
|
i && k && i.paused && (document.removeEventListener("WeixinJSBridgeReady", M), document.removeEventListener("touchstart", M), document.removeEventListener("click", M), document.addEventListener("WeixinJSBridgeReady", M), document.addEventListener("touchstart", M), document.addEventListener("click", M));
|
|
30389
30394
|
}
|
|
30390
30395
|
}, [
|
|
@@ -30401,7 +30406,7 @@ function ak(n, t, e) {
|
|
|
30401
30406
|
i,
|
|
30402
30407
|
g,
|
|
30403
30408
|
b,
|
|
30404
|
-
|
|
30409
|
+
w,
|
|
30405
30410
|
s,
|
|
30406
30411
|
E,
|
|
30407
30412
|
T,
|
|
@@ -30808,7 +30813,7 @@ function dk(n) {
|
|
|
30808
30813
|
}
|
|
30809
30814
|
function fk(n, t, e) {
|
|
30810
30815
|
let i, s, r, o, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: f = !0 } = t, { animation: p = !0 } = t, { mediaItemConfig: g } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: m = {} } = t;
|
|
30811
|
-
const { autoplayVideo: b = !1, autoplayCarousel:
|
|
30816
|
+
const { autoplayVideo: b = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: M = !1 } = m;
|
|
30812
30817
|
let E = [], T = 0, S, _ = null;
|
|
30813
30818
|
const H = Fn("hooks"), Z = Fn("mediaStore");
|
|
30814
30819
|
function A() {
|
|
@@ -30845,7 +30850,7 @@ function fk(n, t, e) {
|
|
|
30845
30850
|
function I(L, R) {
|
|
30846
30851
|
n.$$.not_equal(E[R], L) && (E[R] = L, e(8, E));
|
|
30847
30852
|
}
|
|
30848
|
-
function
|
|
30853
|
+
function C(L) {
|
|
30849
30854
|
it[L ? "unshift" : "push"](() => {
|
|
30850
30855
|
S = L, e(12, S);
|
|
30851
30856
|
});
|
|
@@ -30863,7 +30868,7 @@ function fk(n, t, e) {
|
|
|
30863
30868
|
256 && e(9, i = E.every((L) => L.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
|
|
30864
30869
|
65538 && e(13, s = v && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
|
|
30865
30870
|
2 && e(10, r = l), n.$$.dirty[0] & /*mediaDataList, paused*/
|
|
30866
|
-
1536 && (o = r.length > 1 &&
|
|
30871
|
+
1536 && (o = r.length > 1 && w && i);
|
|
30867
30872
|
}, [
|
|
30868
30873
|
a,
|
|
30869
30874
|
l,
|
|
@@ -30884,7 +30889,7 @@ function fk(n, t, e) {
|
|
|
30884
30889
|
v,
|
|
30885
30890
|
m,
|
|
30886
30891
|
I,
|
|
30887
|
-
|
|
30892
|
+
C,
|
|
30888
30893
|
x,
|
|
30889
30894
|
k
|
|
30890
30895
|
];
|
|
@@ -31390,7 +31395,7 @@ function bk(n) {
|
|
|
31390
31395
|
let b = (
|
|
31391
31396
|
/*data*/
|
|
31392
31397
|
n[3].headerPictureUrl && Tp(n)
|
|
31393
|
-
),
|
|
31398
|
+
), w = (
|
|
31394
31399
|
/*primaryTags*/
|
|
31395
31400
|
((E = n[2].length) != null ? E : 0) + /*secondaryTags*/
|
|
31396
31401
|
((T = n[5].length) != null ? T : 0) > 0 && Lp(n)
|
|
@@ -31401,7 +31406,7 @@ function bk(n) {
|
|
|
31401
31406
|
);
|
|
31402
31407
|
return {
|
|
31403
31408
|
c() {
|
|
31404
|
-
t = N("div"), ve(e.$$.fragment), i = le(), s = N("div"), r = le(), o = N("div"), b && b.c(), a = le(), l = N("div"), c = N("div"), h = N("div"), f = Ge(u), p = le(),
|
|
31409
|
+
t = N("div"), ve(e.$$.fragment), i = le(), s = N("div"), r = le(), o = N("div"), b && b.c(), a = le(), l = N("div"), c = N("div"), h = N("div"), f = Ge(u), p = le(), w && w.c(), g = le(), M && M.c(), D(s, "class", "line svelte-sezqcq"), G(
|
|
31405
31410
|
s,
|
|
31406
31411
|
"transition-delay",
|
|
31407
31412
|
/*unfolded*/
|
|
@@ -31428,7 +31433,7 @@ function bk(n) {
|
|
|
31428
31433
|
);
|
|
31429
31434
|
},
|
|
31430
31435
|
m(S, _) {
|
|
31431
|
-
X(S, t, _), me(e, t, null), Q(t, i), Q(t, s), Q(t, r), Q(t, o), b && b.m(o, null), Q(o, a), Q(o, l), Q(l, c), Q(c, h), Q(h, f), Q(o, p),
|
|
31436
|
+
X(S, t, _), me(e, t, null), Q(t, i), Q(t, s), Q(t, r), Q(t, o), b && b.m(o, null), Q(o, a), Q(o, l), Q(l, c), Q(c, h), Q(h, f), Q(o, p), w && w.m(o, null), Q(o, g), M && M.m(o, null), m = !0;
|
|
31432
31437
|
},
|
|
31433
31438
|
p(S, [_]) {
|
|
31434
31439
|
var Z, A;
|
|
@@ -31446,7 +31451,7 @@ function bk(n) {
|
|
|
31446
31451
|
8) && u !== (u = /*data*/
|
|
31447
31452
|
S[3].title + "") && Qe(f, u), /*primaryTags*/
|
|
31448
31453
|
((Z = S[2].length) != null ? Z : 0) + /*secondaryTags*/
|
|
31449
|
-
((A = S[5].length) != null ? A : 0) > 0 ?
|
|
31454
|
+
((A = S[5].length) != null ? A : 0) > 0 ? w ? w.p(S, _) : (w = Lp(S), w.c(), w.m(o, g)) : w && (w.d(1), w = null), /*havePrice*/
|
|
31450
31455
|
S[7] || /*data*/
|
|
31451
31456
|
S[3].highlightText ? M ? M.p(S, _) : (M = jp(S), M.c(), M.m(o, null)) : M && (M.d(1), M = null), _ & /*unfolded*/
|
|
31452
31457
|
16 && G(
|
|
@@ -31477,7 +31482,7 @@ function bk(n) {
|
|
|
31477
31482
|
Y(e.$$.fragment, S), m = !1;
|
|
31478
31483
|
},
|
|
31479
31484
|
d(S) {
|
|
31480
|
-
S && U(t), ge(e), b && b.d(),
|
|
31485
|
+
S && U(t), ge(e), b && b.d(), w && w.d(), M && M.d();
|
|
31481
31486
|
}
|
|
31482
31487
|
};
|
|
31483
31488
|
}
|
|
@@ -31497,12 +31502,12 @@ function yk(n, t, e) {
|
|
|
31497
31502
|
return n.$$set = (v) => {
|
|
31498
31503
|
"tag" in v && e(0, u = v.tag);
|
|
31499
31504
|
}, n.$$.update = () => {
|
|
31500
|
-
var v, m, b,
|
|
31505
|
+
var v, m, b, w, M, E;
|
|
31501
31506
|
n.$$.dirty & /*tag*/
|
|
31502
31507
|
1 && e(4, i = (m = (v = u.state) == null ? void 0 : v.unfolded) != null ? m : !1), n.$$.dirty & /*unfolded*/
|
|
31503
31508
|
16 && e(8, s = !i), n.$$.dirty & /*tag*/
|
|
31504
31509
|
1 && e(3, r = u.data), n.$$.dirty & /*data*/
|
|
31505
|
-
8 && e(7, o = Fe((b = r.price) == null ? void 0 : b.value) && ((
|
|
31510
|
+
8 && e(7, o = Fe((b = r.price) == null ? void 0 : b.value) && ((w = r.price) == null ? void 0 : w.value) !== ""), n.$$.dirty & /*tag*/
|
|
31506
31511
|
1 && e(6, a = u.data.theme || "light"), n.$$.dirty & /*tagsOffsetHeight, maxTagsLength*/
|
|
31507
31512
|
1026 && f > 40 && e(10, l = l - 1), n.$$.dirty & /*data, maxTagsLength*/
|
|
31508
31513
|
1032 && e(2, c = ((M = r.brandTags) == null ? void 0 : M.slice(0, l).filter(Boolean)) || []), n.$$.dirty & /*data, maxTagsLength, primaryTags*/
|
|
@@ -32008,8 +32013,8 @@ function Np(n) {
|
|
|
32008
32013
|
n[6]
|
|
32009
32014
|
);
|
|
32010
32015
|
},
|
|
32011
|
-
m(
|
|
32012
|
-
X(
|
|
32016
|
+
m(w, M) {
|
|
32017
|
+
X(w, t, M), me(e, t, null), Q(t, i), Q(t, s), Q(s, r), Q(r, o), v && v.m(o, null), Q(r, a), Q(r, l), me(c, l, null), Q(t, h), me(u, t, null), f = !0, p || (g = [
|
|
32013
32018
|
Oe(
|
|
32014
32019
|
l,
|
|
32015
32020
|
"click",
|
|
@@ -32025,53 +32030,53 @@ function Np(n) {
|
|
|
32025
32030
|
)
|
|
32026
32031
|
], p = !0);
|
|
32027
32032
|
},
|
|
32028
|
-
p(
|
|
32033
|
+
p(w, M) {
|
|
32029
32034
|
var _, H;
|
|
32030
32035
|
const E = {};
|
|
32031
32036
|
M & /*unfolded*/
|
|
32032
32037
|
64 && (E.visible = /*unfolded*/
|
|
32033
|
-
|
|
32038
|
+
w[6]), M & /*contentWidth*/
|
|
32034
32039
|
8 && (E.left = /*contentWidth*/
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
64 && F(v, 1)) : (v = Gp(
|
|
32040
|
+
w[3] / 2 + "px"), e.$set(E), /*unfolded*/
|
|
32041
|
+
w[6] ? v ? (v.p(w, M), M & /*unfolded*/
|
|
32042
|
+
64 && F(v, 1)) : (v = Gp(w), v.c(), F(v, 1), v.m(o, null)) : v && (Ie(), Y(v, 1, 1, () => {
|
|
32038
32043
|
v = null;
|
|
32039
32044
|
}), Ee());
|
|
32040
32045
|
const T = {};
|
|
32041
32046
|
M & /*unfolded*/
|
|
32042
32047
|
64 && (T.visible = /*unfolded*/
|
|
32043
|
-
|
|
32048
|
+
w[6]), M & /*textUnfolded*/
|
|
32044
32049
|
2 && (T.textUnfolded = /*textUnfolded*/
|
|
32045
|
-
|
|
32050
|
+
w[1]), M & /*content*/
|
|
32046
32051
|
32 && (T.content = /*content*/
|
|
32047
|
-
|
|
32052
|
+
w[5]), c.$set(T);
|
|
32048
32053
|
const S = {};
|
|
32049
32054
|
M & /*unfolded*/
|
|
32050
32055
|
64 && (S.unfolded = /*unfolded*/
|
|
32051
|
-
|
|
32056
|
+
w[6]), M & /*contentWidth*/
|
|
32052
32057
|
8 && (S.length = /*contentWidth*/
|
|
32053
|
-
|
|
32058
|
+
w[3]), M & /*foldTextDelay, content*/
|
|
32054
32059
|
48 && (S.outDelay = /*foldTextDelay*/
|
|
32055
|
-
|
|
32060
|
+
w[4] + 20 * Math.min(
|
|
32056
32061
|
/*content*/
|
|
32057
|
-
(H = (_ =
|
|
32062
|
+
(H = (_ = w[5]) == null ? void 0 : _.length) != null ? H : 10,
|
|
32058
32063
|
15
|
|
32059
32064
|
)), u.$set(S), (!f || M & /*unfolded*/
|
|
32060
32065
|
64) && fe(
|
|
32061
32066
|
t,
|
|
32062
32067
|
"unfolded",
|
|
32063
32068
|
/*unfolded*/
|
|
32064
|
-
|
|
32069
|
+
w[6]
|
|
32065
32070
|
);
|
|
32066
32071
|
},
|
|
32067
|
-
i(
|
|
32068
|
-
f || (F(e.$$.fragment,
|
|
32072
|
+
i(w) {
|
|
32073
|
+
f || (F(e.$$.fragment, w), F(v), F(c.$$.fragment, w), F(u.$$.fragment, w), f = !0);
|
|
32069
32074
|
},
|
|
32070
|
-
o(
|
|
32071
|
-
Y(e.$$.fragment,
|
|
32075
|
+
o(w) {
|
|
32076
|
+
Y(e.$$.fragment, w), Y(v), Y(c.$$.fragment, w), Y(u.$$.fragment, w), f = !1;
|
|
32072
32077
|
},
|
|
32073
|
-
d(
|
|
32074
|
-
|
|
32078
|
+
d(w) {
|
|
32079
|
+
w && U(t), ge(e), v && v.d(), ge(c), ge(u), p = !1, Ct(g);
|
|
32075
32080
|
}
|
|
32076
32081
|
};
|
|
32077
32082
|
}
|
|
@@ -32243,10 +32248,10 @@ function Lk(n, t, e) {
|
|
|
32243
32248
|
return n.$$set = (m) => {
|
|
32244
32249
|
"tag" in m && e(0, o = m.tag);
|
|
32245
32250
|
}, n.$$.update = () => {
|
|
32246
|
-
var m, b,
|
|
32251
|
+
var m, b, w;
|
|
32247
32252
|
n.$$.dirty & /*tag*/
|
|
32248
32253
|
1 && e(6, i = !!((m = o.state) != null && m.unfolded)), n.$$.dirty & /*tag*/
|
|
32249
|
-
1 && e(5, s = (
|
|
32254
|
+
1 && e(5, s = (w = (b = o.data.title) != null ? b : o.data.text) != null ? w : ""), n.$$.dirty & /*textUnfolded*/
|
|
32250
32255
|
2 && e(4, r = a ? 450 : 0);
|
|
32251
32256
|
}, [
|
|
32252
32257
|
o,
|
|
@@ -32493,10 +32498,10 @@ function Vk(n, t, e) {
|
|
|
32493
32498
|
return n.$$set = (m) => {
|
|
32494
32499
|
"tag" in m && e(0, r = m.tag);
|
|
32495
32500
|
}, n.$$.update = () => {
|
|
32496
|
-
var m, b,
|
|
32501
|
+
var m, b, w;
|
|
32497
32502
|
n.$$.dirty & /*tag*/
|
|
32498
32503
|
1 && e(5, i = (b = (m = r.data.title) != null ? m : r.data.text) != null ? b : ""), n.$$.dirty & /*tag*/
|
|
32499
|
-
1 && e(4, s = (
|
|
32504
|
+
1 && e(4, s = (w = o[r.data.theme || "light"]) != null ? w : o.light);
|
|
32500
32505
|
}, [
|
|
32501
32506
|
r,
|
|
32502
32507
|
a,
|
|
@@ -33237,11 +33242,11 @@ function aD(n, t, e) {
|
|
|
33237
33242
|
return v("iconLoaded", E), E;
|
|
33238
33243
|
});
|
|
33239
33244
|
}
|
|
33240
|
-
function
|
|
33245
|
+
function w() {
|
|
33241
33246
|
h || v("iconLoaded");
|
|
33242
33247
|
}
|
|
33243
33248
|
return Zt(() => {
|
|
33244
|
-
|
|
33249
|
+
w();
|
|
33245
33250
|
}), n.$$set = (M) => {
|
|
33246
33251
|
"width" in M && e(1, f = M.width), "icon" in M && e(12, p = M.icon), "shadow" in M && e(0, g = M.shadow);
|
|
33247
33252
|
}, n.$$.update = () => {
|
|
@@ -33263,7 +33268,7 @@ function aD(n, t, e) {
|
|
|
33263
33268
|
})), n.$$.dirty & /*iconSteps*/
|
|
33264
33269
|
4 && e(8, h = s > 1), n.$$.dirty & /*width*/
|
|
33265
33270
|
2 && (u = f);
|
|
33266
|
-
},
|
|
33271
|
+
}, w(), [
|
|
33267
33272
|
g,
|
|
33268
33273
|
f,
|
|
33269
33274
|
s,
|
|
@@ -33625,7 +33630,7 @@ function CD(n) {
|
|
|
33625
33630
|
}
|
|
33626
33631
|
function PD(n) {
|
|
33627
33632
|
let t, e, i, s, r, o, a, l, c, h, u, f, p, g, v, m, b;
|
|
33628
|
-
const
|
|
33633
|
+
const w = [
|
|
33629
33634
|
TD,
|
|
33630
33635
|
SD,
|
|
33631
33636
|
DD,
|
|
@@ -33707,7 +33712,7 @@ function PD(n) {
|
|
|
33707
33712
|
)
|
|
33708
33713
|
))), h ? 6 : -1))))));
|
|
33709
33714
|
}
|
|
33710
|
-
return ~(u = E(n, -1)) && (f = M[u] =
|
|
33715
|
+
return ~(u = E(n, -1)) && (f = M[u] = w[u](n)), {
|
|
33711
33716
|
c() {
|
|
33712
33717
|
var T;
|
|
33713
33718
|
t = N("div"), e = N("div"), i = N("div"), f && f.c(), D(i, "class", "content svelte-elzzn6"), fe(
|
|
@@ -33763,7 +33768,7 @@ function PD(n) {
|
|
|
33763
33768
|
let _ = u;
|
|
33764
33769
|
u = E(T, S), u === _ ? ~u && M[u].p(T, S) : (f && (Ie(), Y(M[_], 1, 1, () => {
|
|
33765
33770
|
M[_] = null;
|
|
33766
|
-
}), Ee()), ~u ? (f = M[u], f ? f.p(T, S) : (f = M[u] =
|
|
33771
|
+
}), Ee()), ~u ? (f = M[u], f ? f.p(T, S) : (f = M[u] = w[u](T), f.c()), F(f, 1), f.m(i, null)) : f = null), (!v || S & /*tag*/
|
|
33767
33772
|
1) && fe(
|
|
33768
33773
|
i,
|
|
33769
33774
|
"unfolded",
|
|
@@ -34175,12 +34180,12 @@ function OD(n, t, e) {
|
|
|
34175
34180
|
let i, s, r, o, a, l, { tag: c } = t, { hooks: h } = t, { rendererMap: u = /* @__PURE__ */ new Map() } = t, { contentTypeMap: f = /* @__PURE__ */ new Map() } = t, { state: p } = t, { mediaStore: g } = t, { temporaryState: v } = t;
|
|
34176
34181
|
gc("hooks", h), gc("mediaStore", g);
|
|
34177
34182
|
let m, b;
|
|
34178
|
-
function
|
|
34183
|
+
function w(H) {
|
|
34179
34184
|
H ? h.emit("exposure", { id: o, type: "start" }) : h.emit("exposure", { id: o, type: "end" });
|
|
34180
34185
|
}
|
|
34181
34186
|
function M(H, Z, A) {
|
|
34182
|
-
var I,
|
|
34183
|
-
return !(!H.enabled || !Z.visible || !Z.enabled || !A.visible || !((I = H.state) != null && I.visible) || ((
|
|
34187
|
+
var I, C;
|
|
34188
|
+
return !(!H.enabled || !Z.visible || !Z.enabled || !A.visible || !((I = H.state) != null && I.visible) || ((C = H.temporaryState) == null ? void 0 : C.visible) === !1 || H instanceof e0 && H.loading);
|
|
34184
34189
|
}
|
|
34185
34190
|
function E(H) {
|
|
34186
34191
|
it[H ? "unshift" : "push"](() => {
|
|
@@ -34199,15 +34204,15 @@ function OD(n, t, e) {
|
|
|
34199
34204
|
return n.$$set = (H) => {
|
|
34200
34205
|
"tag" in H && e(0, c = H.tag), "hooks" in H && e(1, h = H.hooks), "rendererMap" in H && e(2, u = H.rendererMap), "contentTypeMap" in H && e(3, f = H.contentTypeMap), "state" in H && e(6, p = H.state), "mediaStore" in H && e(7, g = H.mediaStore), "temporaryState" in H && e(8, v = H.temporaryState);
|
|
34201
34206
|
}, n.$$.update = () => {
|
|
34202
|
-
var H, Z, A, I,
|
|
34207
|
+
var H, Z, A, I, C, x, k, L, R, V, J;
|
|
34203
34208
|
n.$$.dirty & /*tag*/
|
|
34204
34209
|
1 && e(12, i = (H = c.state) == null ? void 0 : H.unfolded), n.$$.dirty & /*tag*/
|
|
34205
34210
|
1 && e(11, s = (Z = c.state) == null ? void 0 : Z.visible), n.$$.dirty & /*state, temporaryState, tag*/
|
|
34206
34211
|
321 && e(13, r = p.visible && v.visible && ((A = c.state) == null ? void 0 : A.visible)), n.$$.dirty & /*tag*/
|
|
34207
34212
|
1 && (o = c.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
34208
34213
|
321 && e(5, a = !M(c, p, v)), n.$$.dirty & /*isVisible*/
|
|
34209
|
-
8192 &&
|
|
34210
|
-
7681 && c.hooks && (i !== void 0 && i !== b && (e(10, b = i), i ? (
|
|
34214
|
+
8192 && w(r), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
|
|
34215
|
+
7681 && c.hooks && (i !== void 0 && i !== b && (e(10, b = i), i ? (C = (I = c.hooks).emit) == null || C.call(I, "unfolded") : (k = c == null ? void 0 : (x = c.hooks).emit) == null || k.call(x, "folded")), s !== void 0 && s !== m && (e(9, m = s), s ? (R = (L = c.hooks).emit) == null || R.call(L, "show") : (J = (V = c.hooks).emit) == null || J.call(V, "hide"))), n.$$.dirty & /*tag*/
|
|
34211
34216
|
1 && e(4, l = (() => !(typeof c.config.unfoldedConfig == "object" && c.config.unfoldedConfig.keep === "folded"))());
|
|
34212
34217
|
}, [
|
|
34213
34218
|
c,
|
|
@@ -34588,11 +34593,11 @@ function _D(n, t, e) {
|
|
|
34588
34593
|
return n.$$set = (v) => {
|
|
34589
34594
|
"tag" in v && e(6, l = v.tag);
|
|
34590
34595
|
}, n.$$.update = () => {
|
|
34591
|
-
var v, m, b,
|
|
34596
|
+
var v, m, b, w;
|
|
34592
34597
|
n.$$.dirty & /*tag*/
|
|
34593
34598
|
64 && e(0, i = (v = l.state) == null ? void 0 : v.unfolded), n.$$.dirty & /*unfolded*/
|
|
34594
34599
|
1 && e(3, s = !i), n.$$.dirty & /*tag*/
|
|
34595
|
-
64 && e(2, r = (b = (m = l.style) == null ? void 0 : m.point) != null && b.url ? (
|
|
34600
|
+
64 && e(2, r = (b = (m = l.style) == null ? void 0 : m.point) != null && b.url ? (w = l.style) == null ? void 0 : w.point : { url: PE }), n.$$.dirty & /*tag*/
|
|
34596
34601
|
64 && e(1, o = (() => {
|
|
34597
34602
|
var T, S, _, H;
|
|
34598
34603
|
const M = (S = (T = l.style) == null ? void 0 : T.point) == null ? void 0 : S.width;
|
|
@@ -34689,9 +34694,9 @@ function $p(n) {
|
|
|
34689
34694
|
X(m, t, b), u[e].m(t, null), Q(t, s), g[r].m(t, null), n[17](t), c = !0;
|
|
34690
34695
|
},
|
|
34691
34696
|
p(m, b) {
|
|
34692
|
-
let
|
|
34693
|
-
e = f(m), e ===
|
|
34694
|
-
u[
|
|
34697
|
+
let w = e;
|
|
34698
|
+
e = f(m), e === w ? u[e].p(m, b) : (Ie(), Y(u[w], 1, 1, () => {
|
|
34699
|
+
u[w] = null;
|
|
34695
34700
|
}), Ee(), i = u[e], i ? i.p(m, b) : (i = u[e] = h[e](m), i.c()), F(i, 1), i.m(t, s));
|
|
34696
34701
|
let M = r;
|
|
34697
34702
|
r = v(m), r === M ? g[r].p(m, b) : (Ie(), Y(g[M], 1, 1, () => {
|
|
@@ -34918,7 +34923,7 @@ function UD(n) {
|
|
|
34918
34923
|
};
|
|
34919
34924
|
}
|
|
34920
34925
|
function YD(n, t, e) {
|
|
34921
|
-
let i, s, r, o, a, l, c, h, u, f, { tag: p } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: m = /* @__PURE__ */ new Map() } = t, { state: b } = t, { temporaryState:
|
|
34926
|
+
let i, s, r, o, a, l, c, h, u, f, { tag: p } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: m = /* @__PURE__ */ new Map() } = t, { state: b } = t, { temporaryState: w } = t;
|
|
34922
34927
|
const M = Fn("hooks");
|
|
34923
34928
|
function E(T) {
|
|
34924
34929
|
it[T ? "unshift" : "push"](() => {
|
|
@@ -34926,7 +34931,7 @@ function YD(n, t, e) {
|
|
|
34926
34931
|
});
|
|
34927
34932
|
}
|
|
34928
34933
|
return n.$$set = (T) => {
|
|
34929
|
-
"tag" in T && e(0, p = T.tag), "mediaStore" in T && e(1, g = T.mediaStore), "rendererMap" in T && e(2, v = T.rendererMap), "contentTypeMap" in T && e(3, m = T.contentTypeMap), "state" in T && e(4, b = T.state), "temporaryState" in T && e(5,
|
|
34934
|
+
"tag" in T && e(0, p = T.tag), "mediaStore" in T && e(1, g = T.mediaStore), "rendererMap" in T && e(2, v = T.rendererMap), "contentTypeMap" in T && e(3, m = T.contentTypeMap), "state" in T && e(4, b = T.state), "temporaryState" in T && e(5, w = T.temporaryState);
|
|
34930
34935
|
}, n.$$.update = () => {
|
|
34931
34936
|
var T, S, _, H;
|
|
34932
34937
|
n.$$.dirty & /*tag, rendererMap*/
|
|
@@ -34949,7 +34954,7 @@ function YD(n, t, e) {
|
|
|
34949
34954
|
v,
|
|
34950
34955
|
m,
|
|
34951
34956
|
b,
|
|
34952
|
-
|
|
34957
|
+
w,
|
|
34953
34958
|
c,
|
|
34954
34959
|
o,
|
|
34955
34960
|
i,
|
|
@@ -37174,7 +37179,7 @@ let dS = class extends mn {
|
|
|
37174
37179
|
}
|
|
37175
37180
|
load(e, i, s = !0) {
|
|
37176
37181
|
return $(this, null, function* () {
|
|
37177
|
-
var p, g, v, m, b,
|
|
37182
|
+
var p, g, v, m, b, w, M, E;
|
|
37178
37183
|
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
37179
37184
|
this.hooks.emit("dataChange", o, r), this.data = o;
|
|
37180
37185
|
const a = o.config, c = {
|
|
@@ -37186,10 +37191,10 @@ let dS = class extends mn {
|
|
|
37186
37191
|
use_auto_depthtest: (m = this.config.useAutoDepthTest) != null ? m : !1,
|
|
37187
37192
|
auto_depth_test_effect_distance: this.config.autoDepthTestEffectDistance
|
|
37188
37193
|
}
|
|
37189
|
-
}, h = (
|
|
37194
|
+
}, h = (w = (b = o.routes) == null ? void 0 : b.map((T) => {
|
|
37190
37195
|
var S;
|
|
37191
37196
|
return st({}, c, { id: (S = T.id) != null ? S : kt(), pano_group: T.panoIndexList });
|
|
37192
|
-
})) != null ?
|
|
37197
|
+
})) != null ? w : [], u = (E = (M = o.lines) == null ? void 0 : M.map((T) => st({}, c, T))) != null ? E : [], f = [...h, ...u];
|
|
37193
37198
|
yield ai(this.five), this.clear(), f.forEach((T) => {
|
|
37194
37199
|
this.addGuideLineItem(T);
|
|
37195
37200
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", o), console.debug(`${am} loaded`, o);
|
|
@@ -38512,8 +38517,8 @@ class GS extends jo {
|
|
|
38512
38517
|
`${o.toUpperCase()}${"XZY".replace(o.toUpperCase(), "")}`
|
|
38513
38518
|
)[o] * r.angleDirection;
|
|
38514
38519
|
if (this.startInfo.angle += b, this.setAngleHelperLength(o, this.startInfo.angle), this.setTipsAngle(al(this.startInfo.angle)), h) {
|
|
38515
|
-
const
|
|
38516
|
-
l.position.copy(
|
|
38520
|
+
const w = new y.Vector3().subVectors(l.position, h).applyQuaternion(p).add(h);
|
|
38521
|
+
l.position.copy(w);
|
|
38517
38522
|
}
|
|
38518
38523
|
l.applyQuaternion(p), ec.premultiply(p), this.internalHooks.emit("applyObjectRotate", { quaternion: p, origin: h }), this.hooks.emit("rotate", l.quaternion), this.startInfo.startVector = f;
|
|
38519
38524
|
}
|
|
@@ -38623,12 +38628,12 @@ class WS extends jo {
|
|
|
38623
38628
|
if (!a || wS(a, this.camera.position))
|
|
38624
38629
|
return;
|
|
38625
38630
|
const l = new ue().addVectors(o[0], o[2]).divideScalar(2), { position: c, direction: h } = s, u = new ue().subVectors(o[1], o[0]), f = new ue().subVectors(o[3], o[0]), p = (I) => {
|
|
38626
|
-
const
|
|
38631
|
+
const C = new ue(0, 0, 0);
|
|
38627
38632
|
if (!this.startInfo)
|
|
38628
|
-
return
|
|
38633
|
+
return C;
|
|
38629
38634
|
const x = (I === "ew" ? u : f).clone(), k = c.clone().projectOnVector(x), L = a.clone().projectOnVector(x), R = l.clone().projectOnVector(x);
|
|
38630
38635
|
if (L.equals(k))
|
|
38631
|
-
return
|
|
38636
|
+
return C;
|
|
38632
38637
|
if (I === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
38633
38638
|
const ee = new ue().subVectors(L, R), K = ee.x < 0 && x.x >= 0, re = ee.y < 0 && x.y >= 0, ne = ee.z < 0 && x.z >= 0;
|
|
38634
38639
|
this.startInfo.dragPointInCenterBottom = K || re || ne;
|
|
@@ -38638,18 +38643,18 @@ class WS extends jo {
|
|
|
38638
38643
|
this.startInfo.dragPointInCenterLeft = K || re || ne;
|
|
38639
38644
|
}
|
|
38640
38645
|
const V = new ue().subVectors(L, k), J = V.length();
|
|
38641
|
-
return J > 0.3 ? (console.warn("offset.length() > 0.3, skipped", J),
|
|
38646
|
+
return J > 0.3 ? (console.warn("offset.length() > 0.3, skipped", J), C) : V;
|
|
38642
38647
|
}, g = p("ew"), v = p("ns"), m = () => {
|
|
38643
38648
|
const I = g;
|
|
38644
|
-
this.helperObject3D.cornerPositions.forEach((
|
|
38649
|
+
this.helperObject3D.cornerPositions.forEach((C, x) => {
|
|
38645
38650
|
var k;
|
|
38646
|
-
(k = this.startInfo) != null && k.dragPointInCenterLeft ? (x === 0 || x === 3) &&
|
|
38651
|
+
(k = this.startInfo) != null && k.dragPointInCenterLeft ? (x === 0 || x === 3) && C.add(I) : (x === 1 || x === 2) && C.add(I);
|
|
38647
38652
|
});
|
|
38648
38653
|
}, b = () => {
|
|
38649
38654
|
const I = v;
|
|
38650
|
-
this.helperObject3D.cornerPositions.forEach((
|
|
38655
|
+
this.helperObject3D.cornerPositions.forEach((C, x) => {
|
|
38651
38656
|
var k;
|
|
38652
|
-
(k = this.startInfo) != null && k.dragPointInCenterBottom ? (x === 0 || x === 1) &&
|
|
38657
|
+
(k = this.startInfo) != null && k.dragPointInCenterBottom ? (x === 0 || x === 1) && C.add(I) : (x === 2 || x === 3) && C.add(I);
|
|
38653
38658
|
});
|
|
38654
38659
|
};
|
|
38655
38660
|
switch (h) {
|
|
@@ -38663,7 +38668,7 @@ class WS extends jo {
|
|
|
38663
38668
|
case "nwse":
|
|
38664
38669
|
m(), b();
|
|
38665
38670
|
}
|
|
38666
|
-
const
|
|
38671
|
+
const w = new ue().subVectors(o[1], o[0]).length() / u.length(), M = new ue().subVectors(o[3], o[0]).length() / f.length(), E = new ue(w, M, 1), T = new y.Matrix4().scale(E);
|
|
38667
38672
|
i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(T) : i.scale.applyMatrix4(T), s.position.copy(a);
|
|
38668
38673
|
const S = new ue().addVectors(o[0], o[2]).divideScalar(2), _ = new ue().subVectors(S, l), H = new y.Matrix4().setPosition(_);
|
|
38669
38674
|
i.applyMatrix4(H), (Z = this.helperObject3D.css3DInstance) == null || Z.css3DObject.applyMatrix4(H), (A = this.helperObject3D.plane) == null || A.applyMatrix4(H), this.internalHooks.emit("applyObjectScale", { matrix: T }), this.internalHooks.emit("applyObjectPosition", { matrix: H }), this.render();
|
|
@@ -39058,7 +39063,7 @@ class l0 extends Xn {
|
|
|
39058
39063
|
* @param { boolean } config.scaleHelper 缩放helper
|
|
39059
39064
|
*/
|
|
39060
39065
|
addObject3DHelper(e, i = {}) {
|
|
39061
|
-
var
|
|
39066
|
+
var w;
|
|
39062
39067
|
if (!e) {
|
|
39063
39068
|
console.error("Object3D is undefined");
|
|
39064
39069
|
return;
|
|
@@ -39067,7 +39072,7 @@ class l0 extends Xn {
|
|
|
39067
39072
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
39068
39073
|
return;
|
|
39069
39074
|
}
|
|
39070
|
-
const s = new NS(), r = [], o = (
|
|
39075
|
+
const s = new NS(), r = [], o = (w = this.five.getElement()) == null ? void 0 : w.parentElement, a = this.five.camera, c = B(B({}, {
|
|
39071
39076
|
moveHelper: !0,
|
|
39072
39077
|
rotateHelper: !0,
|
|
39073
39078
|
scaleHelper: !0,
|
|
@@ -40360,7 +40365,7 @@ function CT(n, t, e) {
|
|
|
40360
40365
|
}), vi(() => {
|
|
40361
40366
|
m == null || m(), r == null || r.off("cameraUpdate", b);
|
|
40362
40367
|
});
|
|
40363
|
-
function
|
|
40368
|
+
function w(T) {
|
|
40364
40369
|
it[T ? "unshift" : "push"](() => {
|
|
40365
40370
|
v = T, e(8, v);
|
|
40366
40371
|
});
|
|
@@ -40394,7 +40399,7 @@ function CT(n, t, e) {
|
|
|
40394
40399
|
r,
|
|
40395
40400
|
o,
|
|
40396
40401
|
f,
|
|
40397
|
-
|
|
40402
|
+
w,
|
|
40398
40403
|
M,
|
|
40399
40404
|
E
|
|
40400
40405
|
];
|
|
@@ -42178,7 +42183,7 @@ function UT(n, t, e) {
|
|
|
42178
42183
|
let u, f, p;
|
|
42179
42184
|
const g = [], v = () => h.length > 0, m = () => g.length > 0, b = () => {
|
|
42180
42185
|
v() && (g.push(h.pop()), n.setPoints(h), E(p), t.pointSelectorHelper.magnifier.render());
|
|
42181
|
-
},
|
|
42186
|
+
}, w = () => {
|
|
42182
42187
|
m() && (h.push(g.pop()), n.setPoints(h), E(p), t.pointSelectorHelper.magnifier.render());
|
|
42183
42188
|
}, M = (S) => {
|
|
42184
42189
|
g.length = 0;
|
|
@@ -42202,7 +42207,7 @@ function UT(n, t, e) {
|
|
|
42202
42207
|
canUndo: v,
|
|
42203
42208
|
canRedo: m,
|
|
42204
42209
|
undo: b,
|
|
42205
|
-
redo:
|
|
42210
|
+
redo: w
|
|
42206
42211
|
};
|
|
42207
42212
|
}
|
|
42208
42213
|
class YT extends gl {
|
|
@@ -42565,7 +42570,7 @@ function au(n, t, e) {
|
|
|
42565
42570
|
o == null || o.add(c), t.enable();
|
|
42566
42571
|
const h = [];
|
|
42567
42572
|
let u, f, p = !1, g;
|
|
42568
|
-
const v = [], m = () => h.length > 0, b = () => v.length > 0,
|
|
42573
|
+
const v = [], m = () => h.length > 0, b = () => v.length > 0, w = () => {
|
|
42569
42574
|
m() && (v.push(h.pop()), T(g), t.pointSelectorHelper.magnifier.render());
|
|
42570
42575
|
}, M = () => {
|
|
42571
42576
|
b() && (h.push(v.pop()), T(g), t.pointSelectorHelper.magnifier.render());
|
|
@@ -42582,8 +42587,8 @@ function au(n, t, e) {
|
|
|
42582
42587
|
const I = h.at(-1).clone();
|
|
42583
42588
|
if (h.length < 3 && (a === "none" ? (u = Z.point, l.setPoints([I, u]), c.setPoints([])) : a === "xoz" ? (f = f != null ? f : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), t.plane = f, u = f.projectPoint(Z.point, new y.Vector3()), l.setPoints([I, u]), c.setPoints([u, Z.point])) : a === "y" && (h.length === 1 ? (u = Z.point, l.setPoints([I, u]), c.setPoints([])) : (f = f != null ? f : new y.Plane().setFromCoplanarPoints(h[0], h[1], new y.Vector3(0, 1, 0).add(h[0])), t.plane = f, u = f.projectPoint(Z.point, new y.Vector3()), l.setPoints([I, u]), c.setPoints([u, Z.point])))), h.length >= 3) {
|
|
42584
42589
|
u = n.projectPoint(Z.point);
|
|
42585
|
-
const
|
|
42586
|
-
|
|
42590
|
+
const C = h[0], x = 0.2;
|
|
42591
|
+
C.distanceTo(u) < x || C.distanceTo(Z.point) < x ? (u = C, Z.point.copy(C), t.pointSelectorHelper.updateWithIntersect(Z, { emitEvent: !1 }), p = !0) : p = !1, l.setPoints([I, u]), c.setPoints([u, Z.point]);
|
|
42587
42592
|
}
|
|
42588
42593
|
h.length >= 2 ? (n.setPoints([...h, u], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, l.setStyle({ lineColor: 16734553 }), c.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, l.setStyle({ lineColor: n.lineColor }), c.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]);
|
|
42589
42594
|
}, S = () => {
|
|
@@ -42595,7 +42600,7 @@ function au(n, t, e) {
|
|
|
42595
42600
|
finished: i,
|
|
42596
42601
|
canUndo: m,
|
|
42597
42602
|
canRedo: b,
|
|
42598
|
-
undo:
|
|
42603
|
+
undo: w,
|
|
42599
42604
|
redo: M
|
|
42600
42605
|
};
|
|
42601
42606
|
}
|
|
@@ -43098,16 +43103,16 @@ function e5(n, t, e) {
|
|
|
43098
43103
|
o.remove(l);
|
|
43099
43104
|
const H = E.raycaster.ray.intersectPlane(g, new y.Vector3()), Z = u[0].distanceTo(u[1]) / 2, A = new y.Vector3().lerpVectors(u[0], u[1], 0.5), I = new y.Vector3().subVectors(H, A).normalize();
|
|
43100
43105
|
f = new y.Vector3().addVectors(A, I.multiplyScalar(Z));
|
|
43101
|
-
const
|
|
43106
|
+
const C = [u[0], f, u[1]], x = I0(C, ht.modules.five.camera.position);
|
|
43102
43107
|
n.setPoints(x);
|
|
43103
43108
|
return;
|
|
43104
43109
|
}
|
|
43105
43110
|
}, b = () => {
|
|
43106
|
-
t.off("select", v), t.off("intersectionUpdate", m), t.off("disable",
|
|
43107
|
-
},
|
|
43111
|
+
t.off("select", v), t.off("intersectionUpdate", m), t.off("disable", w), t.disable(), o == null || o.remove(l, h, c);
|
|
43112
|
+
}, w = () => {
|
|
43108
43113
|
b(), o == null || o.remove(n), s(new Error("Cancelled"));
|
|
43109
43114
|
};
|
|
43110
|
-
return t.on("select", v), t.on("intersectionUpdate", m), t.on("disable",
|
|
43115
|
+
return t.on("select", v), t.on("intersectionUpdate", m), t.on("disable", w), i;
|
|
43111
43116
|
}
|
|
43112
43117
|
function t5(n, t, e) {
|
|
43113
43118
|
var M;
|
|
@@ -43119,7 +43124,7 @@ function t5(n, t, e) {
|
|
|
43119
43124
|
const u = [];
|
|
43120
43125
|
let f = new y.Vector3(), p = new y.Vector3();
|
|
43121
43126
|
const g = new y.Plane(), v = () => {
|
|
43122
|
-
u.push(f.clone()), u.length === 1 ? (t.planeMode = "onlyPlane", a === "y" && (t.adhereLine = [new y.Line3(u[0], new y.Vector3(0, 1, 0).add(u[0]))]), a === "xoz" && (g.setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), u[0]), t.plane = g), a === "none" && (g.setFromNormalAndCoplanarPoint(p, u[0]), t.plane = g)) : u.length === 2 ? (t.planeMode = "vertical", a === "y" && new y.Vector3(0, 1, 0).angleTo(u[0].clone().sub(u[1])) > Math.PI / 4 && (g.setFromCoplanarPoints(u[0], u[1], new y.Vector3(0, 1, 0).add(u[0])), t.plane = g), h.setPoints([u[0], u[1]])) : u.length === 3 && (b(), r());
|
|
43127
|
+
u.push(f.clone()), u.length === 1 ? (t.planeMode = "onlyPlane", a === "y" && (t.adhereLine = [new y.Line3(u[0], new y.Vector3(0, 1, 0).add(u[0]))]), a === "xoz" && (g.setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), u[0]), t.plane = g), a === "none" && (g.setFromNormalAndCoplanarPoint(p, u[0]), t.plane = g)) : u.length === 2 ? (t.planeMode = "vertical", a === "y" && (t.adhereLine = []), a === "y" && new y.Vector3(0, 1, 0).angleTo(u[0].clone().sub(u[1])) > Math.PI / 4 && (g.setFromCoplanarPoints(u[0], u[1], new y.Vector3(0, 1, 0).add(u[0])), t.plane = g), h.setPoints([u[0], u[1]])) : u.length === 3 && (b(), r());
|
|
43123
43128
|
}, m = (E) => {
|
|
43124
43129
|
var S, _, H, Z;
|
|
43125
43130
|
if (!E || !(E != null && E.raycaster))
|
|
@@ -43141,16 +43146,16 @@ function t5(n, t, e) {
|
|
|
43141
43146
|
c.setPoints([(Z = E.originalPoint) != null ? Z : E.point, E.point]);
|
|
43142
43147
|
const A = new y.Vector3().crossVectors(u[0].clone().sub(u[1]), g.normal).normalize();
|
|
43143
43148
|
f = new y.Line3(u[1].clone().add(A), u[1].clone().sub(A)).closestPointToPoint(E.point, !1, new y.Vector3());
|
|
43144
|
-
const
|
|
43149
|
+
const C = [u[0], u[1], f], x = I0(C, ht.modules.five.camera.position);
|
|
43145
43150
|
n.setPoints(x);
|
|
43146
43151
|
return;
|
|
43147
43152
|
}
|
|
43148
43153
|
}, b = () => {
|
|
43149
|
-
t.setAdherePoints([]), t.adhereLine = [], t.adherePlane = [], t.plane = void 0, t.off("select", v), t.off("intersectionUpdate", m), t.off("disable",
|
|
43150
|
-
},
|
|
43154
|
+
t.setAdherePoints([]), t.adhereLine = [], t.adherePlane = [], t.plane = void 0, t.off("select", v), t.off("intersectionUpdate", m), t.off("disable", w), t.disable(), o == null || o.remove(l, h, c);
|
|
43155
|
+
}, w = () => {
|
|
43151
43156
|
b(), o == null || o.remove(n), s(new Error("Cancelled"));
|
|
43152
43157
|
};
|
|
43153
|
-
return t.on("select", v), t.on("intersectionUpdate", m), t.on("disable",
|
|
43158
|
+
return t.on("select", v), t.on("intersectionUpdate", m), t.on("disable", w), i;
|
|
43154
43159
|
}
|
|
43155
43160
|
class E0 extends Bo {
|
|
43156
43161
|
constructor(t) {
|
|
@@ -43454,7 +43459,7 @@ function D0(n, t) {
|
|
|
43454
43459
|
const v = _n({
|
|
43455
43460
|
raycaster: g.raycaster,
|
|
43456
43461
|
line: new y.Line3(o, a)
|
|
43457
|
-
}), b = new y.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(v, new y.Vector3()),
|
|
43462
|
+
}), b = new y.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(v, new y.Vector3()), w = v.clone().sub(b), M = n.bottomCenter.clone().add(w);
|
|
43458
43463
|
v && n.setTopCenter(M);
|
|
43459
43464
|
}, f = () => {
|
|
43460
43465
|
t.off("select", h), t.off("intersectionUpdate", u), t.off("disable", p), e.remove(i), t.disable();
|
|
@@ -43642,8 +43647,8 @@ function T0(n, t, e) {
|
|
|
43642
43647
|
line: new y.Line3(h, u)
|
|
43643
43648
|
});
|
|
43644
43649
|
if (b) {
|
|
43645
|
-
const
|
|
43646
|
-
n.setPoints({ heightPoint: n.bottomPositions[0].clone().add(
|
|
43650
|
+
const w = b.clone().sub(c);
|
|
43651
|
+
n.setPoints({ heightPoint: n.bottomPositions[0].clone().add(w) });
|
|
43647
43652
|
}
|
|
43648
43653
|
}, g = () => {
|
|
43649
43654
|
t.off("select", f), t.off("intersectionUpdate", p), t.off("disable", v), t.disable(), r == null || r.remove(a);
|
|
@@ -43728,7 +43733,7 @@ function L0(n, t, e) {
|
|
|
43728
43733
|
let u, f, p;
|
|
43729
43734
|
const g = [], v = () => h.length > 0, m = () => g.length > 0, b = () => {
|
|
43730
43735
|
v() && (g.push(h.pop()), n.setPoints(h), E(p), t.pointSelectorHelper.magnifier.render());
|
|
43731
|
-
},
|
|
43736
|
+
}, w = () => {
|
|
43732
43737
|
m() && (h.push(g.pop()), n.setPoints(h), E(p), t.pointSelectorHelper.magnifier.render());
|
|
43733
43738
|
}, M = (H) => {
|
|
43734
43739
|
if (!H)
|
|
@@ -43759,7 +43764,7 @@ function L0(n, t, e) {
|
|
|
43759
43764
|
canUndo: v,
|
|
43760
43765
|
canRedo: m,
|
|
43761
43766
|
undo: b,
|
|
43762
|
-
redo:
|
|
43767
|
+
redo: w
|
|
43763
43768
|
};
|
|
43764
43769
|
}
|
|
43765
43770
|
const er = class extends wt {
|
|
@@ -44274,7 +44279,7 @@ class u5 extends mn {
|
|
|
44274
44279
|
});
|
|
44275
44280
|
this.items.push(u);
|
|
44276
44281
|
} else if (r.type === "box") {
|
|
44277
|
-
const a = new Cr(), { start: l, end: c, rotation: h = [0, 0, 0, 0] } = r.object_data, u = new y.Vector3().fromArray(l), f = new y.Vector3().fromArray(c), p = new y.Euler().fromArray(h), g = new y.Quaternion().setFromEuler(p), v = g.clone().inverse(), m = new y.Vector3().lerpVectors(u, f, 0.5), b = m.clone().negate(),
|
|
44282
|
+
const a = new Cr(), { start: l, end: c, rotation: h = [0, 0, 0, 0] } = r.object_data, u = new y.Vector3().fromArray(l), f = new y.Vector3().fromArray(c), p = new y.Euler().fromArray(h), g = new y.Quaternion().setFromEuler(p), v = g.clone().inverse(), m = new y.Vector3().lerpVectors(u, f, 0.5), b = m.clone().negate(), w = u.clone().add(b).applyQuaternion(v), M = f.clone().add(b).applyQuaternion(v), E = new y.Box3(w.clone().max(M), w.clone().min(M));
|
|
44278
44283
|
a.setPoints({
|
|
44279
44284
|
points: [On(E, 2), On(E, 3), On(E, 7), On(E, 6)],
|
|
44280
44285
|
heightPoint: On(E, 1)
|