@realsee/five 6.0.0-alpha.10 → 6.0.0-alpha.100

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 (385) hide show
  1. package/README.md +58 -1
  2. package/TERMS.txt +0 -2
  3. package/docs/assets/highlight.css +20 -20
  4. package/docs/assets/main.js +59 -52
  5. package/docs/assets/navigation.js +1 -0
  6. package/docs/assets/search.js +1 -1
  7. package/docs/assets/style.css +805 -825
  8. package/docs/classes/five.AnimationFrameLoop.html +16 -15
  9. package/docs/classes/five.BoxBoundingVolume.html +19 -1
  10. package/docs/classes/five.Camera.html +38 -11
  11. package/docs/classes/five.CullingVolume.html +13 -1
  12. package/docs/classes/five.Fetcher.html +5 -0
  13. package/docs/classes/five.Five.html +235 -290
  14. package/docs/classes/five.InternalWebGLRenderer.html +2 -1
  15. package/docs/classes/five.IntersectMesh.html +4 -1
  16. package/docs/classes/five.Model.html +69 -55
  17. package/docs/classes/five.ModelViewLayer.html +18 -0
  18. package/docs/classes/five.NetworkAbortError.html +2 -0
  19. package/docs/classes/five.NetworkFirbiddenError.html +2 -0
  20. package/docs/classes/five.NetworkResponseError.html +3 -0
  21. package/docs/classes/five.NetworkSubscribe.html +42 -56
  22. package/docs/classes/five.NetworkTimeoutError.html +2 -0
  23. package/docs/classes/five.PBMContainer.html +12 -13
  24. package/docs/classes/five.PBMGroup.html +3 -3
  25. package/docs/classes/five.PBMMesh.html +4 -5
  26. package/docs/classes/five.PBMMeshMaterial.html +50 -45
  27. package/docs/classes/five.PanoCircleMesh.html +30 -7
  28. package/docs/classes/five.PanoCircleMeshCustom.html +30 -7
  29. package/docs/classes/five.PanoCircleMeshSolid.html +30 -7
  30. package/docs/classes/five.RegionBoundingVolume.html +22 -1
  31. package/docs/classes/five.RequestScheduler.html +13 -12
  32. package/docs/classes/five.Scene.html +5 -3
  33. package/docs/classes/five.SphereBoundingVolume.html +18 -1
  34. package/docs/classes/five.Subscribe.html +43 -62
  35. package/docs/classes/five.TextureLoader.html +5 -1
  36. package/docs/classes/five.Tile.html +30 -1
  37. package/docs/classes/five.Tile3DModel.html +45 -1
  38. package/docs/classes/five.TileCubeTextureTarget.html +9 -1
  39. package/docs/classes/five.TileNode.html +5 -1
  40. package/docs/classes/five.Tileset.html +33 -5
  41. package/docs/classes/five.TilesetCache.html +8 -1
  42. package/docs/classes/five.TilesetTraverser.html +19 -1
  43. package/docs/classes/five.Work.html +33 -28
  44. package/docs/classes/five.XRButton.html +3 -1
  45. package/docs/classes/gltf_loader.DDSLoader.html +3 -1
  46. package/docs/classes/gltf_loader.DRACOLoader.html +8 -1
  47. package/docs/classes/gltf_loader.GLTFLoader.html +18 -17
  48. package/docs/classes/gltf_loader.GLTFObject.html +8 -6
  49. package/docs/classes/gltf_loader.GLTFParser.html +6 -1
  50. package/docs/classes/gltf_loader.THREEGLTFLoader.html +8 -1
  51. package/docs/classes/line.Line.html +10 -1
  52. package/docs/classes/line.LineGeometry.html +14 -1
  53. package/docs/classes/line.LineMaterial.html +8 -1
  54. package/docs/classes/line.LineSegmentsGeometry.html +12 -1
  55. package/docs/classes/line.THREE_Line2.html +4 -1
  56. package/docs/classes/line.THREE_LineSegments2.html +4 -1
  57. package/docs/classes/plugins.BasePlugin.Controller.html +38 -0
  58. package/docs/classes/plugins.ItemMaskController.html +37 -0
  59. package/docs/classes/react.Store.html +23 -29
  60. package/docs/classes/sticker.Sticker.html +25 -32
  61. package/docs/classes/vfx.Airflow.html +8 -1
  62. package/docs/classes/vfx.Flame.html +10 -1
  63. package/docs/classes/vfx.Particle.html +79 -82
  64. package/docs/classes/vfx.SpotLight.html +7 -1
  65. package/docs/enums/five.VolumePlaneIntersect.html +4 -1
  66. package/docs/functions/five.defaultImageURLTransform.html +5 -0
  67. package/docs/functions/five.getViewportScale.html +1 -0
  68. package/docs/functions/five.imageSupport.html +1 -0
  69. package/docs/functions/five.isPanoId.html +1 -0
  70. package/docs/functions/five.loadAt3d.html +1 -0
  71. package/docs/functions/five.loadB3dm.html +1 -0
  72. package/docs/functions/five.loadDome.html +1 -0
  73. package/docs/functions/five.loadDomez.html +1 -0
  74. package/docs/functions/five.loadPbm.html +1 -0
  75. package/docs/functions/five.loadPnts.html +1 -0
  76. package/docs/functions/five.panoEqual.html +1 -0
  77. package/docs/functions/five.panoParse.html +1 -0
  78. package/docs/functions/five.panoStringify.html +1 -0
  79. package/docs/functions/five.parseWork.html +7 -0
  80. package/docs/functions/plugins.ItemMaskPlugin.html +1 -0
  81. package/docs/functions/react.FiveCanvas-1.html +6 -0
  82. package/docs/functions/react.createFiveFeature.html +1 -0
  83. package/docs/functions/react.createFiveProvider.html +9 -0
  84. package/docs/functions/react.createStore.html +15 -0
  85. package/docs/functions/react.unsafe__useFiveInstance.html +5 -0
  86. package/docs/functions/react.useFiveAction.html +19 -0
  87. package/docs/functions/react.useFiveCameraDirection.html +3 -0
  88. package/docs/functions/react.useFiveCameraRaycaster.html +3 -0
  89. package/docs/functions/react.useFiveCurrentObserver.html +5 -0
  90. package/docs/functions/react.useFiveCurrentState.html +5 -0
  91. package/docs/functions/react.useFiveEventCallback.html +5 -0
  92. package/docs/functions/react.useFiveFloor.html +5 -0
  93. package/docs/functions/react.useFiveHelper.html +5 -0
  94. package/docs/functions/react.useFiveModelIntersectRaycaster.html +7 -0
  95. package/docs/functions/react.useFiveModelReadyState.html +4 -0
  96. package/docs/functions/react.useFiveProject2d.html +7 -0
  97. package/docs/functions/react.useFiveScene.html +2 -0
  98. package/docs/functions/react.useFiveSceneEffect.html +5 -0
  99. package/docs/functions/react.useFiveState.html +1 -0
  100. package/docs/functions/react.useFiveWork.html +8 -0
  101. package/docs/functions/react.withFive.html +1 -0
  102. package/docs/functions/vue.unsafe__useFiveInject.html +5 -0
  103. package/docs/functions/vue.useFiveAction.html +25 -0
  104. package/docs/functions/vue.useFiveCameraDirection.html +3 -0
  105. package/docs/functions/vue.useFiveCameraRaycaster.html +3 -0
  106. package/docs/functions/vue.useFiveCurrentObserver.html +5 -0
  107. package/docs/functions/vue.useFiveCurrentState.html +5 -0
  108. package/docs/functions/vue.useFiveEventCallback.html +5 -0
  109. package/docs/functions/vue.useFiveFloor.html +5 -0
  110. package/docs/functions/vue.useFiveHelper.html +5 -0
  111. package/docs/functions/vue.useFiveModel.html +2 -0
  112. package/docs/functions/vue.useFiveModelBounding.html +2 -0
  113. package/docs/functions/vue.useFiveModelIntersectRaycaster.html +7 -0
  114. package/docs/functions/vue.useFiveModelReadyState.html +4 -0
  115. package/docs/functions/vue.useFiveProject2d.html +7 -0
  116. package/docs/functions/vue.useFiveScene.html +2 -0
  117. package/docs/functions/vue.useFiveState.html +5 -0
  118. package/docs/functions/vue.useFiveWorks.html +8 -0
  119. package/docs/index.html +81 -79
  120. package/docs/interfaces/five.AddableObject.html +9 -9
  121. package/docs/interfaces/five.AjaxOptions.html +11 -0
  122. package/docs/interfaces/five.AnimationFrame.html +5 -1
  123. package/docs/interfaces/five.BaseEvent.html +5 -1
  124. package/docs/interfaces/five.BoundingVolume.html +15 -1
  125. package/docs/interfaces/five.CameraPose.html +6 -1
  126. package/docs/interfaces/five.ClipperParameter.html +3 -1
  127. package/docs/interfaces/five.EventCallback.html +355 -462
  128. package/docs/interfaces/five.FiveInitArgs.html +80 -86
  129. package/docs/interfaces/five.FiveLoadOptions.html +36 -0
  130. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -15
  131. package/docs/interfaces/five.GestureEvent.html +19 -1
  132. package/docs/interfaces/five.ImageOptions.html +16 -18
  133. package/docs/interfaces/five.ImageURLMappings.html +1 -1
  134. package/docs/interfaces/five.ImageURLOptions.html +15 -15
  135. package/docs/interfaces/five.IntersectEvent.html +8 -1
  136. package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
  137. package/docs/interfaces/five.Intersection.html +5 -7
  138. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -11
  139. package/docs/interfaces/five.ModeChangeEvent.html +9 -1
  140. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +18 -18
  141. package/docs/interfaces/five.ModelEvent.html +8 -1
  142. package/docs/interfaces/five.ModelsEvent.html +6 -1
  143. package/docs/interfaces/five.MotionKeyframe.html +4 -1
  144. package/docs/interfaces/five.MovePanoOptions.html +24 -35
  145. package/docs/interfaces/five.NetworkOptions.html +9 -9
  146. package/docs/interfaces/five.NetworkResourceEvent.html +9 -1
  147. package/docs/interfaces/five.ObjectEvent.html +6 -1
  148. package/docs/interfaces/five.PBMPanoPicture.html +9 -7
  149. package/docs/interfaces/five.PBMParameters.html +42 -43
  150. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +9 -1
  151. package/docs/interfaces/five.PanoCircleMeshInterface.html +21 -10
  152. package/docs/interfaces/five.PanoCircleMeshOptions.html +3 -1
  153. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +3 -1
  154. package/docs/interfaces/five.PanoEvent.html +11 -1
  155. package/docs/interfaces/five.PanoTextureEvent.html +9 -1
  156. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +32 -32
  157. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +18 -18
  158. package/docs/interfaces/five.Pose.html +15 -32
  159. package/docs/interfaces/five.RenderEvent.html +7 -1
  160. package/docs/interfaces/five.Scissor.html +11 -12
  161. package/docs/interfaces/five.State.html +20 -21
  162. package/docs/interfaces/five.StateEvent.html +7 -1
  163. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
  164. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
  165. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
  166. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
  167. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
  168. package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -1
  169. package/docs/interfaces/five.TextureOptions.html +18 -20
  170. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +12 -3
  171. package/docs/interfaces/five.TileCubeNode.html +7 -1
  172. package/docs/interfaces/five.TileCubeTree.html +2 -1
  173. package/docs/interfaces/five.TileHeader.html +9 -1
  174. package/docs/interfaces/five.TilesetHeader.html +6 -1
  175. package/docs/interfaces/five.TilesetOptions.html +6 -1
  176. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -9
  177. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +28 -28
  178. package/docs/interfaces/five.WebXRAxesParams.html +4 -1
  179. package/docs/interfaces/five.WebXRControllerParams.html +2 -1
  180. package/docs/interfaces/five.WorkCubeImage.html +15 -13
  181. package/docs/interfaces/five.WorkImage.html +20 -21
  182. package/docs/interfaces/five.WorkInitial.html +17 -17
  183. package/docs/interfaces/five.WorkModel.html +12 -13
  184. package/docs/interfaces/five.WorkObserver.html +40 -39
  185. package/docs/interfaces/five.WorkResolvedObserver.html +41 -37
  186. package/docs/interfaces/five.WorkTile.html +10 -1
  187. package/docs/interfaces/five.WorkVideo.html +8 -9
  188. package/docs/interfaces/five.WorksEvent.html +9 -1
  189. package/docs/interfaces/five.XRControllerEvent.html +8 -1
  190. package/docs/interfaces/five.XRGestureEvent.html +11 -1
  191. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +28 -28
  192. package/docs/interfaces/five.XRSessionEvent.html +7 -1
  193. package/docs/interfaces/gltf_loader.DDS.html +7 -1
  194. package/docs/interfaces/gltf_loader.GLTF.html +10 -4
  195. package/docs/interfaces/gltf_loader.GLTFReference.html +3 -1
  196. package/docs/interfaces/gltf_loader.THREEGLTF.html +8 -1
  197. package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +3 -0
  198. package/docs/interfaces/plugins.BasePlugin.Config.html +5 -0
  199. package/docs/interfaces/plugins.BasePlugin.State.html +8 -0
  200. package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +2 -0
  201. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +10 -0
  202. package/docs/interfaces/plugins.ItemMaskPluginType.ItemType.html +13 -0
  203. package/docs/interfaces/plugins.ItemMaskPluginType.MaskType.html +4 -0
  204. package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +4 -0
  205. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +14 -0
  206. package/docs/interfaces/react.FiveActionReactCallbacks.html +27 -37
  207. package/docs/interfaces/react.FiveInjectionTypes.html +112 -138
  208. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -1
  209. package/docs/interfaces/sticker.IntersectionLike.html +7 -8
  210. package/docs/interfaces/vfx.ParticleArgs.html +67 -68
  211. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +3 -1
  212. package/docs/interfaces/vue.FiveActionVueCallbacks.html +31 -42
  213. package/docs/modules/five.SubscribeMixinType.html +7 -1
  214. package/docs/modules/five.html +170 -643
  215. package/docs/modules/gltf_loader.html +11 -1
  216. package/docs/modules/line.html +8 -1
  217. package/docs/modules/plugins.BasePlugin.html +6 -0
  218. package/docs/modules/plugins.ItemMaskPluginType.html +9 -0
  219. package/docs/modules/plugins.html +5 -0
  220. package/docs/modules/react.FiveCanvas.html +8 -0
  221. package/docs/modules/react.html +37 -130
  222. package/docs/modules/sticker.html +3 -1
  223. package/docs/modules/vfx.html +8 -1
  224. package/docs/modules/vue.html +24 -115
  225. package/docs/types/five.AjaxResponseType.html +1 -0
  226. package/docs/types/five.AjaxResponseTypeMapping.html +1 -0
  227. package/docs/types/five.BoundingVolumeJson.html +1 -0
  228. package/docs/types/five.BoxBoundingVolumeJson.html +1 -0
  229. package/docs/types/five.ControllerCustomInitTypes.html +1 -0
  230. package/docs/types/five.ControllerEventTypes.html +32 -0
  231. package/docs/types/five.EventTypes.html +26 -0
  232. package/docs/types/five.FivePlugin.html +71 -0
  233. package/docs/types/five.FivePluginInit.html +3 -0
  234. package/docs/types/five.FivePluginInstance.html +3 -0
  235. package/docs/types/five.GestureTypes.html +1 -0
  236. package/docs/types/five.LegacyEventType.html +203 -0
  237. package/docs/types/five.LooseWork.html +1 -0
  238. package/docs/types/five.LooseWorkInitial.html +1 -0
  239. package/docs/types/five.LooseWorkModel.html +1 -0
  240. package/docs/types/five.LooseWorkObserver.html +1 -0
  241. package/docs/types/five.LooseWorkPanorama.html +1 -0
  242. package/docs/types/five.LooseWorkVideo.html +1 -0
  243. package/docs/types/five.LooseWorkWithExtrinsics.html +2 -0
  244. package/docs/types/five.Mirror.html +1 -0
  245. package/docs/types/five.Mode.html +10 -0
  246. package/docs/types/five.ModelMaterialValues.html +1 -0
  247. package/docs/types/five.Models.html +13 -0
  248. package/docs/types/five.MotionValue.html +1 -0
  249. package/docs/types/five.MovePanoEffect.html +11 -0
  250. package/docs/types/five.NetWorkMeta.html +1 -0
  251. package/docs/types/five.NetworkError.html +1 -0
  252. package/docs/types/five.NetworkErrorCallback.html +1 -0
  253. package/docs/types/five.NetworkProgressCallback.html +1 -0
  254. package/docs/types/five.NetworkResponse.html +1 -0
  255. package/docs/types/five.NetworkState.html +1 -0
  256. package/docs/types/five.NetworkSuccessCallback.html +1 -0
  257. package/docs/types/five.NetworkType.html +1 -0
  258. package/docs/types/five.Pano.html +1 -0
  259. package/docs/types/five.PanoId.html +1 -0
  260. package/docs/types/five.ParseWorkOptions.html +6 -0
  261. package/docs/types/five.ParsedResultType.html +1 -0
  262. package/docs/types/five.PostProcessingType.html +1 -0
  263. package/docs/types/five.RegionBoundingVolumeJson.html +1 -0
  264. package/docs/types/five.RequestResult.html +1 -0
  265. package/docs/types/five.SphereBoundingVolumeJson.html +1 -0
  266. package/docs/types/five.SubscribeEventMap.html +1 -0
  267. package/docs/types/five.TileContentData.html +1 -0
  268. package/docs/types/five.TilesetFrameState.html +1 -0
  269. package/docs/types/five.WebXRControllerKey.html +1 -0
  270. package/docs/types/five.WebXRControllerType.html +1 -0
  271. package/docs/types/five.Works.html +1 -0
  272. package/docs/types/line.LineMaterialParameters.html +1 -0
  273. package/docs/types/plugins.BasePlugin.EventMap.html +6 -0
  274. package/docs/types/plugins.ItemMaskPluginType.PluginData.html +1 -0
  275. package/docs/types/plugins.ItemMaskPluginType.ServerData.html +1 -0
  276. package/docs/types/react.FiveInjectionActionFeature.html +1 -0
  277. package/docs/types/react.FiveInjectionDataFeature.html +1 -0
  278. package/docs/types/react.FiveInjectionFeature.html +1 -0
  279. package/docs/types/react.FiveProviderPropTypes.html +1 -0
  280. package/docs/types/react.FiveProviderType.html +1 -0
  281. package/docs/types/react.StoreActionMapHanlder.html +1 -0
  282. package/docs/types/react.StoreActionMapType.html +1 -0
  283. package/docs/types/react.StoreProviderType.html +1 -0
  284. package/docs/types/react.StoreValueMapType.html +1 -0
  285. package/docs/types/vfx.ParticleType.html +1 -0
  286. package/docs/types/vue.FiveModelIntersectRaycaster.html +1 -0
  287. package/docs/types/vue.FiveProviderComponent.html +1 -0
  288. package/docs/types/vue.Project2d.html +1 -0
  289. package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -0
  290. package/docs/variables/five.defaultPbmParameters.html +1 -0
  291. package/docs/variables/react.INJECTION_PROPNAME.html +1 -0
  292. package/docs/variables/vue.FiveCanvas.html +8 -0
  293. package/docs/variables/vue.FiveProvider.html +8 -0
  294. package/five/index.d.ts +553 -351
  295. package/five/index.js +1879 -218
  296. package/five/index.mjs +23248 -0
  297. package/gltf-loader/index.js +204 -203
  298. package/gltf-loader/index.mjs +1708 -0
  299. package/line/index.js +396 -202
  300. package/line/index.mjs +776 -0
  301. package/package.json +48 -12
  302. package/plugins/index.d.ts +253 -0
  303. package/plugins/index.js +350 -0
  304. package/plugins/index.mjs +796 -0
  305. package/react/index.d.ts +38 -45
  306. package/react/index.js +198 -203
  307. package/react/index.mjs +1072 -0
  308. package/scripts/five-staticify.js +183 -2
  309. package/sticker/index.js +198 -203
  310. package/sticker/index.mjs +399 -0
  311. package/umd/five-gltf-loader.js +261 -1
  312. package/umd/five-line.js +454 -1
  313. package/umd/five-plugins.js +350 -0
  314. package/umd/five-react.js +255 -1
  315. package/umd/five-sticker.js +255 -1
  316. package/umd/five-vfx.js +539 -1
  317. package/umd/five-vue.js +255 -1
  318. package/umd/five.js +2023 -2
  319. package/vfx/index.js +481 -202
  320. package/vfx/index.mjs +1032 -0
  321. package/vue/index.d.ts +1 -1
  322. package/vue/index.js +198 -203
  323. package/vue/index.mjs +574 -0
  324. package/docs/assets/icons.css +0 -1043
  325. package/docs/assets/icons.png +0 -0
  326. package/docs/assets/icons@2x.png +0 -0
  327. package/docs/assets/widgets.png +0 -0
  328. package/docs/assets/widgets@2x.png +0 -0
  329. package/docs/classes/five.BVH.html +0 -10
  330. package/docs/classes/five.BVHIntersect.html +0 -1
  331. package/docs/classes/five.BVHNode.html +0 -7
  332. package/docs/classes/five.BVHVector3.html +0 -1
  333. package/docs/classes/five.Clipper.html +0 -1
  334. package/docs/classes/five.PBMMaterialReferenceCache.html +0 -1
  335. package/docs/enums/five.PBMPointColorType.html +0 -1
  336. package/docs/enums/five.PBMPointShapeType.html +0 -1
  337. package/docs/enums/five.PBMPointSizeType.html +0 -1
  338. package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +0 -26
  339. package/docs/interfaces/five.ModelLodOptions.html +0 -1
  340. package/docs/interfaces/five.WorkOptions.html +0 -15
  341. package/docs/modules.html +0 -1
  342. package/exporters/staticify.js +0 -210
  343. package/scripts/five-plugin-init.js +0 -83
  344. package/scripts/five-quick-start-init.js +0 -80
  345. package/scripts/five-react-component-init.js +0 -83
  346. package/templates/plugin/README.md +0 -38
  347. package/templates/plugin/devtools/external-five.js +0 -5
  348. package/templates/plugin/devtools/external-three.js +0 -5
  349. package/templates/plugin/devtools/tsconfig.build.json +0 -18
  350. package/templates/plugin/devtools/webpack.bundle.js +0 -44
  351. package/templates/plugin/devtools/webpack.example.js +0 -39
  352. package/templates/plugin/docs/.gitkeep +0 -0
  353. package/templates/plugin/examples/data.json +0 -507
  354. package/templates/plugin/examples/index.html +0 -28
  355. package/templates/plugin/examples/index.ts +0 -12
  356. package/templates/plugin/lib/index.ts +0 -30
  357. package/templates/plugin/package.json +0 -32
  358. package/templates/plugin/tsconfig.json +0 -26
  359. package/templates/quick-start/README.md +0 -47
  360. package/templates/quick-start/assets/work.json +0 -507
  361. package/templates/quick-start/index.html +0 -54
  362. package/templates/quick-start/index.tsx +0 -123
  363. package/templates/quick-start/package.json +0 -25
  364. package/templates/quick-start/tsconfig.json +0 -27
  365. package/templates/quick-start/webpack.config.js +0 -45
  366. package/templates/quick-start/webpack.production.js +0 -42
  367. package/templates/react-component/README.md +0 -32
  368. package/templates/react-component/devtools/external-five.js +0 -5
  369. package/templates/react-component/devtools/external-react.js +0 -5
  370. package/templates/react-component/devtools/external-three.js +0 -5
  371. package/templates/react-component/devtools/tsconfig.build.json +0 -19
  372. package/templates/react-component/devtools/webpack.bundle.js +0 -44
  373. package/templates/react-component/devtools/webpack.example.js +0 -39
  374. package/templates/react-component/docs/.gitkeep +0 -0
  375. package/templates/react-component/examples/data.json +0 -507
  376. package/templates/react-component/examples/index.html +0 -17
  377. package/templates/react-component/examples/index.tsx +0 -62
  378. package/templates/react-component/lib/index.tsx +0 -157
  379. package/templates/react-component/package.json +0 -38
  380. package/templates/react-component/tsconfig.json +0 -27
  381. package/umd/five-gltf-loader.js.LICENSE.txt +0 -14
  382. package/umd/five-line.js.LICENSE.txt +0 -14
  383. package/umd/five-react.js.LICENSE.txt +0 -14
  384. package/umd/five-sticker.js.LICENSE.txt +0 -14
  385. package/umd/five.js.LICENSE.txt +0 -100
@@ -1,157 +0,0 @@
1
- //@ts-nocheck
2
-
3
- import * as THREE from "three";
4
- import * as React from "react";
5
- import { Five } from "@realsee/five";
6
- import { useFiveState, useFiveEventCallback, useFiveProject2d } from "@realsee/five/react";
7
-
8
- const TAG_DEFAULT_LABEL = "未命名";
9
-
10
- const styles: Record<string, React.CSSProperties> = {
11
- "tag-container": {
12
- position: "relative",
13
- pointerEvents: "none",
14
- overflow: "hidden",
15
- },
16
- "tag": {
17
- pointerEvents: "auto",
18
- position: "absolute",
19
- width: 0,
20
- height: 0,
21
- transform: "translateZ(0)",
22
- },
23
- "tag-pannel": {
24
- position: "absolute",
25
- width: 100,
26
- minHeight: 20,
27
- transform: "translate(-50%, 0)",
28
- left: "50%",
29
- bottom: 10,
30
- background: "#333",
31
- color: "#fff",
32
- borderRadius: 2,
33
- textAlign: "center",
34
- lineHeight: "20px",
35
- padding: 8,
36
- fontSize: 14,
37
- },
38
- "tag-tools": {
39
- position: "absolute",
40
- height: 16,
41
- top: -10,
42
- right: -7,
43
- background: "#07a",
44
- color: "#fff",
45
- borderRadius: 7,
46
- textAlign: "center",
47
- lineHeight: "16px",
48
- whiteSpace: "nowrap",
49
- padding: "0 3px"
50
- },
51
- "tag-tool-button": {
52
- border: "none",
53
- cursor: "pointer",
54
- background: "transparent",
55
- color: "inherit",
56
- fontSize: 12,
57
- height: 16,
58
- verticalAlign: "top",
59
- },
60
- "tag-arrow": {
61
- position: "absolute",
62
- width: 10,
63
- height: 10,
64
- left: "50%",
65
- bottom: -5,
66
- transform: "translate(-50%, 0) rotate(45deg)",
67
- background: "#333",
68
- pointerEvents: "none",
69
- }
70
- };
71
-
72
- type Tag = {
73
- position: THREE.Vector3,
74
- label: string,
75
- };
76
-
77
- type PropTyps = {
78
- width: number,
79
- height: number,
80
- initialTags: Tag[],
81
- onChange(tags: Tag[]): void
82
- }
83
-
84
- const FiveTagComponent: React.FC<PropTyps> = (props) => {
85
- const project2d = useFiveProject2d();
86
- const [{ mode }] = useFiveState();
87
- const testModel = mode === Five.Mode.Panorama || mode === Five.Mode.Model;
88
-
89
- const [newTag, setNewTag] = React.useState<Tag | null>(null);
90
- const [tags, setTags] = React.useState<Tag[]>(() => props.initialTags);
91
-
92
- const removeTag = React.useCallback((index: number) => {
93
- const newTags = tags.filter((_tag, index_) => index !== index_);
94
- setTags(newTags);
95
- props.onChange(newTags);
96
- }, [tags]);
97
-
98
- const editTag = React.useCallback((index: number) => {
99
- const newLabel = window.prompt("修改标签名称", tags[index].label) || TAG_DEFAULT_LABEL;
100
- const newTags = tags.map((tag, index_) => {
101
- if (index_ === index) return { ...tag, label: newLabel };
102
- return tag;
103
- });
104
- setTags(newTags);
105
- props.onChange(newTags);
106
- }, [tags]);
107
-
108
- const addTag = React.useCallback(() => {
109
- setNewTag({ position: new THREE.Vector3(), label: TAG_DEFAULT_LABEL });
110
- }, []);
111
-
112
- useFiveEventCallback("intersectionOnModelUpdate", (intersect) => {
113
- if (newTag === null) return;
114
- setNewTag({ ...newTag, position: intersect.point });
115
- }, [newTag]);
116
-
117
- useFiveEventCallback("wantsTapGesture", () => {
118
- if (newTag !== null) {
119
- const newTags = tags.concat(newTag)
120
- setTags(newTags);
121
- props.onChange(newTags);
122
- setNewTag(null);
123
- return false;
124
- }
125
- }, [tags, newTag]);
126
-
127
- return <div style={{ ...styles["tag-container"], width: props.width, height: props.height }}>
128
- <button style={{ position: "absolute", right: 0, bottom: 0, pointerEvents: "auto" }} onClick={() => addTag()}>添加标签</button>
129
- {newTag && (() => {
130
- const position = project2d(newTag.position, false);
131
- if (position === null) return;
132
- return <div style={{ ...styles["tag"], pointerEvents: "none", left: position.x, top: position.y }}>
133
- <div style={{ ...styles["tag-pannel"] }}>
134
- <span style={{ ...styles["tag-content"] }}>{newTag.label}</span>
135
- <div style={{ ...styles["tag-arrow"] }}/>
136
- </div>
137
- </div>
138
- })()}
139
- {tags.map((tag, index) => {
140
- const position = project2d(tag.position, testModel);
141
- if (position === null) return;
142
- return <div key={index} style={{ ...styles["tag"], left: position.x, top: position.y }}>
143
- <div style={{ ...styles["tag-pannel"] }}>
144
- <span style={{ ...styles["tag-content"] }}>{tag.label}</span>
145
- <div style={{ ...styles["tag-tools"] }}>
146
- <button style={{ ...styles["tag-tool-button"] }} onClick={() => editTag(index)}>编辑</button>
147
- <span> | </span>
148
- <button style={{ ...styles["tag-tool-button"] }} onClick={() => removeTag(index)}>删除</button>
149
- </div>
150
- <div style={{ ...styles["tag-arrow"] }}/>
151
- </div>
152
- </div>
153
- }).filter(element => element !== undefined)}
154
- </div>
155
- }
156
-
157
- export { FiveTagComponent, Tag };
@@ -1,38 +0,0 @@
1
- {
2
- "name": "a-five-react-component",
3
- "version": "1.0.0",
4
- "description": "a-five-react-component",
5
- "main": "./build/index.js",
6
- "scripts": {
7
- "example": "concurrently --names \"http,webpack\" --kill-others \"http-server ./ -p 8080 -c-1 --cors\" \"webpack -w --config ./devtools/webpack.example.js\"",
8
- "build:example": "webpack --config ./devtools/webpack.example.js",
9
- "build:doc": "typedoc --hideGenerator --includeVersion --excludeExternals --tsconfig ./devtools/tsconfig.build.json --out ./docs ./lib/index.tsx",
10
- "build:typescript": "del ./build && tsc --project ./devtools/tsconfig.build.json",
11
- "build:bundle": "webpack --progress --config ./devtools/webpack.bundle.js",
12
- "build:all": "npm run build:doc && npm run build:typescript && && npm run build:example && npm run build:bundle"
13
- },
14
- "author": "realsee.com",
15
- "license": "ISC",
16
- "peerDependencies": {
17
- "@types/react": "^17.0.14",
18
- "react": "^17.0.2",
19
- "three": "^0.117.1",
20
- "typescript": "^4.3.2"
21
- },
22
- "devDependencies": {
23
- "@types/react": "^17.0.14",
24
- "@types/react-dom": "^17.0.9",
25
- "concurrently": "^6.2.0",
26
- "del-cli": "^4.0.1",
27
- "glob": "^7.1.6",
28
- "http-server": "^0.12.1",
29
- "react": "^17.0.2",
30
- "react-dom": "^17.0.2",
31
- "three": "^0.117.1",
32
- "ts-loader": "^9.1.1",
33
- "typedoc": "^0.20.36",
34
- "typescript": "^4.2.4",
35
- "webpack": "^5.35.1",
36
- "webpack-cli": "^4.6.0"
37
- }
38
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Basic Options */
4
- "jsx": "react",
5
- "target": "ES5",
6
- "lib": ["ES5", "DOM"],
7
- "declaration": true,
8
- "sourceMap": true,
9
- "rootDir": "./",
10
-
11
- /* Strict Type-Checking Options */
12
- "strict": true,
13
- "noImplicitAny": true,
14
- "strictNullChecks": true,
15
- "declarationMap": false,
16
-
17
- /* Module Resolution Options */
18
- "moduleResolution": "node",
19
- "baseUrl": "./",
20
- "esModuleInterop": true,
21
- "preserveSymlinks": true,
22
-
23
- /* Experimental Options */
24
- "experimentalDecorators": true,
25
- "emitDecoratorMetadata": true
26
- }
27
- }
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
@@ -1,100 +0,0 @@
1
- /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ */
2
-
3
- /*! Hammer.JS - v2.0.7 - 2016-04-22
4
- * http://hammerjs.github.io/
5
- *
6
- * Copyright (c) 2016 Jorik Tangelder;
7
- * Licensed under the MIT license */
8
-
9
- /**
10
- * @license
11
- * CryptoJS
12
- *
13
- * Copyright (c) 2009-2013 Jeff Mott
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining
16
- * a copy of this software and associated documentation files (the
17
- * "Software"), to deal in the Software without restriction, including
18
- * without limitation the rights to use, copy, modify, merge, publish,
19
- * distribute, sublicense, and/or sell copies of the Software, and to
20
- * permit persons to whom the Software is furnished to do so, subject to
21
- * the following conditions:
22
- *
23
- * The above copyright notice and this permission notice shall be
24
- * included in all copies or substantial portions of the Software.
25
- *
26
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
- *
34
- * https://code.google.com/p/crypto-js/wiki/License
35
- * PART: ext/cryptojs
36
- */
37
-
38
- /**
39
- * @license
40
- * RSA and ECC in JavaScript
41
- *
42
- * Copyright (c) 2003-2005 Tom Wu All Rights Reserved.
43
- *
44
- * Permission is hereby granted, free of charge, to any person obtaining
45
- * a copy of this software and associated documentation files (the
46
- * "Software"), to deal in the Software without restriction, including
47
- * without limitation the rights to use, copy, modify, merge, publish,
48
- * distribute, sublicense, and/or sell copies of the Software, and to
49
- * permit persons to whom the Software is furnished to do so, subject to
50
- * the following conditions:
51
- *
52
- * The above copyright notice and this permission notice shall be
53
- * included in all copies or substantial portions of the Software.
54
- *
55
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
56
- * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
57
- * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
58
- *
59
- * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
60
- * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
61
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
62
- * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
63
- * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
64
- *
65
- * In addition, the following condition applies:
66
- *
67
- * All redistributions must retain an intact copy of this copyright notice
68
- * and disclaimer.
69
- *
70
- * http://www-cs-students.stanford.edu/~tjw/jsbn/
71
- * LICENSE: BSD License
72
- * PART: ext/{base64,jsbn,jsbn2,prgn4,rng,rsa,rsa2}
73
- */
74
-
75
- /**
76
- * @license
77
- * The 'jsrsasign'(RSA-Sign JavaScript Library) License
78
- *
79
- * Copyright (c) 2010-2021 Kenji Urushima
80
- *
81
- * Permission is hereby granted, free of charge, to any person obtaining a copy
82
- * of this software and associated documentation files (the "Software"), to deal
83
- * in the Software without restriction, including without limitation the rights
84
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
85
- * copies of the Software, and to permit persons to whom the Software is
86
- * furnished to do so, subject to the following conditions:
87
- *
88
- * The above copyright notice and this permission notice shall be included in
89
- * all copies or substantial portions of the Software.
90
- *
91
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
97
- * THE SOFTWARE.
98
- *
99
- * LICENSE: MIT License
100
- */