@guilhermebkel/scenec 0.1.2 → 0.2.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 (483) hide show
  1. package/README.md +15 -22
  2. package/dist/Adapters/FileReaderAdapter.d.ts +4 -0
  3. package/dist/Adapters/FileReaderAdapter.js +21 -0
  4. package/dist/Adapters/FontAdapter.d.ts +5 -0
  5. package/dist/Adapters/FontAdapter.js +9 -0
  6. package/dist/Adapters/ResvgAdapter.d.ts +11 -0
  7. package/dist/Adapters/ResvgAdapter.js +18 -0
  8. package/dist/Commands/BaseCommand.d.ts +11 -0
  9. package/dist/Commands/BaseCommand.js +13 -0
  10. package/dist/Commands/CatalogCommand.d.ts +6 -0
  11. package/dist/Commands/CatalogCommand.js +24 -0
  12. package/dist/Commands/CheckCommand.d.ts +5 -0
  13. package/dist/Commands/CheckCommand.js +8 -0
  14. package/dist/Commands/RenderCommand.d.ts +5 -0
  15. package/dist/Commands/RenderCommand.js +8 -0
  16. package/dist/Commands/SceneCommand.d.ts +11 -0
  17. package/dist/Commands/SceneCommand.js +70 -0
  18. package/dist/Commands/SchemaCommand.d.ts +5 -0
  19. package/dist/Commands/SchemaCommand.js +12 -0
  20. package/dist/Data/cities.json +312 -0
  21. package/dist/Data/europe.json +1 -0
  22. package/dist/Errors/SceneError.d.ts +4 -0
  23. package/dist/Errors/SceneError.js +11 -0
  24. package/dist/Errors/UnsafeSvgError.d.ts +3 -0
  25. package/dist/Errors/UnsafeSvgError.js +9 -0
  26. package/dist/Modules/CheckModule.d.ts +8 -0
  27. package/dist/Modules/CheckModule.js +16 -0
  28. package/dist/Modules/CompilationModule.d.ts +18 -0
  29. package/dist/Modules/CompilationModule.js +137 -0
  30. package/dist/Modules/CritiqueModule.d.ts +6 -0
  31. package/dist/Modules/CritiqueModule.js +43 -0
  32. package/dist/Modules/MapModule.d.ts +24 -0
  33. package/dist/Modules/MapModule.js +99 -0
  34. package/dist/Modules/ParsingModule.d.ts +17 -0
  35. package/dist/Modules/ParsingModule.js +88 -0
  36. package/dist/Modules/PlaneModule.d.ts +19 -0
  37. package/dist/Modules/PlaneModule.js +98 -0
  38. package/dist/Protocols/AssetProtocol.d.ts +62 -0
  39. package/dist/Protocols/AssetProtocol.js +93 -0
  40. package/dist/Protocols/CommandProtocol.d.ts +6 -0
  41. package/dist/Protocols/CommandProtocol.js +0 -0
  42. package/dist/Protocols/CompilationProtocol.d.ts +110 -0
  43. package/dist/Protocols/CompilationProtocol.js +0 -0
  44. package/dist/Protocols/CritiqueProtocol.d.ts +42 -0
  45. package/dist/Protocols/CritiqueProtocol.js +4 -0
  46. package/dist/Protocols/CustomAssetProtocol.d.ts +24 -0
  47. package/dist/Protocols/CustomAssetProtocol.js +0 -0
  48. package/dist/Protocols/GroupProtocol.d.ts +17 -0
  49. package/dist/Protocols/GroupProtocol.js +12 -0
  50. package/dist/Protocols/KitProtocol.d.ts +26 -0
  51. package/dist/Protocols/KitProtocol.js +17 -0
  52. package/dist/Protocols/MapProtocol.d.ts +77 -0
  53. package/dist/Protocols/MapProtocol.js +4 -0
  54. package/dist/Protocols/OptionsProtocol.js +0 -0
  55. package/dist/Protocols/PersonProtocol.d.ts +64 -0
  56. package/dist/Protocols/PersonProtocol.js +40 -0
  57. package/dist/Protocols/PlaneProtocol.d.ts +140 -0
  58. package/dist/Protocols/PlaneProtocol.js +4 -0
  59. package/dist/{pipeline/index.d.ts → Protocols/ResultProtocol.d.ts} +0 -2
  60. package/dist/Protocols/ResultProtocol.js +0 -0
  61. package/dist/Protocols/SceneProtocol.d.ts +625 -0
  62. package/dist/Protocols/SceneProtocol.js +304 -0
  63. package/dist/{protocols/theme.d.ts → Protocols/ThemeProtocol.d.ts} +4 -0
  64. package/dist/Protocols/ThemeProtocol.js +28 -0
  65. package/dist/Resources/Assets/BackpackAsset.d.ts +10 -0
  66. package/dist/Resources/Assets/BackpackAsset.js +31 -0
  67. package/dist/Resources/Assets/BallAsset.d.ts +10 -0
  68. package/dist/Resources/Assets/BallAsset.js +15 -0
  69. package/dist/Resources/Assets/BalloonsAsset.d.ts +10 -0
  70. package/dist/Resources/Assets/BalloonsAsset.js +26 -0
  71. package/dist/Resources/Assets/BaseAsset.d.ts +16 -0
  72. package/dist/Resources/Assets/BaseAsset.js +10 -0
  73. package/dist/Resources/Assets/BeachTowelAsset.d.ts +10 -0
  74. package/dist/Resources/Assets/BeachTowelAsset.js +14 -0
  75. package/dist/Resources/Assets/BedAsset.d.ts +12 -0
  76. package/dist/Resources/Assets/BedAsset.js +25 -0
  77. package/dist/Resources/Assets/BenchAsset.d.ts +11 -0
  78. package/dist/Resources/Assets/BenchAsset.js +24 -0
  79. package/dist/Resources/Assets/BicycleAsset.d.ts +10 -0
  80. package/dist/Resources/Assets/BicycleAsset.js +18 -0
  81. package/dist/Resources/Assets/BigPlantAsset.d.ts +10 -0
  82. package/dist/Resources/Assets/BigPlantAsset.js +19 -0
  83. package/dist/Resources/Assets/BirdAsset.d.ts +10 -0
  84. package/dist/Resources/Assets/BirdAsset.js +14 -0
  85. package/dist/Resources/Assets/BoardAsset.d.ts +12 -0
  86. package/dist/Resources/Assets/BoardAsset.js +44 -0
  87. package/dist/Resources/Assets/BoatAsset.d.ts +10 -0
  88. package/dist/Resources/Assets/BoatAsset.js +15 -0
  89. package/dist/Resources/Assets/BooksAsset.d.ts +10 -0
  90. package/dist/Resources/Assets/BooksAsset.js +35 -0
  91. package/dist/Resources/Assets/BookshelfAsset.d.ts +10 -0
  92. package/dist/Resources/Assets/BookshelfAsset.js +33 -0
  93. package/dist/Resources/Assets/BuildingAsset.d.ts +14 -0
  94. package/dist/Resources/Assets/BuildingAsset.js +34 -0
  95. package/dist/Resources/Assets/BurgerAsset.d.ts +9 -0
  96. package/dist/Resources/Assets/BurgerAsset.js +23 -0
  97. package/dist/Resources/Assets/BushAsset.d.ts +10 -0
  98. package/dist/Resources/Assets/BushAsset.js +17 -0
  99. package/dist/Resources/Assets/CabinetAsset.d.ts +14 -0
  100. package/dist/Resources/Assets/CabinetAsset.js +49 -0
  101. package/dist/Resources/Assets/CablesAsset.d.ts +10 -0
  102. package/dist/Resources/Assets/CablesAsset.js +16 -0
  103. package/dist/Resources/Assets/CakeAsset.d.ts +10 -0
  104. package/dist/Resources/Assets/CakeAsset.js +29 -0
  105. package/dist/Resources/Assets/CapAsset.d.ts +10 -0
  106. package/dist/Resources/Assets/CapAsset.js +18 -0
  107. package/dist/Resources/Assets/CarAsset.d.ts +10 -0
  108. package/dist/Resources/Assets/CarAsset.js +29 -0
  109. package/dist/Resources/Assets/CatAsset.d.ts +10 -0
  110. package/dist/Resources/Assets/CatAsset.js +17 -0
  111. package/dist/Resources/Assets/ChairAsset.d.ts +11 -0
  112. package/dist/Resources/Assets/ChairAsset.js +32 -0
  113. package/dist/Resources/Assets/ClockAsset.d.ts +11 -0
  114. package/dist/Resources/Assets/ClockAsset.js +22 -0
  115. package/dist/Resources/Assets/CloudAsset.d.ts +10 -0
  116. package/dist/Resources/Assets/CloudAsset.js +15 -0
  117. package/dist/Resources/Assets/CoffeeMachineAsset.d.ts +10 -0
  118. package/dist/Resources/Assets/CoffeeMachineAsset.js +23 -0
  119. package/dist/Resources/Assets/CounterAsset.d.ts +11 -0
  120. package/dist/Resources/Assets/CounterAsset.js +29 -0
  121. package/dist/Resources/Assets/CupAsset.d.ts +10 -0
  122. package/dist/Resources/Assets/CupAsset.js +17 -0
  123. package/dist/Resources/Assets/CustomAsset.d.ts +25 -0
  124. package/dist/Resources/Assets/CustomAsset.js +58 -0
  125. package/dist/Resources/Assets/DeskAsset.d.ts +11 -0
  126. package/dist/Resources/Assets/DeskAsset.js +35 -0
  127. package/dist/Resources/Assets/DeskSlabAsset.d.ts +18 -0
  128. package/dist/Resources/Assets/DeskSlabAsset.js +43 -0
  129. package/dist/Resources/Assets/DiplomaAsset.d.ts +10 -0
  130. package/dist/Resources/Assets/DiplomaAsset.js +23 -0
  131. package/dist/Resources/Assets/DogAsset.d.ts +10 -0
  132. package/dist/Resources/Assets/DogAsset.js +24 -0
  133. package/dist/Resources/Assets/DrawerUnitAsset.d.ts +14 -0
  134. package/dist/Resources/Assets/DrawerUnitAsset.js +35 -0
  135. package/dist/Resources/Assets/FenceAsset.d.ts +10 -0
  136. package/dist/Resources/Assets/FenceAsset.js +26 -0
  137. package/dist/Resources/Assets/FigurineAsset.d.ts +10 -0
  138. package/dist/Resources/Assets/FigurineAsset.js +24 -0
  139. package/dist/Resources/Assets/FinishFlagAsset.d.ts +10 -0
  140. package/dist/Resources/Assets/FinishFlagAsset.js +21 -0
  141. package/dist/Resources/Assets/FloorLampAsset.d.ts +10 -0
  142. package/dist/Resources/Assets/FloorLampAsset.js +22 -0
  143. package/dist/Resources/Assets/FlowersAsset.d.ts +10 -0
  144. package/dist/Resources/Assets/FlowersAsset.js +37 -0
  145. package/dist/Resources/Assets/FrameAsset.d.ts +11 -0
  146. package/dist/Resources/Assets/FrameAsset.js +24 -0
  147. package/dist/Resources/Assets/FruitBowlAsset.d.ts +10 -0
  148. package/dist/Resources/Assets/FruitBowlAsset.js +16 -0
  149. package/dist/Resources/Assets/GlassShelfAsset.d.ts +17 -0
  150. package/dist/Resources/Assets/GlassShelfAsset.js +25 -0
  151. package/dist/Resources/Assets/HeadphonesAsset.d.ts +10 -0
  152. package/dist/Resources/Assets/HeadphonesAsset.js +23 -0
  153. package/dist/Resources/Assets/HouseAsset.d.ts +10 -0
  154. package/dist/Resources/Assets/HouseAsset.js +42 -0
  155. package/dist/Resources/Assets/LabAsset.d.ts +10 -0
  156. package/dist/Resources/Assets/LabAsset.js +52 -0
  157. package/dist/Resources/Assets/LampAsset.d.ts +10 -0
  158. package/dist/Resources/Assets/LampAsset.js +16 -0
  159. package/dist/Resources/Assets/LaptopAsset.d.ts +10 -0
  160. package/dist/Resources/Assets/LaptopAsset.js +23 -0
  161. package/dist/Resources/Assets/LaptopOpenAsset.d.ts +10 -0
  162. package/dist/Resources/Assets/LaptopOpenAsset.js +29 -0
  163. package/dist/Resources/Assets/LightSwitchAsset.d.ts +11 -0
  164. package/dist/Resources/Assets/LightSwitchAsset.js +24 -0
  165. package/dist/Resources/Assets/MonitorAsset.d.ts +10 -0
  166. package/dist/Resources/Assets/MonitorAsset.js +40 -0
  167. package/dist/Resources/Assets/MoonAsset.d.ts +10 -0
  168. package/dist/Resources/Assets/MoonAsset.js +16 -0
  169. package/dist/Resources/Assets/MountainAsset.d.ts +10 -0
  170. package/dist/Resources/Assets/MountainAsset.js +15 -0
  171. package/dist/Resources/Assets/OfficeChairAsset.d.ts +10 -0
  172. package/dist/Resources/Assets/OfficeChairAsset.js +45 -0
  173. package/dist/Resources/Assets/PalmAsset.d.ts +10 -0
  174. package/dist/Resources/Assets/PalmAsset.js +32 -0
  175. package/dist/Resources/Assets/PaperCupAsset.d.ts +10 -0
  176. package/dist/Resources/Assets/PaperCupAsset.js +17 -0
  177. package/dist/Resources/Assets/PendantLampAsset.d.ts +10 -0
  178. package/dist/Resources/Assets/PendantLampAsset.js +16 -0
  179. package/dist/Resources/Assets/PennantAsset.d.ts +10 -0
  180. package/dist/Resources/Assets/PennantAsset.js +15 -0
  181. package/dist/Resources/Assets/PersonAsset.d.ts +10 -0
  182. package/dist/Resources/Assets/PersonAsset.js +15 -0
  183. package/dist/Resources/Assets/PhotoFrameAsset.d.ts +15 -0
  184. package/dist/Resources/Assets/PhotoFrameAsset.js +68 -0
  185. package/dist/Resources/Assets/PineAsset.d.ts +10 -0
  186. package/dist/Resources/Assets/PineAsset.js +21 -0
  187. package/dist/Resources/Assets/PizzaAsset.d.ts +10 -0
  188. package/dist/Resources/Assets/PizzaAsset.js +17 -0
  189. package/dist/Resources/Assets/PlantAsset.d.ts +10 -0
  190. package/dist/Resources/Assets/PlantAsset.js +17 -0
  191. package/dist/Resources/Assets/PlasticBagAsset.d.ts +10 -0
  192. package/dist/Resources/Assets/PlasticBagAsset.js +15 -0
  193. package/dist/Resources/Assets/PlateAsset.d.ts +10 -0
  194. package/dist/Resources/Assets/PlateAsset.js +17 -0
  195. package/dist/Resources/Assets/RollingCartAsset.d.ts +11 -0
  196. package/dist/Resources/Assets/RollingCartAsset.js +34 -0
  197. package/dist/Resources/Assets/RugAsset.d.ts +10 -0
  198. package/dist/Resources/Assets/RugAsset.js +19 -0
  199. package/dist/Resources/Assets/SandcastleAsset.d.ts +10 -0
  200. package/dist/Resources/Assets/SandcastleAsset.js +30 -0
  201. package/dist/Resources/Assets/SchoolAsset.d.ts +10 -0
  202. package/dist/Resources/Assets/SchoolAsset.js +32 -0
  203. package/dist/Resources/Assets/ShelfWallAsset.d.ts +11 -0
  204. package/dist/Resources/Assets/ShelfWallAsset.js +23 -0
  205. package/dist/Resources/Assets/SofaAsset.d.ts +11 -0
  206. package/dist/Resources/Assets/SofaAsset.js +38 -0
  207. package/dist/Resources/Assets/StageAsset.d.ts +10 -0
  208. package/dist/Resources/Assets/StageAsset.js +44 -0
  209. package/dist/Resources/Assets/StarAsset.d.ts +10 -0
  210. package/dist/Resources/Assets/StarAsset.js +14 -0
  211. package/dist/Resources/Assets/StarsAsset.d.ts +11 -0
  212. package/dist/Resources/Assets/StarsAsset.js +42 -0
  213. package/dist/Resources/Assets/StreetlightAsset.d.ts +10 -0
  214. package/dist/Resources/Assets/StreetlightAsset.js +20 -0
  215. package/dist/Resources/Assets/SuitcaseAsset.d.ts +10 -0
  216. package/dist/Resources/Assets/SuitcaseAsset.js +42 -0
  217. package/dist/Resources/Assets/SunAsset.d.ts +10 -0
  218. package/dist/Resources/Assets/SunAsset.js +22 -0
  219. package/dist/Resources/Assets/TableAsset.d.ts +15 -0
  220. package/dist/Resources/Assets/TableAsset.js +21 -0
  221. package/dist/Resources/Assets/TrashCanAsset.d.ts +10 -0
  222. package/dist/Resources/Assets/TrashCanAsset.js +31 -0
  223. package/dist/Resources/Assets/TreeAsset.d.ts +10 -0
  224. package/dist/Resources/Assets/TreeAsset.js +23 -0
  225. package/dist/Resources/Assets/TrophyAsset.d.ts +10 -0
  226. package/dist/Resources/Assets/TrophyAsset.js +16 -0
  227. package/dist/Resources/Assets/TumblerAsset.d.ts +10 -0
  228. package/dist/Resources/Assets/TumblerAsset.js +17 -0
  229. package/dist/Resources/Assets/TvAsset.d.ts +10 -0
  230. package/dist/Resources/Assets/TvAsset.js +29 -0
  231. package/dist/Resources/Assets/TvStandAsset.d.ts +11 -0
  232. package/dist/Resources/Assets/TvStandAsset.js +34 -0
  233. package/dist/Resources/Assets/UmbrellaAsset.d.ts +10 -0
  234. package/dist/Resources/Assets/UmbrellaAsset.js +17 -0
  235. package/dist/Resources/Assets/UniversityAsset.d.ts +10 -0
  236. package/dist/Resources/Assets/UniversityAsset.js +22 -0
  237. package/dist/Resources/Assets/VaseFlowersAsset.d.ts +10 -0
  238. package/dist/Resources/Assets/VaseFlowersAsset.js +16 -0
  239. package/dist/Resources/Assets/WindowAsset.d.ts +11 -0
  240. package/dist/Resources/Assets/WindowAsset.js +32 -0
  241. package/dist/Resources/Groups/BaseGroup.d.ts +7 -0
  242. package/dist/Resources/Groups/BaseGroup.js +5 -0
  243. package/dist/Resources/Groups/CelebrationGroup.d.ts +8 -0
  244. package/dist/Resources/Groups/CelebrationGroup.js +19 -0
  245. package/dist/Resources/Groups/ConversationGroup.d.ts +9 -0
  246. package/dist/Resources/Groups/ConversationGroup.js +17 -0
  247. package/dist/Resources/Groups/DiningGroup.d.ts +8 -0
  248. package/dist/Resources/Groups/DiningGroup.js +21 -0
  249. package/dist/Resources/Groups/MeetingGroup.d.ts +8 -0
  250. package/dist/Resources/Groups/MeetingGroup.js +22 -0
  251. package/dist/Resources/Groups/ParkBenchGroup.d.ts +8 -0
  252. package/dist/Resources/Groups/ParkBenchGroup.js +17 -0
  253. package/dist/Resources/Groups/ReadingCornerGroup.d.ts +8 -0
  254. package/dist/Resources/Groups/ReadingCornerGroup.js +17 -0
  255. package/dist/Resources/Groups/WorkspaceGroup.d.ts +10 -0
  256. package/dist/Resources/Groups/WorkspaceGroup.js +25 -0
  257. package/dist/Resources/Kits/BaseKit.d.ts +12 -0
  258. package/dist/Resources/Kits/BaseKit.js +11 -0
  259. package/dist/Resources/Kits/FlatKit.d.ts +5 -0
  260. package/dist/Resources/Kits/FlatKit.js +8 -0
  261. package/dist/Resources/Kits/HatchKit.d.ts +15 -0
  262. package/dist/Resources/Kits/HatchKit.js +12 -0
  263. package/dist/Resources/Kits/OutlineKit.d.ts +12 -0
  264. package/dist/Resources/Kits/OutlineKit.js +10 -0
  265. package/dist/Resources/Kits/PaperKit.d.ts +11 -0
  266. package/dist/Resources/Kits/PaperKit.js +11 -0
  267. package/dist/Resources/Kits/RisoKit.d.ts +16 -0
  268. package/dist/Resources/Kits/RisoKit.js +11 -0
  269. package/dist/Resources/Kits/SketchKit.d.ts +9 -0
  270. package/dist/Resources/Kits/SketchKit.js +11 -0
  271. package/dist/Resources/Themes/BaseTheme.d.ts +5 -0
  272. package/dist/Resources/Themes/BaseTheme.js +5 -0
  273. package/dist/Resources/Themes/BeachTheme.d.ts +6 -0
  274. package/dist/Resources/Themes/BeachTheme.js +31 -0
  275. package/dist/Resources/Themes/FlatAutumnTheme.d.ts +6 -0
  276. package/dist/Resources/Themes/FlatAutumnTheme.js +29 -0
  277. package/dist/Resources/Themes/FlatCoolTheme.d.ts +6 -0
  278. package/dist/Resources/Themes/FlatCoolTheme.js +29 -0
  279. package/dist/Resources/Themes/NightTheme.d.ts +6 -0
  280. package/dist/Resources/Themes/NightTheme.js +29 -0
  281. package/dist/Resources/Themes/WarmCafeTheme.d.ts +6 -0
  282. package/dist/Resources/Themes/WarmCafeTheme.js +29 -0
  283. package/dist/Services/AssetService.d.ts +12 -0
  284. package/dist/Services/AssetService.js +204 -0
  285. package/dist/Services/BackgroundService.d.ts +33 -0
  286. package/dist/Services/BackgroundService.js +136 -0
  287. package/dist/Services/BalanceCritiqueService.d.ts +13 -0
  288. package/dist/Services/BalanceCritiqueService.js +64 -0
  289. package/dist/Services/CameraService.d.ts +21 -0
  290. package/dist/Services/CameraService.js +121 -0
  291. package/dist/Services/CatalogService.d.ts +29 -0
  292. package/dist/Services/CatalogService.js +51 -0
  293. package/dist/Services/ContactCritiqueService.d.ts +19 -0
  294. package/dist/Services/ContactCritiqueService.js +101 -0
  295. package/dist/Services/ContextService.d.ts +21 -0
  296. package/dist/Services/ContextService.js +94 -0
  297. package/dist/Services/CoverageCritiqueService.d.ts +16 -0
  298. package/dist/Services/CoverageCritiqueService.js +84 -0
  299. package/dist/Services/CustomAssetService.d.ts +31 -0
  300. package/dist/Services/CustomAssetService.js +184 -0
  301. package/dist/Services/DependencyOrderService.d.ts +12 -0
  302. package/dist/Services/DependencyOrderService.js +73 -0
  303. package/dist/Services/DescriptionService.d.ts +9 -0
  304. package/dist/Services/DescriptionService.js +27 -0
  305. package/dist/Services/FramingCheckService.d.ts +15 -0
  306. package/dist/Services/FramingCheckService.js +93 -0
  307. package/dist/Services/GazeService.d.ts +6 -0
  308. package/dist/Services/GazeService.js +43 -0
  309. package/dist/Services/GroupService.d.ts +17 -0
  310. package/dist/Services/GroupService.js +152 -0
  311. package/dist/Services/KitService.d.ts +23 -0
  312. package/dist/Services/KitService.js +96 -0
  313. package/dist/Services/LightingService.d.ts +24 -0
  314. package/dist/Services/LightingService.js +119 -0
  315. package/dist/Services/MapBaseService.d.ts +24 -0
  316. package/dist/Services/MapBaseService.js +104 -0
  317. package/dist/Services/MapLabelService.d.ts +26 -0
  318. package/dist/Services/MapLabelService.js +185 -0
  319. package/dist/Services/MapLegService.d.ts +23 -0
  320. package/dist/Services/MapLegService.js +87 -0
  321. package/dist/Services/MapPanelService.d.ts +16 -0
  322. package/dist/Services/MapPanelService.js +89 -0
  323. package/dist/Services/MapPinService.d.ts +11 -0
  324. package/dist/Services/MapPinService.js +56 -0
  325. package/dist/Services/MapProjectionService.d.ts +14 -0
  326. package/dist/Services/MapProjectionService.js +70 -0
  327. package/dist/Services/MapRouteService.d.ts +17 -0
  328. package/dist/Services/MapRouteService.js +79 -0
  329. package/dist/Services/PieceService.d.ts +43 -0
  330. package/dist/Services/PieceService.js +154 -0
  331. package/dist/Services/PlacementService.d.ts +60 -0
  332. package/dist/Services/PlacementService.js +415 -0
  333. package/dist/Services/PlaneBackgroundService.d.ts +24 -0
  334. package/dist/Services/PlaneBackgroundService.js +170 -0
  335. package/dist/Services/PlaneBoxService.d.ts +27 -0
  336. package/dist/Services/PlaneBoxService.js +209 -0
  337. package/dist/Services/PlaneDepthService.d.ts +18 -0
  338. package/dist/Services/PlaneDepthService.js +146 -0
  339. package/dist/Services/PlaneLabelService.d.ts +13 -0
  340. package/dist/Services/PlaneLabelService.js +115 -0
  341. package/dist/Services/PlaneObjectService.d.ts +17 -0
  342. package/dist/Services/PlaneObjectService.js +147 -0
  343. package/dist/Services/PlanePathService.d.ts +15 -0
  344. package/dist/Services/PlanePathService.js +98 -0
  345. package/dist/Services/PlaneProjectionService.d.ts +16 -0
  346. package/dist/Services/PlaneProjectionService.js +90 -0
  347. package/dist/Services/PlaneRoadService.d.ts +13 -0
  348. package/dist/Services/PlaneRoadService.js +105 -0
  349. package/dist/Services/PlaneScatterService.d.ts +11 -0
  350. package/dist/Services/PlaneScatterService.js +48 -0
  351. package/dist/Services/PlaneSpaceService.d.ts +27 -0
  352. package/dist/Services/PlaneSpaceService.js +96 -0
  353. package/dist/Services/PlaneSpriteService.d.ts +29 -0
  354. package/dist/Services/PlaneSpriteService.js +95 -0
  355. package/dist/Services/PlaneTitleService.d.ts +17 -0
  356. package/dist/Services/PlaneTitleService.js +126 -0
  357. package/dist/Services/PlaneZoneService.d.ts +20 -0
  358. package/dist/Services/PlaneZoneService.js +121 -0
  359. package/dist/Services/RasterService.d.ts +10 -0
  360. package/dist/Services/RasterService.js +68 -0
  361. package/dist/Services/SchemaService.d.ts +3 -0
  362. package/dist/Services/SchemaService.js +10 -0
  363. package/dist/Services/SilhouetteCritiqueService.d.ts +32 -0
  364. package/dist/Services/SilhouetteCritiqueService.js +155 -0
  365. package/dist/Services/TextService.d.ts +47 -0
  366. package/dist/Services/TextService.js +178 -0
  367. package/dist/Services/ThemeService.d.ts +5 -0
  368. package/dist/Services/ThemeService.js +18 -0
  369. package/dist/Utils/BoxUtil.d.ts +4 -0
  370. package/dist/Utils/BoxUtil.js +8 -0
  371. package/dist/Utils/ColorUtil.d.ts +20 -0
  372. package/dist/Utils/ColorUtil.js +51 -0
  373. package/dist/Utils/CurveUtil.d.ts +6 -0
  374. package/dist/Utils/CurveUtil.js +35 -0
  375. package/dist/Utils/FallbackUtil.d.ts +3 -0
  376. package/dist/Utils/FallbackUtil.js +8 -0
  377. package/dist/Utils/FormatUtil.d.ts +4 -0
  378. package/dist/Utils/FormatUtil.js +9 -0
  379. package/dist/Utils/IdUtil.d.ts +4 -0
  380. package/dist/Utils/IdUtil.js +11 -0
  381. package/dist/Utils/NormalizeUtil.d.ts +4 -0
  382. package/dist/Utils/NormalizeUtil.js +9 -0
  383. package/dist/Utils/OklabUtil.d.ts +23 -0
  384. package/dist/Utils/OklabUtil.js +62 -0
  385. package/dist/Utils/PersonArmUtil.d.ts +19 -0
  386. package/dist/Utils/PersonArmUtil.js +84 -0
  387. package/dist/Utils/PersonHeadUtil.d.ts +31 -0
  388. package/dist/Utils/PersonHeadUtil.js +154 -0
  389. package/dist/Utils/PersonOutfitUtil.d.ts +48 -0
  390. package/dist/Utils/PersonOutfitUtil.js +178 -0
  391. package/dist/Utils/PersonUtil.d.ts +39 -0
  392. package/dist/Utils/PersonUtil.js +206 -0
  393. package/dist/Utils/PixelUtil.d.ts +3 -0
  394. package/dist/Utils/PixelUtil.js +8 -0
  395. package/dist/Utils/RecolorUtil.d.ts +40 -0
  396. package/dist/Utils/RecolorUtil.js +155 -0
  397. package/dist/Utils/RegistryUtil.d.ts +8 -0
  398. package/dist/Utils/RegistryUtil.js +19 -0
  399. package/dist/Utils/RequireUtil.d.ts +3 -0
  400. package/dist/Utils/RequireUtil.js +11 -0
  401. package/dist/Utils/SanitizeUtil.d.ts +25 -0
  402. package/dist/Utils/SanitizeUtil.js +210 -0
  403. package/dist/Utils/SeedUtil.d.ts +6 -0
  404. package/dist/Utils/SeedUtil.js +15 -0
  405. package/dist/Utils/ShapeUtil.d.ts +31 -0
  406. package/dist/Utils/ShapeUtil.js +47 -0
  407. package/dist/Utils/SuggestUtil.d.ts +7 -0
  408. package/dist/Utils/SuggestUtil.js +25 -0
  409. package/dist/Utils/SvgUtil.d.ts +9 -0
  410. package/dist/Utils/SvgUtil.js +21 -0
  411. package/dist/Utils/ThemeUtil.d.ts +4 -0
  412. package/dist/Utils/ThemeUtil.js +13 -0
  413. package/dist/Utils/TransportUtil.d.ts +24 -0
  414. package/dist/Utils/TransportUtil.js +108 -0
  415. package/dist/cli.js +24 -97
  416. package/dist/index.d.ts +10 -6
  417. package/dist/index.js +14 -2
  418. package/dist/render.d.ts +8 -5
  419. package/dist/render.js +21 -3
  420. package/dist/schema.d.ts +9 -2
  421. package/dist/schema.js +29 -5
  422. package/package.json +3 -2
  423. package/skills/{scenec → draw-scene}/SKILL.md +15 -19
  424. package/skills/{scenec → draw-scene}/references/catalog.md +14 -14
  425. package/skills/{scenec → draw-scene}/references/dsl.md +9 -3
  426. package/dist/catalog.d.ts +0 -21
  427. package/dist/catalog.js +0 -35
  428. package/dist/data/europe.json +0 -1
  429. package/dist/drawing/assets.d.ts +0 -8
  430. package/dist/drawing/assets.js +0 -612
  431. package/dist/drawing/kits.d.ts +0 -7
  432. package/dist/drawing/kits.js +0 -92
  433. package/dist/drawing/person.d.ts +0 -18
  434. package/dist/drawing/person.js +0 -287
  435. package/dist/drawing/themes.d.ts +0 -4
  436. package/dist/drawing/themes.js +0 -45
  437. package/dist/modes/map.d.ts +0 -5
  438. package/dist/modes/map.js +0 -365
  439. package/dist/modes/plane.d.ts +0 -5
  440. package/dist/modes/plane.js +0 -716
  441. package/dist/pipeline/compile.d.ts +0 -2
  442. package/dist/pipeline/compile.js +0 -581
  443. package/dist/pipeline/custom.d.ts +0 -2
  444. package/dist/pipeline/custom.js +0 -120
  445. package/dist/pipeline/groups.d.ts +0 -2
  446. package/dist/pipeline/groups.js +0 -189
  447. package/dist/pipeline/index.js +0 -7
  448. package/dist/pipeline/parse.d.ts +0 -10
  449. package/dist/pipeline/parse.js +0 -80
  450. package/dist/protocols/options.js +0 -1
  451. package/dist/protocols/scene.d.ts +0 -299
  452. package/dist/protocols/scene.js +0 -118
  453. package/dist/protocols/theme.js +0 -1
  454. package/dist/render/check.d.ts +0 -6
  455. package/dist/render/check.js +0 -10
  456. package/dist/render/critic.d.ts +0 -1
  457. package/dist/render/critic.js +0 -235
  458. package/dist/render/files.d.ts +0 -2
  459. package/dist/render/files.js +0 -16
  460. package/dist/render/fonts.d.ts +0 -2
  461. package/dist/render/fonts.js +0 -4
  462. package/dist/render/png.d.ts +0 -9
  463. package/dist/render/png.js +0 -13
  464. package/dist/utils/color.d.ts +0 -5
  465. package/dist/utils/color.js +0 -35
  466. package/dist/utils/recolor.d.ts +0 -1
  467. package/dist/utils/recolor.js +0 -56
  468. package/dist/utils/sanitize.d.ts +0 -5
  469. package/dist/utils/sanitize.js +0 -169
  470. package/dist/utils/suggest.d.ts +0 -1
  471. package/dist/utils/suggest.js +0 -22
  472. package/dist/utils/svg.d.ts +0 -2
  473. package/dist/utils/svg.js +0 -11
  474. package/skills/scenec/references/fontes.md +0 -8
  475. /package/dist/{protocols/options.d.ts → Protocols/OptionsProtocol.d.ts} +0 -0
  476. /package/skills/{scenec/recipes/anuncios-variacoes.yaml → draw-scene/recipes/ad-variations.yaml} +0 -0
  477. /package/skills/{scenec/recipes/carrossel.yaml → draw-scene/recipes/carousel.yaml} +0 -0
  478. /package/skills/{scenec/recipes/elearning.yaml → draw-scene/recipes/e-learning.yaml} +0 -0
  479. /package/skills/{scenec/recipes/reels-explicativo.yaml → draw-scene/recipes/explainer-reel.yaml} +0 -0
  480. /package/skills/{scenec/recipes/historia-ilustrada.yaml → draw-scene/recipes/illustrated-story.yaml} +0 -0
  481. /package/skills/{scenec/recipes/mapas-jornadas.yaml → draw-scene/recipes/journey-map.yaml} +0 -0
  482. /package/skills/{scenec/recipes/wrapped-personalizado.yaml → draw-scene/recipes/personalized-wrapped.yaml} +0 -0
  483. /package/skills/{scenec/recipes/ilustracoes-produto.yaml → draw-scene/recipes/product-illustration.yaml} +0 -0
@@ -0,0 +1,304 @@
1
+ import { z } from "zod";
2
+ const SLOT_NAMES = ["far-left", "left", "center-left", "center", "center-right", "right", "far-right"];
3
+ const SIZE_NAMES = ["tiny", "small", "medium", "large", "huge"];
4
+ const DEPTH_NAMES = ["far", "mid", "near"];
5
+ const MODE_NAMES = ["classic", "2.5d", "board", "map"];
6
+ const SETTING_NAMES = ["outdoor", "indoor", "beach", "city"];
7
+ const SHOT_NAMES = ["wide", "full", "medium", "close"];
8
+ const MAX_OBJECTS = 200;
9
+ const MAX_CANVAS_PX = 4096;
10
+ const slot = z.union([
11
+ z.number(),
12
+ z.enum([...SLOT_NAMES, ...SLOT_NAMES.map((name) => `top-${name}`), ...SLOT_NAMES.map((name) => `sky-${name}`)]),
13
+ z.tuple([z.number(), z.number()])
14
+ ], { error: `use a position name (${SLOT_NAMES.join(", ")}), a number from 0 to 1 or [x, z] in 2.5d mode` });
15
+ const MIN_CANVAS_PX = 16;
16
+ const MAX_SCALE = 4;
17
+ const pixels = z.number().int().min(MIN_CANVAS_PX).max(MAX_CANVAS_PX);
18
+ const fraction = z.number().min(0).max(1);
19
+ const CAMERA_PRESETS = ["board", "room"];
20
+ const cameraSchema = z.union([
21
+ z.enum(CAMERA_PRESETS),
22
+ z.looseObject({
23
+ preset: z.enum(CAMERA_PRESETS).optional(),
24
+ horizon: z.number().optional(),
25
+ near_y: z.number().optional(),
26
+ depth: z.number().optional(),
27
+ vanish_x: z.number().optional(),
28
+ cx: z.number().optional(),
29
+ x_span: z.number().optional(),
30
+ unit: z.number().optional()
31
+ })
32
+ ]).describe("2.5d camera: board (high and far, default) or room (real perspective, for interiors), with optional overrides.");
33
+ const canvasSchema = z.looseObject({
34
+ width: pixels.optional().describe("Frame width in px. Default 1200."),
35
+ height: pixels.optional().describe("Frame height in px. Default 630 (classic) or 900 (2.5d, map)."),
36
+ mode: z.enum(MODE_NAMES).optional().describe("classic (default), 2.5d, board or map."),
37
+ theme: z.string().optional().describe("Palette name. See `scenec catalog themes`."),
38
+ kit: z.string().optional().describe("Style kit name. See `scenec catalog kits`."),
39
+ colors: z.record(z.string(), z.string()).optional().describe("Overrides theme colors, for example wall or floor."),
40
+ setting: z.enum(SETTING_NAMES).optional().describe("Where the scene happens. Default outdoor."),
41
+ scale: z.number().positive().max(MAX_SCALE).optional().describe("Camera zoom. Default 1."),
42
+ horizon: fraction.optional().describe("Horizon line as a fraction of the height."),
43
+ base: fraction.optional().describe("Baseline of the nearest ground objects as a fraction of the height."),
44
+ floor: z.string().optional().describe("Indoor floor style, for example planks."),
45
+ vanish: fraction.optional().describe("Vanishing point x for planks."),
46
+ haze: z.boolean().optional().describe("false turns atmospheric perspective off."),
47
+ grain: z.boolean().optional(),
48
+ light: z.union([
49
+ z.literal(false),
50
+ z.looseObject({ from: z.union([z.number(), z.string()]).optional(), strength: fraction.optional() })
51
+ ]).optional().describe("false, or { from: left|right|front|0..1, strength: 0..1 }."),
52
+ critique: z.boolean().optional().describe("false turns the art director off."),
53
+ shot: z.enum(SHOT_NAMES).optional().describe("Framing: wide (default), full, medium or close."),
54
+ focus: z.union([z.string(), z.array(z.string())]).optional().describe("Object or group ids the shot frames."),
55
+ frame: z.union([z.number(), z.enum(["left", "center", "right"])]).optional().describe("Where the focus sits horizontally."),
56
+ headroom: fraction.optional().describe("Space above the focus as a fraction of the height."),
57
+ camera: cameraSchema.optional(),
58
+ depth: z.number().optional(),
59
+ far_y: z.number().optional(),
60
+ near_y: z.number().optional(),
61
+ horizon_z: z.number().optional()
62
+ });
63
+ const objectSchema = z.looseObject({
64
+ asset: z.string().optional().describe("Asset name; defaults to the object id. See `scenec catalog assets`."),
65
+ group: z.string().optional().describe("Ready-made group. See `scenec catalog groups`."),
66
+ parts: z.record(z.string(), z.union([z.literal(false), z.record(z.string(), z.unknown())])).optional().describe("Adjusts a group's parts; false removes one."),
67
+ at: slot.optional().describe("Horizontal position: a slot name or 0..1."),
68
+ size: z.union([z.number().positive(), z.enum(SIZE_NAMES)]).optional(),
69
+ depth: z.enum(DEPTH_NAMES).optional(),
70
+ left_of: z.string().optional(),
71
+ right_of: z.string().optional(),
72
+ behind: z.string().optional(),
73
+ in_front_of: z.string().optional(),
74
+ on: z.string().optional().describe("Sits on another object's surface or seat."),
75
+ under: z.string().optional(),
76
+ above: z.string().optional(),
77
+ holds: z.string().optional(),
78
+ gap: z.number().optional(),
79
+ offset: z.union([z.number(), z.tuple([z.number(), z.number()])], { error: "use a number or [x, z]" }).optional(),
80
+ align: z.union([z.number(), z.string()]).optional(),
81
+ layer: z.enum(["back", "front"]).optional(),
82
+ altitude: z.number().optional(),
83
+ along: z.number().optional().describe("2.5d: position along the path, 0..1."),
84
+ side: z.enum(["left", "right"]).optional().describe("2.5d: which side of the path an `along` object stands on."),
85
+ dist: z.number().optional().describe("2.5d: distance from the path for an `along` object."),
86
+ near: z.string().optional().describe("2.5d: id of an object or path point to place this one next to."),
87
+ on_spot: z.boolean().optional().describe("2.5d: stand exactly on the `near` point."),
88
+ on_path: z.boolean().optional().describe("2.5d: true when standing on the path is intended."),
89
+ elevation: z.number().optional(),
90
+ lift: z.number().optional(),
91
+ hang: z.number().optional(),
92
+ facing: z.enum(["left", "right"]).optional(),
93
+ pose: z.string().optional().describe("Person pose. See `scenec catalog poses`."),
94
+ expr: z.string().optional().describe("Person expression."),
95
+ look: z.string().optional().describe("Where a person looks: another object id, or left, right, up, down, camera."),
96
+ haze: z.boolean().optional(),
97
+ light: z.boolean().optional(),
98
+ kit: z.boolean().optional(),
99
+ critique: z.boolean().optional(),
100
+ allow_crop: z.boolean().optional()
101
+ });
102
+ const textSchema = z.looseObject({
103
+ content: z.union([z.string(), z.number()]).describe("The text. A newline breaks the line."),
104
+ at: z.string().optional().describe("top-left, top-center, top-right, bottom-left, bottom-center or bottom-right."),
105
+ role: z.enum(["title", "subtitle", "label", "body"]).optional(),
106
+ size: z.number().positive().optional().describe("Font size as a fraction of the height."),
107
+ y: z.number().optional(),
108
+ x: z.number().optional(),
109
+ color: z.string().optional(),
110
+ box: z.string().optional().describe("Background color behind the text."),
111
+ pad: z.number().optional(),
112
+ radius: z.number().optional(),
113
+ weight: z.number().optional()
114
+ });
115
+ const mapSchema = z.looseObject({
116
+ panel: z.boolean().optional().describe("false hides the route panel."),
117
+ center: z.tuple([z.number(), z.number()]).optional().describe("[lon, lat] of the projection center. Default: the mean of the stops."),
118
+ padding: z.number().optional().describe("Degrees of margin around the stops. Default 3.5."),
119
+ bounds: z.tuple([z.number(), z.number(), z.number(), z.number()]).optional().describe("[lonMin, lonMax, latMin, latMax] to show."),
120
+ highlight: z.array(z.string()).optional().describe("Extra countries to color, by name."),
121
+ palette: z.array(z.string()).optional().describe("Colors for the highlighted countries, in order.")
122
+ });
123
+ const routeItemSchema = z.looseObject({
124
+ city: z.string().optional().describe("A city from the dictionary (see `scenec catalog`), or any name together with `at`."),
125
+ at: z.tuple([z.number(), z.number()]).optional().describe("[lon, lat] for a city that is not in the dictionary."),
126
+ country: z.string().optional().describe("Country to color on the map."),
127
+ label: z.string().optional().describe("Name shown instead of the city name."),
128
+ note: z.string().optional(),
129
+ by: z.string().optional().describe("A route item with only `by` sets the transport of the next leg: plane, train, car, bus or boat.")
130
+ });
131
+ const point = z.tuple([z.number(), z.number()]);
132
+ const LABEL_SIDES = ["left", "right", "below"];
133
+ const BOX_FRONTS = ["drawers", "doors", "open"];
134
+ const BOX_FACES = ["front", "left", "right"];
135
+ const pathPointSchema = z.looseObject({
136
+ id: z.string().optional().describe("Name other objects can use in `near`."),
137
+ at: point.optional().describe("[x, z] on the ground: x 0..1 left to right, z 0..1 near to far."),
138
+ label: z.string().optional(),
139
+ zone: z.string().optional().describe("A zone name; its scenery is placed around this point."),
140
+ finish: z.boolean().optional(),
141
+ color: z.string().optional(),
142
+ label_side: z.enum(LABEL_SIDES).optional(),
143
+ decor: z.boolean().optional().describe("false skips the zone scenery for this point.")
144
+ });
145
+ const pathSchema = z.looseObject({
146
+ points: z.array(pathPointSchema).optional(),
147
+ width: z.number().optional().describe("Road width in world units. Default 0.075."),
148
+ checkpoint_size: z.number().optional().describe("Checkpoint radius in world units. Default 0.042."),
149
+ color: z.string().optional(),
150
+ tiles: z.boolean().optional().describe("false removes the tiles on the road."),
151
+ tile_length: z.number().optional()
152
+ });
153
+ const zoneDecorSchema = z.looseObject({
154
+ asset: z.string(),
155
+ size: z.number().optional()
156
+ });
157
+ const zoneSchema = z.looseObject({
158
+ tint: z.string().optional().describe("A theme color name or a color."),
159
+ radius: z.number().optional(),
160
+ decor: z.array(zoneDecorSchema).optional()
161
+ });
162
+ const boxDetailsSchema = z.looseObject({
163
+ type: z.enum(BOX_FRONTS).optional(),
164
+ count: z.number().optional(),
165
+ face: z.enum(BOX_FACES).optional(),
166
+ plinth: z.number().optional(),
167
+ handle: z.string().optional(),
168
+ shelves: z.array(z.number()).optional()
169
+ });
170
+ const boxSchema = z.looseObject({
171
+ from: point.optional(),
172
+ to: point.optional(),
173
+ height: z.number().optional().describe("Top of the box above the floor. Default 40."),
174
+ elevation: z.number().optional().describe("Bottom of the box above the floor."),
175
+ thickness: z.number().optional(),
176
+ color: z.string().optional(),
177
+ top_color: z.string().optional(),
178
+ opacity: z.number().optional(),
179
+ shadow: z.boolean().optional(),
180
+ details: boxDetailsSchema.optional(),
181
+ front: z.enum(BOX_FRONTS).optional(),
182
+ count: z.number().optional()
183
+ });
184
+ const scatterSchema = z.looseObject({
185
+ seed: z.number().optional(),
186
+ assets: z.array(z.string()).optional(),
187
+ area: z.tuple([z.number(), z.number(), z.number(), z.number()]).optional().describe("[x0, z0, x1, z1]."),
188
+ count: z.number().optional(),
189
+ size: z.number().optional()
190
+ });
191
+ const wallSideSchema = z.looseObject({ x: z.number().optional(), color: z.string().optional() });
192
+ const wallsSchema = z.looseObject({
193
+ back: z.looseObject({ z: z.number().optional(), color: z.string().optional() }).optional(),
194
+ right: z.union([z.literal(false), wallSideSchema]).optional(),
195
+ left: wallSideSchema.optional(),
196
+ height: z.number().optional()
197
+ });
198
+ const floorSchema = z.looseObject({
199
+ color: z.string().optional(),
200
+ planks: z.boolean().optional(),
201
+ plank_width: z.number().optional(),
202
+ from_z: z.number().optional()
203
+ });
204
+ const sceneSchema = z.looseObject({
205
+ version: z.literal(1).optional(),
206
+ canvas: canvasSchema.optional(),
207
+ objects: z.record(z.string(), objectSchema).optional(),
208
+ text: z.array(textSchema).optional(),
209
+ assets: z.record(z.string(), z.looseObject({})).optional().describe("Custom assets: svg (inline or a file) or image."),
210
+ path: pathSchema.optional(),
211
+ scatter: z.array(scatterSchema).optional(),
212
+ zones: z.record(z.string(), zoneSchema).optional(),
213
+ walls: wallsSchema.optional(),
214
+ floor: floorSchema.optional(),
215
+ boxes: z.record(z.string(), boxSchema).optional(),
216
+ map: mapSchema.optional(),
217
+ route: z.array(routeItemSchema).optional()
218
+ });
219
+ const OBJECT_PARAM_KEYS = [
220
+ "age",
221
+ "art",
222
+ "backpack",
223
+ "beard",
224
+ "bg",
225
+ "bottom",
226
+ "build",
227
+ "cane",
228
+ "color",
229
+ "count",
230
+ "details",
231
+ "doors",
232
+ "draped",
233
+ "drawers",
234
+ "drop",
235
+ "ends",
236
+ "expr",
237
+ "floors",
238
+ "food",
239
+ "frame",
240
+ "gaze",
241
+ "glasses",
242
+ "gown",
243
+ "hair",
244
+ "hair_color",
245
+ "handle",
246
+ "hat",
247
+ "hat_color",
248
+ "height",
249
+ "jacket",
250
+ "label",
251
+ "logo",
252
+ "mic",
253
+ "off",
254
+ "outfit",
255
+ "pants",
256
+ "people",
257
+ "person",
258
+ "pot",
259
+ "role",
260
+ "screen",
261
+ "seed",
262
+ "shirt",
263
+ "shoes",
264
+ "skin",
265
+ "sleeve",
266
+ "stand",
267
+ "steam",
268
+ "stole",
269
+ "style",
270
+ "thickness",
271
+ "view",
272
+ "width"
273
+ ];
274
+ export {
275
+ BOX_FACES,
276
+ BOX_FRONTS,
277
+ CAMERA_PRESETS,
278
+ DEPTH_NAMES,
279
+ LABEL_SIDES,
280
+ MAX_CANVAS_PX,
281
+ MAX_OBJECTS,
282
+ MODE_NAMES,
283
+ OBJECT_PARAM_KEYS,
284
+ SETTING_NAMES,
285
+ SHOT_NAMES,
286
+ SIZE_NAMES,
287
+ SLOT_NAMES,
288
+ boxDetailsSchema,
289
+ boxSchema,
290
+ cameraSchema,
291
+ canvasSchema,
292
+ floorSchema,
293
+ mapSchema,
294
+ objectSchema,
295
+ pathPointSchema,
296
+ pathSchema,
297
+ routeItemSchema,
298
+ scatterSchema,
299
+ sceneSchema,
300
+ textSchema,
301
+ wallsSchema,
302
+ zoneDecorSchema,
303
+ zoneSchema
304
+ };
@@ -1,3 +1,5 @@
1
+ export declare const THEME_COLOR_NAMES: readonly ["skyTop", "skyBottom", "ground", "groundDark", "wall", "floor", "sea", "seaLight", "primary", "secondary", "accent", "trunk", "wood", "woodDark", "ink", "paper", "glass", "metal", "text", "textOnDark", "shadow"];
2
+ export type ThemeColorName = (typeof THEME_COLOR_NAMES)[number];
1
3
  export interface Theme {
2
4
  skyTop: string;
3
5
  skyBottom: string;
@@ -23,3 +25,5 @@ export interface Theme {
23
25
  shadow: string;
24
26
  [key: string]: string | string[] | undefined;
25
27
  }
28
+ export declare const THEME_IDS: readonly ["flat-autumn", "flat-cool", "night", "warm-cafe", "beach"];
29
+ export type ThemeId = (typeof THEME_IDS)[number];
@@ -0,0 +1,28 @@
1
+ const THEME_COLOR_NAMES = [
2
+ "skyTop",
3
+ "skyBottom",
4
+ "ground",
5
+ "groundDark",
6
+ "wall",
7
+ "floor",
8
+ "sea",
9
+ "seaLight",
10
+ "primary",
11
+ "secondary",
12
+ "accent",
13
+ "trunk",
14
+ "wood",
15
+ "woodDark",
16
+ "ink",
17
+ "paper",
18
+ "glass",
19
+ "metal",
20
+ "text",
21
+ "textOnDark",
22
+ "shadow"
23
+ ];
24
+ const THEME_IDS = ["flat-autumn", "flat-cool", "night", "warm-cafe", "beach"];
25
+ export {
26
+ THEME_COLOR_NAMES,
27
+ THEME_IDS
28
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BackpackAsset extends BaseAsset {
4
+ readonly id = "backpack";
5
+ readonly kind = "any";
6
+ readonly width = 26;
7
+ readonly height = 34;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,31 @@
1
+ import { ColorUtil } from "../../Utils/ColorUtil.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
+ class BackpackAsset extends BaseAsset {
5
+ id = "backpack";
6
+ kind = "any";
7
+ width = 26;
8
+ height = 34;
9
+ tags = ["mochila"];
10
+ draw(params, theme) {
11
+ const mainColor = ShapeUtil.color(theme, params.color, theme.secondary);
12
+ return `<path d="M-6 -30 Q0 -38 6 -30" stroke="${ColorUtil.sh(mainColor, -0.3)}" stroke-width="2.5" fill="none"/>` + ShapeUtil.rect(-12, -30, 24, 30, mainColor, { rx: 8 }) + ShapeUtil.rect(
13
+ 2,
14
+ -30,
15
+ 10,
16
+ 30,
17
+ ColorUtil.sh(mainColor, -0.15),
18
+ { rx: 6 }
19
+ ) + ShapeUtil.rect(
20
+ -8,
21
+ -14,
22
+ 16,
23
+ 11,
24
+ ColorUtil.sh(mainColor, -0.1),
25
+ { rx: 4 }
26
+ ) + ShapeUtil.rect(-3, -12, 6, 2, theme.accent, { rx: 1 });
27
+ }
28
+ }
29
+ export {
30
+ BackpackAsset
31
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BallAsset extends BaseAsset {
4
+ readonly id = "ball";
5
+ readonly kind = "ground";
6
+ readonly width = 24;
7
+ readonly height = 24;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseAsset } from "./BaseAsset.js";
2
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
3
+ class BallAsset extends BaseAsset {
4
+ id = "ball";
5
+ kind = "ground";
6
+ width = 24;
7
+ height = 24;
8
+ tags = ["bola", "beach_ball"];
9
+ draw(params, theme) {
10
+ return ShapeUtil.shadow(theme, 10, 2) + ShapeUtil.circle(0, -12, 12, theme.paper) + `<path d="M0 -24 A12 12 0 0 1 12 -12 L0 -12 Z" fill="${theme.primary}"/><path d="M0 0 A12 12 0 0 1 -12 -12 L0 -12 Z" fill="${theme.accent}"/><path d="M0 0 A12 12 0 0 0 12 -12 A12 12 0 0 1 2 -1 Z" fill="${theme.ink}" opacity="0.12"/>` + ShapeUtil.circle(-5, -18, 2.5, theme.paper, 'opacity="0.7"');
11
+ }
12
+ }
13
+ export {
14
+ BallAsset
15
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BalloonsAsset extends BaseAsset {
4
+ readonly id = "balloons";
5
+ readonly kind = "ground";
6
+ readonly width = 40;
7
+ readonly height = 100;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,26 @@
1
+ import { BaseAsset } from "./BaseAsset.js";
2
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
3
+ class BalloonsAsset extends BaseAsset {
4
+ id = "balloons";
5
+ kind = "ground";
6
+ width = 40;
7
+ height = 100;
8
+ tags = ["bal\xF5es", "baloes", "festa", "party"];
9
+ draw(params, theme) {
10
+ const cs = [theme.primary, theme.accent, theme.secondary];
11
+ return `<path d="M0 0 Q-6 -40 -12 -70 M0 0 Q2 -45 4 -82 M0 0 Q8 -36 16 -66" stroke="${theme.metal}" stroke-width="1" fill="none"/>` + [[-12, -78, cs[0]], [4, -91, cs[1]], [16, -74, cs[2]]].map(([
12
+ posX,
13
+ posY,
14
+ color
15
+ ]) => ShapeUtil.ellipse(posX, posY, 9, 11, color) + ShapeUtil.ellipse(
16
+ posX - 3,
17
+ posY - 4,
18
+ 2.5,
19
+ 3.5,
20
+ { fill: theme.paper, extra: 'opacity="0.45"' }
21
+ )).join("");
22
+ }
23
+ }
24
+ export {
25
+ BalloonsAsset
26
+ };
@@ -0,0 +1,16 @@
1
+ import type { AssetDrawing, AssetId, AssetKind, AssetParams, AssetSize, LibraryAsset, Theme } from "../../Protocols/AssetProtocol.js";
2
+ export declare abstract class BaseAsset implements LibraryAsset {
3
+ abstract readonly id: AssetId;
4
+ abstract readonly kind: AssetKind;
5
+ abstract readonly width: number;
6
+ abstract readonly height: number;
7
+ abstract readonly tags: readonly string[];
8
+ readonly isBackdrop?: boolean;
9
+ readonly seat?: number;
10
+ readonly elevation?: number;
11
+ readonly top?: number;
12
+ readonly isHollow?: boolean;
13
+ size?(params: AssetParams): AssetSize;
14
+ topOf?(params: AssetParams): number;
15
+ abstract draw(params: AssetParams, theme: Theme): AssetDrawing;
16
+ }
@@ -0,0 +1,10 @@
1
+ class BaseAsset {
2
+ isBackdrop;
3
+ seat;
4
+ elevation;
5
+ top;
6
+ isHollow;
7
+ }
8
+ export {
9
+ BaseAsset
10
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BeachTowelAsset extends BaseAsset {
4
+ readonly id = "beach_towel";
5
+ readonly kind = "floor";
6
+ readonly width = 90;
7
+ readonly height = 10;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseAsset } from "./BaseAsset.js";
2
+ class BeachTowelAsset extends BaseAsset {
3
+ id = "beach_towel";
4
+ kind = "floor";
5
+ width = 90;
6
+ height = 10;
7
+ tags = ["toalha", "towel"];
8
+ draw(params, theme) {
9
+ return `<path d="M-45 0 L-35 -9 L45 -9 L35 0 Z" fill="${theme.secondary}"/><path d="M-25 0 L-15 -9 L-5 -9 L-15 0 Z M5 0 L15 -9 L25 -9 L15 0 Z" fill="${theme.paper}"/>`;
10
+ }
11
+ }
12
+ export {
13
+ BeachTowelAsset
14
+ };
@@ -0,0 +1,12 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BedAsset extends BaseAsset {
4
+ readonly id = "bed";
5
+ readonly kind = "ground";
6
+ readonly width = 180;
7
+ readonly height = 70;
8
+ readonly top = 38;
9
+ readonly seat = 38;
10
+ readonly tags: string[];
11
+ draw(params: AssetParams, theme: Theme): string;
12
+ }
@@ -0,0 +1,25 @@
1
+ import { ColorUtil } from "../../Utils/ColorUtil.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
+ class BedAsset extends BaseAsset {
5
+ id = "bed";
6
+ kind = "ground";
7
+ width = 180;
8
+ height = 70;
9
+ top = 38;
10
+ seat = 38;
11
+ tags = ["cama", "bed"];
12
+ draw(params, theme) {
13
+ const mainColor = ShapeUtil.color(theme, params.color, theme.primary);
14
+ return ShapeUtil.shadow(theme, 90, 4) + ShapeUtil.rect(-90, -70, 10, 70, theme.woodDark, { rx: 3 }) + ShapeUtil.rect(80, -46, 10, 46, theme.woodDark, { rx: 3 }) + ShapeUtil.rect(-82, -34, 166, 22, theme.paper, { rx: 4 }) + ShapeUtil.rect(
15
+ -82,
16
+ -16,
17
+ 166,
18
+ 6,
19
+ ColorUtil.sh(theme.paper, -0.12)
20
+ ) + ShapeUtil.rect(-76, -46, 40, 14, theme.paper, { rx: 7 }) + ShapeUtil.rect(-76, -38, 40, 6, ColorUtil.sh(theme.paper, -0.1), { rx: 3 }) + `<path d="M-30 -40 Q20 -44 84 -38 L84 -14 L-34 -14 Z" fill="${mainColor}"/><path d="M-30 -22 L84 -22 L84 -14 L-34 -14 Z" fill="${ColorUtil.sh(mainColor, -0.15)}"/>` + ShapeUtil.rect(-84, -10, 168, 4, theme.woodDark, { rx: 1 });
21
+ }
22
+ }
23
+ export {
24
+ BedAsset
25
+ };
@@ -0,0 +1,11 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BenchAsset extends BaseAsset {
4
+ readonly id = "bench";
5
+ readonly kind = "ground";
6
+ readonly width = 110;
7
+ readonly height = 60;
8
+ readonly seat = 36;
9
+ readonly tags: string[];
10
+ draw(params: AssetParams, theme: Theme): string;
11
+ }
@@ -0,0 +1,24 @@
1
+ import { ColorUtil } from "../../Utils/ColorUtil.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
+ class BenchAsset extends BaseAsset {
5
+ id = "bench";
6
+ kind = "ground";
7
+ width = 110;
8
+ height = 60;
9
+ seat = 36;
10
+ tags = ["banco", "park_bench"];
11
+ draw(params, theme) {
12
+ return ShapeUtil.shadow(theme, 55, 3) + ShapeUtil.rect(-55, -40, 110, 6, theme.wood, { rx: 2 }) + ShapeUtil.rect(-55, -36, 110, 2, ColorUtil.sh(theme.wood, -0.2)) + ShapeUtil.rect(
13
+ -55,
14
+ -58,
15
+ 110,
16
+ 6,
17
+ theme.wood,
18
+ { rx: 2 }
19
+ ) + ShapeUtil.rect(-55, -54, 110, 2, ColorUtil.sh(theme.wood, -0.2)) + ShapeUtil.rect(-48, -34, 5, 34, theme.metal) + ShapeUtil.rect(43, -34, 5, 34, theme.metal) + ShapeUtil.rect(-48, -58, 4, 20, theme.metal) + ShapeUtil.rect(44, -58, 4, 20, theme.metal);
20
+ }
21
+ }
22
+ export {
23
+ BenchAsset
24
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BicycleAsset extends BaseAsset {
4
+ readonly id = "bicycle";
5
+ readonly kind = "ground";
6
+ readonly width = 80;
7
+ readonly height = 48;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseAsset } from "./BaseAsset.js";
2
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
3
+ class BicycleAsset extends BaseAsset {
4
+ id = "bicycle";
5
+ kind = "ground";
6
+ width = 80;
7
+ height = 48;
8
+ tags = ["bicicleta", "bike"];
9
+ draw(params, theme) {
10
+ const mainColor = ShapeUtil.color(theme, params.color, theme.secondary);
11
+ const flip = ShapeUtil.directionOf(params.facing);
12
+ const wh = (posX) => `<circle cx="${posX}" cy="-17" r="16" fill="none" stroke="${theme.ink}" stroke-width="3.5"/>` + ShapeUtil.circle(posX, -17, 2.5, theme.metal);
13
+ return `<g transform="scale(${flip} 1)">` + ShapeUtil.shadow(theme, 40, 3) + wh(-24) + wh(24) + `<path d="M-24 -17 L-6 -17 L10 -38 L-12 -38 Z M-6 -17 L-14 -42 M24 -17 L14 -46" stroke="${mainColor}" stroke-width="3.5" fill="none" stroke-linejoin="round" stroke-linecap="round"/><path d="M-20 -43 L-8 -43" stroke="${theme.ink}" stroke-width="4" stroke-linecap="round"/><path d="M10 -47 L19 -48" stroke="${theme.ink}" stroke-width="3" stroke-linecap="round"/>` + ShapeUtil.circle(-6, -17, 4, theme.metal) + `</g>`;
14
+ }
15
+ }
16
+ export {
17
+ BicycleAsset
18
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BigPlantAsset extends BaseAsset {
4
+ readonly id = "big_plant";
5
+ readonly kind = "ground";
6
+ readonly width = 60;
7
+ readonly height = 110;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }
@@ -0,0 +1,19 @@
1
+ import { ColorUtil } from "../../Utils/ColorUtil.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
+ class BigPlantAsset extends BaseAsset {
5
+ id = "big_plant";
6
+ kind = "ground";
7
+ width = 60;
8
+ height = 110;
9
+ tags = ["planta grande", "costela de ad\xE3o", "monstera"];
10
+ draw(params, theme) {
11
+ const [first, second, color] = theme.foliage;
12
+ const pot = ShapeUtil.color(theme, params.pot, "#C9724E");
13
+ const lf = (posX, posY, rot, colr) => `<ellipse cx="${posX}" cy="${posY}" rx="11" ry="22" fill="${colr}" transform="rotate(${rot} ${posX} ${posY})"/><path d="M${posX} ${posY + 20} L${posX} ${posY - 18}" stroke="${ColorUtil.sh(colr, -0.2)}" stroke-width="1.4" transform="rotate(${rot} ${posX} ${posY})"/>`;
14
+ return ShapeUtil.shadow(theme, 22, 3) + lf(-16, -64, -35, color) + lf(16, -66, 35, second) + lf(0, -86, 0, first) + lf(-24, -88, -50, first) + lf(24, -90, 48, color) + lf(-6, -58, -12, second) + `<path d="M-16 -34 L16 -34 L12 0 L-12 0 Z" fill="${pot}"/><path d="M4 -34 L16 -34 L12 0 L4 0 Z" fill="${ColorUtil.sh(pot, -0.12)}"/>` + ShapeUtil.rect(-17, -36, 34, 5, ColorUtil.sh(pot, -0.2), { rx: 2 });
15
+ }
16
+ }
17
+ export {
18
+ BigPlantAsset
19
+ };
@@ -0,0 +1,10 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BirdAsset extends BaseAsset {
4
+ readonly id = "bird";
5
+ readonly kind = "sky";
6
+ readonly width = 20;
7
+ readonly height = 10;
8
+ readonly tags: string[];
9
+ draw(params: AssetParams, theme: Theme): string;
10
+ }