@realsee/dnalogel 2.1.0-alpha.10 → 2.1.0-alpha.12
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/CSS3DRenderPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/index.js +723 -311
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/index.es.js +922 -510
- package/dist/index.js +922 -510
- package/dist/index.umd.js +922 -514
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -51
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- 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 +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- 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 +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Components/Common/Media.js +347 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +216 -0
- package/libs/PanoTagPlugin/Components/Common/Text.js +18 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +37 -17
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/libs/PanoTagPlugin/controller/TagComputer.js +14 -22
- package/libs/PanoTagPlugin/controller/index.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/index.js +50 -23
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/libs/PanoTagPlugin/mocks/mock1.js +12 -7
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/libs/PanoTagPlugin/mocks/mock3.js +21 -22
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/libs/PanoTagPlugin/utils/constants.js +5 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/package.json +1 -1
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/libs/CSS3DRenderPlugin/Plugin.js +0 -182
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
- package/libs/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/getLineGeometry.js +0 -64
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +0 -159
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Scene, Vector3 } from 'three';
|
|
3
|
-
import { CSS3DObject, CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
4
|
-
import evenNumber from '../shared-utils/math/evenNumber';
|
|
5
|
-
import centerPoint from '../shared-utils/three/centerPoint';
|
|
6
|
-
import transformPositionToVector3 from '../shared-utils/three/transformPositionToVector3';
|
|
7
|
-
import createResizeObserver from './utils/createResizeObserver';
|
|
8
|
-
/**
|
|
9
|
-
* **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
|
|
10
|
-
* 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
|
|
11
|
-
*
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export const CSS3DRenderPlugin = (five) => {
|
|
15
|
-
const state = { disposeCallbacks: [] };
|
|
16
|
-
const create3DDomContainer = (...params) => {
|
|
17
|
-
var _a, _b, _c;
|
|
18
|
-
const points = params[0].map((point) => (point instanceof Vector3 ? point : transformPositionToVector3(point)));
|
|
19
|
-
const config = params[1];
|
|
20
|
-
if ((points === null || points === void 0 ? void 0 : points.length) < 4)
|
|
21
|
-
return console.error('points must be equal or greater than than 4');
|
|
22
|
-
if (!((_a = five === null || five === void 0 ? void 0 : five.model) === null || _a === void 0 ? void 0 : _a.loaded))
|
|
23
|
-
return console.error('five.model.loaded is: ', (_b = five === null || five === void 0 ? void 0 : five.model) === null || _b === void 0 ? void 0 : _b.loaded);
|
|
24
|
-
const fiveElement = five.getElement();
|
|
25
|
-
if (!fiveElement)
|
|
26
|
-
return console.error('five.getElement() is ' + fiveElement);
|
|
27
|
-
const disposers = [];
|
|
28
|
-
const ratio = (config === null || config === void 0 ? void 0 : config.ratio) || 0.00216;
|
|
29
|
-
if (ratio <= 0.00215)
|
|
30
|
-
console.warn('if you need click css3DElement on safari, ratio must be greater than 0.00215');
|
|
31
|
-
const dpr = (config === null || config === void 0 ? void 0 : config.dpr) || 1;
|
|
32
|
-
const mode = (config === null || config === void 0 ? void 0 : config.mode) || 'front';
|
|
33
|
-
const autoRender = (_c = config === null || config === void 0 ? void 0 : config.autoRender) !== null && _c !== void 0 ? _c : true;
|
|
34
|
-
const behindFiveContainer = (config === null || config === void 0 ? void 0 : config.behindFiveContainer) || fiveElement.parentElement || document.body;
|
|
35
|
-
const container = (config === null || config === void 0 ? void 0 : config.container) || document.createElement('div');
|
|
36
|
-
container.classList.add('__Dnalogel-plugin--CSS3DRenderPlugin');
|
|
37
|
-
// 获取css3DObject, 如果mode为behind的话,一起获取mesh
|
|
38
|
-
const { css3DObject, mesh } = createObject(points, { ratio, dpr, container, mode });
|
|
39
|
-
// ======= INIT START =======
|
|
40
|
-
let resizeObserver;
|
|
41
|
-
const frontModeUnInited = mode === 'front' && !state.frontMode;
|
|
42
|
-
const behindModeUnInited = mode === 'behind' && !state.behindMode;
|
|
43
|
-
const inited = !(frontModeUnInited || behindModeUnInited);
|
|
44
|
-
if (behindModeUnInited) {
|
|
45
|
-
state.behindMode = { scene: new Scene(), css3DRenderer: new CSS3DRenderer() };
|
|
46
|
-
}
|
|
47
|
-
if (frontModeUnInited) {
|
|
48
|
-
state.frontMode = { scene: new Scene(), css3DRenderer: new CSS3DRenderer() };
|
|
49
|
-
}
|
|
50
|
-
const stateMode = mode === 'behind' ? state.behindMode : state.frontMode;
|
|
51
|
-
const { scene, css3DRenderer } = stateMode;
|
|
52
|
-
const render = (() => {
|
|
53
|
-
if (!inited) {
|
|
54
|
-
const css3DRendererSetSize = () => {
|
|
55
|
-
// 这里evenNumber策略是遇到奇数会加1,不知道为啥会触发滚动条显示,导致fiveElement变小,fiveElement变小又触发了这里的resize,宽高变小,滚动条消失,然后又触发resize。。。无限循环
|
|
56
|
-
// 为了规避上面这种情况,evenNumber设置了一个参数,遇到奇数可选择减一
|
|
57
|
-
const rendererWidth = evenNumber(fiveElement.clientWidth, { smaller: true });
|
|
58
|
-
const rendererHeight = evenNumber(fiveElement.clientHeight, { smaller: true });
|
|
59
|
-
css3DRenderer.setSize(rendererWidth, rendererHeight);
|
|
60
|
-
};
|
|
61
|
-
css3DRendererSetSize();
|
|
62
|
-
resizeObserver = createResizeObserver(css3DRendererSetSize, fiveElement);
|
|
63
|
-
css3DRenderer.domElement.style.position = 'absolute';
|
|
64
|
-
css3DRenderer.domElement.style.top = '0';
|
|
65
|
-
css3DRenderer.domElement.style.userSelect = 'none';
|
|
66
|
-
css3DRenderer.domElement.style.pointerEvents = 'none';
|
|
67
|
-
const renderEveryFrame = () => {
|
|
68
|
-
const requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
|
|
69
|
-
stateMode.requestAnimationFrameId = requestAnimationFrameId;
|
|
70
|
-
css3DRenderer.render(scene, five.camera);
|
|
71
|
-
};
|
|
72
|
-
return () => {
|
|
73
|
-
var _a;
|
|
74
|
-
scene.add(css3DObject);
|
|
75
|
-
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
76
|
-
renderEveryFrame();
|
|
77
|
-
if (mode === 'behind' && mesh) {
|
|
78
|
-
five.scene.add(mesh);
|
|
79
|
-
disposers.push(() => mesh && five.scene.remove(mesh));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return () => {
|
|
85
|
-
scene.add(css3DObject);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
})();
|
|
89
|
-
if (frontModeUnInited) {
|
|
90
|
-
const wrapper = fiveElement.parentElement || document.body;
|
|
91
|
-
wrapper.appendChild(css3DRenderer.domElement);
|
|
92
|
-
}
|
|
93
|
-
if (behindModeUnInited) {
|
|
94
|
-
const wrapper = behindFiveContainer;
|
|
95
|
-
wrapper.appendChild(css3DRenderer.domElement);
|
|
96
|
-
}
|
|
97
|
-
// ======= INIT END =======
|
|
98
|
-
const dispose = () => {
|
|
99
|
-
var _a;
|
|
100
|
-
disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
101
|
-
scene.remove(css3DObject);
|
|
102
|
-
if (scene.children.length === 0) {
|
|
103
|
-
if (typeof stateMode.requestAnimationFrameId === 'number') {
|
|
104
|
-
cancelAnimationFrame(stateMode.requestAnimationFrameId);
|
|
105
|
-
}
|
|
106
|
-
css3DRenderer.domElement.remove();
|
|
107
|
-
if (mode === 'front')
|
|
108
|
-
state.frontMode = undefined;
|
|
109
|
-
if (mode === 'behind')
|
|
110
|
-
state.behindMode = undefined;
|
|
111
|
-
if (!state.behindMode && !state.frontMode) {
|
|
112
|
-
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.unobserve) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return true;
|
|
116
|
-
};
|
|
117
|
-
const idx = state.disposeCallbacks.findIndex((item) => item === dispose);
|
|
118
|
-
if (idx !== -1) {
|
|
119
|
-
state.disposeCallbacks.splice(idx, 1);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
state.disposeCallbacks.push(dispose);
|
|
123
|
-
}
|
|
124
|
-
if (autoRender)
|
|
125
|
-
render();
|
|
126
|
-
return { container, dispose, css3DObject, render: autoRender ? undefined : render };
|
|
127
|
-
};
|
|
128
|
-
const createObject = (points, config) => {
|
|
129
|
-
const { ratio, dpr, container: element, mode } = config;
|
|
130
|
-
const planeWidth = points[0].distanceTo(points[1]);
|
|
131
|
-
const planeHeight = points[1].distanceTo(points[2]);
|
|
132
|
-
const domWidthPx = evenNumber((planeWidth / ratio) * dpr);
|
|
133
|
-
const domHeightPx = evenNumber((planeHeight / ratio) * dpr);
|
|
134
|
-
const css3DObject = new CSS3DObject(element);
|
|
135
|
-
css3DObject.scale.set(ratio, ratio, ratio);
|
|
136
|
-
element.style.width = domWidthPx + 'px';
|
|
137
|
-
element.style.height = domHeightPx + 'px';
|
|
138
|
-
element.style.pointerEvents = 'none';
|
|
139
|
-
const centerPosition = centerPoint(points[0], points[2]);
|
|
140
|
-
const vector01 = points[1].clone().sub(points[0]); // 点0 -> 点1 的向量
|
|
141
|
-
const vector12 = points[2].clone().sub(points[1]); // 点1 -> 点2 的向量
|
|
142
|
-
// 旋转
|
|
143
|
-
const rotateXAngle = new Vector3(0, 1, 0).angleTo(new Vector3(0, vector12.y, vector12.z));
|
|
144
|
-
const rotateYAngle = new Vector3(1, 0, 0).angleTo(new Vector3(vector01.x, 0, vector01.z));
|
|
145
|
-
const rotateZAngle = vector01.angleTo(new Vector3(vector01.x, 0, vector01.z));
|
|
146
|
-
/**
|
|
147
|
-
* [0,1,0] => [0,0,1] 为rotate Worldx正方向
|
|
148
|
-
* [0,0,1] => [0,1,0] 为rotate Worldy正方向
|
|
149
|
-
* [0,1,1] => [-1,0,0] 为rotate Worldz正方向
|
|
150
|
-
*/
|
|
151
|
-
const rotateX = (vector12.z > 0 ? -1 : 1) * rotateXAngle;
|
|
152
|
-
const rotateY = (vector01.z < 0 ? 1 : -1) * rotateYAngle;
|
|
153
|
-
const rotateZ = ((vector01.x > 0 && vector01.y < 0) || (vector01.x < 0 && vector01.y > 0) ? -1 : 1) * rotateZAngle;
|
|
154
|
-
css3DObject.rotateOnWorldAxis(new Vector3(1, 0, 0), rotateX); // x
|
|
155
|
-
css3DObject.rotateOnWorldAxis(new Vector3(0, 1, 0), rotateY); // y
|
|
156
|
-
css3DObject.rotateOnWorldAxis(new Vector3(0, 0, 1), rotateZ); // z
|
|
157
|
-
css3DObject.position.set(centerPosition.x, centerPosition.y, centerPosition.z);
|
|
158
|
-
let mesh;
|
|
159
|
-
if (mode === 'behind') {
|
|
160
|
-
const material = new THREE.MeshBasicMaterial({
|
|
161
|
-
opacity: 0,
|
|
162
|
-
transparent: false,
|
|
163
|
-
side: THREE.DoubleSide,
|
|
164
|
-
});
|
|
165
|
-
const geometry = new THREE.PlaneGeometry(domWidthPx, domHeightPx);
|
|
166
|
-
mesh = new THREE.Mesh(geometry, material);
|
|
167
|
-
mesh.name = 'CSS3DRenderPlugin-mesh';
|
|
168
|
-
mesh.position.copy(css3DObject.position);
|
|
169
|
-
mesh.rotation.copy(css3DObject.rotation);
|
|
170
|
-
mesh.scale.copy(css3DObject.scale);
|
|
171
|
-
}
|
|
172
|
-
return { css3DObject, mesh };
|
|
173
|
-
};
|
|
174
|
-
return {
|
|
175
|
-
create3DDomContainer,
|
|
176
|
-
disposeAll: () => {
|
|
177
|
-
state.disposeCallbacks.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
178
|
-
state.disposeCallbacks = [];
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
export default CSS3DRenderPlugin;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 究极简陋的 ResizeObserver polyfill
|
|
3
|
-
*/
|
|
4
|
-
export default function createResizeObserver(func, element) {
|
|
5
|
-
if (!element || typeof ResizeObserver === 'undefined') {
|
|
6
|
-
return {
|
|
7
|
-
observe: () => window.addEventListener('resize', func),
|
|
8
|
-
unobserve: () => window.removeEventListener('resize', func),
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
const observer = new ResizeObserver(func);
|
|
13
|
-
return {
|
|
14
|
-
observe: () => observer.observe(element),
|
|
15
|
-
unobserve: () => observer.unobserve(element),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import getNormals from 'polyline-normals';
|
|
3
|
-
// 定义常量
|
|
4
|
-
const TRIANGLE_NUMBER_OF_RECTANGLE = 2; // 每个矩形有两个三角形
|
|
5
|
-
const VERTEX_NUMBER_OF_TRIANGLE = 3; // 每个三角形有三个顶点
|
|
6
|
-
const AXIS_NUMBER_OF_VERTEX = 3; // 每个顶点有三个轴坐标
|
|
7
|
-
const UV_NUMBER_OF_VERTEX = 2; // 每个顶点有两个 UV 轴坐标
|
|
8
|
-
export default function getLineGeometry(positionList) {
|
|
9
|
-
if (positionList.length < 2)
|
|
10
|
-
return console.warn('positionList length must be greater than 1');
|
|
11
|
-
const lineWidth = 0.6;
|
|
12
|
-
const halfLineWidth = lineWidth / 2;
|
|
13
|
-
const aspect = 0.67; // 纵横比 width / height
|
|
14
|
-
// 点位向量数组
|
|
15
|
-
const keyPoints = positionList;
|
|
16
|
-
// 点位组成的平滑曲线
|
|
17
|
-
const curve = new THREE.CatmullRomCurve3(keyPoints, false, 'catmullrom', 0.5);
|
|
18
|
-
// 求顶点和 UV
|
|
19
|
-
const divisions = Math.ceil(curve.getLength()); // 曲线切片数
|
|
20
|
-
const curvePoints = curve.getPoints(divisions);
|
|
21
|
-
const curvePointsLength = curvePoints.length;
|
|
22
|
-
const normals = getNormals(curvePoints.map((p) => [p.x, p.z])); // curvePoints:每个点切线的向量「二维」
|
|
23
|
-
const rectangleNumber = curvePoints.length - 1; // 曲线上 N 个点,构成了 N - 1 个矩形
|
|
24
|
-
const indexNumber = rectangleNumber * TRIANGLE_NUMBER_OF_RECTANGLE * VERTEX_NUMBER_OF_TRIANGLE;
|
|
25
|
-
const verticesNumber = 2 * curvePointsLength; // 顶点数量(包含公用):每个曲线点对应两个顶点,N 个 点有 2N 个顶点
|
|
26
|
-
const positionNumber = verticesNumber * AXIS_NUMBER_OF_VERTEX; // 坐标点数量
|
|
27
|
-
const uvNumber = verticesNumber * UV_NUMBER_OF_VERTEX; // uv 数量
|
|
28
|
-
const index = new Uint32Array(indexNumber);
|
|
29
|
-
const positions = new Float32Array(positionNumber);
|
|
30
|
-
const uv = new Float32Array(uvNumber);
|
|
31
|
-
let totalLength = 0;
|
|
32
|
-
for (let i = 0; i < curvePoints.length; i++) {
|
|
33
|
-
const [nx, nz] = normals[i][0];
|
|
34
|
-
const curvePoint = curvePoints[i];
|
|
35
|
-
const { x: curvePointX, y: curvePointY, z: curvePointZ } = curvePoint;
|
|
36
|
-
// vertices[2i]
|
|
37
|
-
positions[i * 6 + 0] = curvePointX + nx * halfLineWidth;
|
|
38
|
-
positions[i * 6 + 1] = curvePointY + 0.05;
|
|
39
|
-
positions[i * 6 + 2] = curvePointZ + nz * halfLineWidth;
|
|
40
|
-
// vertices[2i + 1]
|
|
41
|
-
positions[i * 6 + 3] = curvePointX - nx * halfLineWidth;
|
|
42
|
-
positions[i * 6 + 4] = curvePointY + 0.05;
|
|
43
|
-
positions[i * 6 + 5] = curvePointZ - nz * halfLineWidth;
|
|
44
|
-
totalLength += i > 0 ? curvePoints[i - 1].clone().sub(curvePoints[i]).length() : 0;
|
|
45
|
-
const end = totalLength / lineWidth / aspect;
|
|
46
|
-
uv[i * 4 + 0] = 0;
|
|
47
|
-
uv[i * 4 + 1] = end;
|
|
48
|
-
uv[i * 4 + 2] = 1;
|
|
49
|
-
uv[i * 4 + 3] = end;
|
|
50
|
-
if (i === curvePoints.length - 1)
|
|
51
|
-
continue;
|
|
52
|
-
index[i * 6 + 0] = i * 2 + 0;
|
|
53
|
-
index[i * 6 + 1] = i * 2 + 2;
|
|
54
|
-
index[i * 6 + 2] = i * 2 + 1;
|
|
55
|
-
index[i * 6 + 3] = i * 2 + 2;
|
|
56
|
-
index[i * 6 + 4] = i * 2 + 3;
|
|
57
|
-
index[i * 6 + 5] = i * 2 + 1;
|
|
58
|
-
}
|
|
59
|
-
const geometry = new THREE.BufferGeometry();
|
|
60
|
-
geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
|
|
61
|
-
geometry.setAttribute('uv', new THREE.BufferAttribute(uv, 2));
|
|
62
|
-
geometry.setIndex(new THREE.BufferAttribute(index, 1));
|
|
63
|
-
return geometry;
|
|
64
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/* generated by Svelte v3.50.1 */
|
|
2
|
-
import {
|
|
3
|
-
SvelteComponent,
|
|
4
|
-
append_styles,
|
|
5
|
-
attr,
|
|
6
|
-
check_outros,
|
|
7
|
-
create_component,
|
|
8
|
-
destroy_component,
|
|
9
|
-
detach,
|
|
10
|
-
element,
|
|
11
|
-
empty,
|
|
12
|
-
group_outros,
|
|
13
|
-
init,
|
|
14
|
-
insert,
|
|
15
|
-
mount_component,
|
|
16
|
-
safe_not_equal,
|
|
17
|
-
transition_in,
|
|
18
|
-
transition_out
|
|
19
|
-
} from "svelte/internal";
|
|
20
|
-
|
|
21
|
-
import Media from '../Common/Media';
|
|
22
|
-
|
|
23
|
-
function add_css(target) {
|
|
24
|
-
append_styles(target, "svelte-10cw0el", ".media-wrapper-10cw0el{position:absolute;width:100%;height:100%}");
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// (8:0) {#if tag.state && mediaData}
|
|
28
|
-
function create_if_block(ctx) {
|
|
29
|
-
let div;
|
|
30
|
-
let media;
|
|
31
|
-
let current;
|
|
32
|
-
|
|
33
|
-
media = new Media({
|
|
34
|
-
props: {
|
|
35
|
-
unfolded: /*unfolded*/ ctx[2],
|
|
36
|
-
mediaData: /*mediaData*/ ctx[1],
|
|
37
|
-
inDelay: 500,
|
|
38
|
-
duration: 500
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
return {
|
|
43
|
-
c() {
|
|
44
|
-
div = element("div");
|
|
45
|
-
create_component(media.$$.fragment);
|
|
46
|
-
attr(div, "class", "media-wrapper svelte-10cw0el");
|
|
47
|
-
},
|
|
48
|
-
m(target, anchor) {
|
|
49
|
-
insert(target, div, anchor);
|
|
50
|
-
mount_component(media, div, null);
|
|
51
|
-
current = true;
|
|
52
|
-
},
|
|
53
|
-
p(ctx, dirty) {
|
|
54
|
-
const media_changes = {};
|
|
55
|
-
if (dirty & /*unfolded*/ 4) media_changes.unfolded = /*unfolded*/ ctx[2];
|
|
56
|
-
if (dirty & /*mediaData*/ 2) media_changes.mediaData = /*mediaData*/ ctx[1];
|
|
57
|
-
media.$set(media_changes);
|
|
58
|
-
},
|
|
59
|
-
i(local) {
|
|
60
|
-
if (current) return;
|
|
61
|
-
transition_in(media.$$.fragment, local);
|
|
62
|
-
current = true;
|
|
63
|
-
},
|
|
64
|
-
o(local) {
|
|
65
|
-
transition_out(media.$$.fragment, local);
|
|
66
|
-
current = false;
|
|
67
|
-
},
|
|
68
|
-
d(detaching) {
|
|
69
|
-
if (detaching) detach(div);
|
|
70
|
-
destroy_component(media);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function create_fragment(ctx) {
|
|
76
|
-
let if_block_anchor;
|
|
77
|
-
let current;
|
|
78
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[1] && create_if_block(ctx);
|
|
79
|
-
|
|
80
|
-
return {
|
|
81
|
-
c() {
|
|
82
|
-
if (if_block) if_block.c();
|
|
83
|
-
if_block_anchor = empty();
|
|
84
|
-
},
|
|
85
|
-
m(target, anchor) {
|
|
86
|
-
if (if_block) if_block.m(target, anchor);
|
|
87
|
-
insert(target, if_block_anchor, anchor);
|
|
88
|
-
current = true;
|
|
89
|
-
},
|
|
90
|
-
p(ctx, [dirty]) {
|
|
91
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[1]) {
|
|
92
|
-
if (if_block) {
|
|
93
|
-
if_block.p(ctx, dirty);
|
|
94
|
-
|
|
95
|
-
if (dirty & /*tag, mediaData*/ 3) {
|
|
96
|
-
transition_in(if_block, 1);
|
|
97
|
-
}
|
|
98
|
-
} else {
|
|
99
|
-
if_block = create_if_block(ctx);
|
|
100
|
-
if_block.c();
|
|
101
|
-
transition_in(if_block, 1);
|
|
102
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
103
|
-
}
|
|
104
|
-
} else if (if_block) {
|
|
105
|
-
group_outros();
|
|
106
|
-
|
|
107
|
-
transition_out(if_block, 1, 1, () => {
|
|
108
|
-
if_block = null;
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
check_outros();
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
i(local) {
|
|
115
|
-
if (current) return;
|
|
116
|
-
transition_in(if_block);
|
|
117
|
-
current = true;
|
|
118
|
-
},
|
|
119
|
-
o(local) {
|
|
120
|
-
transition_out(if_block);
|
|
121
|
-
current = false;
|
|
122
|
-
},
|
|
123
|
-
d(detaching) {
|
|
124
|
-
if (if_block) if_block.d(detaching);
|
|
125
|
-
if (detaching) detach(if_block_anchor);
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function instance($$self, $$props, $$invalidate) {
|
|
131
|
-
let unfolded;
|
|
132
|
-
let mediaData;
|
|
133
|
-
let { tag } = $$props;
|
|
134
|
-
|
|
135
|
-
$$self.$$set = $$props => {
|
|
136
|
-
if ('tag' in $$props) $$invalidate(0, tag = $$props.tag);
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
$$self.$$.update = () => {
|
|
140
|
-
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
141
|
-
$: $$invalidate(2, unfolded = tag.state ? tag.state.unfolded : false);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
145
|
-
$: $$invalidate(1, mediaData = tag.data.mediaData);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return [tag, mediaData, unfolded];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
class Component extends SvelteComponent {
|
|
153
|
-
constructor(options) {
|
|
154
|
-
super();
|
|
155
|
-
init(this, options, instance, create_fragment, safe_not_equal, { tag: 0 }, add_css);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export default Component;
|