@realsee/dnalogel 2.9.2 → 2.10.0

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.
Files changed (297) hide show
  1. package/dist/PanoVideoPlugin/Controller.d.ts +31 -0
  2. package/dist/PanoVideoPlugin/VideoMeshController.d.ts +85 -0
  3. package/dist/PanoVideoPlugin/index.d.ts +16 -0
  4. package/dist/PanoVideoPlugin/typings.d.ts +64 -0
  5. package/dist/PanoVideoPlugin/utils/shader.d.ts +2 -0
  6. package/dist/base/BasePlugin.d.ts +6 -6
  7. package/dist/index.cjs.js +66 -46
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +3161 -2923
  10. package/dist/index.umd.js +53 -33
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/CSS3DRender.html +32 -31
  13. package/docs/classes/CruisePluginController.html +25 -24
  14. package/docs/classes/Magnifier.html +21 -20
  15. package/docs/classes/ModelRoomLabelController.html +12 -11
  16. package/docs/classes/Object3DHelperController.html +25 -24
  17. package/docs/classes/PaintBrush.html +16 -15
  18. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  19. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  20. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  21. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  22. package/docs/classes/PanoTagPluginController.html +48 -47
  23. package/docs/classes/Util.BetterTween.html +9 -8
  24. package/docs/classes/Util.FivePointSelector.html +13 -12
  25. package/docs/classes/Util.Interval.html +13 -12
  26. package/docs/classes/Util.Magnifier.html +18 -17
  27. package/docs/classes/Util.PointDomHelper.html +12 -11
  28. package/docs/classes/Util.PointHelper.html +12 -11
  29. package/docs/classes/Util.Rectangle.html +14 -13
  30. package/docs/enums/CameraMovementEffect.html +8 -7
  31. package/docs/enums/ContentType.html +20 -19
  32. package/docs/enums/DIRECTION.html +10 -9
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  34. package/docs/enums/DimensionType.html +8 -7
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  37. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  38. package/docs/enums/PointType.html +8 -7
  39. package/docs/enums/Rotation.html +9 -8
  40. package/docs/functions/CSS3DRenderPlugin.html +8 -4
  41. package/docs/functions/CameraMovementPlugin.html +8 -4
  42. package/docs/functions/CruisePlugin.html +8 -4
  43. package/docs/functions/GuideLinePlugin.html +9 -5
  44. package/docs/functions/ItemLabelPlugin.html +8 -4
  45. package/docs/functions/MapviewFloorplanPlugin.html +8 -4
  46. package/docs/functions/ModelChassisCompassPlugin.html +8 -4
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +8 -4
  48. package/docs/functions/ModelFloorplanPlugin.html +8 -4
  49. package/docs/functions/ModelItemLabelPlugin.html +8 -4
  50. package/docs/functions/ModelRoomLabelPlugin.html +8 -4
  51. package/docs/functions/ModelTVVideoPlugin.html +8 -4
  52. package/docs/functions/ModelViewPlugin.html +8 -4
  53. package/docs/functions/Object3DHelperPlugin.html +8 -4
  54. package/docs/functions/PanoCompassPlugin.html +8 -4
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +8 -4
  56. package/docs/functions/PanoDoorLabelPlugin.html +8 -4
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +8 -4
  58. package/docs/functions/PanoMeasurePlugin.html +8 -4
  59. package/docs/functions/PanoRulerPlugin.html +8 -4
  60. package/docs/functions/PanoRulerProPlugin.html +8 -4
  61. package/docs/functions/PanoSpatialTagPlugin.html +8 -4
  62. package/docs/functions/PanoTagPlugin.html +8 -4
  63. package/docs/functions/PanoVideoPlugin.html +284 -0
  64. package/docs/functions/TopviewFloorplanPlugin.html +8 -4
  65. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  66. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  67. package/docs/functions/Util.getFrameTime.html +6 -5
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  70. package/docs/functions/Util.isNil.html +6 -5
  71. package/docs/functions/Util.nextFrame.html +6 -5
  72. package/docs/functions/Util.notNil.html +6 -5
  73. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  74. package/docs/functions/Util.tweenProgress.html +6 -5
  75. package/docs/functions/pluginFlag.html +9 -5
  76. package/docs/index.html +8 -4
  77. package/docs/interfaces/AddTagConfig.html +7 -6
  78. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  79. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  80. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  81. package/docs/interfaces/EventMap.html +16 -15
  82. package/docs/interfaces/FloorplanBounding.html +9 -8
  83. package/docs/interfaces/FloorplanData.html +11 -10
  84. package/docs/interfaces/FloorplanEntrance.html +12 -11
  85. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  86. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  87. package/docs/interfaces/FloorplanFloorData.html +10 -9
  88. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  89. package/docs/interfaces/FloorplanObserver.html +10 -9
  90. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  91. package/docs/interfaces/FloorplanPosition.html +8 -7
  92. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  93. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  94. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  95. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  96. package/docs/interfaces/FloorplanServerData.html +8 -7
  97. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  98. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  99. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  100. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  101. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  102. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  103. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  104. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  105. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  106. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  107. package/docs/interfaces/HelperOffset.html +9 -8
  108. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  109. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  110. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  111. package/docs/interfaces/MinMax.html +8 -7
  112. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  113. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  114. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  115. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  116. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  117. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  118. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  119. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  120. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  121. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  122. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  123. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  124. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  125. package/docs/interfaces/Object3DHelperState.html +9 -8
  126. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  127. package/docs/interfaces/PaintBrushAction.html +13 -12
  128. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  129. package/docs/interfaces/PaintBrushState.html +11 -10
  130. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  131. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +9 -5
  132. package/docs/interfaces/PanoMeasureParameterType.html +13 -12
  133. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  134. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  135. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  136. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  137. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  138. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  139. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  140. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  141. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  142. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  143. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  144. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +9 -5
  145. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +9 -5
  146. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  147. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  148. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  149. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  150. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  151. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  152. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  153. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +74 -0
  154. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +89 -0
  155. package/docs/interfaces/PanoVideoPluginType.PluginData.html +66 -0
  156. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +165 -0
  157. package/docs/interfaces/PanoVideoPluginType.PluginState.html +66 -0
  158. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +97 -0
  159. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +114 -0
  160. package/docs/interfaces/Point.html +9 -8
  161. package/docs/interfaces/Room.html +10 -9
  162. package/docs/interfaces/RoomInfo.html +8 -7
  163. package/docs/interfaces/RoomLabel.html +15 -14
  164. package/docs/interfaces/RoomRules.html +9 -5
  165. package/docs/interfaces/Rooms.html +9 -5
  166. package/docs/interfaces/Scissor.html +10 -9
  167. package/docs/interfaces/State.html +9 -8
  168. package/docs/interfaces/TagCache.html +13 -12
  169. package/docs/interfaces/TagConfig.html +11 -10
  170. package/docs/interfaces/TagIconUrl.html +10 -9
  171. package/docs/interfaces/Tags.html +10 -9
  172. package/docs/interfaces/TemporaryState.html +7 -6
  173. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  174. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  175. package/docs/modules/PanoVideoPluginType.html +62 -0
  176. package/docs/modules/Util.html +6 -5
  177. package/docs/modules.html +13 -5
  178. package/docs/types/ArrayPosition.html +9 -5
  179. package/docs/types/AudioAppearance.html +9 -5
  180. package/docs/types/AudioTagTypeConfigKey.html +9 -5
  181. package/docs/types/CSS3DRenderExportType.html +9 -5
  182. package/docs/types/CSS3DRenderPluginExportType.html +9 -5
  183. package/docs/types/CSS3DRenderPluginParameterType.html +9 -5
  184. package/docs/types/ClassFunctionParameters.html +9 -5
  185. package/docs/types/Color.html +9 -5
  186. package/docs/types/ContentTypeConfigKey.html +9 -5
  187. package/docs/types/ContentTypeConfigKeySplit.html +9 -5
  188. package/docs/types/ContentTypeMap.html +9 -5
  189. package/docs/types/Create3DDomContainerReturnType.html +9 -5
  190. package/docs/types/Create3DElementReturnType.html +9 -5
  191. package/docs/types/CruisePluginExportType.html +9 -5
  192. package/docs/types/Direction-1.html +9 -5
  193. package/docs/types/Direction4.html +9 -5
  194. package/docs/types/FloorplanRuleLabels.html +9 -5
  195. package/docs/types/FloorplanServerRuleLabels.html +9 -5
  196. package/docs/types/GuideLinePluginExportType.html +9 -5
  197. package/docs/types/HelperEventMap.html +9 -5
  198. package/docs/types/LoadTagConfig.html +9 -5
  199. package/docs/types/MapviewFloorplanPluginParameterType.html +9 -5
  200. package/docs/types/MapviewFloorplanPluginReturnType.html +9 -5
  201. package/docs/types/MediaData.html +9 -5
  202. package/docs/types/MediaStore.html +9 -5
  203. package/docs/types/ModelElement.html +9 -5
  204. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +9 -5
  205. package/docs/types/ModelFloorplanPluginParameterType.html +9 -5
  206. package/docs/types/ModelFloorplanPluginReturnType.html +9 -5
  207. package/docs/types/ModelRoomLabelPluginParameters.html +9 -5
  208. package/docs/types/ModelRoomLabelPluginReturnType.html +9 -5
  209. package/docs/types/MoveArgs.html +9 -5
  210. package/docs/types/MoveOpts.html +9 -5
  211. package/docs/types/Object3DHelperEventMap.html +9 -5
  212. package/docs/types/ObjectFit.html +9 -5
  213. package/docs/types/PaintBrushEventMap.html +9 -5
  214. package/docs/types/PanoCompassPluginData.html +9 -5
  215. package/docs/types/PanoCompassPluginExportType.html +9 -5
  216. package/docs/types/PanoCompassPluginParameterType.html +9 -5
  217. package/docs/types/PanoFloorplanRadarPluginParameterType.html +9 -5
  218. package/docs/types/PanoFloorplanRadarPluginReturnType.html +9 -5
  219. package/docs/types/PanoIndex.html +9 -5
  220. package/docs/types/PanoMeasurePluginEvent.html +9 -5
  221. package/docs/types/PanoMeasureReturnType.html +9 -5
  222. package/docs/types/PanoSpatialTagPluginId.html +9 -5
  223. package/docs/types/PanoTagPluginExportInterface.html +9 -5
  224. package/docs/types/PanoTagPluginParamsInterface.html +9 -5
  225. package/docs/types/PanoVideoPluginParameterType.html +265 -0
  226. package/docs/types/PanoVideoPluginReturnType.html +265 -0
  227. package/docs/types/PlaneTag.html +9 -5
  228. package/docs/types/PlaneTagElement.html +9 -5
  229. package/docs/types/Point2DElement.html +9 -5
  230. package/docs/types/Point2DTag.html +9 -5
  231. package/docs/types/Point3DElement.html +9 -5
  232. package/docs/types/Point3DTag.html +9 -5
  233. package/docs/types/PointTag.html +9 -5
  234. package/docs/types/PointTagElement.html +9 -5
  235. package/docs/types/Position.html +9 -5
  236. package/docs/types/RotateArgs.html +9 -5
  237. package/docs/types/RotateOpts.html +9 -5
  238. package/docs/types/RuleLabelsKey.html +9 -5
  239. package/docs/types/RuleLabelsValue.html +9 -5
  240. package/docs/types/StickType.html +9 -5
  241. package/docs/types/Tag.html +9 -5
  242. package/docs/types/Tag2D.html +9 -5
  243. package/docs/types/Tag3D.html +9 -5
  244. package/docs/types/TagContentType.html +9 -5
  245. package/docs/types/TagDimensionType.html +9 -5
  246. package/docs/types/TagElement.html +9 -5
  247. package/docs/types/TagEvents.html +9 -5
  248. package/docs/types/TagGLTFObject.html +9 -5
  249. package/docs/types/TagHooks.html +9 -5
  250. package/docs/types/TagIconSize.html +9 -5
  251. package/docs/types/TagId.html +9 -5
  252. package/docs/types/TagPointType.html +9 -5
  253. package/docs/types/TopviewFloorplanPluginParameterType.html +9 -5
  254. package/docs/types/TopviewFloorplanPluginReturnType.html +9 -5
  255. package/docs/types/WorkCode.html +9 -5
  256. package/docs/variables/FLOOR_TYPE_MAP.html +9 -5
  257. package/docs/variables/PLUGIN.html +9 -5
  258. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +9 -5
  259. package/docs/variables/ROOM_TYPE_MAP.html +9 -5
  260. package/docs/variables/VERSION.html +9 -5
  261. package/docs/variables/itemLabelPluginServerParams.html +9 -5
  262. package/docs/variables/modelItemLabelPluginServerParams.html +9 -5
  263. package/docs/variables/modelRoomLabelPluginServerParams.html +9 -5
  264. package/libs/PanoVideoPlugin/Controller.d.ts +31 -0
  265. package/libs/PanoVideoPlugin/Controller.js +127 -0
  266. package/libs/PanoVideoPlugin/VideoMeshController.d.ts +85 -0
  267. package/libs/PanoVideoPlugin/VideoMeshController.js +152 -0
  268. package/libs/PanoVideoPlugin/index.d.ts +16 -0
  269. package/libs/PanoVideoPlugin/index.js +31 -0
  270. package/libs/PanoVideoPlugin/typings/index.js +6 -0
  271. package/libs/PanoVideoPlugin/typings.d.ts +64 -0
  272. package/libs/PanoVideoPlugin/typings.js +1 -0
  273. package/libs/PanoVideoPlugin/utils/shader.d.ts +2 -0
  274. package/libs/PanoVideoPlugin/utils/shader.js +25 -0
  275. package/libs/base/BasePlugin.d.ts +6 -6
  276. package/libs/index.d.ts +1 -0
  277. package/libs/index.js +107 -100
  278. package/package.json +1 -1
  279. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  280. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  281. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  282. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  283. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  284. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  285. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  286. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  287. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  288. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  289. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  290. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  291. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  292. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  293. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  294. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  295. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  296. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  297. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
@@ -0,0 +1,64 @@
1
+ import type * as BasePlugin from '../base/BasePlugin';
2
+ /** 单个视频元素 */
3
+ export interface VideoItem {
4
+ /** client render ID
5
+ * @remarks 为什么不用 id 作为唯一标识?
6
+ * - id 是后端生成的,而 render_id 是前端生成的,在编辑时为了保证在请求后端数据之前也能进行渲染,使用额外的 id 进行渲染。
7
+ * - 为了保证两端的数据一致性,插件里使用 render_id 作为唯一 ID。
8
+ */
9
+ render_id: string;
10
+ /** 文件地址 */
11
+ url: string;
12
+ /** 算法处理的视频 uv 信息
13
+ * @description [left, top, width, height]
14
+ */
15
+ origin: number[];
16
+ }
17
+ /** 点位视频元素 */
18
+ export interface PanoVideoItem {
19
+ /** client render ID */
20
+ render_id: string;
21
+ /** 视频播放点位 */
22
+ pano_index: number;
23
+ /** 视频列表 */
24
+ video_list: VideoItem[];
25
+ }
26
+ /** 点位视频模型参数 */
27
+ export interface VideoMeshParams {
28
+ /** client render ID */
29
+ renderID: string;
30
+ /** video 文件地址 */
31
+ url: string;
32
+ /** 算法处理的视频 uv 信息
33
+ * @description [left, top, width, height]
34
+ */
35
+ origin: number[];
36
+ /** 视频播放点位 */
37
+ panoIndex: number;
38
+ /** 初始状态 */
39
+ initialState?: {
40
+ enabled?: boolean;
41
+ };
42
+ }
43
+ /** 加载数据时的额外参数 */
44
+ export interface LoadParams {
45
+ initialState?: {
46
+ enabled?: boolean;
47
+ };
48
+ }
49
+ export interface PluginState {
50
+ enabled: boolean;
51
+ }
52
+ export interface PluginData {
53
+ list: PanoVideoItem[];
54
+ }
55
+ export interface PluginEventMap extends BasePlugin.EventMap<PluginState> {
56
+ /** 点位视频模型开启 */
57
+ enable: (params: {
58
+ userAction: boolean;
59
+ }) => void;
60
+ /** 点位视频模型关闭 */
61
+ disable: (params: {
62
+ userAction: boolean;
63
+ }) => void;
64
+ }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ export declare const vertexShader = "\nvarying vec2 vUv;\nvoid main() {\n vUv = uv;\n vec4 mvPosition = modelViewMatrix * vec4(position, 1);\n gl_Position = projectionMatrix * mvPosition;\n}\n";
2
+ export declare const fragmentShader = "\nuniform sampler2D map;\nuniform vec4 size;\nvarying vec2 vUv;\n\nvoid main() {\n vec2 uv = vec2((vUv.x - size[0]) / size[2], (vUv.y - size[1]) / size[3]);\n float a = 0.1;\n float transX = uv.x < a ? 1.0 / a * uv.x : (uv.x > (1.0 - a) ? 1.0 / a * (1.0 - uv.x) : 1.0);\n float transY = uv.y < a ? 1.0 / a * uv.y : (uv.y > (1.0 - a) ? 1.0 / a * (1.0 - uv.y) : 1.0);\n\tfloat 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);\n gl_FragColor = vec4(texture2D(map, uv).xyz, match);\n}\n";
@@ -0,0 +1,25 @@
1
+ const v = `
2
+ varying vec2 vUv;
3
+ void main() {
4
+ vUv = uv;
5
+ vec4 mvPosition = modelViewMatrix * vec4(position, 1);
6
+ gl_Position = projectionMatrix * mvPosition;
7
+ }
8
+ `, a = `
9
+ uniform sampler2D map;
10
+ uniform vec4 size;
11
+ varying vec2 vUv;
12
+
13
+ void main() {
14
+ vec2 uv = vec2((vUv.x - size[0]) / size[2], (vUv.y - size[1]) / size[3]);
15
+ float a = 0.1;
16
+ float transX = uv.x < a ? 1.0 / a * uv.x : (uv.x > (1.0 - a) ? 1.0 / a * (1.0 - uv.x) : 1.0);
17
+ float transY = uv.y < a ? 1.0 / a * uv.y : (uv.y > (1.0 - a) ? 1.0 / a * (1.0 - uv.y) : 1.0);
18
+ 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
+ gl_FragColor = vec4(texture2D(map, uv).xyz, match);
20
+ }
21
+ `;
22
+ export {
23
+ a as fragmentShader,
24
+ v as vertexShader
25
+ };
@@ -83,6 +83,12 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
83
83
  * 隐藏UI
84
84
  */
85
85
  hide?(options?: BaseOptions): Promise<void>;
86
+ /**
87
+ * 设置state
88
+ * @param state 插件的目标状态
89
+ * @param options 配置项
90
+ */
91
+ setState?(state: Partial<PluginState>, options?: BaseOptions): void;
86
92
  /**
87
93
  * 启用插件,让插件能够响应交互
88
94
  */
@@ -95,12 +101,6 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
95
101
  * 插件进行销毁
96
102
  */
97
103
  abstract dispose(): void;
98
- /**
99
- * 设置state
100
- * @param state 插件的目标状态
101
- * @param options 配置项
102
- */
103
- abstract setState(state: Partial<PluginState>, options?: BaseOptions): void;
104
104
  }
105
105
  export type { State, EventMap, BaseOptions };
106
106
  export { Controller };
package/libs/index.d.ts CHANGED
@@ -20,4 +20,5 @@ export * from './GuideLinePlugin';
20
20
  export * from './CruisePlugin';
21
21
  export * from './PanoTagPlugin';
22
22
  export * from './Object3DHelperPlugin';
23
+ export * from './PanoVideoPlugin';
23
24
  export * as Util from './shared-utils';
package/libs/index.js CHANGED
@@ -1,49 +1,51 @@
1
- import { PaintBrush as Ip } from "./components/PaintBrush/index.js";
2
- import { PaintBrushTypeEnum as Dp } from "./components/PaintBrush/typings.js";
3
- import { ModelViewPlugin as Yp } from "./ModelViewPlugin/Plugin.js";
4
- import { CSS3DRenderPlugin as Fp } from "./CSS3DRenderPlugin/index.js";
5
- import { PanoCursorRaycasterPlugin as Gp } from "./PanoCursorRaycasterPlugin/index.js";
6
- import { ModelRoomLabelPlugin as cp, modelRoomLabelPluginServerParams as Vp } from "./ModelRoomLabelPlugin/index.js";
7
- import { FLOOR_PLAN_ATTACHED_TO as wp } from "./floorplan/constant.js";
8
- import { ModelFloorplanPlugin as Hp } from "./floorplan/ModelFloorplanPlugin/index.js";
9
- import { MapviewFloorplanPlugin as jp } from "./floorplan/MapviewFloorplanPlugin/index.js";
10
- import { TopviewFloorplanPlugin as qp } from "./floorplan/TopviewFloorplanPlugin/index.js";
11
- import { PanoFloorplanRadarPlugin as Jp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
12
- import { FLOOR_TYPE_MAP as Qp, ROOM_FETILE_TYPE_MAP as Wp, ROOM_TYPE_MAP as Xp } from "./floorplan/typings/floorplanServerData.js";
13
- import { ModelChassisCompassPlugin as $p } from "./ModelChassisCompassPlugin/Plugin.js";
14
- import { ModelEntryDoorGuidePlugin as ri } from "./ModelEntryDoorGuidePlugin/Plugin.js";
15
- import { CameraMovementPlugin as mi } from "./CameraMovementPlugin/CameraMovementPlugin.js";
16
- import { CameraMovementEffect as ii, Rotation as ei } from "./CameraMovementPlugin/typing.js";
17
- import { PanoRulerPlugin as ni } from "./PanoRulerPlugin/Plugin.js";
18
- import { PanoRulerProPlugin as Pi } from "./PanoRulerProPlugin/index.js";
19
- import { PanoCompassPlugin as fi } from "./PanoCompassPlugin/index.js";
20
- import { PanoMeasurePlugin as gi } from "./PanoMeasurePlugin/index.js";
21
- import { PanoSpatialTagPlugin as Mi } from "./PanoSpatialTagPlugin/Plugin.js";
22
- import { modelItemLabelPluginServerParams as di } from "./ModelItemLabelPlugin/index.js";
23
- import { ModelTVVideoPlugin as Ei } from "./ModelTVVideoPlugin/Plugin.js";
24
- import { DIRECTION as _i } from "./ModelTVVideoPlugin/typings.js";
25
- import { itemLabelPluginServerParams as Oi } from "./ItemLabelPlugin/index.js";
26
- import { PanoDoorLabelPlugin as Ii } from "./PanoDoorLabelPlugin/index.js";
27
- import { GuideLinePlugin as Di } from "./GuideLinePlugin/index.js";
28
- import { CruisePlugin as Yi } from "./CruisePlugin/index.js";
29
- import { PanoTagPlugin as Fi } from "./PanoTagPlugin/index.js";
30
- import { Object3DHelperPlugin as Gi } from "./Object3DHelperPlugin/index.js";
31
- import { index as ci } from "./shared-utils/index.js";
32
- import { CSS3DRender as hi } from "./CSS3DRenderPlugin/CSS3DRender.js";
33
- import { Model as Bi } from "./PanoMeasurePlugin/Model/index.js";
34
- import { default as Ui } from "./PanoMeasurePlugin/Model/point.js";
35
- import { default as ki } from "./PanoMeasurePlugin/Model/line.js";
36
- import { Polyline as zi } from "./PanoMeasurePlugin/Model/polyline.js";
37
- import { default as Ki } from "./PanoMeasurePlugin/Modules/Magnifier.js";
38
- import { DISPLAY_STRATEGY_TYPE as Wi } from "./ModelItemLabelPlugin/typings.js";
39
- import { ModelItemLabelPlugin as Zi } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
40
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as oe } from "./ItemLabelPlugin/typings.js";
41
- import { Plugin as te } from "./ItemLabelPlugin/Plugin.js";
42
- import { default as pe } from "./CruisePlugin/Controller.js";
43
- import { default as ee, pluginFlag as le } from "./PanoTagPlugin/controller/index.js";
44
- import { ContentType as ae } from "./PanoTagPlugin/typings/tag/TagData.js";
45
- import { DimensionType as ue, PointType as fe } from "./PanoTagPlugin/typings/tag/Utils.js";
46
- import { Object3DHelperController as ge, PLUGIN as se, VERSION as Me } from "./Object3DHelperPlugin/Controller.js";
1
+ import { PaintBrush as yi } from "./components/PaintBrush/index.js";
2
+ import { PaintBrushTypeEnum as Yi } from "./components/PaintBrush/typings.js";
3
+ import { ModelViewPlugin as vi } from "./ModelViewPlugin/Plugin.js";
4
+ import { CSS3DRenderPlugin as Vi } from "./CSS3DRenderPlugin/index.js";
5
+ import { PanoCursorRaycasterPlugin as ci } from "./PanoCursorRaycasterPlugin/index.js";
6
+ import { ModelRoomLabelPlugin as wi, modelRoomLabelPluginServerParams as Bi } from "./ModelRoomLabelPlugin/index.js";
7
+ import { FLOOR_PLAN_ATTACHED_TO as Ui } from "./floorplan/constant.js";
8
+ import { ModelFloorplanPlugin as ki } from "./floorplan/ModelFloorplanPlugin/index.js";
9
+ import { MapviewFloorplanPlugin as zi } from "./floorplan/MapviewFloorplanPlugin/index.js";
10
+ import { TopviewFloorplanPlugin as Ki } from "./floorplan/TopviewFloorplanPlugin/index.js";
11
+ import { PanoFloorplanRadarPlugin as Wi } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
12
+ import { FLOOR_TYPE_MAP as Zi, ROOM_FETILE_TYPE_MAP as $i, ROOM_TYPE_MAP as op } from "./floorplan/typings/floorplanServerData.js";
13
+ import { ModelChassisCompassPlugin as tp } from "./ModelChassisCompassPlugin/Plugin.js";
14
+ import { ModelEntryDoorGuidePlugin as ip } from "./ModelEntryDoorGuidePlugin/Plugin.js";
15
+ import { CameraMovementPlugin as ep } from "./CameraMovementPlugin/CameraMovementPlugin.js";
16
+ import { CameraMovementEffect as np, Rotation as ap } from "./CameraMovementPlugin/typing.js";
17
+ import { PanoRulerPlugin as up } from "./PanoRulerPlugin/Plugin.js";
18
+ import { PanoRulerProPlugin as xp } from "./PanoRulerProPlugin/index.js";
19
+ import { PanoCompassPlugin as sp } from "./PanoCompassPlugin/index.js";
20
+ import { PanoMeasurePlugin as Tp } from "./PanoMeasurePlugin/index.js";
21
+ import { PanoSpatialTagPlugin as Lp } from "./PanoSpatialTagPlugin/Plugin.js";
22
+ import { modelItemLabelPluginServerParams as Rp } from "./ModelItemLabelPlugin/index.js";
23
+ import { ModelTVVideoPlugin as Cp } from "./ModelTVVideoPlugin/Plugin.js";
24
+ import { DIRECTION as Sp } from "./ModelTVVideoPlugin/typings.js";
25
+ import { itemLabelPluginServerParams as Ap } from "./ItemLabelPlugin/index.js";
26
+ import { PanoDoorLabelPlugin as yp } from "./PanoDoorLabelPlugin/index.js";
27
+ import { GuideLinePlugin as Yp } from "./GuideLinePlugin/index.js";
28
+ import { CruisePlugin as vp } from "./CruisePlugin/index.js";
29
+ import { PanoTagPlugin as Vp } from "./PanoTagPlugin/index.js";
30
+ import { Object3DHelperPlugin as cp } from "./Object3DHelperPlugin/index.js";
31
+ import { PanoVideoPlugin as wp } from "./PanoVideoPlugin/index.js";
32
+ import { index as Hp } from "./shared-utils/index.js";
33
+ import { CSS3DRender as jp } from "./CSS3DRenderPlugin/CSS3DRender.js";
34
+ import { Model as qp } from "./PanoMeasurePlugin/Model/index.js";
35
+ import { default as Jp } from "./PanoMeasurePlugin/Model/point.js";
36
+ import { default as Qp } from "./PanoMeasurePlugin/Model/line.js";
37
+ import { Polyline as Xp } from "./PanoMeasurePlugin/Model/polyline.js";
38
+ import { default as $p } from "./PanoMeasurePlugin/Modules/Magnifier.js";
39
+ import { DISPLAY_STRATEGY_TYPE as re } from "./ModelItemLabelPlugin/typings.js";
40
+ import { ModelItemLabelPlugin as me } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
41
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as pe } from "./ItemLabelPlugin/typings.js";
42
+ import { Plugin as le } from "./ItemLabelPlugin/Plugin.js";
43
+ import { default as ae } from "./CruisePlugin/Controller.js";
44
+ import { default as ue, pluginFlag as fe } from "./PanoTagPlugin/controller/index.js";
45
+ import { ContentType as ge } from "./PanoTagPlugin/typings/tag/TagData.js";
46
+ import { DimensionType as de, PointType as Te } from "./PanoTagPlugin/typings/tag/Utils.js";
47
+ import { Object3DHelperController as Le, PLUGIN as Ee, VERSION as Re } from "./Object3DHelperPlugin/Controller.js";
48
+ import { typings as Ce } from "./PanoVideoPlugin/typings/index.js";
47
49
  import "./components/PaintBrush/Controller.js";
48
50
  import "./components/PaintBrush/utils.js";
49
51
  import "./components/PaintBrush/tween.js";
@@ -327,6 +329,9 @@ import "./shared-utils/Object3DHelper/utils/vectorIsEqual.js";
327
329
  import "./shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
328
330
  import "./shared-utils/Object3DHelper/Helper/ScaleHelper.js";
329
331
  import "./shared-utils/Object3DHelper/Controller/ScaleController.js";
332
+ import "./PanoVideoPlugin/Controller.js";
333
+ import "./PanoVideoPlugin/VideoMeshController.js";
334
+ import "./PanoVideoPlugin/utils/shader.js";
330
335
  import "./shared-utils/math/Interval.js";
331
336
  import "./shared-utils/math/Rectangle.js";
332
337
  import "./shared-utils/three/Magnifier.js";
@@ -338,58 +343,60 @@ import "./shared-utils/three/Assets/index.js";
338
343
  import "./shared-utils/three/PointDomHelper.js";
339
344
  import "./shared-utils/three/FivePointSelector.js";
340
345
  export {
341
- hi as CSS3DRender,
342
- Fp as CSS3DRenderPlugin,
343
- ii as CameraMovementEffect,
344
- mi as CameraMovementPlugin,
345
- ae as ContentType,
346
- Yi as CruisePlugin,
347
- pe as CruisePluginController,
348
- _i as DIRECTION,
349
- Wi as DISPLAY_STRATEGY_TYPE,
350
- ue as DimensionType,
351
- wp as FLOOR_PLAN_ATTACHED_TO,
352
- Qp as FLOOR_TYPE_MAP,
353
- Di as GuideLinePlugin,
354
- oe as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
355
- te as ItemLabelPlugin,
356
- Ki as Magnifier,
357
- jp as MapviewFloorplanPlugin,
358
- $p as ModelChassisCompassPlugin,
359
- ri as ModelEntryDoorGuidePlugin,
360
- Hp as ModelFloorplanPlugin,
361
- Zi as ModelItemLabelPlugin,
362
- cp as ModelRoomLabelPlugin,
363
- Ei as ModelTVVideoPlugin,
364
- Yp as ModelViewPlugin,
365
- ge as Object3DHelperController,
366
- Gi as Object3DHelperPlugin,
367
- se as PLUGIN,
368
- Ip as PaintBrush,
369
- Dp as PaintBrushTypeEnum,
370
- fi as PanoCompassPlugin,
371
- Gp as PanoCursorRaycasterPlugin,
372
- Ii as PanoDoorLabelPlugin,
373
- Jp as PanoFloorplanRadarPlugin,
374
- gi as PanoMeasurePlugin,
375
- ki as PanoMeasurePluginLine,
376
- Bi as PanoMeasurePluginModel,
377
- Ui as PanoMeasurePluginPoint,
378
- zi as PanoMeasurePluginPolyline,
379
- ni as PanoRulerPlugin,
380
- Pi as PanoRulerProPlugin,
381
- Mi as PanoSpatialTagPlugin,
382
- Fi as PanoTagPlugin,
383
- ee as PanoTagPluginController,
384
- fe as PointType,
385
- Wp as ROOM_FETILE_TYPE_MAP,
386
- Xp as ROOM_TYPE_MAP,
387
- ei as Rotation,
388
- qp as TopviewFloorplanPlugin,
389
- ci as Util,
390
- Me as VERSION,
391
- Oi as itemLabelPluginServerParams,
392
- di as modelItemLabelPluginServerParams,
393
- Vp as modelRoomLabelPluginServerParams,
394
- le as pluginFlag
346
+ jp as CSS3DRender,
347
+ Vi as CSS3DRenderPlugin,
348
+ np as CameraMovementEffect,
349
+ ep as CameraMovementPlugin,
350
+ ge as ContentType,
351
+ vp as CruisePlugin,
352
+ ae as CruisePluginController,
353
+ Sp as DIRECTION,
354
+ re as DISPLAY_STRATEGY_TYPE,
355
+ de as DimensionType,
356
+ Ui as FLOOR_PLAN_ATTACHED_TO,
357
+ Zi as FLOOR_TYPE_MAP,
358
+ Yp as GuideLinePlugin,
359
+ pe as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
360
+ le as ItemLabelPlugin,
361
+ $p as Magnifier,
362
+ zi as MapviewFloorplanPlugin,
363
+ tp as ModelChassisCompassPlugin,
364
+ ip as ModelEntryDoorGuidePlugin,
365
+ ki as ModelFloorplanPlugin,
366
+ me as ModelItemLabelPlugin,
367
+ wi as ModelRoomLabelPlugin,
368
+ Cp as ModelTVVideoPlugin,
369
+ vi as ModelViewPlugin,
370
+ Le as Object3DHelperController,
371
+ cp as Object3DHelperPlugin,
372
+ Ee as PLUGIN,
373
+ yi as PaintBrush,
374
+ Yi as PaintBrushTypeEnum,
375
+ sp as PanoCompassPlugin,
376
+ ci as PanoCursorRaycasterPlugin,
377
+ yp as PanoDoorLabelPlugin,
378
+ Wi as PanoFloorplanRadarPlugin,
379
+ Tp as PanoMeasurePlugin,
380
+ Qp as PanoMeasurePluginLine,
381
+ qp as PanoMeasurePluginModel,
382
+ Jp as PanoMeasurePluginPoint,
383
+ Xp as PanoMeasurePluginPolyline,
384
+ up as PanoRulerPlugin,
385
+ xp as PanoRulerProPlugin,
386
+ Lp as PanoSpatialTagPlugin,
387
+ Vp as PanoTagPlugin,
388
+ ue as PanoTagPluginController,
389
+ wp as PanoVideoPlugin,
390
+ Ce as PanoVideoPluginType,
391
+ Te as PointType,
392
+ $i as ROOM_FETILE_TYPE_MAP,
393
+ op as ROOM_TYPE_MAP,
394
+ ap as Rotation,
395
+ Ki as TopviewFloorplanPlugin,
396
+ Hp as Util,
397
+ Re as VERSION,
398
+ Ap as itemLabelPluginServerParams,
399
+ Rp as modelItemLabelPluginServerParams,
400
+ Bi as modelRoomLabelPluginServerParams,
401
+ fe as pluginFlag
395
402
  };
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": "2.9.2",
10
+ "version": "2.10.0",
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*",
@@ -1,4 +0,0 @@
1
- declare const data: {
2
- tagList: any[];
3
- };
4
- export default data;
@@ -1,6 +0,0 @@
1
- const t = {
2
- tagList: []
3
- };
4
- export {
5
- t as default
6
- };
@@ -1,93 +0,0 @@
1
- declare const _default: ({
2
- id: number;
3
- pointType: string;
4
- dimensionType: string;
5
- position: number[];
6
- normal: number[];
7
- style: {
8
- point: {
9
- iconUrl: string;
10
- style: string;
11
- };
12
- style: string;
13
- };
14
- contentType: string;
15
- data: {
16
- text: string;
17
- extraData: {
18
- baseNormal: number[];
19
- fiveState: {
20
- distance: number;
21
- fov: number;
22
- latitude: number;
23
- longitude: number;
24
- mode: string;
25
- offset: {
26
- x: number;
27
- y: number;
28
- z: number;
29
- };
30
- panoIndex: number;
31
- };
32
- style: {
33
- point: {
34
- iconUrl: string;
35
- style: string;
36
- };
37
- style: string;
38
- };
39
- tagClosedStyle: string;
40
- tagIconUrl: string;
41
- };
42
- mediaData?: undefined;
43
- };
44
- } | {
45
- id: number;
46
- pointType: string;
47
- dimensionType: string;
48
- position: number[];
49
- normal: number[];
50
- style: {
51
- point: {
52
- iconUrl: string;
53
- style: string;
54
- };
55
- style?: undefined;
56
- };
57
- contentType: string;
58
- data: {
59
- text: string;
60
- mediaData: {
61
- type: string;
62
- url: string;
63
- videoCoverUrl: string;
64
- name: string;
65
- }[];
66
- extraData: {
67
- baseNormal: number[];
68
- fiveState: {
69
- distance: number;
70
- fov: number;
71
- latitude: number;
72
- longitude: number;
73
- mode: string;
74
- offset: {
75
- x: number;
76
- y: number;
77
- z: number;
78
- };
79
- panoIndex: number;
80
- };
81
- style: {
82
- point: {
83
- iconUrl: string;
84
- style: string;
85
- };
86
- style?: undefined;
87
- };
88
- tagClosedStyle: string;
89
- tagIconUrl: string;
90
- };
91
- };
92
- })[];
93
- export default _default;