@realsee/dnalogel 3.3.0-dev.2 → 3.3.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -1
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +1907 -1898
- package/dist/index.umd.js +41 -41
- package/dist/shared-utils/three/getIntersect.d.ts +2 -3
- package/dist/shared-utils/three/loadTexture.d.ts +5 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +18 -18
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +40 -40
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +7 -7
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/CurrentPanoImagePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/PipelinePlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +13 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelId.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +52 -57
- package/libs/PanoVideoPlugin/utils/shader.js +9 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/getIntersect.d.ts +2 -3
- package/libs/shared-utils/three/loadTexture.d.ts +5 -1
- package/libs/shared-utils/three/loadTexture.js +28 -19
- package/package.json +2 -2
|
@@ -46,7 +46,10 @@ declare class VideoPlane extends MediaPlane {
|
|
|
46
46
|
videoCoverSrc?: string;
|
|
47
47
|
objectFit?: ObjectFit;
|
|
48
48
|
videoTextureMap?: Map<Src, VideoTexture>;
|
|
49
|
-
ImageTextureMap?: Map<Src,
|
|
49
|
+
ImageTextureMap?: Map<Src, {
|
|
50
|
+
texture: ImageTexture;
|
|
51
|
+
transparent: boolean;
|
|
52
|
+
}>;
|
|
50
53
|
domEvents?: FiveDomEvents;
|
|
51
54
|
});
|
|
52
55
|
play(muted?: boolean): Promise<void>;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var B = (c,
|
|
3
|
-
var r = (c,
|
|
4
|
-
var v = (c,
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var B = (c, h, e) => h in c ? F(c, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[h] = e;
|
|
3
|
+
var r = (c, h, e) => (B(c, typeof h != "symbol" ? h + "" : h, e), e);
|
|
4
|
+
var v = (c, h, e) => new Promise((i, t) => {
|
|
5
5
|
var n = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
o(e.next(s));
|
|
8
|
-
} catch (
|
|
9
|
-
t(
|
|
8
|
+
} catch (u) {
|
|
9
|
+
t(u);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, a = (s) => {
|
|
12
12
|
try {
|
|
13
13
|
o(e.throw(s));
|
|
14
|
-
} catch (
|
|
15
|
-
t(
|
|
14
|
+
} catch (u) {
|
|
15
|
+
t(u);
|
|
16
16
|
}
|
|
17
|
-
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(n,
|
|
18
|
-
o((e = e.apply(c,
|
|
17
|
+
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(n, a);
|
|
18
|
+
o((e = e.apply(c, h)).next());
|
|
19
19
|
});
|
|
20
|
-
import * as
|
|
21
|
-
import { Vector3 as
|
|
22
|
-
import { centerPoint as
|
|
23
|
-
import {
|
|
24
|
-
import { QuadrangleGeometry as
|
|
25
|
-
import { getVideoTexture as
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
27
|
-
import { getPositionsByObjectFit as
|
|
20
|
+
import * as I from "three";
|
|
21
|
+
import { Vector3 as w } from "three";
|
|
22
|
+
import { centerPoint as b } from "../../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import { loadPicture as x } from "../../../shared-utils/three/loadTexture.js";
|
|
24
|
+
import { QuadrangleGeometry as V, QuadrangleMesh as P } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
+
import { getVideoTexture as H } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as L, Image_Play_Icon as T } from "../../Assets/Icon.js";
|
|
27
|
+
import { getPositionsByObjectFit as g } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
28
|
import { FragmentTransparencyMaterial as R } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
|
-
import { getNormal as
|
|
29
|
+
import { getNormal as E } from "../../../shared-utils/three/getNormal.js";
|
|
30
30
|
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
31
31
|
import "../../../shared-utils/device.js";
|
|
32
|
-
class
|
|
32
|
+
class C extends I.Mesh {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
r(this, "name", "MediaPlane");
|
|
@@ -50,44 +50,42 @@ class E extends p.Mesh {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
class $ extends
|
|
53
|
+
class $ extends C {
|
|
54
54
|
constructor(e, i, t) {
|
|
55
55
|
var o;
|
|
56
56
|
super();
|
|
57
57
|
r(this, "name", "PanoTagPluginImagePlane");
|
|
58
58
|
this.src = e;
|
|
59
59
|
const n = (o = t == null ? void 0 : t.resolveZFighting) != null ? o : !0;
|
|
60
|
-
let
|
|
60
|
+
let a = i;
|
|
61
61
|
if (n) {
|
|
62
|
-
const s =
|
|
63
|
-
|
|
62
|
+
const s = E(i, 5e-4);
|
|
63
|
+
a = i.map((u) => u.clone().add(s));
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(g = t == null ? void 0 : t.objectFit) != null ? g : "contain",
|
|
71
|
-
h,
|
|
65
|
+
x(e).then(({ texture: s, transparent: u }) => {
|
|
66
|
+
var p;
|
|
67
|
+
const M = new I.MeshBasicMaterial({ map: s, transparent: u }), d = g(
|
|
68
|
+
(p = t == null ? void 0 : t.objectFit) != null ? p : "contain",
|
|
69
|
+
a,
|
|
72
70
|
s.image.width / s.image.height
|
|
73
|
-
), l =
|
|
74
|
-
this.position.copy(l), this.geometry =
|
|
71
|
+
), l = b(...d), m = d.map((y) => y.clone().sub(l)), f = new V(m);
|
|
72
|
+
this.position.copy(l), this.geometry = f, this.material = M;
|
|
75
73
|
}).catch((s) => {
|
|
76
74
|
console.error(`Imageplane error ${s == null ? void 0 : s.message}`);
|
|
77
75
|
});
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
|
-
class q extends
|
|
78
|
+
class q extends C {
|
|
81
79
|
// eslint-disable-next-line max-params
|
|
82
80
|
constructor(e, i, t) {
|
|
83
81
|
const {
|
|
84
82
|
videoCoverSrc: n,
|
|
85
|
-
objectFit:
|
|
83
|
+
objectFit: a = "contain",
|
|
86
84
|
playButton: o = "withText",
|
|
87
85
|
paused: s = !0,
|
|
88
|
-
videoTextureMap:
|
|
89
|
-
ImageTextureMap:
|
|
90
|
-
domEvents:
|
|
86
|
+
videoTextureMap: u,
|
|
87
|
+
ImageTextureMap: M,
|
|
88
|
+
domEvents: d
|
|
91
89
|
} = t != null ? t : {};
|
|
92
90
|
super();
|
|
93
91
|
r(this, "isVideoPlane", !0);
|
|
@@ -105,7 +103,7 @@ class q extends E {
|
|
|
105
103
|
r(this, "buttonMesh");
|
|
106
104
|
r(this, "videoTextureMap");
|
|
107
105
|
r(this, "ImageTextureMap");
|
|
108
|
-
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => o === "withText" ?
|
|
106
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => o === "withText" ? L : o === "withoutText" ? T : typeof o == "string" ? o : T)(), this.videoCoverSrc = n, this.objectFit = a, this.videoTextureMap = u, this.ImageTextureMap = M, this.domEvents = d, this.position.copy(b(...i)), this.videoCoverSrc && s ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
109
107
|
s ? this.addButtonMesh() : this.play(!0);
|
|
110
108
|
}), this.addEventListener("removed", () => {
|
|
111
109
|
this.remove(...this.children);
|
|
@@ -152,11 +150,8 @@ class q extends E {
|
|
|
152
150
|
return this.coverMesh;
|
|
153
151
|
if (!this.videoCoverSrc)
|
|
154
152
|
return;
|
|
155
|
-
const i = yield this.getImageTexture(this.videoCoverSrc);
|
|
156
|
-
|
|
157
|
-
return;
|
|
158
|
-
const t = new p.MeshBasicMaterial({ transparent: !1, map: i }), n = f(this.objectFit, this.cornerPoints, i.image.width / i.image.height), h = new w(n, t);
|
|
159
|
-
return h.position.copy(new I(0, 0, 0)), h.name = "videoCoverMesh", h;
|
|
153
|
+
const { texture: i, transparent: t } = yield this.getImageTexture(this.videoCoverSrc), n = new I.MeshBasicMaterial({ transparent: !1, map: i }), a = g(this.objectFit, this.cornerPoints, i.image.width / i.image.height), o = new P(a, n);
|
|
154
|
+
return o.position.copy(new w(0, 0, 0)), o.name = "videoCoverMesh", o;
|
|
160
155
|
}))();
|
|
161
156
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
162
157
|
});
|
|
@@ -170,13 +165,13 @@ class q extends E {
|
|
|
170
165
|
return this.videoMesh;
|
|
171
166
|
if (!this.src)
|
|
172
167
|
return;
|
|
173
|
-
const t = this.getVideoTexture(this.src), n = new
|
|
174
|
-
t.metadataLoaded ? s(
|
|
168
|
+
const t = this.getVideoTexture(this.src), n = new I.MeshBasicMaterial({ transparent: !1, map: t }), a = yield new Promise((s) => {
|
|
169
|
+
t.metadataLoaded ? s(g(this.objectFit, this.cornerPoints, t.image.videoWidth / t.image.videoHeight)) : t.addEventListener(
|
|
175
170
|
"videoLoaded",
|
|
176
|
-
() => s(
|
|
171
|
+
() => s(g(this.objectFit, this.cornerPoints, t.image.videoWidth / t.image.videoHeight))
|
|
177
172
|
);
|
|
178
|
-
}), o = new
|
|
179
|
-
return o.name = "videoMesh", o.position.copy(new
|
|
173
|
+
}), o = new P(a, n);
|
|
174
|
+
return o.name = "videoMesh", o.position.copy(new w(0, 0, 0)), o;
|
|
180
175
|
}))();
|
|
181
176
|
if (!e)
|
|
182
177
|
return;
|
|
@@ -196,15 +191,15 @@ class q extends E {
|
|
|
196
191
|
if (this.children.includes(this.buttonMesh))
|
|
197
192
|
return;
|
|
198
193
|
const e = yield (() => v(this, null, function* () {
|
|
199
|
-
var
|
|
194
|
+
var m, f, p, y;
|
|
200
195
|
if (this.buttonMesh)
|
|
201
196
|
return this.buttonMesh;
|
|
202
|
-
const i = (
|
|
203
|
-
|
|
197
|
+
const i = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, t = (y = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? y : 1 / 0, n = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), o = Math.min(i, t, n) / n * 0.3, { texture: s, transparent: u } = yield this.getImageTexture(this.buttonSrc), M = g("contain", this.cornerPoints, s.image.width / s.image.height), d = new P(M, new R(s));
|
|
198
|
+
d.position.copy(new w(0, 0, 0)), d.name = "buttonMesh", d.scale.set(o, o, o), this.domEvents.addAutoBindEventListener(d, "click", () => {
|
|
204
199
|
this.play();
|
|
205
200
|
});
|
|
206
|
-
const
|
|
207
|
-
return
|
|
201
|
+
const l = E(M, 5e-4);
|
|
202
|
+
return d.position.add(l), d;
|
|
208
203
|
}))();
|
|
209
204
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
210
205
|
});
|
|
@@ -214,7 +209,7 @@ class q extends E {
|
|
|
214
209
|
var t, n;
|
|
215
210
|
if ((t = this.ImageTextureMap) != null && t.has(e))
|
|
216
211
|
return this.ImageTextureMap.get(e);
|
|
217
|
-
const i = yield
|
|
212
|
+
const i = yield x(e);
|
|
218
213
|
return (n = this.ImageTextureMap) == null || n.set(e, i), i;
|
|
219
214
|
});
|
|
220
215
|
}
|
|
@@ -222,7 +217,7 @@ class q extends E {
|
|
|
222
217
|
var t, n;
|
|
223
218
|
if ((t = this.videoTextureMap) != null && t.has(e))
|
|
224
219
|
return this.videoTextureMap.get(e);
|
|
225
|
-
const i =
|
|
220
|
+
const i = H(e);
|
|
226
221
|
return (n = this.videoTextureMap) == null || n.set(e, i), i;
|
|
227
222
|
}
|
|
228
223
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
const v =
|
|
1
|
+
const v = (
|
|
2
|
+
/* glsl */
|
|
3
|
+
`
|
|
2
4
|
varying vec2 vUv;
|
|
3
5
|
void main() {
|
|
4
6
|
vUv = uv;
|
|
5
7
|
vec4 mvPosition = modelViewMatrix * vec4(position, 1);
|
|
6
8
|
gl_Position = projectionMatrix * mvPosition;
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
`
|
|
11
|
+
), a = (
|
|
12
|
+
/* glsl */
|
|
13
|
+
`
|
|
9
14
|
uniform sampler2D map;
|
|
10
15
|
uniform vec4 size;
|
|
11
16
|
varying vec2 vUv;
|
|
@@ -18,7 +23,8 @@ void main() {
|
|
|
18
23
|
float match = (1.0 - step(0.5, abs(uv.x - 0.5))) * (1.0 - step(0.5, abs(uv.y - 0.5))) * (transX < transY ? transX : transY);
|
|
19
24
|
gl_FragColor = vec4(texture2D(map, uv).xyz, match);
|
|
20
25
|
}
|
|
21
|
-
|
|
26
|
+
`
|
|
27
|
+
);
|
|
22
28
|
export {
|
|
23
29
|
a as fragmentShader,
|
|
24
30
|
v as vertexShader
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.3.0-dev.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.3.0-dev.4",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Five } from '@realsee/five';
|
|
1
|
+
import type { Five, Intersection } from '@realsee/five';
|
|
3
2
|
export declare function getIntersectFromRelativePosition(five: Five, position: {
|
|
4
3
|
x: number;
|
|
5
4
|
y: number;
|
|
6
|
-
}):
|
|
5
|
+
}): Intersection;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
export declare function loadTexture(
|
|
2
|
+
export declare function loadTexture(uri: string): Promise<THREE.Texture>;
|
|
3
|
+
export declare function loadPicture(uri: string): Promise<{
|
|
4
|
+
texture: THREE.Texture;
|
|
5
|
+
transparent: boolean;
|
|
6
|
+
}>;
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var s = (t, e, n) => new Promise((d, c) => {
|
|
2
|
+
var l = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
o(n.next(r));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
c(i);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, h = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
o(n.throw(r));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
c(i);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, o = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(l, h);
|
|
15
|
+
o((n = n.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import * as
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
return new Promise((
|
|
22
|
-
|
|
23
|
-
}).then((
|
|
17
|
+
import * as a from "three";
|
|
18
|
+
const m = new a.TextureLoader();
|
|
19
|
+
function p(t) {
|
|
20
|
+
return s(this, null, function* () {
|
|
21
|
+
return new Promise((e, n) => {
|
|
22
|
+
m.load(t, e, void 0, n);
|
|
23
|
+
}).then((e) => (e.encoding = a.sRGBEncoding, e));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function g(t) {
|
|
27
|
+
return s(this, null, function* () {
|
|
28
|
+
return p(t).then((e) => {
|
|
29
|
+
const n = t.startsWith("data:") ? t.includes("png") : new URL(t, location.href).pathname.toLowerCase().endsWith(".png");
|
|
30
|
+
return n && (e.minFilter = a.NearestFilter, e.magFilter = a.NearestFilter), { texture: e, transparent: n };
|
|
31
|
+
});
|
|
24
32
|
});
|
|
25
33
|
}
|
|
26
34
|
export {
|
|
27
|
-
|
|
35
|
+
g as loadPicture,
|
|
36
|
+
p as loadTexture
|
|
28
37
|
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.3.0-dev.
|
|
10
|
+
"version": "3.3.0-dev.4",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.22.9",
|
|
39
|
-
"@realsee/five": "6.0.0-alpha.
|
|
39
|
+
"@realsee/five": "6.0.0-alpha.34",
|
|
40
40
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
41
41
|
"@tsconfig/svelte": "^4.0.1",
|
|
42
42
|
"@tweenjs/tween.js": "^20.0.3",
|