@wiredsnippets/wsproom 0.0.0-stage → 2.0.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 (640) hide show
  1. package/COPYING +674 -0
  2. package/COPYING.LESSER +165 -0
  3. package/README.md +76 -2
  4. package/dist/__mocks__/setupTests.d.ts +0 -0
  5. package/dist/__mocks__/setupTests.js +34 -0
  6. package/dist/assets/IAssetBundle.d.ts +4 -0
  7. package/dist/assets/IAssetBundle.js +2 -0
  8. package/dist/assets/LegacyAssetBundle.d.ts +9 -0
  9. package/dist/assets/LegacyAssetBundle.js +29 -0
  10. package/dist/assets/WsproomAssetBundle.d.ts +18 -0
  11. package/dist/assets/WsproomAssetBundle.js +86 -0
  12. package/dist/data/XmlData.d.ts +6 -0
  13. package/dist/data/XmlData.js +15 -0
  14. package/dist/index.d.ts +45 -0
  15. package/dist/index.js +73 -0
  16. package/dist/interfaces/IAnimationTicker.d.ts +4 -0
  17. package/dist/interfaces/IAnimationTicker.js +2 -0
  18. package/dist/interfaces/IAvatarLoader.d.ts +12 -0
  19. package/dist/interfaces/IAvatarLoader.js +2 -0
  20. package/dist/interfaces/IConfiguration.d.ts +13 -0
  21. package/dist/interfaces/IConfiguration.js +2 -0
  22. package/dist/interfaces/IFurnitureData.d.ts +13 -0
  23. package/dist/interfaces/IFurnitureData.js +2 -0
  24. package/dist/interfaces/IFurnitureLoader.d.ts +13 -0
  25. package/dist/interfaces/IFurnitureLoader.js +2 -0
  26. package/dist/interfaces/IHitDetection.d.ts +0 -0
  27. package/dist/interfaces/IHitDetection.js +1 -0
  28. package/dist/interfaces/IRoomContext.d.ts +26 -0
  29. package/dist/interfaces/IRoomContext.js +2 -0
  30. package/dist/interfaces/IRoomGeometry.d.ts +6 -0
  31. package/dist/interfaces/IRoomGeometry.js +2 -0
  32. package/dist/interfaces/IRoomObject.d.ts +5 -0
  33. package/dist/interfaces/IRoomObject.js +2 -0
  34. package/dist/interfaces/IRoomObjectContainer.d.ts +5 -0
  35. package/dist/interfaces/IRoomObjectContainer.js +2 -0
  36. package/dist/interfaces/IRoomVisualization.d.ts +25 -0
  37. package/dist/interfaces/IRoomVisualization.js +2 -0
  38. package/dist/interfaces/ITextureable.d.ts +5 -0
  39. package/dist/interfaces/ITextureable.js +2 -0
  40. package/dist/interfaces/ITileMap.d.ts +5 -0
  41. package/dist/interfaces/ITileMap.js +2 -0
  42. package/dist/objects/RoomObject.d.ts +24 -0
  43. package/dist/objects/RoomObject.js +69 -0
  44. package/dist/objects/Wsproom.d.ts +22 -0
  45. package/dist/objects/Wsproom.js +86 -0
  46. package/dist/objects/animation/AnimationTicker.d.ts +13 -0
  47. package/dist/objects/animation/AnimationTicker.js +37 -0
  48. package/dist/objects/animation/ObjectAnimation.d.ts +36 -0
  49. package/dist/objects/animation/ObjectAnimation.js +93 -0
  50. package/dist/objects/avatar/Avatar.d.ts +244 -0
  51. package/dist/objects/avatar/Avatar.js +548 -0
  52. package/dist/objects/avatar/AvatarAssetLibraryCollection.d.ts +20 -0
  53. package/dist/objects/avatar/AvatarAssetLibraryCollection.js +70 -0
  54. package/dist/objects/avatar/AvatarEffectBundle.d.ts +15 -0
  55. package/dist/objects/avatar/AvatarEffectBundle.js +34 -0
  56. package/dist/objects/avatar/AvatarLoader.d.ts +33 -0
  57. package/dist/objects/avatar/AvatarLoader.js +218 -0
  58. package/dist/objects/avatar/BaseAvatar.d.ts +84 -0
  59. package/dist/objects/avatar/BaseAvatar.js +386 -0
  60. package/dist/objects/avatar/data/AvatarActionsData.d.ts +12 -0
  61. package/dist/objects/avatar/data/AvatarActionsData.js +84 -0
  62. package/dist/objects/avatar/data/AvatarAnimationData.d.ts +14 -0
  63. package/dist/objects/avatar/data/AvatarAnimationData.js +126 -0
  64. package/dist/objects/avatar/data/AvatarData.d.ts +6 -0
  65. package/dist/objects/avatar/data/AvatarData.js +15 -0
  66. package/dist/objects/avatar/data/AvatarEffectData.d.ts +31 -0
  67. package/dist/objects/avatar/data/AvatarEffectData.js +186 -0
  68. package/dist/objects/avatar/data/AvatarEffectMap.d.ts +9 -0
  69. package/dist/objects/avatar/data/AvatarEffectMap.js +38 -0
  70. package/dist/objects/avatar/data/AvatarGeometryData.d.ts +17 -0
  71. package/dist/objects/avatar/data/AvatarGeometryData.js +122 -0
  72. package/dist/objects/avatar/data/AvatarManifestData.d.ts +12 -0
  73. package/dist/objects/avatar/data/AvatarManifestData.js +55 -0
  74. package/dist/objects/avatar/data/AvatarOffsetsData.d.ts +10 -0
  75. package/dist/objects/avatar/data/AvatarOffsetsData.js +17 -0
  76. package/dist/objects/avatar/data/AvatarPartSetsData.d.ts +12 -0
  77. package/dist/objects/avatar/data/AvatarPartSetsData.js +38 -0
  78. package/dist/objects/avatar/data/FigureData.d.ts +14 -0
  79. package/dist/objects/avatar/data/FigureData.js +106 -0
  80. package/dist/objects/avatar/data/FigureMapData.d.ts +11 -0
  81. package/dist/objects/avatar/data/FigureMapData.js +47 -0
  82. package/dist/objects/avatar/data/ManifestLibrary.d.ts +12 -0
  83. package/dist/objects/avatar/data/ManifestLibrary.js +29 -0
  84. package/dist/objects/avatar/data/interfaces/IAvatarActionsData.d.ts +18 -0
  85. package/dist/objects/avatar/data/interfaces/IAvatarActionsData.js +2 -0
  86. package/dist/objects/avatar/data/interfaces/IAvatarAnimationData.d.ts +10 -0
  87. package/dist/objects/avatar/data/interfaces/IAvatarAnimationData.js +2 -0
  88. package/dist/objects/avatar/data/interfaces/IAvatarEffectBundle.d.ts +9 -0
  89. package/dist/objects/avatar/data/interfaces/IAvatarEffectBundle.js +2 -0
  90. package/dist/objects/avatar/data/interfaces/IAvatarEffectData.d.ts +49 -0
  91. package/dist/objects/avatar/data/interfaces/IAvatarEffectData.js +2 -0
  92. package/dist/objects/avatar/data/interfaces/IAvatarEffectMap.d.ts +9 -0
  93. package/dist/objects/avatar/data/interfaces/IAvatarEffectMap.js +2 -0
  94. package/dist/objects/avatar/data/interfaces/IAvatarGeometryData.d.ts +23 -0
  95. package/dist/objects/avatar/data/interfaces/IAvatarGeometryData.js +2 -0
  96. package/dist/objects/avatar/data/interfaces/IAvatarManifestData.d.ts +18 -0
  97. package/dist/objects/avatar/data/interfaces/IAvatarManifestData.js +2 -0
  98. package/dist/objects/avatar/data/interfaces/IAvatarOffsetsData.d.ts +6 -0
  99. package/dist/objects/avatar/data/interfaces/IAvatarOffsetsData.js +2 -0
  100. package/dist/objects/avatar/data/interfaces/IAvatarPartSetsData.d.ts +7 -0
  101. package/dist/objects/avatar/data/interfaces/IAvatarPartSetsData.js +2 -0
  102. package/dist/objects/avatar/data/interfaces/IFigureData.d.ts +11 -0
  103. package/dist/objects/avatar/data/interfaces/IFigureData.js +2 -0
  104. package/dist/objects/avatar/data/interfaces/IFigureMapData.d.ts +4 -0
  105. package/dist/objects/avatar/data/interfaces/IFigureMapData.js +2 -0
  106. package/dist/objects/avatar/data/interfaces/IManifestLibrary.d.ts +6 -0
  107. package/dist/objects/avatar/data/interfaces/IManifestLibrary.js +2 -0
  108. package/dist/objects/avatar/data/static/actions.xml.d.ts +1 -0
  109. package/dist/objects/avatar/data/static/actions.xml.js +4 -0
  110. package/dist/objects/avatar/data/static/animation.xml.d.ts +1 -0
  111. package/dist/objects/avatar/data/static/animation.xml.js +4 -0
  112. package/dist/objects/avatar/data/static/geometry.xml.d.ts +1 -0
  113. package/dist/objects/avatar/data/static/geometry.xml.js +4 -0
  114. package/dist/objects/avatar/data/static/partsets.xml.d.ts +1 -0
  115. package/dist/objects/avatar/data/static/partsets.xml.js +4 -0
  116. package/dist/objects/avatar/enum/AvatarAction.d.ts +29 -0
  117. package/dist/objects/avatar/enum/AvatarAction.js +33 -0
  118. package/dist/objects/avatar/enum/AvatarFigurePartType.d.ts +27 -0
  119. package/dist/objects/avatar/enum/AvatarFigurePartType.js +31 -0
  120. package/dist/objects/avatar/structure/AvatarAdditionPart.d.ts +32 -0
  121. package/dist/objects/avatar/structure/AvatarAdditionPart.js +136 -0
  122. package/dist/objects/avatar/structure/AvatarBodyPart.d.ts +30 -0
  123. package/dist/objects/avatar/structure/AvatarBodyPart.js +96 -0
  124. package/dist/objects/avatar/structure/AvatarBodyPartList.d.ts +36 -0
  125. package/dist/objects/avatar/structure/AvatarBodyPartList.js +91 -0
  126. package/dist/objects/avatar/structure/AvatarDrawDefinition.d.ts +39 -0
  127. package/dist/objects/avatar/structure/AvatarDrawDefinition.js +135 -0
  128. package/dist/objects/avatar/structure/AvatarEffectPart.d.ts +25 -0
  129. package/dist/objects/avatar/structure/AvatarEffectPart.js +118 -0
  130. package/dist/objects/avatar/structure/AvatarPart.d.ts +54 -0
  131. package/dist/objects/avatar/structure/AvatarPart.js +162 -0
  132. package/dist/objects/avatar/structure/AvatarPartList.d.ts +30 -0
  133. package/dist/objects/avatar/structure/AvatarPartList.js +80 -0
  134. package/dist/objects/avatar/structure/BodyPartDrawOrder.d.ts +3 -0
  135. package/dist/objects/avatar/structure/BodyPartDrawOrder.js +170 -0
  136. package/dist/objects/avatar/structure/interface/IAvatarDrawablePart.d.ts +4 -0
  137. package/dist/objects/avatar/structure/interface/IAvatarDrawablePart.js +2 -0
  138. package/dist/objects/avatar/structure/interface/IAvatarEffectPart.d.ts +7 -0
  139. package/dist/objects/avatar/structure/interface/IAvatarEffectPart.js +2 -0
  140. package/dist/objects/avatar/types/index.d.ts +43 -0
  141. package/dist/objects/avatar/types/index.js +2 -0
  142. package/dist/objects/avatar/util/createLookServer.d.ts +18 -0
  143. package/dist/objects/avatar/util/createLookServer.js +18 -0
  144. package/dist/objects/avatar/util/getAssetForFrame.d.ts +21 -0
  145. package/dist/objects/avatar/util/getAssetForFrame.js +42 -0
  146. package/dist/objects/avatar/util/getAssetFromPartMeta.d.ts +30 -0
  147. package/dist/objects/avatar/util/getAssetFromPartMeta.js +50 -0
  148. package/dist/objects/avatar/util/getAvatarDirection.d.ts +1 -0
  149. package/dist/objects/avatar/util/getAvatarDirection.js +18 -0
  150. package/dist/objects/avatar/util/getAvatarDrawDefinition.d.ts +22 -0
  151. package/dist/objects/avatar/util/getAvatarDrawDefinition.js +31 -0
  152. package/dist/objects/avatar/util/getDrawOrderForActions.d.ts +4 -0
  153. package/dist/objects/avatar/util/getDrawOrderForActions.js +22 -0
  154. package/dist/objects/avatar/util/getEffectSprite.d.ts +9 -0
  155. package/dist/objects/avatar/util/getEffectSprite.js +27 -0
  156. package/dist/objects/avatar/util/getFlippedMetaData.d.ts +36 -0
  157. package/dist/objects/avatar/util/getFlippedMetaData.js +95 -0
  158. package/dist/objects/avatar/util/getLibrariesForLook.d.ts +7 -0
  159. package/dist/objects/avatar/util/getLibrariesForLook.js +32 -0
  160. package/dist/objects/avatar/util/index.d.ts +1 -0
  161. package/dist/objects/avatar/util/index.js +17 -0
  162. package/dist/objects/avatar/util/parseLookString.d.ts +5 -0
  163. package/dist/objects/avatar/util/parseLookString.js +15 -0
  164. package/dist/objects/events/EventEmitter.d.ts +11 -0
  165. package/dist/objects/events/EventEmitter.js +31 -0
  166. package/dist/objects/events/EventManager.d.ts +27 -0
  167. package/dist/objects/events/EventManager.js +248 -0
  168. package/dist/objects/events/EventManagerContainer.d.ts +11 -0
  169. package/dist/objects/events/EventManagerContainer.js +36 -0
  170. package/dist/objects/events/EventManagerNode.d.ts +16 -0
  171. package/dist/objects/events/EventManagerNode.js +55 -0
  172. package/dist/objects/events/EventOverOutHandler.d.ts +24 -0
  173. package/dist/objects/events/EventOverOutHandler.js +90 -0
  174. package/dist/objects/events/interfaces/IEventGroup.d.ts +7 -0
  175. package/dist/objects/events/interfaces/IEventGroup.js +6 -0
  176. package/dist/objects/events/interfaces/IEventHandler.d.ts +9 -0
  177. package/dist/objects/events/interfaces/IEventHandler.js +2 -0
  178. package/dist/objects/events/interfaces/IEventHittable.d.ts +9 -0
  179. package/dist/objects/events/interfaces/IEventHittable.js +2 -0
  180. package/dist/objects/events/interfaces/IEventManager.d.ts +8 -0
  181. package/dist/objects/events/interfaces/IEventManager.js +2 -0
  182. package/dist/objects/events/interfaces/IEventManagerEvent.d.ts +11 -0
  183. package/dist/objects/events/interfaces/IEventManagerEvent.js +2 -0
  184. package/dist/objects/events/interfaces/IEventManagerNode.d.ts +3 -0
  185. package/dist/objects/events/interfaces/IEventManagerNode.js +2 -0
  186. package/dist/objects/events/interfaces/IEventTarget.d.ts +4 -0
  187. package/dist/objects/events/interfaces/IEventTarget.js +2 -0
  188. package/dist/objects/furniture/BaseFurniture.d.ts +152 -0
  189. package/dist/objects/furniture/BaseFurniture.js +519 -0
  190. package/dist/objects/furniture/FloorFurniture.d.ts +163 -0
  191. package/dist/objects/furniture/FloorFurniture.js +320 -0
  192. package/dist/objects/furniture/FurnitureData.d.ts +14 -0
  193. package/dist/objects/furniture/FurnitureData.js +73 -0
  194. package/dist/objects/furniture/FurnitureExtraData.d.ts +4 -0
  195. package/dist/objects/furniture/FurnitureExtraData.js +2 -0
  196. package/dist/objects/furniture/FurnitureFetchInfo.d.ts +5 -0
  197. package/dist/objects/furniture/FurnitureFetchInfo.js +2 -0
  198. package/dist/objects/furniture/FurnitureHelper.d.ts +17 -0
  199. package/dist/objects/furniture/FurnitureHelper.js +90 -0
  200. package/dist/objects/furniture/FurnitureLoader.d.ts +22 -0
  201. package/dist/objects/furniture/FurnitureLoader.js +85 -0
  202. package/dist/objects/furniture/FurnitureRoomVisualization.d.ts +10 -0
  203. package/dist/objects/furniture/FurnitureRoomVisualization.js +26 -0
  204. package/dist/objects/furniture/FurnitureSprite.d.ts +25 -0
  205. package/dist/objects/furniture/FurnitureSprite.js +69 -0
  206. package/dist/objects/furniture/FurnitureVisualizationView.d.ts +66 -0
  207. package/dist/objects/furniture/FurnitureVisualizationView.js +482 -0
  208. package/dist/objects/furniture/IFurniture.d.ts +26 -0
  209. package/dist/objects/furniture/IFurniture.js +2 -0
  210. package/dist/objects/furniture/IFurnitureAssetBundle.d.ts +12 -0
  211. package/dist/objects/furniture/IFurnitureAssetBundle.js +2 -0
  212. package/dist/objects/furniture/IFurnitureVisualization.d.ts +11 -0
  213. package/dist/objects/furniture/IFurnitureVisualization.js +2 -0
  214. package/dist/objects/furniture/IFurnitureVisualizationView.d.ts +63 -0
  215. package/dist/objects/furniture/IFurnitureVisualizationView.js +2 -0
  216. package/dist/objects/furniture/JsonFurnitureAssetBundle.d.ts +18 -0
  217. package/dist/objects/furniture/JsonFurnitureAssetBundle.js +89 -0
  218. package/dist/objects/furniture/WallFurniture.d.ts +90 -0
  219. package/dist/objects/furniture/WallFurniture.js +229 -0
  220. package/dist/objects/furniture/XmlFurnitureAssetBundle.d.ts +17 -0
  221. package/dist/objects/furniture/XmlFurnitureAssetBundle.js +35 -0
  222. package/dist/objects/furniture/data/FurnitureAssetsData.d.ts +11 -0
  223. package/dist/objects/furniture/data/FurnitureAssetsData.js +51 -0
  224. package/dist/objects/furniture/data/FurnitureAssetsJson.d.ts +4 -0
  225. package/dist/objects/furniture/data/FurnitureAssetsJson.js +2 -0
  226. package/dist/objects/furniture/data/FurnitureIndexData.d.ts +14 -0
  227. package/dist/objects/furniture/data/FurnitureIndexData.js +30 -0
  228. package/dist/objects/furniture/data/FurnitureIndexJson.d.ts +4 -0
  229. package/dist/objects/furniture/data/FurnitureIndexJson.js +2 -0
  230. package/dist/objects/furniture/data/FurnitureJson.d.ts +11 -0
  231. package/dist/objects/furniture/data/FurnitureJson.js +2 -0
  232. package/dist/objects/furniture/data/FurnitureLogicData.d.ts +10 -0
  233. package/dist/objects/furniture/data/FurnitureLogicData.js +43 -0
  234. package/dist/objects/furniture/data/FurnitureLogicJson.d.ts +3 -0
  235. package/dist/objects/furniture/data/FurnitureLogicJson.js +2 -0
  236. package/dist/objects/furniture/data/FurnitureVisualizationData.d.ts +26 -0
  237. package/dist/objects/furniture/data/FurnitureVisualizationData.js +281 -0
  238. package/dist/objects/furniture/data/FurnitureVisualizationJson.d.ts +37 -0
  239. package/dist/objects/furniture/data/FurnitureVisualizationJson.js +2 -0
  240. package/dist/objects/furniture/data/JsonFurnitureAssetsData.d.ts +8 -0
  241. package/dist/objects/furniture/data/JsonFurnitureAssetsData.js +16 -0
  242. package/dist/objects/furniture/data/JsonFurnitureLogicData.d.ts +7 -0
  243. package/dist/objects/furniture/data/JsonFurnitureLogicData.js +12 -0
  244. package/dist/objects/furniture/data/JsonFurnitureVisualizationData.d.ts +18 -0
  245. package/dist/objects/furniture/data/JsonFurnitureVisualizationData.js +95 -0
  246. package/dist/objects/furniture/data/interfaces/IFurnitureAssetsData.d.ts +12 -0
  247. package/dist/objects/furniture/data/interfaces/IFurnitureAssetsData.js +2 -0
  248. package/dist/objects/furniture/data/interfaces/IFurnitureIndexData.d.ts +4 -0
  249. package/dist/objects/furniture/data/interfaces/IFurnitureIndexData.js +2 -0
  250. package/dist/objects/furniture/data/interfaces/IFurnitureLogicData.d.ts +13 -0
  251. package/dist/objects/furniture/data/interfaces/IFurnitureLogicData.js +2 -0
  252. package/dist/objects/furniture/data/interfaces/IFurnitureVisualizationData.d.ts +37 -0
  253. package/dist/objects/furniture/data/interfaces/IFurnitureVisualizationData.js +2 -0
  254. package/dist/objects/furniture/filter/ActiveWiredFilter.d.ts +4 -0
  255. package/dist/objects/furniture/filter/ActiveWiredFilter.js +77 -0
  256. package/dist/objects/furniture/filter/HighlightFilter.d.ts +6 -0
  257. package/dist/objects/furniture/filter/HighlightFilter.js +93 -0
  258. package/dist/objects/furniture/filter/filterVertex.d.ts +1 -0
  259. package/dist/objects/furniture/filter/filterVertex.js +32 -0
  260. package/dist/objects/furniture/util/DrawDefinition.d.ts +18 -0
  261. package/dist/objects/furniture/util/DrawDefinition.js +2 -0
  262. package/dist/objects/furniture/util/IFurnitureEventHandlers.d.ts +9 -0
  263. package/dist/objects/furniture/util/IFurnitureEventHandlers.js +2 -0
  264. package/dist/objects/furniture/util/getDirectionForFurniture.d.ts +1 -0
  265. package/dist/objects/furniture/util/getDirectionForFurniture.js +18 -0
  266. package/dist/objects/furniture/util/getFurniDrawDefinition.d.ts +14 -0
  267. package/dist/objects/furniture/util/getFurniDrawDefinition.js +101 -0
  268. package/dist/objects/furniture/util/getFurnitureFetch.d.ts +3 -0
  269. package/dist/objects/furniture/util/getFurnitureFetch.js +14 -0
  270. package/dist/objects/furniture/util/index.d.ts +4 -0
  271. package/dist/objects/furniture/util/index.js +21 -0
  272. package/dist/objects/furniture/util/loadFurni.d.ts +20 -0
  273. package/dist/objects/furniture/util/loadFurni.js +49 -0
  274. package/dist/objects/furniture/util/visualization/VisualizationXml.d.ts +73 -0
  275. package/dist/objects/furniture/util/visualization/VisualizationXml.js +2 -0
  276. package/dist/objects/furniture/util/visualization/parseAnimations.d.ts +10 -0
  277. package/dist/objects/furniture/util/visualization/parseAnimations.js +35 -0
  278. package/dist/objects/furniture/util/visualization/parseColors.d.ts +2 -0
  279. package/dist/objects/furniture/util/visualization/parseColors.js +19 -0
  280. package/dist/objects/furniture/util/visualization/parseDirections.d.ts +5 -0
  281. package/dist/objects/furniture/util/visualization/parseDirections.js +27 -0
  282. package/dist/objects/furniture/util/visualization/parseLayers.d.ts +9 -0
  283. package/dist/objects/furniture/util/visualization/parseLayers.js +19 -0
  284. package/dist/objects/furniture/util/visualization/parseVisualization.d.ts +17 -0
  285. package/dist/objects/furniture/util/visualization/parseVisualization.js +44 -0
  286. package/dist/objects/furniture/visualization/AnimatedFurnitureVisualization.d.ts +40 -0
  287. package/dist/objects/furniture/visualization/AnimatedFurnitureVisualization.js +214 -0
  288. package/dist/objects/furniture/visualization/BasicFurnitureVisualization.d.ts +19 -0
  289. package/dist/objects/furniture/visualization/BasicFurnitureVisualization.js +54 -0
  290. package/dist/objects/furniture/visualization/FurnitureBottleVisualization.d.ts +17 -0
  291. package/dist/objects/furniture/visualization/FurnitureBottleVisualization.js +65 -0
  292. package/dist/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.d.ts +28 -0
  293. package/dist/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.js +87 -0
  294. package/dist/objects/furniture/visualization/FurnitureVisualization.d.ts +16 -0
  295. package/dist/objects/furniture/visualization/FurnitureVisualization.js +24 -0
  296. package/dist/objects/hitdetection/ClickHandler.d.ts +25 -0
  297. package/dist/objects/hitdetection/ClickHandler.js +79 -0
  298. package/dist/objects/hitdetection/HitSprite.d.ts +65 -0
  299. package/dist/objects/hitdetection/HitSprite.js +223 -0
  300. package/dist/objects/hitdetection/HitTexture.d.ts +21 -0
  301. package/dist/objects/hitdetection/HitTexture.js +153 -0
  302. package/dist/objects/interfaces/IMoveable.d.ts +4 -0
  303. package/dist/objects/interfaces/IMoveable.js +2 -0
  304. package/dist/objects/interfaces/IScreenPositioned.d.ts +6 -0
  305. package/dist/objects/interfaces/IScreenPositioned.js +2 -0
  306. package/dist/objects/room/ILandscapeContainer.d.ts +6 -0
  307. package/dist/objects/room/ILandscapeContainer.js +2 -0
  308. package/dist/objects/room/IRoomRectangle.d.ts +9 -0
  309. package/dist/objects/room/IRoomRectangle.js +2 -0
  310. package/dist/objects/room/ITileColorable.d.ts +7 -0
  311. package/dist/objects/room/ITileColorable.js +2 -0
  312. package/dist/objects/room/IWallColorable.d.ts +7 -0
  313. package/dist/objects/room/IWallColorable.js +2 -0
  314. package/dist/objects/room/Landscape.d.ts +92 -0
  315. package/dist/objects/room/Landscape.js +389 -0
  316. package/dist/objects/room/ParsedTileMap.d.ts +14 -0
  317. package/dist/objects/room/ParsedTileMap.js +26 -0
  318. package/dist/objects/room/Pathfinding.d.ts +31 -0
  319. package/dist/objects/room/Pathfinding.js +241 -0
  320. package/dist/objects/room/Room.d.ts +182 -0
  321. package/dist/objects/room/Room.js +394 -0
  322. package/dist/objects/room/RoomCamera.d.ts +56 -0
  323. package/dist/objects/room/RoomCamera.js +358 -0
  324. package/dist/objects/room/RoomLandscapeMaskSprite.d.ts +38 -0
  325. package/dist/objects/room/RoomLandscapeMaskSprite.js +100 -0
  326. package/dist/objects/room/RoomModelVisualization.d.ts +132 -0
  327. package/dist/objects/room/RoomModelVisualization.js +561 -0
  328. package/dist/objects/room/RoomObjectContainer.d.ts +12 -0
  329. package/dist/objects/room/RoomObjectContainer.js +35 -0
  330. package/dist/objects/room/TileMapEditorLayer.d.ts +44 -0
  331. package/dist/objects/room/TileMapEditorLayer.js +331 -0
  332. package/dist/objects/room/data/LandscapeData.d.ts +26 -0
  333. package/dist/objects/room/data/LandscapeData.js +132 -0
  334. package/dist/objects/room/matrixes.d.ts +9 -0
  335. package/dist/objects/room/matrixes.js +35 -0
  336. package/dist/objects/room/parts/IRoomPart.d.ts +4 -0
  337. package/dist/objects/room/parts/IRoomPart.js +2 -0
  338. package/dist/objects/room/parts/RoomPartData.d.ts +15 -0
  339. package/dist/objects/room/parts/RoomPartData.js +2 -0
  340. package/dist/objects/room/parts/Stair.d.ts +23 -0
  341. package/dist/objects/room/parts/Stair.js +127 -0
  342. package/dist/objects/room/parts/StairCorner.d.ts +22 -0
  343. package/dist/objects/room/parts/StairCorner.js +192 -0
  344. package/dist/objects/room/parts/Tile.d.ts +33 -0
  345. package/dist/objects/room/parts/Tile.js +138 -0
  346. package/dist/objects/room/parts/TileCursor.d.ts +43 -0
  347. package/dist/objects/room/parts/TileCursor.js +193 -0
  348. package/dist/objects/room/parts/WallLeft.d.ts +47 -0
  349. package/dist/objects/room/parts/WallLeft.js +179 -0
  350. package/dist/objects/room/parts/WallOuterCorner.d.ts +16 -0
  351. package/dist/objects/room/parts/WallOuterCorner.js +84 -0
  352. package/dist/objects/room/parts/WallRight.d.ts +5 -0
  353. package/dist/objects/room/parts/WallRight.js +18 -0
  354. package/dist/objects/room/util/LegacyWallGeometry.d.ts +33 -0
  355. package/dist/objects/room/util/LegacyWallGeometry.js +93 -0
  356. package/dist/objects/room/util/createPlaneMatrix.d.ts +26 -0
  357. package/dist/objects/room/util/createPlaneMatrix.js +63 -0
  358. package/dist/objects/room/util/getMaskId.d.ts +1 -0
  359. package/dist/objects/room/util/getMaskId.js +13 -0
  360. package/dist/objects/room/util/getPosition.d.ts +7 -0
  361. package/dist/objects/room/util/getPosition.js +14 -0
  362. package/dist/objects/room/util/getTileColors.d.ts +10 -0
  363. package/dist/objects/room/util/getTileColors.js +34 -0
  364. package/dist/objects/room/util/getTileMapBounds.d.ts +10 -0
  365. package/dist/objects/room/util/getTileMapBounds.js +40 -0
  366. package/dist/objects/room/util/getTilePosition.d.ts +2 -0
  367. package/dist/objects/room/util/getTilePosition.js +42 -0
  368. package/dist/objects/room/util/getTilePositionForTile.d.ts +11 -0
  369. package/dist/objects/room/util/getTilePositionForTile.js +11 -0
  370. package/dist/types/RoomPosition.d.ts +44 -0
  371. package/dist/types/RoomPosition.js +2 -0
  372. package/dist/types/TileType.d.ts +2 -0
  373. package/dist/types/TileType.js +2 -0
  374. package/dist/types/WallPosition.d.ts +23 -0
  375. package/dist/types/WallPosition.js +2 -0
  376. package/dist/types/types.d.ts +0 -0
  377. package/dist/types/types.js +1 -0
  378. package/dist/util/applyTextureProperties.d.ts +2 -0
  379. package/dist/util/applyTextureProperties.js +6 -0
  380. package/dist/util/associateBy.d.ts +1 -0
  381. package/dist/util/associateBy.js +11 -0
  382. package/dist/util/furnitureDataTransformers.d.ts +27 -0
  383. package/dist/util/furnitureDataTransformers.js +58 -0
  384. package/dist/util/getIntFromHex.d.ts +1 -0
  385. package/dist/util/getIntFromHex.js +6 -0
  386. package/dist/util/getNumberFromAttribute.d.ts +1 -0
  387. package/dist/util/getNumberFromAttribute.js +11 -0
  388. package/dist/util/getTileInfo.d.ts +31 -0
  389. package/dist/util/getTileInfo.js +107 -0
  390. package/dist/util/getZOrder.d.ts +1 -0
  391. package/dist/util/getZOrder.js +6 -0
  392. package/dist/util/isPointInside.d.ts +1 -0
  393. package/dist/util/isPointInside.js +18 -0
  394. package/dist/util/isSetEqual.d.ts +1 -0
  395. package/dist/util/isSetEqual.js +11 -0
  396. package/dist/util/isTile.d.ts +1 -0
  397. package/dist/util/isTile.js +5 -0
  398. package/dist/util/loadImageFromBlob.d.ts +1 -0
  399. package/dist/util/loadImageFromBlob.js +13 -0
  400. package/dist/util/loadImageFromUrl.d.ts +1 -0
  401. package/dist/util/loadImageFromUrl.js +14 -0
  402. package/dist/util/loadRoomTexture.d.ts +2 -0
  403. package/dist/util/loadRoomTexture.js +51 -0
  404. package/dist/util/mock.d.ts +1 -0
  405. package/dist/util/mock.js +6 -0
  406. package/dist/util/notNullOrUndefined.d.ts +1 -0
  407. package/dist/util/notNullOrUndefined.js +6 -0
  408. package/dist/util/parseTileMap.d.ts +49 -0
  409. package/dist/util/parseTileMap.js +188 -0
  410. package/dist/util/parseTileMapString.d.ts +2 -0
  411. package/dist/util/parseTileMapString.js +16 -0
  412. package/dist/util/tilemap/findEntranceTile.d.ts +5 -0
  413. package/dist/util/tilemap/findEntranceTile.js +24 -0
  414. package/dist/util/tilemap/getColumnWalls.d.ts +8 -0
  415. package/dist/util/tilemap/getColumnWalls.js +43 -0
  416. package/dist/util/tilemap/getRowWalls.d.ts +8 -0
  417. package/dist/util/tilemap/getRowWalls.js +43 -0
  418. package/dist/util/tilemap/hasWallTiles.d.ts +2 -0
  419. package/dist/util/tilemap/hasWallTiles.js +9 -0
  420. package/dist/util/tilemap/padTileMap.d.ts +6 -0
  421. package/dist/util/tilemap/padTileMap.js +24 -0
  422. package/dist/util/tilemap/traceWalls.d.ts +25 -0
  423. package/dist/util/tilemap/traceWalls.js +379 -0
  424. package/dist/util/tilemap/wallsFromContour.d.ts +20 -0
  425. package/dist/util/tilemap/wallsFromContour.js +48 -0
  426. package/dist/util/traverseDOMTree.d.ts +4 -0
  427. package/dist/util/traverseDOMTree.js +8 -0
  428. package/dist-esm/__mocks__/setupTests.js +34 -0
  429. package/dist-esm/assets/IAssetBundle.js +1 -0
  430. package/dist-esm/assets/LegacyAssetBundle.js +25 -0
  431. package/dist-esm/assets/WsproomAssetBundle.js +79 -0
  432. package/dist-esm/data/XmlData.js +11 -0
  433. package/dist-esm/index.js +33 -0
  434. package/dist-esm/interfaces/IAnimationTicker.js +1 -0
  435. package/dist-esm/interfaces/IAvatarLoader.js +1 -0
  436. package/dist-esm/interfaces/IConfiguration.js +1 -0
  437. package/dist-esm/interfaces/IFurnitureData.js +1 -0
  438. package/dist-esm/interfaces/IFurnitureLoader.js +1 -0
  439. package/dist-esm/interfaces/IHitDetection.js +1 -0
  440. package/dist-esm/interfaces/IRoomContext.js +1 -0
  441. package/dist-esm/interfaces/IRoomGeometry.js +1 -0
  442. package/dist-esm/interfaces/IRoomObject.js +1 -0
  443. package/dist-esm/interfaces/IRoomObjectContainer.js +1 -0
  444. package/dist-esm/interfaces/IRoomVisualization.js +1 -0
  445. package/dist-esm/interfaces/ITextureable.js +1 -0
  446. package/dist-esm/interfaces/ITileMap.js +1 -0
  447. package/dist-esm/objects/RoomObject.js +65 -0
  448. package/dist-esm/objects/Wsproom.js +49 -0
  449. package/dist-esm/objects/animation/AnimationTicker.js +33 -0
  450. package/dist-esm/objects/animation/ObjectAnimation.js +89 -0
  451. package/dist-esm/objects/avatar/Avatar.js +544 -0
  452. package/dist-esm/objects/avatar/AvatarAssetLibraryCollection.js +66 -0
  453. package/dist-esm/objects/avatar/AvatarEffectBundle.js +30 -0
  454. package/dist-esm/objects/avatar/AvatarLoader.js +211 -0
  455. package/dist-esm/objects/avatar/BaseAvatar.js +349 -0
  456. package/dist-esm/objects/avatar/data/AvatarActionsData.js +80 -0
  457. package/dist-esm/objects/avatar/data/AvatarAnimationData.js +122 -0
  458. package/dist-esm/objects/avatar/data/AvatarData.js +11 -0
  459. package/dist-esm/objects/avatar/data/AvatarEffectData.js +182 -0
  460. package/dist-esm/objects/avatar/data/AvatarEffectMap.js +34 -0
  461. package/dist-esm/objects/avatar/data/AvatarGeometryData.js +118 -0
  462. package/dist-esm/objects/avatar/data/AvatarManifestData.js +51 -0
  463. package/dist-esm/objects/avatar/data/AvatarOffsetsData.js +13 -0
  464. package/dist-esm/objects/avatar/data/AvatarPartSetsData.js +34 -0
  465. package/dist-esm/objects/avatar/data/FigureData.js +102 -0
  466. package/dist-esm/objects/avatar/data/FigureMapData.js +43 -0
  467. package/dist-esm/objects/avatar/data/ManifestLibrary.js +25 -0
  468. package/dist-esm/objects/avatar/data/interfaces/IAvatarActionsData.js +1 -0
  469. package/dist-esm/objects/avatar/data/interfaces/IAvatarAnimationData.js +1 -0
  470. package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectBundle.js +1 -0
  471. package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectData.js +1 -0
  472. package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectMap.js +1 -0
  473. package/dist-esm/objects/avatar/data/interfaces/IAvatarGeometryData.js +1 -0
  474. package/dist-esm/objects/avatar/data/interfaces/IAvatarManifestData.js +1 -0
  475. package/dist-esm/objects/avatar/data/interfaces/IAvatarOffsetsData.js +1 -0
  476. package/dist-esm/objects/avatar/data/interfaces/IAvatarPartSetsData.js +1 -0
  477. package/dist-esm/objects/avatar/data/interfaces/IFigureData.js +1 -0
  478. package/dist-esm/objects/avatar/data/interfaces/IFigureMapData.js +1 -0
  479. package/dist-esm/objects/avatar/data/interfaces/IManifestLibrary.js +1 -0
  480. package/dist-esm/objects/avatar/data/static/actions.xml.js +1 -0
  481. package/dist-esm/objects/avatar/data/static/animation.xml.js +1 -0
  482. package/dist-esm/objects/avatar/data/static/geometry.xml.js +1 -0
  483. package/dist-esm/objects/avatar/data/static/partsets.xml.js +1 -0
  484. package/dist-esm/objects/avatar/enum/AvatarAction.js +30 -0
  485. package/dist-esm/objects/avatar/enum/AvatarFigurePartType.js +28 -0
  486. package/dist-esm/objects/avatar/structure/AvatarAdditionPart.js +132 -0
  487. package/dist-esm/objects/avatar/structure/AvatarBodyPart.js +92 -0
  488. package/dist-esm/objects/avatar/structure/AvatarBodyPartList.js +87 -0
  489. package/dist-esm/objects/avatar/structure/AvatarDrawDefinition.js +131 -0
  490. package/dist-esm/objects/avatar/structure/AvatarEffectPart.js +113 -0
  491. package/dist-esm/objects/avatar/structure/AvatarPart.js +158 -0
  492. package/dist-esm/objects/avatar/structure/AvatarPartList.js +76 -0
  493. package/dist-esm/objects/avatar/structure/BodyPartDrawOrder.js +166 -0
  494. package/dist-esm/objects/avatar/structure/interface/IAvatarDrawablePart.js +1 -0
  495. package/dist-esm/objects/avatar/structure/interface/IAvatarEffectPart.js +1 -0
  496. package/dist-esm/objects/avatar/types/index.js +1 -0
  497. package/dist-esm/objects/avatar/util/createLookServer.js +15 -0
  498. package/dist-esm/objects/avatar/util/getAssetForFrame.js +39 -0
  499. package/dist-esm/objects/avatar/util/getAssetFromPartMeta.js +46 -0
  500. package/dist-esm/objects/avatar/util/getAvatarDirection.js +15 -0
  501. package/dist-esm/objects/avatar/util/getAvatarDrawDefinition.js +27 -0
  502. package/dist-esm/objects/avatar/util/getDrawOrderForActions.js +19 -0
  503. package/dist-esm/objects/avatar/util/getEffectSprite.js +24 -0
  504. package/dist-esm/objects/avatar/util/getFlippedMetaData.js +89 -0
  505. package/dist-esm/objects/avatar/util/getLibrariesForLook.js +29 -0
  506. package/dist-esm/objects/avatar/util/index.js +1 -0
  507. package/dist-esm/objects/avatar/util/parseLookString.js +12 -0
  508. package/dist-esm/objects/events/EventEmitter.js +27 -0
  509. package/dist-esm/objects/events/EventManager.js +241 -0
  510. package/dist-esm/objects/events/EventManagerContainer.js +32 -0
  511. package/dist-esm/objects/events/EventManagerNode.js +51 -0
  512. package/dist-esm/objects/events/EventOverOutHandler.js +86 -0
  513. package/dist-esm/objects/events/interfaces/IEventGroup.js +3 -0
  514. package/dist-esm/objects/events/interfaces/IEventHandler.js +1 -0
  515. package/dist-esm/objects/events/interfaces/IEventHittable.js +1 -0
  516. package/dist-esm/objects/events/interfaces/IEventManager.js +1 -0
  517. package/dist-esm/objects/events/interfaces/IEventManagerEvent.js +1 -0
  518. package/dist-esm/objects/events/interfaces/IEventManagerNode.js +1 -0
  519. package/dist-esm/objects/events/interfaces/IEventTarget.js +1 -0
  520. package/dist-esm/objects/furniture/BaseFurniture.js +482 -0
  521. package/dist-esm/objects/furniture/FloorFurniture.js +316 -0
  522. package/dist-esm/objects/furniture/FurnitureData.js +69 -0
  523. package/dist-esm/objects/furniture/FurnitureExtraData.js +1 -0
  524. package/dist-esm/objects/furniture/FurnitureFetchInfo.js +1 -0
  525. package/dist-esm/objects/furniture/FurnitureHelper.js +53 -0
  526. package/dist-esm/objects/furniture/FurnitureLoader.js +81 -0
  527. package/dist-esm/objects/furniture/FurnitureRoomVisualization.js +22 -0
  528. package/dist-esm/objects/furniture/FurnitureSprite.js +65 -0
  529. package/dist-esm/objects/furniture/FurnitureVisualizationView.js +478 -0
  530. package/dist-esm/objects/furniture/IFurniture.js +1 -0
  531. package/dist-esm/objects/furniture/IFurnitureAssetBundle.js +1 -0
  532. package/dist-esm/objects/furniture/IFurnitureVisualization.js +1 -0
  533. package/dist-esm/objects/furniture/IFurnitureVisualizationView.js +1 -0
  534. package/dist-esm/objects/furniture/JsonFurnitureAssetBundle.js +52 -0
  535. package/dist-esm/objects/furniture/WallFurniture.js +225 -0
  536. package/dist-esm/objects/furniture/XmlFurnitureAssetBundle.js +31 -0
  537. package/dist-esm/objects/furniture/data/FurnitureAssetsData.js +47 -0
  538. package/dist-esm/objects/furniture/data/FurnitureAssetsJson.js +1 -0
  539. package/dist-esm/objects/furniture/data/FurnitureIndexData.js +26 -0
  540. package/dist-esm/objects/furniture/data/FurnitureIndexJson.js +1 -0
  541. package/dist-esm/objects/furniture/data/FurnitureJson.js +1 -0
  542. package/dist-esm/objects/furniture/data/FurnitureLogicData.js +39 -0
  543. package/dist-esm/objects/furniture/data/FurnitureLogicJson.js +1 -0
  544. package/dist-esm/objects/furniture/data/FurnitureVisualizationData.js +277 -0
  545. package/dist-esm/objects/furniture/data/FurnitureVisualizationJson.js +1 -0
  546. package/dist-esm/objects/furniture/data/JsonFurnitureAssetsData.js +12 -0
  547. package/dist-esm/objects/furniture/data/JsonFurnitureLogicData.js +8 -0
  548. package/dist-esm/objects/furniture/data/JsonFurnitureVisualizationData.js +91 -0
  549. package/dist-esm/objects/furniture/data/interfaces/IFurnitureAssetsData.js +1 -0
  550. package/dist-esm/objects/furniture/data/interfaces/IFurnitureIndexData.js +1 -0
  551. package/dist-esm/objects/furniture/data/interfaces/IFurnitureLogicData.js +1 -0
  552. package/dist-esm/objects/furniture/data/interfaces/IFurnitureVisualizationData.js +1 -0
  553. package/dist-esm/objects/furniture/filter/ActiveWiredFilter.js +40 -0
  554. package/dist-esm/objects/furniture/filter/HighlightFilter.js +56 -0
  555. package/dist-esm/objects/furniture/filter/filterVertex.js +29 -0
  556. package/dist-esm/objects/furniture/util/DrawDefinition.js +1 -0
  557. package/dist-esm/objects/furniture/util/IFurnitureEventHandlers.js +1 -0
  558. package/dist-esm/objects/furniture/util/getDirectionForFurniture.js +15 -0
  559. package/dist-esm/objects/furniture/util/getFurniDrawDefinition.js +98 -0
  560. package/dist-esm/objects/furniture/util/getFurnitureFetch.js +11 -0
  561. package/dist-esm/objects/furniture/util/index.js +4 -0
  562. package/dist-esm/objects/furniture/util/loadFurni.js +46 -0
  563. package/dist-esm/objects/furniture/util/visualization/VisualizationXml.js +1 -0
  564. package/dist-esm/objects/furniture/util/visualization/parseAnimations.js +32 -0
  565. package/dist-esm/objects/furniture/util/visualization/parseColors.js +16 -0
  566. package/dist-esm/objects/furniture/util/visualization/parseDirections.js +24 -0
  567. package/dist-esm/objects/furniture/util/visualization/parseLayers.js +16 -0
  568. package/dist-esm/objects/furniture/util/visualization/parseVisualization.js +41 -0
  569. package/dist-esm/objects/furniture/visualization/AnimatedFurnitureVisualization.js +210 -0
  570. package/dist-esm/objects/furniture/visualization/BasicFurnitureVisualization.js +50 -0
  571. package/dist-esm/objects/furniture/visualization/FurnitureBottleVisualization.js +61 -0
  572. package/dist-esm/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.js +83 -0
  573. package/dist-esm/objects/furniture/visualization/FurnitureVisualization.js +20 -0
  574. package/dist-esm/objects/hitdetection/ClickHandler.js +75 -0
  575. package/dist-esm/objects/hitdetection/HitSprite.js +186 -0
  576. package/dist-esm/objects/hitdetection/HitTexture.js +116 -0
  577. package/dist-esm/objects/interfaces/IMoveable.js +1 -0
  578. package/dist-esm/objects/interfaces/IScreenPositioned.js +1 -0
  579. package/dist-esm/objects/room/ILandscapeContainer.js +1 -0
  580. package/dist-esm/objects/room/IRoomRectangle.js +1 -0
  581. package/dist-esm/objects/room/ITileColorable.js +1 -0
  582. package/dist-esm/objects/room/IWallColorable.js +1 -0
  583. package/dist-esm/objects/room/Landscape.js +349 -0
  584. package/dist-esm/objects/room/ParsedTileMap.js +22 -0
  585. package/dist-esm/objects/room/Pathfinding.js +204 -0
  586. package/dist-esm/objects/room/Room.js +357 -0
  587. package/dist-esm/objects/room/RoomCamera.js +321 -0
  588. package/dist-esm/objects/room/RoomLandscapeMaskSprite.js +63 -0
  589. package/dist-esm/objects/room/RoomModelVisualization.js +524 -0
  590. package/dist-esm/objects/room/RoomObjectContainer.js +31 -0
  591. package/dist-esm/objects/room/TileMapEditorLayer.js +294 -0
  592. package/dist-esm/objects/room/data/LandscapeData.js +128 -0
  593. package/dist-esm/objects/room/matrixes.js +30 -0
  594. package/dist-esm/objects/room/parts/IRoomPart.js +1 -0
  595. package/dist-esm/objects/room/parts/RoomPartData.js +1 -0
  596. package/dist-esm/objects/room/parts/Stair.js +90 -0
  597. package/dist-esm/objects/room/parts/StairCorner.js +155 -0
  598. package/dist-esm/objects/room/parts/Tile.js +101 -0
  599. package/dist-esm/objects/room/parts/TileCursor.js +156 -0
  600. package/dist-esm/objects/room/parts/WallLeft.js +142 -0
  601. package/dist-esm/objects/room/parts/WallOuterCorner.js +47 -0
  602. package/dist-esm/objects/room/parts/WallRight.js +14 -0
  603. package/dist-esm/objects/room/util/LegacyWallGeometry.js +89 -0
  604. package/dist-esm/objects/room/util/createPlaneMatrix.js +27 -0
  605. package/dist-esm/objects/room/util/getMaskId.js +10 -0
  606. package/dist-esm/objects/room/util/getPosition.js +11 -0
  607. package/dist-esm/objects/room/util/getTileColors.js +30 -0
  608. package/dist-esm/objects/room/util/getTileMapBounds.js +37 -0
  609. package/dist-esm/objects/room/util/getTilePosition.js +6 -0
  610. package/dist-esm/objects/room/util/getTilePositionForTile.js +8 -0
  611. package/dist-esm/types/RoomPosition.js +1 -0
  612. package/dist-esm/types/TileType.js +1 -0
  613. package/dist-esm/types/WallPosition.js +1 -0
  614. package/dist-esm/types/types.js +1 -0
  615. package/dist-esm/util/applyTextureProperties.js +3 -0
  616. package/dist-esm/util/associateBy.js +8 -0
  617. package/dist-esm/util/furnitureDataTransformers.js +53 -0
  618. package/dist-esm/util/getIntFromHex.js +3 -0
  619. package/dist-esm/util/getNumberFromAttribute.js +8 -0
  620. package/dist-esm/util/getTileInfo.js +103 -0
  621. package/dist-esm/util/getZOrder.js +3 -0
  622. package/dist-esm/util/isPointInside.js +15 -0
  623. package/dist-esm/util/isSetEqual.js +8 -0
  624. package/dist-esm/util/isTile.js +1 -0
  625. package/dist-esm/util/loadImageFromBlob.js +10 -0
  626. package/dist-esm/util/loadImageFromUrl.js +11 -0
  627. package/dist-esm/util/loadRoomTexture.js +15 -0
  628. package/dist-esm/util/mock.js +3 -0
  629. package/dist-esm/util/notNullOrUndefined.js +3 -0
  630. package/dist-esm/util/parseTileMap.js +185 -0
  631. package/dist-esm/util/parseTileMapString.js +13 -0
  632. package/dist-esm/util/tilemap/findEntranceTile.js +21 -0
  633. package/dist-esm/util/tilemap/getColumnWalls.js +40 -0
  634. package/dist-esm/util/tilemap/getRowWalls.js +40 -0
  635. package/dist-esm/util/tilemap/hasWallTiles.js +6 -0
  636. package/dist-esm/util/tilemap/padTileMap.js +21 -0
  637. package/dist-esm/util/tilemap/traceWalls.js +376 -0
  638. package/dist-esm/util/tilemap/wallsFromContour.js +45 -0
  639. package/dist-esm/util/traverseDOMTree.js +5 -0
  640. package/package.json +102 -3
package/COPYING.LESSER ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
package/README.md CHANGED
@@ -1,3 +1,77 @@
1
- # Temporary Holding Version
1
+ # 🍄 wsproom
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A modern isometric room rendering engine, built on PixiJS v8.**
4
+
5
+ [![npm](https://img.shields.io/npm/v/@wiredsnippets/wsproom?color=8b5cf6)](https://www.npmjs.com/package/@wiredsnippets/wsproom)
6
+ [![License: LGPL v3](https://img.shields.io/badge/license-LGPL--3.0-blue.svg)](./COPYING.LESSER)
7
+ [![PixiJS](https://img.shields.io/badge/PixiJS-v8-e72264)](https://pixijs.com)
8
+
9
+ wsproom renders rooms, furniture, avatars and wall items in the browser.
10
+
11
+ ## ✨ Features
12
+
13
+ - **PixiJS v8** rendering.
14
+ - **Nitro-accurate tilemaps**, with wall tracing, contour processing and door handling.
15
+ - **Room camera** with zoom, tweening and optional bounds clamping.
16
+ - **Furniture**: floor and wall items, altitude and movement, mask sprites, ink/blend modes,
17
+ z-index control, `setPosition`, `dimensions`, `validAnimations`.
18
+ - **Highlight and active-wired filters** for furniture.
19
+ - **Precise hit detection** that accounts for scale, with a drag threshold so drags don't count as clicks.
20
+ - **Avatars** with actions, effects and pathfinding.
21
+
22
+ ## 📦 Install
23
+
24
+ ```bash
25
+ pnpm add @wiredsnippets/wsproom pixi.js
26
+ ```
27
+
28
+ ## 🚀 Quick start
29
+
30
+ ```ts
31
+ import { Application } from "pixi.js";
32
+ import { Wsproom, Room, FloorFurniture, Avatar } from "@wiredsnippets/wsproom";
33
+
34
+ const app = new Application();
35
+ await app.init({ resizeTo: window });
36
+ document.body.appendChild(app.canvas);
37
+
38
+ const wsproom = Wsproom.create({ application: app, resourcePath: "./resources" });
39
+
40
+ const room = Room.create(wsproom, {
41
+ tilemap: `
42
+ xxxxx
43
+ x0000
44
+ x0000
45
+ x0000
46
+ `,
47
+ });
48
+
49
+ room.addRoomObject(
50
+ new FloorFurniture({ roomX: 1, roomY: 1, roomZ: 0, direction: 2, type: "club_sofa" })
51
+ );
52
+ room.addRoomObject(
53
+ new Avatar({ look: "hd-180-1.hr-100-61.ch-210-66.lg-270-82.sh-290-80", roomX: 2, roomY: 2, roomZ: 0, direction: 2 })
54
+ );
55
+
56
+ app.stage.addChild(room);
57
+ ```
58
+
59
+ ## 🧰 Dumping assets
60
+
61
+ Extract the resources wsproom needs from an external variables file:
62
+
63
+ ```bash
64
+ npx wsproom dump --url https://example.com/gamedata/external_variables.txt --location ./resources
65
+ ```
66
+
67
+ ## 💜 Credits
68
+
69
+ wsproom is built on **[Shroom](https://github.com/jankuss/shroom)** by **[Jankuss](https://github.com/jankuss)**.
70
+ The core architecture and much of the codebase are Jankuss's work, and without it this project
71
+ wouldn't exist. Huge thanks, Jankuss. 🍄
72
+
73
+ Maintained by [WiredSnippets](https://github.com/WiredSnippets).
74
+
75
+ ## 📄 License
76
+
77
+ [LGPL-3.0-or-later](./COPYING.LESSER), same as the original Shroom.
File without changes
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ global.Image = class {
3
+ constructor() {
4
+ this.width = 0;
5
+ this.height = 0;
6
+ setTimeout(() => {
7
+ if (this.onload)
8
+ this.onload();
9
+ }, 0);
10
+ }
11
+ };
12
+ // Mock PIXI.Texture.from to avoid WebGL requirement in tests
13
+ jest.mock('pixi.js', () => {
14
+ const actual = jest.requireActual('pixi.js');
15
+ return {
16
+ ...actual,
17
+ Texture: {
18
+ ...actual.Texture,
19
+ from: (resource) => {
20
+ const source = {
21
+ resource,
22
+ resolution: 1,
23
+ pixelWidth: resource.width || 2,
24
+ pixelHeight: resource.height || 2,
25
+ scaleMode: "linear",
26
+ };
27
+ return {
28
+ source,
29
+ orig: { x: 0, y: 0 },
30
+ };
31
+ },
32
+ },
33
+ };
34
+ });
@@ -0,0 +1,4 @@
1
+ export interface IAssetBundle {
2
+ getBlob(name: string): Promise<Blob>;
3
+ getString(name: string): Promise<string>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IAssetBundle } from "./IAssetBundle";
2
+ export declare class LegacyAssetBundle implements IAssetBundle {
3
+ private _folderUrl;
4
+ private _blobs;
5
+ private _strings;
6
+ constructor(_folderUrl: string);
7
+ getBlob(name: string): Promise<Blob>;
8
+ getString(name: string): Promise<string>;
9
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LegacyAssetBundle = void 0;
4
+ class LegacyAssetBundle {
5
+ constructor(_folderUrl) {
6
+ this._folderUrl = _folderUrl;
7
+ this._blobs = new Map();
8
+ this._strings = new Map();
9
+ }
10
+ async getBlob(name) {
11
+ const current = this._blobs.get(name);
12
+ if (current != null)
13
+ return current;
14
+ const imageUrl = `${this._folderUrl}/${name}`;
15
+ const blob = fetch(imageUrl).then((response) => response.blob());
16
+ this._blobs.set(name, blob);
17
+ return blob;
18
+ }
19
+ async getString(name) {
20
+ const current = this._strings.get(name);
21
+ if (current != null)
22
+ return current;
23
+ const imageUrl = `${this._folderUrl}/${name}`;
24
+ const string = fetch(imageUrl).then((response) => response.text());
25
+ this._strings.set(name, string);
26
+ return string;
27
+ }
28
+ }
29
+ exports.LegacyAssetBundle = LegacyAssetBundle;
@@ -0,0 +1,18 @@
1
+ import { IAssetBundle } from "./IAssetBundle";
2
+ export declare class WsproomAssetBundle implements IAssetBundle {
3
+ static readonly VERSION = 1;
4
+ private _files;
5
+ private _blobs;
6
+ private _strings;
7
+ constructor(files?: {
8
+ fileName: string;
9
+ buffer: ArrayBuffer | Buffer;
10
+ }[]);
11
+ get files(): [string, ArrayBuffer | Buffer][];
12
+ static fromUrl(url: string): Promise<WsproomAssetBundle>;
13
+ static fromBuffer(buffer: ArrayBuffer | Buffer): WsproomAssetBundle;
14
+ addFile(fileName: string, buffer: ArrayBuffer | Buffer): void;
15
+ toBuffer(): Buffer;
16
+ getBlob(name: string): Promise<Blob>;
17
+ getString(name: string): Promise<string>;
18
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WsproomAssetBundle = void 0;
7
+ const bytebuffer_1 = __importDefault(require("bytebuffer"));
8
+ class WsproomAssetBundle {
9
+ constructor(files = []) {
10
+ this._files = new Map();
11
+ this._blobs = new Map();
12
+ this._strings = new Map();
13
+ files.forEach((file) => this._files.set(file.fileName, file.buffer));
14
+ }
15
+ get files() {
16
+ return Array.from(this._files.entries());
17
+ }
18
+ static async fromUrl(url) {
19
+ const response = await fetch(url);
20
+ if (response.status >= 400)
21
+ throw new Error(`Failed to load: ${url} - ${response.status}`);
22
+ const buffer = await response.arrayBuffer();
23
+ return WsproomAssetBundle.fromBuffer(buffer);
24
+ }
25
+ static fromBuffer(buffer) {
26
+ const byteBuffer = bytebuffer_1.default.wrap(buffer);
27
+ const readFile = () => {
28
+ const fileNameLength = byteBuffer.readUint16();
29
+ const fileName = byteBuffer.readString(fileNameLength);
30
+ const fileLength = byteBuffer.readUint32();
31
+ const buffer = byteBuffer.readBytes(fileLength);
32
+ return {
33
+ fileName,
34
+ buffer: buffer.toArrayBuffer(),
35
+ };
36
+ };
37
+ const version = byteBuffer.readByte();
38
+ const fileCount = byteBuffer.readUint16();
39
+ const files = [];
40
+ for (let i = 0; i < fileCount; i++) {
41
+ const file = readFile();
42
+ files.push(file);
43
+ }
44
+ return new WsproomAssetBundle(files);
45
+ }
46
+ addFile(fileName, buffer) {
47
+ this._files.set(fileName, buffer);
48
+ }
49
+ toBuffer() {
50
+ const byteBuffer = new bytebuffer_1.default();
51
+ byteBuffer.writeByte(WsproomAssetBundle.VERSION);
52
+ byteBuffer.writeUint16(this._files.size);
53
+ this._files.forEach((buffer, key) => {
54
+ byteBuffer.writeUint16(key.length);
55
+ byteBuffer.writeString(key);
56
+ byteBuffer.writeUint32(buffer.byteLength);
57
+ byteBuffer.append(buffer);
58
+ });
59
+ return byteBuffer.flip().toBuffer();
60
+ }
61
+ async getBlob(name) {
62
+ const current = this._blobs.get(name);
63
+ if (current != null)
64
+ return current;
65
+ const buffer = this._files.get(name);
66
+ if (buffer == null)
67
+ throw new Error(`Couldn't find ${name}.`);
68
+ const blob = new Blob([buffer]);
69
+ this._blobs.set(name, blob);
70
+ return blob;
71
+ }
72
+ async getString(name) {
73
+ const current = this._strings.get(name);
74
+ if (current != null)
75
+ return current;
76
+ const buffer = this._files.get(name);
77
+ if (buffer == null)
78
+ throw new Error(`Couldn't find ${name}.`);
79
+ const encoder = new TextDecoder();
80
+ const string = encoder.decode(buffer);
81
+ this._strings.set(name, string);
82
+ return string;
83
+ }
84
+ }
85
+ exports.WsproomAssetBundle = WsproomAssetBundle;
86
+ WsproomAssetBundle.VERSION = 1;
@@ -0,0 +1,6 @@
1
+ export declare class XmlData {
2
+ protected document: Document;
3
+ constructor(xml: string);
4
+ protected querySelectorAll(query: string): Element[];
5
+ protected querySelector(query: string): Element | null;
6
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.XmlData = void 0;
4
+ class XmlData {
5
+ constructor(xml) {
6
+ this.document = new DOMParser().parseFromString(xml, "text/xml");
7
+ }
8
+ querySelectorAll(query) {
9
+ return Array.from(this.document.querySelectorAll(query));
10
+ }
11
+ querySelector(query) {
12
+ return this.document.querySelector(query);
13
+ }
14
+ }
15
+ exports.XmlData = XmlData;
@@ -0,0 +1,45 @@
1
+ import { IEventManagerEvent } from "./objects/events/interfaces/IEventManagerEvent";
2
+ export { RoomObject } from "./objects/RoomObject";
3
+ export { Avatar } from "./objects/avatar/Avatar";
4
+ export { FloorFurniture } from "./objects/furniture/FloorFurniture";
5
+ export { HighlightFilter } from "./objects/furniture/filter/HighlightFilter";
6
+ export { ActiveWiredFilter } from "./objects/furniture/filter/ActiveWiredFilter";
7
+ export { WallFurniture } from "./objects/furniture/WallFurniture";
8
+ export { Room } from "./objects/room/Room";
9
+ export { RoomCamera } from "./objects/room/RoomCamera";
10
+ export { Pathfinding } from "./objects/room/Pathfinding";
11
+ export { loadRoomTexture } from "./util/loadRoomTexture";
12
+ export { parseTileMapString } from "./util/parseTileMapString";
13
+ export { hasWallTiles } from "./util/tilemap/hasWallTiles";
14
+ export type { IFurnitureBehavior } from "./objects/furniture/IFurniture";
15
+ export type { IFurniture } from "./objects/furniture/IFurniture";
16
+ export type { IFurnitureExtended } from "./objects/furniture/IFurniture";
17
+ export type { FurnitureInfo } from "./interfaces/IFurnitureData";
18
+ export type { IFurnitureData } from "./interfaces/IFurnitureData";
19
+ export { FurnitureData } from "./objects/furniture/FurnitureData";
20
+ export { FurnitureHelper } from "./objects/furniture/FurnitureHelper";
21
+ export { Wsproom } from "./objects/Wsproom";
22
+ export { Landscape, getLandscapeItemPosition, } from "./objects/room/Landscape";
23
+ export type { LandscapeVisualization, LandscapeLayer, LandscapeAnimationItem, } from "./objects/room/Landscape";
24
+ export { AnimationTicker } from "./objects/animation/AnimationTicker";
25
+ export { FurnitureLoader } from "./objects/furniture/FurnitureLoader";
26
+ export { AvatarLoader } from "./objects/avatar/AvatarLoader";
27
+ export { AvatarAction } from "./objects/avatar/enum/AvatarAction";
28
+ export { FurnitureRoomVisualization } from "./objects/furniture/FurnitureRoomVisualization";
29
+ export { BaseFurniture } from "./objects/furniture/BaseFurniture";
30
+ export { BaseAvatar } from "./objects/avatar/BaseAvatar";
31
+ export { AnimatedFurnitureVisualization } from "./objects/furniture/visualization/AnimatedFurnitureVisualization";
32
+ export { FurnitureGuildCustomizedVisualization } from "./objects/furniture/visualization/FurnitureGuildCustomizedVisualization";
33
+ export { StaticFurnitureVisualization, BasicFurnitureVisualization, } from "./objects/furniture/visualization/BasicFurnitureVisualization";
34
+ export { FurnitureBottleVisualization } from "./objects/furniture/visualization/FurnitureBottleVisualization";
35
+ export { FurnitureVisualization } from "./objects/furniture/visualization/FurnitureVisualization";
36
+ export type { IFurnitureVisualization } from "./objects/furniture/IFurnitureVisualization";
37
+ export type { RoomPosition } from "./types/RoomPosition";
38
+ export type { WallPosition } from "./types/WallPosition";
39
+ export { WallLeft } from "./objects/room/parts/WallLeft";
40
+ export { WallRight } from "./objects/room/parts/WallRight";
41
+ export { RoomModelVisualization } from "./objects/room/RoomModelVisualization";
42
+ export { TileMapEditorLayer } from "./objects/room/TileMapEditorLayer";
43
+ export type { EditorPaintCallback } from "./objects/room/TileMapEditorLayer";
44
+ export { AVATAR, TILE_CURSOR, FURNITURE, } from "./objects/events/interfaces/IEventGroup";
45
+ export type HitEvent = IEventManagerEvent;
package/dist/index.js ADDED
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FURNITURE = exports.TILE_CURSOR = exports.AVATAR = exports.TileMapEditorLayer = exports.RoomModelVisualization = exports.WallRight = exports.WallLeft = exports.FurnitureVisualization = exports.FurnitureBottleVisualization = exports.BasicFurnitureVisualization = exports.StaticFurnitureVisualization = exports.FurnitureGuildCustomizedVisualization = exports.AnimatedFurnitureVisualization = exports.BaseAvatar = exports.BaseFurniture = exports.FurnitureRoomVisualization = exports.AvatarAction = exports.AvatarLoader = exports.FurnitureLoader = exports.AnimationTicker = exports.getLandscapeItemPosition = exports.Landscape = exports.Wsproom = exports.FurnitureHelper = exports.FurnitureData = exports.hasWallTiles = exports.parseTileMapString = exports.loadRoomTexture = exports.Pathfinding = exports.RoomCamera = exports.Room = exports.WallFurniture = exports.ActiveWiredFilter = exports.HighlightFilter = exports.FloorFurniture = exports.Avatar = exports.RoomObject = void 0;
4
+ var RoomObject_1 = require("./objects/RoomObject");
5
+ Object.defineProperty(exports, "RoomObject", { enumerable: true, get: function () { return RoomObject_1.RoomObject; } });
6
+ var Avatar_1 = require("./objects/avatar/Avatar");
7
+ Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_1.Avatar; } });
8
+ var FloorFurniture_1 = require("./objects/furniture/FloorFurniture");
9
+ Object.defineProperty(exports, "FloorFurniture", { enumerable: true, get: function () { return FloorFurniture_1.FloorFurniture; } });
10
+ var HighlightFilter_1 = require("./objects/furniture/filter/HighlightFilter");
11
+ Object.defineProperty(exports, "HighlightFilter", { enumerable: true, get: function () { return HighlightFilter_1.HighlightFilter; } });
12
+ var ActiveWiredFilter_1 = require("./objects/furniture/filter/ActiveWiredFilter");
13
+ Object.defineProperty(exports, "ActiveWiredFilter", { enumerable: true, get: function () { return ActiveWiredFilter_1.ActiveWiredFilter; } });
14
+ var WallFurniture_1 = require("./objects/furniture/WallFurniture");
15
+ Object.defineProperty(exports, "WallFurniture", { enumerable: true, get: function () { return WallFurniture_1.WallFurniture; } });
16
+ var Room_1 = require("./objects/room/Room");
17
+ Object.defineProperty(exports, "Room", { enumerable: true, get: function () { return Room_1.Room; } });
18
+ var RoomCamera_1 = require("./objects/room/RoomCamera");
19
+ Object.defineProperty(exports, "RoomCamera", { enumerable: true, get: function () { return RoomCamera_1.RoomCamera; } });
20
+ var Pathfinding_1 = require("./objects/room/Pathfinding");
21
+ Object.defineProperty(exports, "Pathfinding", { enumerable: true, get: function () { return Pathfinding_1.Pathfinding; } });
22
+ var loadRoomTexture_1 = require("./util/loadRoomTexture");
23
+ Object.defineProperty(exports, "loadRoomTexture", { enumerable: true, get: function () { return loadRoomTexture_1.loadRoomTexture; } });
24
+ var parseTileMapString_1 = require("./util/parseTileMapString");
25
+ Object.defineProperty(exports, "parseTileMapString", { enumerable: true, get: function () { return parseTileMapString_1.parseTileMapString; } });
26
+ var hasWallTiles_1 = require("./util/tilemap/hasWallTiles");
27
+ Object.defineProperty(exports, "hasWallTiles", { enumerable: true, get: function () { return hasWallTiles_1.hasWallTiles; } });
28
+ var FurnitureData_1 = require("./objects/furniture/FurnitureData");
29
+ Object.defineProperty(exports, "FurnitureData", { enumerable: true, get: function () { return FurnitureData_1.FurnitureData; } });
30
+ var FurnitureHelper_1 = require("./objects/furniture/FurnitureHelper");
31
+ Object.defineProperty(exports, "FurnitureHelper", { enumerable: true, get: function () { return FurnitureHelper_1.FurnitureHelper; } });
32
+ var Wsproom_1 = require("./objects/Wsproom");
33
+ Object.defineProperty(exports, "Wsproom", { enumerable: true, get: function () { return Wsproom_1.Wsproom; } });
34
+ var Landscape_1 = require("./objects/room/Landscape");
35
+ Object.defineProperty(exports, "Landscape", { enumerable: true, get: function () { return Landscape_1.Landscape; } });
36
+ Object.defineProperty(exports, "getLandscapeItemPosition", { enumerable: true, get: function () { return Landscape_1.getLandscapeItemPosition; } });
37
+ var AnimationTicker_1 = require("./objects/animation/AnimationTicker");
38
+ Object.defineProperty(exports, "AnimationTicker", { enumerable: true, get: function () { return AnimationTicker_1.AnimationTicker; } });
39
+ var FurnitureLoader_1 = require("./objects/furniture/FurnitureLoader");
40
+ Object.defineProperty(exports, "FurnitureLoader", { enumerable: true, get: function () { return FurnitureLoader_1.FurnitureLoader; } });
41
+ var AvatarLoader_1 = require("./objects/avatar/AvatarLoader");
42
+ Object.defineProperty(exports, "AvatarLoader", { enumerable: true, get: function () { return AvatarLoader_1.AvatarLoader; } });
43
+ var AvatarAction_1 = require("./objects/avatar/enum/AvatarAction");
44
+ Object.defineProperty(exports, "AvatarAction", { enumerable: true, get: function () { return AvatarAction_1.AvatarAction; } });
45
+ var FurnitureRoomVisualization_1 = require("./objects/furniture/FurnitureRoomVisualization");
46
+ Object.defineProperty(exports, "FurnitureRoomVisualization", { enumerable: true, get: function () { return FurnitureRoomVisualization_1.FurnitureRoomVisualization; } });
47
+ var BaseFurniture_1 = require("./objects/furniture/BaseFurniture");
48
+ Object.defineProperty(exports, "BaseFurniture", { enumerable: true, get: function () { return BaseFurniture_1.BaseFurniture; } });
49
+ var BaseAvatar_1 = require("./objects/avatar/BaseAvatar");
50
+ Object.defineProperty(exports, "BaseAvatar", { enumerable: true, get: function () { return BaseAvatar_1.BaseAvatar; } });
51
+ var AnimatedFurnitureVisualization_1 = require("./objects/furniture/visualization/AnimatedFurnitureVisualization");
52
+ Object.defineProperty(exports, "AnimatedFurnitureVisualization", { enumerable: true, get: function () { return AnimatedFurnitureVisualization_1.AnimatedFurnitureVisualization; } });
53
+ var FurnitureGuildCustomizedVisualization_1 = require("./objects/furniture/visualization/FurnitureGuildCustomizedVisualization");
54
+ Object.defineProperty(exports, "FurnitureGuildCustomizedVisualization", { enumerable: true, get: function () { return FurnitureGuildCustomizedVisualization_1.FurnitureGuildCustomizedVisualization; } });
55
+ var BasicFurnitureVisualization_1 = require("./objects/furniture/visualization/BasicFurnitureVisualization");
56
+ Object.defineProperty(exports, "StaticFurnitureVisualization", { enumerable: true, get: function () { return BasicFurnitureVisualization_1.StaticFurnitureVisualization; } });
57
+ Object.defineProperty(exports, "BasicFurnitureVisualization", { enumerable: true, get: function () { return BasicFurnitureVisualization_1.BasicFurnitureVisualization; } });
58
+ var FurnitureBottleVisualization_1 = require("./objects/furniture/visualization/FurnitureBottleVisualization");
59
+ Object.defineProperty(exports, "FurnitureBottleVisualization", { enumerable: true, get: function () { return FurnitureBottleVisualization_1.FurnitureBottleVisualization; } });
60
+ var FurnitureVisualization_1 = require("./objects/furniture/visualization/FurnitureVisualization");
61
+ Object.defineProperty(exports, "FurnitureVisualization", { enumerable: true, get: function () { return FurnitureVisualization_1.FurnitureVisualization; } });
62
+ var WallLeft_1 = require("./objects/room/parts/WallLeft");
63
+ Object.defineProperty(exports, "WallLeft", { enumerable: true, get: function () { return WallLeft_1.WallLeft; } });
64
+ var WallRight_1 = require("./objects/room/parts/WallRight");
65
+ Object.defineProperty(exports, "WallRight", { enumerable: true, get: function () { return WallRight_1.WallRight; } });
66
+ var RoomModelVisualization_1 = require("./objects/room/RoomModelVisualization");
67
+ Object.defineProperty(exports, "RoomModelVisualization", { enumerable: true, get: function () { return RoomModelVisualization_1.RoomModelVisualization; } });
68
+ var TileMapEditorLayer_1 = require("./objects/room/TileMapEditorLayer");
69
+ Object.defineProperty(exports, "TileMapEditorLayer", { enumerable: true, get: function () { return TileMapEditorLayer_1.TileMapEditorLayer; } });
70
+ var IEventGroup_1 = require("./objects/events/interfaces/IEventGroup");
71
+ Object.defineProperty(exports, "AVATAR", { enumerable: true, get: function () { return IEventGroup_1.AVATAR; } });
72
+ Object.defineProperty(exports, "TILE_CURSOR", { enumerable: true, get: function () { return IEventGroup_1.TILE_CURSOR; } });
73
+ Object.defineProperty(exports, "FURNITURE", { enumerable: true, get: function () { return IEventGroup_1.FURNITURE; } });
@@ -0,0 +1,4 @@
1
+ export interface IAnimationTicker {
2
+ subscribe(cb: (frame: number, accurateFrame: number) => void): () => void;
3
+ current(): number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { AvatarDrawDefinition } from "../objects/avatar/structure/AvatarDrawDefinition";
2
+ import { LookOptions } from "../objects/avatar/util/createLookServer";
3
+ import { HitTexture } from "../objects/hitdetection/HitTexture";
4
+ export interface IAvatarLoader {
5
+ getAvatarDrawDefinition(options: LookOptions & {
6
+ initial?: boolean;
7
+ }): Promise<AvatarLoaderResult>;
8
+ }
9
+ export type AvatarLoaderResult = {
10
+ getTexture(id: string): HitTexture;
11
+ getDrawDefinition(options: LookOptions): AvatarDrawDefinition;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as PIXI from "pixi.js";
2
+ export interface IConfiguration {
3
+ placeholder?: PIXI.Texture;
4
+ tileColor?: {
5
+ floorColor?: string;
6
+ leftFade?: number;
7
+ rightFade?: number;
8
+ };
9
+ avatarMovementDuration?: number;
10
+ furnitureMovementDuration?: number;
11
+ highlightFilters?: Record<string, PIXI.Filter>;
12
+ activeWiredFilter?: PIXI.Filter;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { IFurniture } from "../objects/furniture/IFurniture";
2
+ import { furnitureDataTransformers } from "../util/furnitureDataTransformers";
3
+ export interface IFurnitureData {
4
+ getRevisionForType(type: string): Promise<number | undefined>;
5
+ getInfo(type: string): Promise<FurnitureInfo | undefined>;
6
+ getTypeById(id: FurnitureId, type: "wall" | "floor"): Promise<string | undefined>;
7
+ getInfoForFurniture(furniture: IFurniture): Promise<FurnitureInfo | undefined>;
8
+ getInfos(): Promise<[string, FurnitureInfo][]>;
9
+ }
10
+ export type FurnitureId = string | number;
11
+ export type FurnitureInfo = {
12
+ [key in keyof typeof furnitureDataTransformers]: ReturnType<typeof furnitureDataTransformers[key]>;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });