@realsee/dnalogel 2.2.6 → 2.2.7
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/docs/assets/main.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- 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/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +33 -33
- package/package.json +17 -17
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,80 +1,85 @@
|
|
|
1
|
-
var C = (t, s, e) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var C = (t, s, e) => new Promise((P, E) => {
|
|
2
|
+
var h = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
l(e.next(r));
|
|
5
5
|
} catch (m) {
|
|
6
6
|
E(m);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, x = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
l(e.throw(r));
|
|
11
11
|
} catch (m) {
|
|
12
12
|
E(m);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, l = (r) => r.done ? P(r.value) : Promise.resolve(r.value).then(h, x);
|
|
15
|
+
l((e = e.apply(t, s)).next());
|
|
16
16
|
});
|
|
17
|
-
import * as
|
|
18
|
-
import { MeshBasicMaterial as
|
|
17
|
+
import * as S from "three";
|
|
18
|
+
import { MeshBasicMaterial as z, AnimationMixer as B } from "three";
|
|
19
19
|
import { FBXLoader as _ } from "three/examples/jsm/loaders/FBXLoader";
|
|
20
|
-
import { createCanvasTextTexture as
|
|
21
|
-
import { transformPositionToVector3 as
|
|
22
|
-
import { transfromToMeshBasicMaterial as
|
|
20
|
+
import { createCanvasTextTexture as v } from "../shared-utils/createCanvasTextTexture.js";
|
|
21
|
+
import { transformPositionToVector3 as H } from "../shared-utils/three/transformPositionToVector3.js";
|
|
22
|
+
import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
23
23
|
const K = (t, s) => {
|
|
24
|
-
var
|
|
25
|
-
const e = {},
|
|
26
|
-
var u, b, M, f, p, j,
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
24
|
+
var G, T, R;
|
|
25
|
+
const e = {}, P = (G = s.animationEnabled) != null ? G : !0, E = (T = s.position) != null ? T : void 0, h = (R = s.rad) != null ? R : void 0, x = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", l = [], r = (o) => C(void 0, null, function* () {
|
|
26
|
+
var u, b, M, f, p, j, y, q;
|
|
27
|
+
const c = (u = o == null ? void 0 : o.position) != null ? u : E;
|
|
28
|
+
if (!c)
|
|
29
29
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
30
|
-
const i =
|
|
31
|
-
if (e.rad =
|
|
32
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${
|
|
33
|
-
const a = yield new _().loadAsync(
|
|
34
|
-
a.position.copy(i), a.rotation.z =
|
|
35
|
-
const d = (
|
|
30
|
+
const i = H(c), n = (b = o == null ? void 0 : o.rad) != null ? b : h, A = (M = o == null ? void 0 : o.fbx_url) != null ? M : x;
|
|
31
|
+
if (e.rad = n, n === void 0)
|
|
32
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`));
|
|
33
|
+
const a = yield new _().loadAsync(A);
|
|
34
|
+
a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: S.DoubleSide });
|
|
35
|
+
const d = (y = (j = (p = (f = a.children) == null ? void 0 : f[0]) == null ? void 0 : p.children) == null ? void 0 : j[3]) == null ? void 0 : y.clone();
|
|
36
36
|
if (!d)
|
|
37
37
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`));
|
|
38
38
|
const w = (q = s.name) != null ? q : "\u5165\u6237\u95E8";
|
|
39
|
-
return d.material = new
|
|
39
|
+
return d.material = new z({ transparent: !0, map: v(w) }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0;
|
|
40
40
|
}), m = () => {
|
|
41
41
|
if (e.animation)
|
|
42
42
|
return;
|
|
43
43
|
if (!e.object)
|
|
44
44
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const i =
|
|
48
|
-
i.timeScale =
|
|
49
|
-
let
|
|
50
|
-
const
|
|
45
|
+
const o = 1, c = new B(e.object);
|
|
46
|
+
l.push(c);
|
|
47
|
+
const i = c.clipAction(e.object.animations[0]);
|
|
48
|
+
i.timeScale = o;
|
|
49
|
+
let n;
|
|
50
|
+
const A = () => {
|
|
51
51
|
let u = 0, b = 0;
|
|
52
52
|
const M = 1e3 / 30, f = (p) => {
|
|
53
53
|
u = requestAnimationFrame(f);
|
|
54
54
|
const j = p - b;
|
|
55
|
-
j < M || (b = p,
|
|
55
|
+
j < M || (b = p, l.forEach((y) => y.update(j / 1e3)), t.needsRender = !0);
|
|
56
56
|
};
|
|
57
57
|
return u = requestAnimationFrame(f), () => {
|
|
58
58
|
cancelAnimationFrame(u);
|
|
59
59
|
};
|
|
60
60
|
}, w = { play: () => {
|
|
61
|
-
|
|
61
|
+
n || (i.play(), n = A(), requestAnimationFrame(() => {
|
|
62
62
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
63
63
|
}));
|
|
64
64
|
}, stop: () => {
|
|
65
|
-
i.stop(),
|
|
65
|
+
i.stop(), n == null || n(), n = void 0;
|
|
66
66
|
} };
|
|
67
67
|
e.animation = w;
|
|
68
|
-
},
|
|
68
|
+
}, g = (o) => {
|
|
69
69
|
var i;
|
|
70
70
|
if (!e.object)
|
|
71
71
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
72
|
-
((i =
|
|
73
|
-
},
|
|
72
|
+
((i = o == null ? void 0 : o.animationEnable) != null ? i : P) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
|
|
73
|
+
}, F = () => {
|
|
74
74
|
!e.object || (e.animation && e.animation.stop(), t.scene.remove(e.object), t.needsRender = !0);
|
|
75
|
-
},
|
|
76
|
-
return { load: r, enable: (
|
|
75
|
+
}, D = (o) => o === "Floorplan" ? g() : F();
|
|
76
|
+
return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, D(t.currentMode), t.on("modeChange", D), g(o)), !0), disable: () => (e.enabled && (e.enabled = !1, F(), t.off("modeChange", D)), !0) };
|
|
77
|
+
}, N = {
|
|
78
|
+
name: "ModelEntryDoorGuidePlugin",
|
|
79
|
+
version: 0
|
|
77
80
|
};
|
|
78
81
|
export {
|
|
79
|
-
K as ModelEntryDoorGuidePlugin
|
|
82
|
+
K as ModelEntryDoorGuidePlugin,
|
|
83
|
+
K as default,
|
|
84
|
+
N as modelEntryDoorGuidePluginServerParams
|
|
80
85
|
};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelEntryDoorGuidePlugin as u, ModelEntryDoorGuidePlugin as n } from "./Plugin.js";
|
|
1
3
|
import "three";
|
|
2
4
|
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
|
+
import "../shared-utils/createCanvasTextTexture.js";
|
|
6
|
+
import "../shared-utils/three/transformPositionToVector3.js";
|
|
7
|
+
import "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
8
|
+
export {
|
|
9
|
+
u as ModelEntryDoorGuidePlugin,
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { Subscribe as
|
|
1
|
+
import { Subscribe as y, Five as s } from "@realsee/five";
|
|
2
2
|
import L from "./ItemLabelComponent.js";
|
|
3
3
|
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
4
4
|
import { parseModelItemLabelPluginData as E } from "./utils/parseData.js";
|
|
5
|
-
|
|
5
|
+
import "../vendor/svelte/internal/index.js";
|
|
6
|
+
import "three";
|
|
7
|
+
import "./ItemLabelItem.js";
|
|
8
|
+
import "classnames";
|
|
9
|
+
import "../shared-utils/debounce.js";
|
|
10
|
+
const C = (n, o) => {
|
|
6
11
|
var a, d;
|
|
7
12
|
const e = {
|
|
8
13
|
container: document.createElement("div"),
|
|
@@ -12,7 +17,7 @@ const T = (t, o) => {
|
|
|
12
17
|
itemLabels: [],
|
|
13
18
|
wrapper: null,
|
|
14
19
|
app: void 0,
|
|
15
|
-
hooks: new
|
|
20
|
+
hooks: new y(),
|
|
16
21
|
modelOcclusionEnable: (a = o == null ? void 0 : o.modelOcclusionEnable) != null ? a : !0,
|
|
17
22
|
displayStrategyType: (d = o == null ? void 0 : o.displayStrategyType) != null ? d : g.SMALL
|
|
18
23
|
};
|
|
@@ -24,24 +29,24 @@ const T = (t, o) => {
|
|
|
24
29
|
height: 100%;
|
|
25
30
|
z-index: 5;
|
|
26
31
|
`, e.container.style.pointerEvents = "none";
|
|
27
|
-
const p = (
|
|
28
|
-
e.itemLabels = E(
|
|
29
|
-
}, u = () => (e.enabled || (e.enabled = !0,
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
var
|
|
32
|
+
const p = (t) => (e.wrapper = t, t.appendChild(e.container), r(), !0), c = (t) => {
|
|
33
|
+
e.itemLabels = E(t), r();
|
|
34
|
+
}, u = () => (e.enabled || (e.enabled = !0, r()), !0), b = () => (e.enabled && (e.enabled = !1, r()), !0), i = () => {
|
|
35
|
+
f(), e.container.remove();
|
|
36
|
+
}, r = () => {
|
|
37
|
+
var t;
|
|
33
38
|
if (!!e.wrapper) {
|
|
34
39
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
35
|
-
(
|
|
40
|
+
(t = e.app) == null || t.$destroy(), e.app = void 0;
|
|
36
41
|
return;
|
|
37
42
|
}
|
|
38
43
|
e.app ? e.app.$set({
|
|
39
|
-
five:
|
|
44
|
+
five: n,
|
|
40
45
|
itemLabels: e.itemLabels
|
|
41
46
|
}) : e.app = new L({
|
|
42
47
|
target: e.container,
|
|
43
48
|
props: {
|
|
44
|
-
five:
|
|
49
|
+
five: n,
|
|
45
50
|
modelOcclusionEnable: e.modelOcclusionEnable,
|
|
46
51
|
itemLabels: e.itemLabels,
|
|
47
52
|
wrapper: e.wrapper,
|
|
@@ -51,17 +56,17 @@ const T = (t, o) => {
|
|
|
51
56
|
});
|
|
52
57
|
}
|
|
53
58
|
}, m = () => {
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
59
|
+
n.on("modeChange", l), n.once("dispose", i);
|
|
60
|
+
}, f = () => {
|
|
61
|
+
n.off("modeChange", l);
|
|
62
|
+
}, l = (t) => {
|
|
58
63
|
if (!!e.enabled) {
|
|
59
|
-
if (
|
|
60
|
-
e.fiveModeEnabled = !1,
|
|
64
|
+
if (t !== s.Mode.Floorplan) {
|
|
65
|
+
e.fiveModeEnabled = !1, r();
|
|
61
66
|
return;
|
|
62
67
|
}
|
|
63
|
-
|
|
64
|
-
e.fiveModeEnabled =
|
|
68
|
+
n.once("initAnimationEnded", () => {
|
|
69
|
+
e.fiveModeEnabled = n.currentMode === s.Mode.Floorplan, r();
|
|
65
70
|
});
|
|
66
71
|
}
|
|
67
72
|
};
|
|
@@ -70,10 +75,11 @@ const T = (t, o) => {
|
|
|
70
75
|
load: c,
|
|
71
76
|
enable: u,
|
|
72
77
|
disable: b,
|
|
73
|
-
dispose:
|
|
78
|
+
dispose: i,
|
|
74
79
|
hooks: e.hooks
|
|
75
80
|
};
|
|
76
81
|
};
|
|
77
82
|
export {
|
|
78
|
-
|
|
83
|
+
C as ModelItemLabelPlugin,
|
|
84
|
+
C as default
|
|
79
85
|
};
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import "./ModelItemLabelPlugin.js";
|
|
2
|
+
import { ModelItemLabelPlugin as I, ModelItemLabelPlugin as L } from "./ModelItemLabelPlugin.js";
|
|
3
|
+
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
1
4
|
import "@realsee/five";
|
|
5
|
+
import "./ItemLabelComponent.js";
|
|
2
6
|
import "../vendor/svelte/internal/index.js";
|
|
3
7
|
import "three";
|
|
8
|
+
import "./ItemLabelItem.js";
|
|
4
9
|
import "classnames";
|
|
5
|
-
|
|
10
|
+
import "../shared-utils/debounce.js";
|
|
11
|
+
import "./utils/parseData.js";
|
|
12
|
+
const P = {
|
|
6
13
|
name: "ModelItemLabelPlugin",
|
|
7
14
|
version: 0
|
|
8
15
|
};
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
g as DISPLAY_STRATEGY_TYPE,
|
|
18
|
+
I as ModelItemLabelPlugin,
|
|
19
|
+
L as default,
|
|
20
|
+
P as modelItemLabelPluginServerParams
|
|
11
21
|
};
|
|
@@ -3,7 +3,11 @@ var n = (t, e, o) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (t, e, o) => (n(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import r from "./RoomLabelItems.js";
|
|
5
5
|
import { parseModelRoomLabelPluginData as a } from "./utils/parseData.js";
|
|
6
|
-
|
|
6
|
+
import "../vendor/svelte/internal/index.js";
|
|
7
|
+
import "three";
|
|
8
|
+
import "./RoomLabelItem.js";
|
|
9
|
+
import "./Assets/roomLabelBg.js";
|
|
10
|
+
class c {
|
|
7
11
|
constructor(e) {
|
|
8
12
|
i(this, "five");
|
|
9
13
|
i(this, "enabled", !0);
|
|
@@ -56,5 +60,5 @@ class p {
|
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
export {
|
|
59
|
-
|
|
63
|
+
c as ModelRoomLabelController
|
|
60
64
|
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { ModelRoomLabelController as e } from "./Controller.js";
|
|
2
|
-
|
|
2
|
+
import "./RoomLabelItems.js";
|
|
3
|
+
import "../vendor/svelte/internal/index.js";
|
|
4
|
+
import "three";
|
|
5
|
+
import "./RoomLabelItem.js";
|
|
6
|
+
import "./Assets/roomLabelBg.js";
|
|
7
|
+
import "./utils/parseData.js";
|
|
8
|
+
const p = (o) => new e(o), d = {
|
|
3
9
|
name: "ModelRoomLabelPlugin",
|
|
4
10
|
version: 0
|
|
5
11
|
};
|
|
6
12
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
p as ModelRoomLabelPlugin,
|
|
14
|
+
p as default,
|
|
15
|
+
d as modelRoomLabelPluginServerParams
|
|
9
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
var F = (s, b, e) => new Promise((m,
|
|
1
|
+
var F = (s, b, e) => new Promise((m, x) => {
|
|
2
2
|
var w = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
y
|
|
4
|
+
h(e.next(l));
|
|
5
|
+
} catch (y) {
|
|
6
|
+
x(y);
|
|
7
7
|
}
|
|
8
8
|
}, E = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
y
|
|
10
|
+
h(e.throw(l));
|
|
11
|
+
} catch (y) {
|
|
12
|
+
x(y);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, h = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, E);
|
|
15
|
+
h((e = e.apply(s, b)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as d from "three";
|
|
18
18
|
import { parseModelTVVideoPoints as I } from "./utils/parseData.js";
|
|
19
19
|
import { CSS3DRenderPlugin as O } from "../CSS3DRenderPlugin/index.js";
|
|
20
|
-
|
|
20
|
+
import "./typings.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
23
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
24
|
+
import "../shared-utils/Subscribe.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
29
|
+
const X = (s, { videoElement: b }) => {
|
|
21
30
|
const e = {
|
|
22
31
|
videoMeshes: [],
|
|
23
32
|
videoTextureEnabled: !1,
|
|
@@ -25,12 +34,12 @@ const C = (s, { videoElement: b }) => {
|
|
|
25
34
|
rectPoints: [],
|
|
26
35
|
enabled: !1,
|
|
27
36
|
videoElement: b
|
|
28
|
-
}, m = O(s),
|
|
37
|
+
}, m = O(s), x = /* @__PURE__ */ new Map(), w = (t) => {
|
|
29
38
|
e.videoTexture && (e.videoTexture.image.muted = t);
|
|
30
|
-
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0,
|
|
39
|
+
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
|
|
31
40
|
if (e.enabled || !e.videoTexture)
|
|
32
41
|
return;
|
|
33
|
-
e.enabled = !0, e.videoMeshes =
|
|
42
|
+
e.enabled = !0, e.videoMeshes = y(), e.videoMeshes.forEach((n) => s.scene.add(n));
|
|
34
43
|
const t = () => {
|
|
35
44
|
if (!e.videoTexture)
|
|
36
45
|
return;
|
|
@@ -56,7 +65,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
56
65
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
57
66
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
58
67
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
59
|
-
},
|
|
68
|
+
}, y = () => e.rectPoints.map((t, n) => {
|
|
60
69
|
const i = new d.BufferGeometry(), o = 128, a = [];
|
|
61
70
|
a.push(...t[0].toArray());
|
|
62
71
|
for (let r = 1; r < o; r++)
|
|
@@ -87,10 +96,10 @@ const C = (s, { videoElement: b }) => {
|
|
|
87
96
|
i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
88
97
|
const f = new d.AxesHelper(10);
|
|
89
98
|
s.scene.add(f);
|
|
90
|
-
const
|
|
99
|
+
const p = new d.MeshBasicMaterial({
|
|
91
100
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
92
101
|
side: d.DoubleSide
|
|
93
|
-
}), v = new d.Mesh(i,
|
|
102
|
+
}), v = new d.Mesh(i, p);
|
|
94
103
|
v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
|
|
95
104
|
const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
|
|
96
105
|
if (T != null && T.container) {
|
|
@@ -99,7 +108,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
99
108
|
const g = document.createElement("img");
|
|
100
109
|
g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
|
|
101
110
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
102
|
-
}, r.appendChild(g),
|
|
111
|
+
}, r.appendChild(g), x.set(v, T);
|
|
103
112
|
}
|
|
104
113
|
return v;
|
|
105
114
|
}), L = (t) => {
|
|
@@ -119,7 +128,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
119
128
|
}, a.onerror = (c) => o(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
120
129
|
}), V = (t, n) => F(void 0, null, function* () {
|
|
121
130
|
const { video_src: i, video_poster_src: o, points: a } = t;
|
|
122
|
-
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z:
|
|
131
|
+
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z: p }) => new d.Vector3(u, f, p))), e.imageTexture = L(o), n && (e.videoElement = n), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
123
132
|
}), M = (t) => {
|
|
124
133
|
if (!e.enabled)
|
|
125
134
|
return;
|
|
@@ -132,15 +141,15 @@ const C = (s, { videoElement: b }) => {
|
|
|
132
141
|
if (!e.enabled)
|
|
133
142
|
return;
|
|
134
143
|
const t = s.camera.position;
|
|
135
|
-
if (
|
|
136
|
-
const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t),
|
|
137
|
-
u && u.distance +
|
|
144
|
+
if (x.forEach((n, i) => {
|
|
145
|
+
const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t), p = 0.01;
|
|
146
|
+
u && u.distance + p < f ? n.hide() : n.show();
|
|
138
147
|
}), !E()) {
|
|
139
148
|
const n = e.rectPoints.find((i) => {
|
|
140
149
|
const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
|
|
141
150
|
return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
|
|
142
|
-
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0],
|
|
143
|
-
return !(f && f.distance +
|
|
151
|
+
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0], p = 0.01;
|
|
152
|
+
return !(f && f.distance + p < c);
|
|
144
153
|
}).length >= 2;
|
|
145
154
|
});
|
|
146
155
|
(!n || n.length === 0) && w(!0);
|
|
@@ -156,8 +165,9 @@ const C = (s, { videoElement: b }) => {
|
|
|
156
165
|
e.videoMeshes.forEach((t) => {
|
|
157
166
|
t && (t.needsRender = !0);
|
|
158
167
|
});
|
|
159
|
-
}), { enable:
|
|
168
|
+
}), { enable: h, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
|
|
160
169
|
};
|
|
161
170
|
export {
|
|
162
|
-
|
|
171
|
+
X as ModelTVVideoPlugin,
|
|
172
|
+
X as default
|
|
163
173
|
};
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelTVVideoPlugin as M, ModelTVVideoPlugin as P } from "./Plugin.js";
|
|
3
|
+
import { DIRECTION as x } from "./typings.js";
|
|
1
4
|
import "three";
|
|
5
|
+
import "./utils/parseData.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
2
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../shared-utils/Subscribe.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
15
|
+
export {
|
|
16
|
+
x as DIRECTION,
|
|
17
|
+
M as ModelTVVideoPlugin,
|
|
18
|
+
P as default
|
|
19
|
+
};
|
|
@@ -102,5 +102,6 @@ const S = (o, i) => {
|
|
|
102
102
|
return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
|
|
103
103
|
};
|
|
104
104
|
export {
|
|
105
|
-
S as ModelViewPlugin
|
|
105
|
+
S as ModelViewPlugin,
|
|
106
|
+
S as default
|
|
106
107
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var E = Object.defineProperty;
|
|
2
2
|
var S = Object.getOwnPropertySymbols;
|
|
3
3
|
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
M.call(
|
|
4
|
+
var f = (o, i, e) => i in o ? E(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, c = (o, i) => {
|
|
5
|
+
for (var e in i || (i = {}))
|
|
6
|
+
M.call(i, e) && f(o, e, i[e]);
|
|
7
7
|
if (S)
|
|
8
|
-
for (var e of S(
|
|
9
|
-
O.call(
|
|
10
|
-
return
|
|
8
|
+
for (var e of S(i))
|
|
9
|
+
O.call(i, e) && f(o, e, i[e]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
var h = (
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
12
|
+
var h = (o, i, e) => (f(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
13
|
+
var b = (o, i, e) => new Promise((t, r) => {
|
|
14
|
+
var l = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
a(e.next(
|
|
16
|
+
a(e.next(s));
|
|
17
17
|
} catch (p) {
|
|
18
18
|
r(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
a(e.throw(
|
|
22
|
+
a(e.throw(s));
|
|
23
23
|
} catch (p) {
|
|
24
24
|
r(p);
|
|
25
25
|
}
|
|
26
|
-
}, a = (
|
|
27
|
-
a((e = e.apply(
|
|
26
|
+
}, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(l, m);
|
|
27
|
+
a((e = e.apply(o, i)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as D } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
@@ -33,10 +33,31 @@ import { RotateHelper as I } from "../shared-utils/Object3DHelper/Helper/RotateH
|
|
|
33
33
|
import { RectangleScaleHelper as k } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
-
import { ControllerWrapper as
|
|
36
|
+
import { ControllerWrapper as u } from "./FiveControllerWrapper.js";
|
|
37
37
|
import { Object3DHelper as P } from "../shared-utils/Object3DHelper/index.js";
|
|
38
38
|
import { RotateController as $ } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
39
|
import { CSS3DScaleController as j } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
import "../shared-utils/Subscribe.js";
|
|
41
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
42
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
43
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
44
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
45
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
48
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
56
|
+
import "../shared-utils/isNil.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
40
61
|
const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
|
|
41
62
|
console.error(`${H} is disposed`);
|
|
42
63
|
}, _ = () => {
|
|
@@ -44,7 +65,7 @@ const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
|
|
|
44
65
|
}, B = () => {
|
|
45
66
|
console.error(`${H} is disabled`);
|
|
46
67
|
};
|
|
47
|
-
class
|
|
68
|
+
class ue extends D {
|
|
48
69
|
constructor(e) {
|
|
49
70
|
super(e);
|
|
50
71
|
h(this, "version", g);
|
|
@@ -58,12 +79,12 @@ class K extends D {
|
|
|
58
79
|
this.five = e, console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${v.toUpperCase()}_DEBUG__`]: this });
|
|
59
80
|
}
|
|
60
81
|
show(e) {
|
|
61
|
-
return
|
|
82
|
+
return b(this, null, function* () {
|
|
62
83
|
this.setState({ visible: !0 }, e);
|
|
63
84
|
});
|
|
64
85
|
}
|
|
65
86
|
hide(e) {
|
|
66
|
-
return
|
|
87
|
+
return b(this, null, function* () {
|
|
67
88
|
this.setState({ visible: !1 }, e);
|
|
68
89
|
});
|
|
69
90
|
}
|
|
@@ -81,8 +102,8 @@ class K extends D {
|
|
|
81
102
|
return L();
|
|
82
103
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
83
104
|
return B();
|
|
84
|
-
const r =
|
|
85
|
-
this.state =
|
|
105
|
+
const r = c({}, this.state);
|
|
106
|
+
this.state = c(c({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
86
107
|
}
|
|
87
108
|
getObject3DHelper(e) {
|
|
88
109
|
return this.objectHelperMap.get(e);
|
|
@@ -97,19 +118,19 @@ class K extends D {
|
|
|
97
118
|
}
|
|
98
119
|
const r = new P();
|
|
99
120
|
this.objectHelperMap.set(e, r);
|
|
100
|
-
const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement,
|
|
121
|
+
const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, m = this.five.camera, { moveHelper: a = !0, rotateHelper: s = !0, scaleHelper: p = !0 } = t;
|
|
101
122
|
if (a) {
|
|
102
|
-
const n = new y(e), d = new
|
|
123
|
+
const n = new y(e), d = new u(this.five, F, e, n);
|
|
103
124
|
r.addControllers({ moveController: d.helperController });
|
|
104
125
|
}
|
|
105
|
-
if (
|
|
126
|
+
if (s) {
|
|
106
127
|
let n;
|
|
107
|
-
l &&
|
|
108
|
-
const d = new I(e, n), w = new
|
|
128
|
+
l && m && (n = { container: l });
|
|
129
|
+
const d = new I(e, n), w = new u(this.five, $, e, d);
|
|
109
130
|
r.addControllers({ rotateController: w.helperController });
|
|
110
131
|
}
|
|
111
132
|
if (p && l) {
|
|
112
|
-
const n = new k(e, l,
|
|
133
|
+
const n = new k(e, l, m, this.five.scene), d = new u(this.five, j, e, n);
|
|
113
134
|
r.addControllers({ scaleController: d.helperController });
|
|
114
135
|
}
|
|
115
136
|
e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
|
|
@@ -139,7 +160,7 @@ class K extends D {
|
|
|
139
160
|
}
|
|
140
161
|
}
|
|
141
162
|
export {
|
|
142
|
-
|
|
163
|
+
ue as Object3DHelperController,
|
|
143
164
|
H as PLUGIN,
|
|
144
165
|
g as VERSION
|
|
145
166
|
};
|