@realsee/dnalogel 2.1.0-alpha.11 → 2.1.0-alpha.13

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/CSS3DRenderPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  2. package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  3. package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  4. package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  5. package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  6. package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  7. package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  8. package/dist/CameraMovementPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  9. package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  10. package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  11. package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  12. package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  13. package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  14. package/dist/CameraMovementPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  15. package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  16. package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  17. package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  18. package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  19. package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  20. package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  21. package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  22. package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  23. package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  24. package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  25. package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  26. package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  27. package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  28. package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  29. package/dist/ItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  30. package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  31. package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  32. package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  33. package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  34. package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  35. package/dist/ItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  36. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  37. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  38. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  39. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  40. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  41. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  42. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  43. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  44. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  45. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  46. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  47. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  48. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  49. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  50. package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  51. package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  52. package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  53. package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  54. package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  55. package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  56. package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  57. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  58. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  59. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  60. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  61. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  62. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  63. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  64. package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  65. package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  66. package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  67. package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  68. package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  69. package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  70. package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  71. package/dist/ModelViewPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  72. package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  73. package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  74. package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  75. package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  76. package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  77. package/dist/ModelViewPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  78. package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  79. package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  80. package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  81. package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  82. package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  83. package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  84. package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  85. package/dist/PanoCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  86. package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  87. package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  88. package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  89. package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  90. package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  91. package/dist/PanoCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  92. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  93. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  94. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  95. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  96. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  97. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  98. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  99. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  100. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  101. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  102. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  103. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  104. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  105. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  106. package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  107. package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  108. package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  109. package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  110. package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  111. package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  112. package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  113. package/dist/PanoRulerPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  114. package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  115. package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  116. package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  117. package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  118. package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  119. package/dist/PanoRulerPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  120. package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  121. package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  122. package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  123. package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  124. package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  125. package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  126. package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  127. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  128. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  129. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  130. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  131. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  132. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  133. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  134. package/dist/PanoTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  135. package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  136. package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  137. package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  138. package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  139. package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  140. package/dist/PanoTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  141. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  142. package/dist/PanoTagPlugin/controller/index.d.ts +9 -4
  143. package/dist/PanoTagPlugin/index.js +4869 -376
  144. package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  145. package/dist/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  146. package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
  147. package/dist/PanoTagPlugin/typings/tag.d.ts +10 -0
  148. package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  149. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  150. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  151. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  152. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  153. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  154. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  155. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  156. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  157. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  158. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  159. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  160. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  161. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  162. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  163. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  164. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  165. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  166. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  167. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  168. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  169. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  170. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  171. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
  172. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  173. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  174. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
  175. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
  176. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  177. package/dist/index.es.js +5063 -570
  178. package/dist/index.js +5075 -582
  179. package/dist/index.umd.js +5072 -584
  180. package/docs/assets/search.js +1 -1
  181. package/docs/classes/CruisePluginController.html +14 -14
  182. package/docs/classes/Magnifier.html +4 -4
  183. package/docs/classes/ModelRoomLabelController.html +4 -4
  184. package/docs/classes/Object3DHelperController.html +9 -9
  185. package/docs/classes/PanoTagPluginController.html +23 -51
  186. package/docs/enums/CameraMovementEffect.html +2 -2
  187. package/docs/enums/ContentType.html +7 -7
  188. package/docs/enums/DIRECTION.html +1 -1
  189. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  190. package/docs/enums/DimensionType.html +1 -1
  191. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  192. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  193. package/docs/enums/LinkType.html +1 -1
  194. package/docs/enums/PointType.html +1 -1
  195. package/docs/enums/Rotation.html +2 -2
  196. package/docs/index.html +1 -1
  197. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  198. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  199. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  200. package/docs/interfaces/FloorplanBounding.html +4 -4
  201. package/docs/interfaces/FloorplanData.html +2 -2
  202. package/docs/interfaces/FloorplanEntrance.html +7 -7
  203. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  204. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  205. package/docs/interfaces/FloorplanFloorData.html +2 -2
  206. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  207. package/docs/interfaces/FloorplanObserver.html +2 -2
  208. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  209. package/docs/interfaces/FloorplanPosition.html +2 -2
  210. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  211. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  212. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  213. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  214. package/docs/interfaces/FloorplanServerData.html +2 -2
  215. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  216. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  217. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  218. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  219. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  220. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  221. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  222. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  223. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  224. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  225. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  226. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  227. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  228. package/docs/interfaces/LineJson.html +1 -1
  229. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  230. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  231. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  232. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  233. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  234. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  235. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  236. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  237. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  238. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  239. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  240. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  241. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  242. package/docs/interfaces/Object3DHelperState.html +1 -1
  243. package/docs/interfaces/OpenParameter.html +2 -2
  244. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  245. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  246. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  247. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  248. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  249. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  250. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  251. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  252. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  253. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  254. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  255. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  256. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  257. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  258. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  259. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  260. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  261. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  262. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  263. package/docs/interfaces/Point.html +1 -1
  264. package/docs/interfaces/PointJson.html +1 -1
  265. package/docs/interfaces/Room.html +1 -1
  266. package/docs/interfaces/RoomInfo.html +1 -1
  267. package/docs/interfaces/RoomLabel.html +7 -7
  268. package/docs/interfaces/RoomRules.html +1 -1
  269. package/docs/interfaces/Rooms.html +1 -1
  270. package/docs/interfaces/Scissor.html +5 -5
  271. package/docs/interfaces/TagConfig.html +3 -3
  272. package/docs/interfaces/Tags.html +3 -3
  273. package/docs/modules.html +21 -21
  274. package/libs/PanoTagPlugin/Components/Common/Media.js +347 -194
  275. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +216 -0
  276. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -2
  277. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -0
  278. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +37 -17
  279. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
  280. package/libs/PanoTagPlugin/controller/TagComputer.js +14 -22
  281. package/libs/PanoTagPlugin/controller/index.d.ts +9 -4
  282. package/libs/PanoTagPlugin/controller/index.js +50 -23
  283. package/libs/PanoTagPlugin/mocks/mock1.d.ts +12 -4
  284. package/libs/PanoTagPlugin/mocks/mock1.js +10 -5
  285. package/libs/PanoTagPlugin/mocks/mock3.d.ts +11 -3
  286. package/libs/PanoTagPlugin/mocks/mock3.js +21 -22
  287. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
  288. package/libs/PanoTagPlugin/typings/tag.d.ts +10 -0
  289. package/libs/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
  290. package/package.json +2 -1
  291. package/libs/CSS3DRenderPlugin/Plugin.d.ts +0 -49
  292. package/libs/CSS3DRenderPlugin/Plugin.js +0 -182
  293. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
  294. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
  295. package/libs/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
  296. package/libs/GuideLinePlugin/utils/getLineGeometry.js +0 -64
  297. package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +0 -159
@@ -2,12 +2,13 @@
2
2
  import {
3
3
  SvelteComponent,
4
4
  add_render_callback,
5
- append,
6
5
  append_styles,
7
6
  attr,
8
7
  check_outros,
8
+ create_component,
9
9
  create_in_transition,
10
10
  create_out_transition,
11
+ destroy_component,
11
12
  destroy_each,
12
13
  detach,
13
14
  element,
@@ -15,106 +16,109 @@ import {
15
16
  group_outros,
16
17
  init,
17
18
  insert,
18
- noop,
19
+ mount_component,
19
20
  safe_not_equal,
20
- set_style,
21
21
  space,
22
- src_url_equal,
23
22
  toggle_class,
24
23
  transition_in,
25
24
  transition_out
26
25
  } from "svelte/internal";
27
26
 
28
27
  import { fly } from 'svelte/transition';
29
- import { Image_Play } from '../../Assets/Icon';
30
28
  import { linear } from 'svelte/easing';
31
- import { notNil } from '../../../shared-utils/isNil';
29
+ import { Swiper, SwiperSlide } from 'swiper/svelte';
30
+ import { Autoplay } from 'swiper';
31
+ import 'swiper/css';
32
+ import 'swiper/css/autoplay';
33
+ import { noTypecheck } from '../../utils';
34
+ import MediaItem from './MediaItem';
32
35
 
33
36
  function add_css(target) {
34
- append_styles(target, "svelte-129jnm", ".media.svelte-129jnm{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.carousel-item.svelte-129jnm{height:100%}.media-content.svelte-129jnm{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-129jnm{width:1.75rem;height:1.75rem;background-size:100%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
37
+ append_styles(target, "svelte-ai0lv9", ".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}");
35
38
  }
36
39
 
37
40
  function get_each_context(ctx, list, i) {
38
41
  const child_ctx = ctx.slice();
39
- child_ctx[9] = list[i];
42
+ child_ctx[14] = list[i];
40
43
  return child_ctx;
41
44
  }
42
45
 
43
- // (16:0) {#if unfolded}
46
+ // (24:0) {#if unfolded}
44
47
  function create_if_block(ctx) {
45
48
  let div;
49
+ let current_block_type_index;
50
+ let if_block;
46
51
  let div_intro;
47
52
  let div_outro;
48
53
  let current;
49
- let each_value = /*mediaDataList*/ ctx[6];
50
- let each_blocks = [];
54
+ const if_block_creators = [create_if_block_1, create_else_block];
55
+ const if_blocks = [];
51
56
 
52
- for (let i = 0; i < each_value.length; i += 1) {
53
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
57
+ function select_block_type(ctx, dirty) {
58
+ if (/*carouselEnabled*/ ctx[11]) return 0;
59
+ return 1;
54
60
  }
55
61
 
62
+ current_block_type_index = select_block_type(ctx, -1);
63
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
64
+
56
65
  return {
57
66
  c() {
58
67
  div = element("div");
59
-
60
- for (let i = 0; i < each_blocks.length; i += 1) {
61
- each_blocks[i].c();
62
- }
63
-
64
- attr(div, "class", "media svelte-129jnm");
65
- toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
68
+ if_block.c();
69
+ attr(div, "class", "media svelte-ai0lv9");
70
+ toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
66
71
  },
67
72
  m(target, anchor) {
68
73
  insert(target, div, anchor);
69
-
70
- for (let i = 0; i < each_blocks.length; i += 1) {
71
- each_blocks[i].m(div, null);
72
- }
73
-
74
+ if_blocks[current_block_type_index].m(div, null);
74
75
  current = true;
75
76
  },
76
77
  p(new_ctx, dirty) {
77
78
  ctx = new_ctx;
79
+ let previous_block_index = current_block_type_index;
80
+ current_block_type_index = select_block_type(ctx, dirty);
78
81
 
79
- if (dirty & /*objectFit, Image_Play, mediaDataList*/ 96) {
80
- each_value = /*mediaDataList*/ ctx[6];
81
- let i;
82
+ if (current_block_type_index === previous_block_index) {
83
+ if_blocks[current_block_type_index].p(ctx, dirty);
84
+ } else {
85
+ group_outros();
82
86
 
83
- for (i = 0; i < each_value.length; i += 1) {
84
- const child_ctx = get_each_context(ctx, each_value, i);
87
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
88
+ if_blocks[previous_block_index] = null;
89
+ });
85
90
 
86
- if (each_blocks[i]) {
87
- each_blocks[i].p(child_ctx, dirty);
88
- } else {
89
- each_blocks[i] = create_each_block(child_ctx);
90
- each_blocks[i].c();
91
- each_blocks[i].m(div, null);
92
- }
93
- }
91
+ check_outros();
92
+ if_block = if_blocks[current_block_type_index];
94
93
 
95
- for (; i < each_blocks.length; i += 1) {
96
- each_blocks[i].d(1);
94
+ if (!if_block) {
95
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
96
+ if_block.c();
97
+ } else {
98
+ if_block.p(ctx, dirty);
97
99
  }
98
100
 
99
- each_blocks.length = each_value.length;
101
+ transition_in(if_block, 1);
102
+ if_block.m(div, null);
100
103
  }
101
104
 
102
- if (!current || dirty & /*unfolded*/ 8) {
103
- toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
105
+ if (!current || dirty & /*unfolded*/ 16) {
106
+ toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
104
107
  }
105
108
  },
106
109
  i(local) {
107
110
  if (current) return;
111
+ transition_in(if_block);
108
112
 
109
113
  if (local) {
110
114
  add_render_callback(() => {
111
115
  if (div_outro) div_outro.end(1);
112
116
 
113
- div_intro = create_in_transition(div, fly, /*animation*/ ctx[4]
117
+ div_intro = create_in_transition(div, fly, /*animation*/ ctx[5]
114
118
  ? {
115
119
  y: 4,
116
- duration: /*duration*/ ctx[2],
117
- delay: /*inDelay*/ ctx[0],
120
+ duration: /*duration*/ ctx[3],
121
+ delay: /*inDelay*/ ctx[1],
118
122
  easing: linear
119
123
  }
120
124
  : undefined);
@@ -126,14 +130,15 @@ function create_if_block(ctx) {
126
130
  current = true;
127
131
  },
128
132
  o(local) {
133
+ transition_out(if_block);
129
134
  if (div_intro) div_intro.invalidate();
130
135
 
131
136
  if (local) {
132
- div_outro = create_out_transition(div, fly, /*animation*/ ctx[4]
137
+ div_outro = create_out_transition(div, fly, /*animation*/ ctx[5]
133
138
  ? {
134
139
  y: 4,
135
- duration: /*duration*/ ctx[2],
136
- delay: /*outDelay*/ ctx[1],
140
+ duration: /*duration*/ ctx[3],
141
+ delay: /*outDelay*/ ctx[2],
137
142
  easing: linear
138
143
  }
139
144
  : undefined);
@@ -143,213 +148,295 @@ function create_if_block(ctx) {
143
148
  },
144
149
  d(detaching) {
145
150
  if (detaching) detach(div);
146
- destroy_each(each_blocks, detaching);
151
+ if_blocks[current_block_type_index].d();
147
152
  if (detaching && div_outro) div_outro.end();
148
153
  }
149
154
  };
150
155
  }
151
156
 
152
- // (29:65)
153
- function create_if_block_4(ctx) {
154
- let video;
155
- let video_src_value;
156
- let video_poster_value;
157
- let video_loop_value;
158
- let video_controls_value;
157
+ // (80:4) {:else}
158
+ function create_else_block(ctx) {
159
+ let mediaitem;
160
+ let current;
161
+
162
+ mediaitem = new MediaItem({
163
+ props: {
164
+ media: /*mediaData*/ ctx[0][0],
165
+ objectFit: /*objectFit*/ ctx[6]
166
+ }
167
+ });
159
168
 
160
169
  return {
161
170
  c() {
162
- video = element("video");
163
- attr(video, "class", "media-content svelte-129jnm");
164
- if (!src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) attr(video, "src", video_src_value);
165
- attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
166
- video.playsInline = true;
167
- attr(video, "paused", "");
168
- video.loop = video_loop_value = false;
169
- attr(video, "preload", "auto");
170
- attr(video, "crossorigin", "");
171
- video.controls = video_controls_value = false;
172
- video.muted = true;
171
+ create_component(mediaitem.$$.fragment);
173
172
  },
174
173
  m(target, anchor) {
175
- insert(target, video, anchor);
174
+ mount_component(mediaitem, target, anchor);
175
+ current = true;
176
176
  },
177
177
  p(ctx, dirty) {
178
- if (dirty & /*mediaDataList*/ 64 && !src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) {
179
- attr(video, "src", video_src_value);
180
- }
181
-
182
- if (dirty & /*mediaDataList*/ 64 && video_poster_value !== (video_poster_value = /*media*/ ctx[9].videoCoverUrl)) {
183
- attr(video, "poster", video_poster_value);
184
- }
178
+ const mediaitem_changes = {};
179
+ if (dirty & /*mediaData*/ 1) mediaitem_changes.media = /*mediaData*/ ctx[0][0];
180
+ if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
181
+ mediaitem.$set(mediaitem_changes);
182
+ },
183
+ i(local) {
184
+ if (current) return;
185
+ transition_in(mediaitem.$$.fragment, local);
186
+ current = true;
187
+ },
188
+ o(local) {
189
+ transition_out(mediaitem.$$.fragment, local);
190
+ current = false;
185
191
  },
186
192
  d(detaching) {
187
- if (detaching) detach(video);
193
+ destroy_component(mediaitem, detaching);
188
194
  }
189
195
  };
190
196
  }
191
197
 
192
- // (27:64)
193
- function create_if_block_3(ctx) {
194
- let img;
195
- let img_src_value;
196
- let img_alt_value;
198
+ // (31:4) {#if carouselEnabled}
199
+ function create_if_block_1(ctx) {
200
+ let swiper;
201
+ let current;
202
+
203
+ swiper = new Swiper({
204
+ props: {
205
+ style: "height: 100%",
206
+ modules: [Autoplay],
207
+ spaceBetween: 30,
208
+ autoplay: /*autoplay*/ ctx[10]
209
+ ? noTypecheck({
210
+ delay: 2000,
211
+ stopOnLastSlide: false,
212
+ disableOnInteraction: false
213
+ })
214
+ : false,
215
+ loop: true,
216
+ $$slots: { default: [create_default_slot] },
217
+ $$scope: { ctx }
218
+ }
219
+ });
220
+
221
+ swiper.$on("slideChange", /*slideChange_handler*/ ctx[13]);
197
222
 
198
223
  return {
199
224
  c() {
200
- img = element("img");
201
- attr(img, "class", "media-content svelte-129jnm");
202
- if (!src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) attr(img, "src", img_src_value);
203
- attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
225
+ create_component(swiper.$$.fragment);
204
226
  },
205
227
  m(target, anchor) {
206
- insert(target, img, anchor);
228
+ mount_component(swiper, target, anchor);
229
+ current = true;
207
230
  },
208
231
  p(ctx, dirty) {
209
- if (dirty & /*mediaDataList*/ 64 && !src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) {
210
- attr(img, "src", img_src_value);
232
+ const swiper_changes = {};
233
+
234
+ if (dirty & /*autoplay*/ 1024) swiper_changes.autoplay = /*autoplay*/ ctx[10]
235
+ ? noTypecheck({
236
+ delay: 2000,
237
+ stopOnLastSlide: false,
238
+ disableOnInteraction: false
239
+ })
240
+ : false;
241
+
242
+ if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
243
+ swiper_changes.$$scope = { dirty, ctx };
211
244
  }
212
245
 
213
- if (dirty & /*mediaDataList*/ 64 && img_alt_value !== (img_alt_value = /*media*/ ctx[9].name)) {
214
- attr(img, "alt", img_alt_value);
215
- }
246
+ swiper.$set(swiper_changes);
247
+ },
248
+ i(local) {
249
+ if (current) return;
250
+ transition_in(swiper.$$.fragment, local);
251
+ current = true;
252
+ },
253
+ o(local) {
254
+ transition_out(swiper.$$.fragment, local);
255
+ current = false;
216
256
  },
217
257
  d(detaching) {
218
- if (detaching) detach(img);
258
+ destroy_component(swiper, detaching);
219
259
  }
220
260
  };
221
261
  }
222
262
 
223
- // (25:8) {#if media.type === 'Image'}
224
- function create_if_block_2(ctx) {
225
- let img;
226
- let img_src_value;
227
- let img_alt_value;
263
+ // (75:10) <SwiperSlide>
264
+ function create_default_slot_1(ctx) {
265
+ let mediaitem;
266
+ let t;
267
+ let current;
268
+
269
+ mediaitem = new MediaItem({
270
+ props: {
271
+ media: /*media*/ ctx[14],
272
+ objectFit: /*objectFit*/ ctx[6]
273
+ }
274
+ });
228
275
 
229
276
  return {
230
277
  c() {
231
- img = element("img");
232
- attr(img, "class", "media-content carousel-indicator-item svelte-129jnm");
233
- if (!src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) attr(img, "src", img_src_value);
234
- attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
278
+ create_component(mediaitem.$$.fragment);
279
+ t = space();
235
280
  },
236
281
  m(target, anchor) {
237
- insert(target, img, anchor);
282
+ mount_component(mediaitem, target, anchor);
283
+ insert(target, t, anchor);
284
+ current = true;
238
285
  },
239
286
  p(ctx, dirty) {
240
- if (dirty & /*mediaDataList*/ 64 && !src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) {
241
- attr(img, "src", img_src_value);
242
- }
243
-
244
- if (dirty & /*mediaDataList*/ 64 && img_alt_value !== (img_alt_value = /*media*/ ctx[9].name)) {
245
- attr(img, "alt", img_alt_value);
246
- }
287
+ const mediaitem_changes = {};
288
+ if (dirty & /*mediaDataList*/ 256) mediaitem_changes.media = /*media*/ ctx[14];
289
+ if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
290
+ mediaitem.$set(mediaitem_changes);
291
+ },
292
+ i(local) {
293
+ if (current) return;
294
+ transition_in(mediaitem.$$.fragment, local);
295
+ current = true;
296
+ },
297
+ o(local) {
298
+ transition_out(mediaitem.$$.fragment, local);
299
+ current = false;
247
300
  },
248
301
  d(detaching) {
249
- if (detaching) detach(img);
302
+ destroy_component(mediaitem, detaching);
303
+ if (detaching) detach(t);
250
304
  }
251
305
  };
252
306
  }
253
307
 
254
- // (33:8) {#if media.type === 'Video'}
255
- function create_if_block_1(ctx) {
256
- let div;
308
+ // (74:8) {#each mediaDataList as media}
309
+ function create_each_block(ctx) {
310
+ let swiperslide;
311
+ let current;
312
+
313
+ swiperslide = new SwiperSlide({
314
+ props: {
315
+ $$slots: { default: [create_default_slot_1] },
316
+ $$scope: { ctx }
317
+ }
318
+ });
257
319
 
258
320
  return {
259
321
  c() {
260
- div = element("div");
261
- attr(div, "class", "video-icon svelte-129jnm");
262
- set_style(div, "background-image", "url(" + Image_Play + ")");
322
+ create_component(swiperslide.$$.fragment);
263
323
  },
264
324
  m(target, anchor) {
265
- insert(target, div, anchor);
325
+ mount_component(swiperslide, target, anchor);
326
+ current = true;
327
+ },
328
+ p(ctx, dirty) {
329
+ const swiperslide_changes = {};
330
+
331
+ if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
332
+ swiperslide_changes.$$scope = { dirty, ctx };
333
+ }
334
+
335
+ swiperslide.$set(swiperslide_changes);
336
+ },
337
+ i(local) {
338
+ if (current) return;
339
+ transition_in(swiperslide.$$.fragment, local);
340
+ current = true;
341
+ },
342
+ o(local) {
343
+ transition_out(swiperslide.$$.fragment, local);
344
+ current = false;
266
345
  },
267
- p: noop,
268
346
  d(detaching) {
269
- if (detaching) detach(div);
347
+ destroy_component(swiperslide, detaching);
270
348
  }
271
349
  };
272
350
  }
273
351
 
274
- // (23:4) {#each mediaDataList as media}
275
- function create_each_block(ctx) {
276
- let div;
277
- let t0;
278
- let t1;
279
- let div_style_value;
352
+ // (32:6) <Swiper style="height: 100%" modules={[Autoplay]} spaceBetween={30} autoplay={autoplay ? noTypecheck({ delay: 2000, stopOnLastSlide: false, disableOnInteraction: false }) : false} loop on:slideChange={async (event) => { if (!autoplay) return if (!autoplayConfig.autoplayVideo) return const swiper = event.detail[0] if (!swiper) return const index = swiper.realIndex // loop 完一圈后,swiper.realIndex 会重复一次,比如有三张图片 [0,1,2],slideChange 触发后输出的 index 为 [0,1,2,0,0,1,2,0,0,1,2,0], 添加 lastAutoPlayIndex 判断后,输出为[0,1,2,0,1,2,0,1,2,0] if (index === lastAutoPlayIndex) return lastAutoPlayIndex = index const media = mediaDataList[index] if (!media) return if (media.type !== 'Video') return // 先暂停自动轮播 swiper.autoplay.stop() // 播放视频 await new Promise((resolve) => { const video = swiper.slides[swiper.activeIndex]?.querySelector('video') if (!video) { resolve(noTypecheck(null)) return } video.play() video.onerror = () => resolve(noTypecheck(null)) video.onended = () => resolve(noTypecheck(null)) video.onclick = () => { video.pause() resolve(noTypecheck(null)) } }) // 恢复自动轮播 swiper.autoplay.start() }} >
353
+ function create_default_slot(ctx) {
354
+ let each_1_anchor;
355
+ let current;
356
+ let each_value = /*mediaDataList*/ ctx[8];
357
+ let each_blocks = [];
280
358
 
281
- function select_block_type(ctx, dirty) {
282
- if (/*media*/ ctx[9].type === 'Image') return create_if_block_2;
283
- if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3;
284
- if (/*media*/ ctx[9].type === 'Video' && !/*media*/ ctx[9].videoCoverUrl) return create_if_block_4;
359
+ for (let i = 0; i < each_value.length; i += 1) {
360
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
285
361
  }
286
362
 
287
- let current_block_type = select_block_type(ctx, -1);
288
- let if_block0 = current_block_type && current_block_type(ctx);
289
- let if_block1 = /*media*/ ctx[9].type === 'Video' && create_if_block_1(ctx);
363
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
364
+ each_blocks[i] = null;
365
+ });
290
366
 
291
367
  return {
292
368
  c() {
293
- div = element("div");
294
- if (if_block0) if_block0.c();
295
- t0 = space();
296
- if (if_block1) if_block1.c();
297
- t1 = space();
298
- attr(div, "class", "carousel-item svelte-129jnm");
299
- attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`);
369
+ for (let i = 0; i < each_blocks.length; i += 1) {
370
+ each_blocks[i].c();
371
+ }
372
+
373
+ each_1_anchor = empty();
300
374
  },
301
375
  m(target, anchor) {
302
- insert(target, div, anchor);
303
- if (if_block0) if_block0.m(div, null);
304
- append(div, t0);
305
- if (if_block1) if_block1.m(div, null);
306
- append(div, t1);
376
+ for (let i = 0; i < each_blocks.length; i += 1) {
377
+ each_blocks[i].m(target, anchor);
378
+ }
379
+
380
+ insert(target, each_1_anchor, anchor);
381
+ current = true;
307
382
  },
308
383
  p(ctx, dirty) {
309
- if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block0) {
310
- if_block0.p(ctx, dirty);
311
- } else {
312
- if (if_block0) if_block0.d(1);
313
- if_block0 = current_block_type && current_block_type(ctx);
384
+ if (dirty & /*mediaDataList, objectFit*/ 320) {
385
+ each_value = /*mediaDataList*/ ctx[8];
386
+ let i;
314
387
 
315
- if (if_block0) {
316
- if_block0.c();
317
- if_block0.m(div, t0);
388
+ for (i = 0; i < each_value.length; i += 1) {
389
+ const child_ctx = get_each_context(ctx, each_value, i);
390
+
391
+ if (each_blocks[i]) {
392
+ each_blocks[i].p(child_ctx, dirty);
393
+ transition_in(each_blocks[i], 1);
394
+ } else {
395
+ each_blocks[i] = create_each_block(child_ctx);
396
+ each_blocks[i].c();
397
+ transition_in(each_blocks[i], 1);
398
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
399
+ }
318
400
  }
319
- }
320
401
 
321
- if (/*media*/ ctx[9].type === 'Video') {
322
- if (if_block1) {
323
- if_block1.p(ctx, dirty);
324
- } else {
325
- if_block1 = create_if_block_1(ctx);
326
- if_block1.c();
327
- if_block1.m(div, t1);
402
+ group_outros();
403
+
404
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
405
+ out(i);
328
406
  }
329
- } else if (if_block1) {
330
- if_block1.d(1);
331
- if_block1 = null;
407
+
408
+ check_outros();
332
409
  }
410
+ },
411
+ i(local) {
412
+ if (current) return;
333
413
 
334
- if (dirty & /*objectFit*/ 32 && div_style_value !== (div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`)) {
335
- attr(div, "style", div_style_value);
414
+ for (let i = 0; i < each_value.length; i += 1) {
415
+ transition_in(each_blocks[i]);
336
416
  }
417
+
418
+ current = true;
337
419
  },
338
- d(detaching) {
339
- if (detaching) detach(div);
420
+ o(local) {
421
+ each_blocks = each_blocks.filter(Boolean);
340
422
 
341
- if (if_block0) {
342
- if_block0.d();
423
+ for (let i = 0; i < each_blocks.length; i += 1) {
424
+ transition_out(each_blocks[i]);
343
425
  }
344
426
 
345
- if (if_block1) if_block1.d();
427
+ current = false;
428
+ },
429
+ d(detaching) {
430
+ destroy_each(each_blocks, detaching);
431
+ if (detaching) detach(each_1_anchor);
346
432
  }
347
433
  };
348
434
  }
349
435
 
350
436
  function create_fragment(ctx) {
351
437
  let if_block_anchor;
352
- let if_block = /*unfolded*/ ctx[3] && create_if_block(ctx);
438
+ let current;
439
+ let if_block = /*unfolded*/ ctx[4] && create_if_block(ctx);
353
440
 
354
441
  return {
355
442
  c() {
@@ -359,13 +446,14 @@ function create_fragment(ctx) {
359
446
  m(target, anchor) {
360
447
  if (if_block) if_block.m(target, anchor);
361
448
  insert(target, if_block_anchor, anchor);
449
+ current = true;
362
450
  },
363
451
  p(ctx, [dirty]) {
364
- if (/*unfolded*/ ctx[3]) {
452
+ if (/*unfolded*/ ctx[4]) {
365
453
  if (if_block) {
366
454
  if_block.p(ctx, dirty);
367
455
 
368
- if (dirty & /*unfolded*/ 8) {
456
+ if (dirty & /*unfolded*/ 16) {
369
457
  transition_in(if_block, 1);
370
458
  }
371
459
  } else {
@@ -385,10 +473,13 @@ function create_fragment(ctx) {
385
473
  }
386
474
  },
387
475
  i(local) {
476
+ if (current) return;
388
477
  transition_in(if_block);
478
+ current = true;
389
479
  },
390
480
  o(local) {
391
481
  transition_out(if_block);
482
+ current = false;
392
483
  },
393
484
  d(detaching) {
394
485
  if (if_block) if_block.d(detaching);
@@ -398,7 +489,9 @@ function create_fragment(ctx) {
398
489
  }
399
490
 
400
491
  function instance($$self, $$props, $$invalidate) {
492
+ let carouselEnabled;
401
493
  let mediaDataList;
494
+ let autoplay;
402
495
  let { mediaData } = $$props;
403
496
  let { inDelay = 0 } = $$props;
404
497
  let { outDelay = 0 } = $$props;
@@ -407,34 +500,93 @@ function instance($$self, $$props, $$invalidate) {
407
500
  let { animation = true } = $$props;
408
501
  let { objectFit = 'cover' } = $$props;
409
502
  let { enableCarousel = true } = $$props;
503
+ let { autoplayConfig = { autoplay: true, autoplayVideo: false } } = $$props;
504
+ let lastAutoPlayIndex = null;
505
+
506
+ const slideChange_handler = async event => {
507
+ if (!autoplay) return;
508
+ if (!autoplayConfig.autoplayVideo) return;
509
+ const swiper = event.detail[0];
510
+ if (!swiper) return;
511
+ const index = swiper.realIndex;
512
+
513
+ // loop 完一圈后,swiper.realIndex 会重复一次,比如有三张图片 [0,1,2],slideChange 触发后输出的 index 为 [0,1,2,0,0,1,2,0,0,1,2,0], 添加 lastAutoPlayIndex 判断后,输出为[0,1,2,0,1,2,0,1,2,0]
514
+ if (index === lastAutoPlayIndex) return;
515
+
516
+ $$invalidate(9, lastAutoPlayIndex = index);
517
+ const media = mediaDataList[index];
518
+ if (!media) return;
519
+ if (media.type !== 'Video') return;
520
+
521
+ // 先暂停自动轮播
522
+ swiper.autoplay.stop();
523
+
524
+ // 播放视频
525
+ await new Promise(resolve => {
526
+ const video = swiper.slides[swiper.activeIndex]?.querySelector('video');
527
+
528
+ if (!video) {
529
+ resolve(noTypecheck(null));
530
+ return;
531
+ }
532
+
533
+ video.play();
534
+ video.onerror = () => resolve(noTypecheck(null));
535
+ video.onended = () => resolve(noTypecheck(null));
536
+
537
+ video.onclick = () => {
538
+ video.pause();
539
+ resolve(noTypecheck(null));
540
+ };
541
+ });
542
+
543
+ // 恢复自动轮播
544
+ swiper.autoplay.start();
545
+ };
410
546
 
411
547
  $$self.$$set = $$props => {
412
- if ('mediaData' in $$props) $$invalidate(7, mediaData = $$props.mediaData);
413
- if ('inDelay' in $$props) $$invalidate(0, inDelay = $$props.inDelay);
414
- if ('outDelay' in $$props) $$invalidate(1, outDelay = $$props.outDelay);
415
- if ('duration' in $$props) $$invalidate(2, duration = $$props.duration);
416
- if ('unfolded' in $$props) $$invalidate(3, unfolded = $$props.unfolded);
417
- if ('animation' in $$props) $$invalidate(4, animation = $$props.animation);
418
- if ('objectFit' in $$props) $$invalidate(5, objectFit = $$props.objectFit);
419
- if ('enableCarousel' in $$props) $$invalidate(8, enableCarousel = $$props.enableCarousel);
548
+ if ('mediaData' in $$props) $$invalidate(0, mediaData = $$props.mediaData);
549
+ if ('inDelay' in $$props) $$invalidate(1, inDelay = $$props.inDelay);
550
+ if ('outDelay' in $$props) $$invalidate(2, outDelay = $$props.outDelay);
551
+ if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
552
+ if ('unfolded' in $$props) $$invalidate(4, unfolded = $$props.unfolded);
553
+ if ('animation' in $$props) $$invalidate(5, animation = $$props.animation);
554
+ if ('objectFit' in $$props) $$invalidate(6, objectFit = $$props.objectFit);
555
+ if ('enableCarousel' in $$props) $$invalidate(12, enableCarousel = $$props.enableCarousel);
556
+ if ('autoplayConfig' in $$props) $$invalidate(7, autoplayConfig = $$props.autoplayConfig);
420
557
  };
421
558
 
422
559
  $$self.$$.update = () => {
423
- if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 384) {
424
- $: $$invalidate(6, mediaDataList = (enableCarousel ? mediaData : [mediaData[0]]).filter(notNil));
560
+ if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 4097) {
561
+ $: $$invalidate(11, carouselEnabled = enableCarousel && (mediaData === null || mediaData === void 0
562
+ ? void 0
563
+ : mediaData.length) > 1);
564
+ }
565
+
566
+ if ($$self.$$.dirty & /*mediaData*/ 1) {
567
+ $: $$invalidate(8, mediaDataList = mediaData);
568
+ }
569
+
570
+ if ($$self.$$.dirty & /*mediaDataList, autoplayConfig*/ 384) {
571
+ $: $$invalidate(10, autoplay = mediaDataList.length > 1 && autoplayConfig.autoplay);
425
572
  }
426
573
  };
427
574
 
428
575
  return [
576
+ mediaData,
429
577
  inDelay,
430
578
  outDelay,
431
579
  duration,
432
580
  unfolded,
433
581
  animation,
434
582
  objectFit,
583
+ autoplayConfig,
435
584
  mediaDataList,
436
- mediaData,
437
- enableCarousel
585
+ lastAutoPlayIndex,
586
+ autoplay,
587
+ carouselEnabled,
588
+ enableCarousel,
589
+ slideChange_handler
438
590
  ];
439
591
  }
440
592
 
@@ -449,14 +601,15 @@ class Component extends SvelteComponent {
449
601
  create_fragment,
450
602
  safe_not_equal,
451
603
  {
452
- mediaData: 7,
453
- inDelay: 0,
454
- outDelay: 1,
455
- duration: 2,
456
- unfolded: 3,
457
- animation: 4,
458
- objectFit: 5,
459
- enableCarousel: 8
604
+ mediaData: 0,
605
+ inDelay: 1,
606
+ outDelay: 2,
607
+ duration: 3,
608
+ unfolded: 4,
609
+ animation: 5,
610
+ objectFit: 6,
611
+ enableCarousel: 12,
612
+ autoplayConfig: 7
460
613
  },
461
614
  add_css
462
615
  );