@guilhermebkel/scenec 0.2.0 → 0.2.2

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 (165) hide show
  1. package/README.md +23 -12
  2. package/dist/Adapters/FontAdapter.js +5 -1
  3. package/dist/Commands/BestCommand.d.ts +11 -0
  4. package/dist/Commands/BestCommand.js +73 -0
  5. package/dist/Commands/RenderCommand.d.ts +2 -0
  6. package/dist/Commands/RenderCommand.js +7 -0
  7. package/dist/Modules/BestModule.d.ts +41 -0
  8. package/dist/Modules/BestModule.js +159 -0
  9. package/dist/Modules/CompilationModule.d.ts +5 -0
  10. package/dist/Modules/CompilationModule.js +92 -19
  11. package/dist/Modules/CritiqueModule.d.ts +3 -0
  12. package/dist/Modules/CritiqueModule.js +60 -5
  13. package/dist/Protocols/AssetProtocol.d.ts +6 -1
  14. package/dist/Protocols/AssetProtocol.js +17 -1
  15. package/dist/Protocols/CommandProtocol.d.ts +2 -0
  16. package/dist/Protocols/CompilationProtocol.d.ts +27 -1
  17. package/dist/Protocols/CritiqueProtocol.d.ts +17 -1
  18. package/dist/Protocols/CritiqueProtocol.js +11 -1
  19. package/dist/Protocols/KitProtocol.d.ts +8 -2
  20. package/dist/Protocols/KitProtocol.js +8 -2
  21. package/dist/Protocols/PersonProtocol.d.ts +4 -0
  22. package/dist/Protocols/PersonProtocol.js +2 -0
  23. package/dist/Protocols/SceneProtocol.d.ts +204 -5
  24. package/dist/Protocols/SceneProtocol.js +60 -7
  25. package/dist/Resources/Assets/BaseAsset.d.ts +1 -0
  26. package/dist/Resources/Assets/BaseAsset.js +1 -0
  27. package/dist/Resources/Assets/BigPlantAsset.js +8 -1
  28. package/dist/Resources/Assets/BlackboardAsset.d.ts +11 -0
  29. package/dist/Resources/Assets/BlackboardAsset.js +20 -0
  30. package/dist/Resources/Assets/BushAsset.js +1 -1
  31. package/dist/Resources/Assets/ChairAsset.d.ts +5 -0
  32. package/dist/Resources/Assets/ChairAsset.js +23 -0
  33. package/dist/Resources/Assets/ChatBubbleAsset.d.ts +11 -0
  34. package/dist/Resources/Assets/ChatBubbleAsset.js +18 -0
  35. package/dist/Resources/Assets/CloudAsset.js +3 -1
  36. package/dist/Resources/Assets/ConfettiAsset.d.ts +10 -0
  37. package/dist/Resources/Assets/ConfettiAsset.js +18 -0
  38. package/dist/Resources/Assets/CursorAsset.d.ts +11 -0
  39. package/dist/Resources/Assets/CursorAsset.js +17 -0
  40. package/dist/Resources/Assets/DeskAsset.js +7 -2
  41. package/dist/Resources/Assets/FirstAidKitAsset.d.ts +10 -0
  42. package/dist/Resources/Assets/FirstAidKitAsset.js +19 -0
  43. package/dist/Resources/Assets/GlobeAsset.d.ts +10 -0
  44. package/dist/Resources/Assets/GlobeAsset.js +18 -0
  45. package/dist/Resources/Assets/HouseAsset.js +22 -6
  46. package/dist/Resources/Assets/LaptopAsset.js +5 -1
  47. package/dist/Resources/Assets/PlantAsset.js +1 -1
  48. package/dist/Resources/Assets/PodiumAsset.d.ts +11 -0
  49. package/dist/Resources/Assets/PodiumAsset.js +20 -0
  50. package/dist/Resources/Assets/RefrigeratorAsset.d.ts +11 -0
  51. package/dist/Resources/Assets/RefrigeratorAsset.js +21 -0
  52. package/dist/Resources/Assets/SinkAsset.d.ts +11 -0
  53. package/dist/Resources/Assets/SinkAsset.js +21 -0
  54. package/dist/Resources/Assets/SofaAsset.d.ts +5 -0
  55. package/dist/Resources/Assets/SofaAsset.js +30 -2
  56. package/dist/Resources/Assets/StarsAsset.d.ts +6 -0
  57. package/dist/Resources/Assets/StarsAsset.js +37 -24
  58. package/dist/Resources/Assets/StethoscopeAsset.d.ts +10 -0
  59. package/dist/Resources/Assets/StethoscopeAsset.js +18 -0
  60. package/dist/Resources/Assets/StoveAsset.d.ts +11 -0
  61. package/dist/Resources/Assets/StoveAsset.js +20 -0
  62. package/dist/Resources/Assets/ToggleAsset.d.ts +11 -0
  63. package/dist/Resources/Assets/ToggleAsset.js +21 -0
  64. package/dist/Resources/Assets/TreeAsset.d.ts +5 -0
  65. package/dist/Resources/Assets/TreeAsset.js +32 -7
  66. package/dist/Resources/Assets/WaterCoolerAsset.d.ts +11 -0
  67. package/dist/Resources/Assets/WaterCoolerAsset.js +20 -0
  68. package/dist/Resources/Assets/WhiteboardAsset.d.ts +10 -0
  69. package/dist/Resources/Assets/WhiteboardAsset.js +18 -0
  70. package/dist/Resources/Kits/BaseKit.d.ts +2 -1
  71. package/dist/Resources/Kits/BaseKit.js +1 -0
  72. package/dist/Resources/Kits/ClayKit.d.ts +9 -0
  73. package/dist/Resources/Kits/ClayKit.js +11 -0
  74. package/dist/Resources/Kits/DuotoneKit.d.ts +16 -0
  75. package/dist/Resources/Kits/DuotoneKit.js +18 -0
  76. package/dist/Resources/Kits/IsometricKit.d.ts +8 -0
  77. package/dist/Resources/Kits/IsometricKit.js +10 -0
  78. package/dist/Resources/Kits/OutlineKit.d.ts +3 -0
  79. package/dist/Resources/Kits/OutlineKit.js +1 -1
  80. package/dist/Resources/Kits/PaperKit.d.ts +2 -0
  81. package/dist/Resources/Kits/PaperKit.js +1 -0
  82. package/dist/Resources/Kits/PosterKit.d.ts +14 -0
  83. package/dist/Resources/Kits/PosterKit.js +16 -0
  84. package/dist/Resources/Kits/SketchKit.d.ts +2 -1
  85. package/dist/Resources/Kits/SketchKit.js +1 -0
  86. package/dist/Services/AssetService.js +29 -1
  87. package/dist/Services/BackgroundService.d.ts +10 -2
  88. package/dist/Services/BackgroundService.js +52 -11
  89. package/dist/Services/CatalogService.d.ts +1 -0
  90. package/dist/Services/CatalogService.js +8 -3
  91. package/dist/Services/ColorCritiqueService.d.ts +42 -0
  92. package/dist/Services/ColorCritiqueService.js +232 -0
  93. package/dist/Services/ContextService.js +9 -5
  94. package/dist/Services/DescriptionService.d.ts +2 -1
  95. package/dist/Services/DescriptionService.js +8 -2
  96. package/dist/Services/DetailService.d.ts +7 -0
  97. package/dist/Services/DetailService.js +18 -0
  98. package/dist/Services/FocusCritiqueService.d.ts +23 -0
  99. package/dist/Services/FocusCritiqueService.js +166 -0
  100. package/dist/Services/FramingService.d.ts +31 -0
  101. package/dist/Services/FramingService.js +108 -0
  102. package/dist/Services/GazeService.js +3 -1
  103. package/dist/Services/GroundDetailService.d.ts +50 -0
  104. package/dist/Services/GroundDetailService.js +115 -0
  105. package/dist/Services/KitService.d.ts +11 -2
  106. package/dist/Services/KitService.js +45 -10
  107. package/dist/Services/LightingService.d.ts +15 -0
  108. package/dist/Services/LightingService.js +124 -6
  109. package/dist/Services/PaletteService.d.ts +108 -0
  110. package/dist/Services/PaletteService.js +282 -0
  111. package/dist/Services/PieceService.d.ts +4 -0
  112. package/dist/Services/PieceService.js +28 -7
  113. package/dist/Services/PlacementService.js +7 -1
  114. package/dist/Services/PlaneBackgroundService.d.ts +4 -0
  115. package/dist/Services/PlaneBackgroundService.js +42 -3
  116. package/dist/Services/PlaneProjectionService.d.ts +4 -0
  117. package/dist/Services/PlaneProjectionService.js +33 -4
  118. package/dist/Services/RasterService.js +20 -3
  119. package/dist/Services/RidgeService.d.ts +31 -0
  120. package/dist/Services/RidgeService.js +85 -0
  121. package/dist/Services/ScaleCritiqueService.d.ts +11 -0
  122. package/dist/Services/ScaleCritiqueService.js +57 -0
  123. package/dist/Services/SkyDetailService.d.ts +39 -0
  124. package/dist/Services/SkyDetailService.js +95 -0
  125. package/dist/Services/{ContactCritiqueService.d.ts → TangentCritiqueService.d.ts} +10 -6
  126. package/dist/Services/TangentCritiqueService.js +136 -0
  127. package/dist/Services/TextService.d.ts +43 -3
  128. package/dist/Services/TextService.js +288 -32
  129. package/dist/Services/ThumbnailCritiqueService.d.ts +30 -0
  130. package/dist/Services/ThumbnailCritiqueService.js +130 -0
  131. package/dist/Utils/ColorUtil.d.ts +14 -0
  132. package/dist/Utils/ColorUtil.js +68 -5
  133. package/dist/Utils/DetailUtil.d.ts +7 -0
  134. package/dist/Utils/DetailUtil.js +15 -0
  135. package/dist/Utils/FontMetricsUtil.d.ts +7 -0
  136. package/dist/Utils/FontMetricsUtil.js +694 -0
  137. package/dist/Utils/OklabUtil.d.ts +18 -0
  138. package/dist/Utils/OklabUtil.js +89 -0
  139. package/dist/Utils/PersonArmUtil.d.ts +13 -1
  140. package/dist/Utils/PersonArmUtil.js +53 -5
  141. package/dist/Utils/PersonHeadUtil.js +3 -1
  142. package/dist/Utils/PersonOutfitUtil.d.ts +16 -0
  143. package/dist/Utils/PersonOutfitUtil.js +89 -13
  144. package/dist/Utils/PersonUtil.d.ts +2 -0
  145. package/dist/Utils/PersonUtil.js +14 -4
  146. package/dist/Utils/SanitizeUtil.js +1 -0
  147. package/dist/Utils/ShapeUtil.d.ts +9 -0
  148. package/dist/Utils/ShapeUtil.js +26 -0
  149. package/dist/Utils/TypesettingUtil.d.ts +17 -0
  150. package/dist/Utils/TypesettingUtil.js +92 -0
  151. package/dist/cli.js +32 -3
  152. package/dist/render.d.ts +3 -1
  153. package/dist/render.js +5 -0
  154. package/fonts/DMSerifDisplay-Regular.ttf +0 -0
  155. package/fonts/OFL.txt +2 -0
  156. package/fonts/PatrickHand-Regular.ttf +0 -0
  157. package/package.json +1 -1
  158. package/skills/draw-scene/SKILL.md +2 -1
  159. package/skills/draw-scene/recipes/carousel.yaml +1 -1
  160. package/skills/draw-scene/recipes/conference-keynote.yaml +43 -0
  161. package/skills/draw-scene/recipes/product-feature.yaml +41 -0
  162. package/skills/draw-scene/recipes/product-illustration.yaml +2 -1
  163. package/skills/draw-scene/references/catalog.md +19 -1
  164. package/skills/draw-scene/references/dsl.md +24 -6
  165. package/dist/Services/ContactCritiqueService.js +0 -101
@@ -1,3 +1,4 @@
1
+ import { type FontName } from "./KitProtocol.js";
1
2
  import { z } from "zod";
2
3
  export declare const SLOT_NAMES: readonly ["far-left", "left", "center-left", "center", "center-right", "right", "far-right"];
3
4
  export declare const SIZE_NAMES: readonly ["tiny", "small", "medium", "large", "huge"];
@@ -6,15 +7,50 @@ export declare const MODE_NAMES: readonly ["classic", "2.5d", "board", "map"];
6
7
  export type ModeName = (typeof MODE_NAMES)[number];
7
8
  export declare const SETTING_NAMES: readonly ["outdoor", "indoor", "beach", "city"];
8
9
  export declare const SHOT_NAMES: readonly ["wide", "full", "medium", "close"];
10
+ export declare const HARMONY_NAMES: readonly ["analogous", "complementary", "split", "triad", "mono"];
11
+ export type HarmonyName = (typeof HARMONY_NAMES)[number];
12
+ export declare const MOOD_NAMES: readonly ["day", "dusk", "night"];
13
+ export type MoodName = (typeof MOOD_NAMES)[number];
14
+ export declare const TIME_NAMES: readonly ["golden", "noon", "overcast", "dusk", "night"];
15
+ export type TimeName = (typeof TIME_NAMES)[number];
16
+ export declare const RIDGES_MIN = 0;
17
+ export declare const RIDGES_MAX = 4;
18
+ export declare const CLOUD_DENSITIES: readonly ["none", "few", "many"];
19
+ export type CloudDensity = (typeof CLOUD_DENSITIES)[number];
20
+ export declare const GROUND_DETAILS: readonly ["none", "low", "high"];
21
+ export type GroundDetail = (typeof GROUND_DETAILS)[number];
22
+ export declare const FRAMING_ELEMENTS: readonly ["foliage", "curtain", "plants", "none"];
23
+ export type FramingElement = (typeof FRAMING_ELEMENTS)[number];
24
+ export declare const BOX_STYLES: readonly ["rect", "highlight", "pill", "sticker", "underline"];
25
+ export type BoxStyle = (typeof BOX_STYLES)[number];
9
26
  export declare const MAX_OBJECTS = 200;
10
27
  export declare const MAX_CANVAS_PX = 4096;
11
- export declare const CAMERA_PRESETS: readonly ["board", "room"];
28
+ export declare const MAX_SEED_COLORS = 3;
29
+ export declare const generatedThemeSchema: z.ZodObject<{
30
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
31
+ harmony: z.ZodOptional<z.ZodEnum<{
32
+ analogous: "analogous";
33
+ complementary: "complementary";
34
+ mono: "mono";
35
+ split: "split";
36
+ triad: "triad";
37
+ }>>;
38
+ mood: z.ZodOptional<z.ZodEnum<{
39
+ day: "day";
40
+ dusk: "dusk";
41
+ night: "night";
42
+ }>>;
43
+ }, z.core.$loose>;
44
+ export type GeneratedTheme = z.infer<typeof generatedThemeSchema>;
45
+ export declare const CAMERA_PRESETS: readonly ["board", "room", "isometric"];
12
46
  export declare const cameraSchema: z.ZodUnion<readonly [z.ZodEnum<{
13
47
  board: "board";
48
+ isometric: "isometric";
14
49
  room: "room";
15
50
  }>, z.ZodObject<{
16
51
  preset: z.ZodOptional<z.ZodEnum<{
17
52
  board: "board";
53
+ isometric: "isometric";
18
54
  room: "room";
19
55
  }>>;
20
56
  horizon: z.ZodOptional<z.ZodNumber>;
@@ -34,8 +70,34 @@ export declare const canvasSchema: z.ZodObject<{
34
70
  classic: "classic";
35
71
  map: "map";
36
72
  }>>;
37
- theme: z.ZodOptional<z.ZodString>;
73
+ theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
74
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
75
+ harmony: z.ZodOptional<z.ZodEnum<{
76
+ analogous: "analogous";
77
+ complementary: "complementary";
78
+ mono: "mono";
79
+ split: "split";
80
+ triad: "triad";
81
+ }>>;
82
+ mood: z.ZodOptional<z.ZodEnum<{
83
+ day: "day";
84
+ dusk: "dusk";
85
+ night: "night";
86
+ }>>;
87
+ }, z.core.$loose>]>>;
88
+ time: z.ZodOptional<z.ZodEnum<{
89
+ dusk: "dusk";
90
+ golden: "golden";
91
+ night: "night";
92
+ noon: "noon";
93
+ overcast: "overcast";
94
+ }>>;
38
95
  kit: z.ZodOptional<z.ZodString>;
96
+ font: z.ZodOptional<z.ZodEnum<{
97
+ hand: "hand";
98
+ sans: "sans";
99
+ serif: "serif";
100
+ }>>;
39
101
  colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40
102
  setting: z.ZodOptional<z.ZodEnum<{
41
103
  beach: "beach";
@@ -49,11 +111,36 @@ export declare const canvasSchema: z.ZodObject<{
49
111
  floor: z.ZodOptional<z.ZodString>;
50
112
  vanish: z.ZodOptional<z.ZodNumber>;
51
113
  haze: z.ZodOptional<z.ZodBoolean>;
52
- grain: z.ZodOptional<z.ZodBoolean>;
114
+ grain: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
53
115
  light: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
54
116
  from: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
55
117
  strength: z.ZodOptional<z.ZodNumber>;
118
+ shafts: z.ZodOptional<z.ZodBoolean>;
56
119
  }, z.core.$loose>]>>;
120
+ seed: z.ZodOptional<z.ZodNumber>;
121
+ ridges: z.ZodOptional<z.ZodNumber>;
122
+ clouds: z.ZodOptional<z.ZodEnum<{
123
+ few: "few";
124
+ many: "many";
125
+ none: "none";
126
+ }>>;
127
+ ground_detail: z.ZodOptional<z.ZodEnum<{
128
+ high: "high";
129
+ low: "low";
130
+ none: "none";
131
+ }>>;
132
+ framing: z.ZodOptional<z.ZodEnum<{
133
+ curtain: "curtain";
134
+ foliage: "foliage";
135
+ none: "none";
136
+ plants: "plants";
137
+ }>>;
138
+ frame_elements: z.ZodOptional<z.ZodEnum<{
139
+ curtain: "curtain";
140
+ foliage: "foliage";
141
+ none: "none";
142
+ plants: "plants";
143
+ }>>;
57
144
  critique: z.ZodOptional<z.ZodBoolean>;
58
145
  shot: z.ZodOptional<z.ZodEnum<{
59
146
  close: "close";
@@ -70,10 +157,12 @@ export declare const canvasSchema: z.ZodObject<{
70
157
  headroom: z.ZodOptional<z.ZodNumber>;
71
158
  camera: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
72
159
  board: "board";
160
+ isometric: "isometric";
73
161
  room: "room";
74
162
  }>, z.ZodObject<{
75
163
  preset: z.ZodOptional<z.ZodEnum<{
76
164
  board: "board";
165
+ isometric: "isometric";
77
166
  room: "room";
78
167
  }>>;
79
168
  horizon: z.ZodOptional<z.ZodNumber>;
@@ -160,9 +249,20 @@ export declare const objectSchema: z.ZodObject<{
160
249
  left: "left";
161
250
  right: "right";
162
251
  }>>;
252
+ variant: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
163
253
  pose: z.ZodOptional<z.ZodString>;
164
254
  expr: z.ZodOptional<z.ZodString>;
165
255
  look: z.ZodOptional<z.ZodString>;
256
+ body: z.ZodOptional<z.ZodEnum<{
257
+ chibi: "chibi";
258
+ long: "long";
259
+ standard: "standard";
260
+ }>>;
261
+ detail: z.ZodOptional<z.ZodEnum<{
262
+ high: "high";
263
+ low: "low";
264
+ mid: "mid";
265
+ }>>;
166
266
  haze: z.ZodOptional<z.ZodBoolean>;
167
267
  light: z.ZodOptional<z.ZodBoolean>;
168
268
  kit: z.ZodOptional<z.ZodBoolean>;
@@ -182,7 +282,24 @@ export declare const textSchema: z.ZodObject<{
182
282
  y: z.ZodOptional<z.ZodNumber>;
183
283
  x: z.ZodOptional<z.ZodNumber>;
184
284
  color: z.ZodOptional<z.ZodString>;
285
+ font: z.ZodOptional<z.ZodEnum<{
286
+ hand: "hand";
287
+ sans: "sans";
288
+ serif: "serif";
289
+ }>>;
185
290
  box: z.ZodOptional<z.ZodString>;
291
+ box_style: z.ZodOptional<z.ZodEnum<{
292
+ highlight: "highlight";
293
+ pill: "pill";
294
+ rect: "rect";
295
+ sticker: "sticker";
296
+ underline: "underline";
297
+ }>>;
298
+ emphasis: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
+ tracking: z.ZodOptional<z.ZodNumber>;
300
+ wrap: z.ZodOptional<z.ZodNumber>;
301
+ balance: z.ZodOptional<z.ZodBoolean>;
302
+ rotation: z.ZodOptional<z.ZodNumber>;
186
303
  pad: z.ZodOptional<z.ZodNumber>;
187
304
  radius: z.ZodOptional<z.ZodNumber>;
188
305
  weight: z.ZodOptional<z.ZodNumber>;
@@ -341,8 +458,34 @@ export declare const sceneSchema: z.ZodObject<{
341
458
  classic: "classic";
342
459
  map: "map";
343
460
  }>>;
344
- theme: z.ZodOptional<z.ZodString>;
461
+ theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
462
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
463
+ harmony: z.ZodOptional<z.ZodEnum<{
464
+ analogous: "analogous";
465
+ complementary: "complementary";
466
+ mono: "mono";
467
+ split: "split";
468
+ triad: "triad";
469
+ }>>;
470
+ mood: z.ZodOptional<z.ZodEnum<{
471
+ day: "day";
472
+ dusk: "dusk";
473
+ night: "night";
474
+ }>>;
475
+ }, z.core.$loose>]>>;
476
+ time: z.ZodOptional<z.ZodEnum<{
477
+ dusk: "dusk";
478
+ golden: "golden";
479
+ night: "night";
480
+ noon: "noon";
481
+ overcast: "overcast";
482
+ }>>;
345
483
  kit: z.ZodOptional<z.ZodString>;
484
+ font: z.ZodOptional<z.ZodEnum<{
485
+ hand: "hand";
486
+ sans: "sans";
487
+ serif: "serif";
488
+ }>>;
346
489
  colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
347
490
  setting: z.ZodOptional<z.ZodEnum<{
348
491
  beach: "beach";
@@ -356,11 +499,36 @@ export declare const sceneSchema: z.ZodObject<{
356
499
  floor: z.ZodOptional<z.ZodString>;
357
500
  vanish: z.ZodOptional<z.ZodNumber>;
358
501
  haze: z.ZodOptional<z.ZodBoolean>;
359
- grain: z.ZodOptional<z.ZodBoolean>;
502
+ grain: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
360
503
  light: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
361
504
  from: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
362
505
  strength: z.ZodOptional<z.ZodNumber>;
506
+ shafts: z.ZodOptional<z.ZodBoolean>;
363
507
  }, z.core.$loose>]>>;
508
+ seed: z.ZodOptional<z.ZodNumber>;
509
+ ridges: z.ZodOptional<z.ZodNumber>;
510
+ clouds: z.ZodOptional<z.ZodEnum<{
511
+ few: "few";
512
+ many: "many";
513
+ none: "none";
514
+ }>>;
515
+ ground_detail: z.ZodOptional<z.ZodEnum<{
516
+ high: "high";
517
+ low: "low";
518
+ none: "none";
519
+ }>>;
520
+ framing: z.ZodOptional<z.ZodEnum<{
521
+ curtain: "curtain";
522
+ foliage: "foliage";
523
+ none: "none";
524
+ plants: "plants";
525
+ }>>;
526
+ frame_elements: z.ZodOptional<z.ZodEnum<{
527
+ curtain: "curtain";
528
+ foliage: "foliage";
529
+ none: "none";
530
+ plants: "plants";
531
+ }>>;
364
532
  critique: z.ZodOptional<z.ZodBoolean>;
365
533
  shot: z.ZodOptional<z.ZodEnum<{
366
534
  close: "close";
@@ -377,10 +545,12 @@ export declare const sceneSchema: z.ZodObject<{
377
545
  headroom: z.ZodOptional<z.ZodNumber>;
378
546
  camera: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
379
547
  board: "board";
548
+ isometric: "isometric";
380
549
  room: "room";
381
550
  }>, z.ZodObject<{
382
551
  preset: z.ZodOptional<z.ZodEnum<{
383
552
  board: "board";
553
+ isometric: "isometric";
384
554
  room: "room";
385
555
  }>>;
386
556
  horizon: z.ZodOptional<z.ZodNumber>;
@@ -467,9 +637,20 @@ export declare const sceneSchema: z.ZodObject<{
467
637
  left: "left";
468
638
  right: "right";
469
639
  }>>;
640
+ variant: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
470
641
  pose: z.ZodOptional<z.ZodString>;
471
642
  expr: z.ZodOptional<z.ZodString>;
472
643
  look: z.ZodOptional<z.ZodString>;
644
+ body: z.ZodOptional<z.ZodEnum<{
645
+ chibi: "chibi";
646
+ long: "long";
647
+ standard: "standard";
648
+ }>>;
649
+ detail: z.ZodOptional<z.ZodEnum<{
650
+ high: "high";
651
+ low: "low";
652
+ mid: "mid";
653
+ }>>;
473
654
  haze: z.ZodOptional<z.ZodBoolean>;
474
655
  light: z.ZodOptional<z.ZodBoolean>;
475
656
  kit: z.ZodOptional<z.ZodBoolean>;
@@ -489,7 +670,24 @@ export declare const sceneSchema: z.ZodObject<{
489
670
  y: z.ZodOptional<z.ZodNumber>;
490
671
  x: z.ZodOptional<z.ZodNumber>;
491
672
  color: z.ZodOptional<z.ZodString>;
673
+ font: z.ZodOptional<z.ZodEnum<{
674
+ hand: "hand";
675
+ sans: "sans";
676
+ serif: "serif";
677
+ }>>;
492
678
  box: z.ZodOptional<z.ZodString>;
679
+ box_style: z.ZodOptional<z.ZodEnum<{
680
+ highlight: "highlight";
681
+ pill: "pill";
682
+ rect: "rect";
683
+ sticker: "sticker";
684
+ underline: "underline";
685
+ }>>;
686
+ emphasis: z.ZodOptional<z.ZodArray<z.ZodString>>;
687
+ tracking: z.ZodOptional<z.ZodNumber>;
688
+ wrap: z.ZodOptional<z.ZodNumber>;
689
+ balance: z.ZodOptional<z.ZodBoolean>;
690
+ rotation: z.ZodOptional<z.ZodNumber>;
493
691
  pad: z.ZodOptional<z.ZodNumber>;
494
692
  radius: z.ZodOptional<z.ZodNumber>;
495
693
  weight: z.ZodOptional<z.ZodNumber>;
@@ -620,6 +818,7 @@ export type BoxOptions = z.infer<typeof boxSchema>;
620
818
  export type ScatterOptions = z.infer<typeof scatterSchema>;
621
819
  export type WallsOptions = z.infer<typeof wallsSchema>;
622
820
  export type FloorOptions = z.infer<typeof floorSchema>;
821
+ export type { FontName };
623
822
  export type TextRole = NonNullable<SceneText["role"]>;
624
823
  export type ObjectLayer = NonNullable<SceneObject["layer"]>;
625
824
  export declare const OBJECT_PARAM_KEYS: readonly ["age", "art", "backpack", "beard", "bg", "bottom", "build", "cane", "color", "count", "details", "doors", "draped", "drawers", "drop", "ends", "expr", "floors", "food", "frame", "gaze", "glasses", "gown", "hair", "hair_color", "handle", "hat", "hat_color", "height", "jacket", "label", "logo", "mic", "off", "outfit", "pants", "people", "person", "pot", "role", "screen", "seed", "shirt", "shoes", "skin", "sleeve", "stand", "steam", "stole", "style", "thickness", "view", "width"];
@@ -1,12 +1,30 @@
1
+ import { FONT_NAMES } from "./KitProtocol.js";
1
2
  import { z } from "zod";
3
+ import { DETAIL_NAMES } from "./AssetProtocol.js";
4
+ import { BODY_NAMES } from "./PersonProtocol.js";
2
5
  const SLOT_NAMES = ["far-left", "left", "center-left", "center", "center-right", "right", "far-right"];
3
6
  const SIZE_NAMES = ["tiny", "small", "medium", "large", "huge"];
4
7
  const DEPTH_NAMES = ["far", "mid", "near"];
5
8
  const MODE_NAMES = ["classic", "2.5d", "board", "map"];
6
9
  const SETTING_NAMES = ["outdoor", "indoor", "beach", "city"];
7
10
  const SHOT_NAMES = ["wide", "full", "medium", "close"];
11
+ const HARMONY_NAMES = ["analogous", "complementary", "split", "triad", "mono"];
12
+ const MOOD_NAMES = ["day", "dusk", "night"];
13
+ const TIME_NAMES = ["golden", "noon", "overcast", "dusk", "night"];
14
+ const RIDGES_MIN = 0;
15
+ const RIDGES_MAX = 4;
16
+ const CLOUD_DENSITIES = ["none", "few", "many"];
17
+ const GROUND_DETAILS = ["none", "low", "high"];
18
+ const FRAMING_ELEMENTS = ["foliage", "curtain", "plants", "none"];
19
+ const BOX_STYLES = ["rect", "highlight", "pill", "sticker", "underline"];
8
20
  const MAX_OBJECTS = 200;
9
21
  const MAX_CANVAS_PX = 4096;
22
+ const MAX_SEED_COLORS = 3;
23
+ const generatedThemeSchema = z.looseObject({
24
+ from: z.union([z.string(), z.array(z.string()).min(1).max(MAX_SEED_COLORS)]).describe("One to three seed colors."),
25
+ harmony: z.enum(HARMONY_NAMES).optional().describe("analogous (default), complementary, split, triad or mono."),
26
+ mood: z.enum(MOOD_NAMES).optional().describe("day (default), dusk or night.")
27
+ });
10
28
  const slot = z.union([
11
29
  z.number(),
12
30
  z.enum([...SLOT_NAMES, ...SLOT_NAMES.map((name) => `top-${name}`), ...SLOT_NAMES.map((name) => `sky-${name}`)]),
@@ -16,7 +34,7 @@ const MIN_CANVAS_PX = 16;
16
34
  const MAX_SCALE = 4;
17
35
  const pixels = z.number().int().min(MIN_CANVAS_PX).max(MAX_CANVAS_PX);
18
36
  const fraction = z.number().min(0).max(1);
19
- const CAMERA_PRESETS = ["board", "room"];
37
+ const CAMERA_PRESETS = ["board", "room", "isometric"];
20
38
  const cameraSchema = z.union([
21
39
  z.enum(CAMERA_PRESETS),
22
40
  z.looseObject({
@@ -34,8 +52,10 @@ const canvasSchema = z.looseObject({
34
52
  width: pixels.optional().describe("Frame width in px. Default 1200."),
35
53
  height: pixels.optional().describe("Frame height in px. Default 630 (classic) or 900 (2.5d, map)."),
36
54
  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`."),
55
+ theme: z.union([z.string(), generatedThemeSchema]).optional().describe("Palette name or { from, harmony, mood }. See `scenec catalog themes`."),
56
+ time: z.enum(TIME_NAMES).optional().describe("Time of day: golden, noon, overcast, dusk or night."),
38
57
  kit: z.string().optional().describe("Style kit name. See `scenec catalog kits`."),
58
+ font: z.enum(FONT_NAMES).optional().describe("Default font: sans, serif or hand."),
39
59
  colors: z.record(z.string(), z.string()).optional().describe("Overrides theme colors, for example wall or floor."),
40
60
  setting: z.enum(SETTING_NAMES).optional().describe("Where the scene happens. Default outdoor."),
41
61
  scale: z.number().positive().max(MAX_SCALE).optional().describe("Camera zoom. Default 1."),
@@ -44,11 +64,21 @@ const canvasSchema = z.looseObject({
44
64
  floor: z.string().optional().describe("Indoor floor style, for example planks."),
45
65
  vanish: fraction.optional().describe("Vanishing point x for planks."),
46
66
  haze: z.boolean().optional().describe("false turns atmospheric perspective off."),
47
- grain: z.boolean().optional(),
67
+ grain: z.union([z.boolean(), z.number().min(0).max(1)]).optional().describe("true (0.10), false, or a strength between 0 and 1."),
48
68
  light: z.union([
49
69
  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 }."),
70
+ z.looseObject({
71
+ from: z.union([z.number(), z.string()]).optional(),
72
+ strength: fraction.optional(),
73
+ shafts: z.boolean().optional().describe("false turns off indoor window light shafts.")
74
+ })
75
+ ]).optional().describe("false, or { from: left|right|front|0..1, strength: 0..1, shafts: boolean }."),
76
+ seed: z.number().optional().describe("Seed for procedural background details."),
77
+ ridges: z.number().int().min(RIDGES_MIN).max(RIDGES_MAX).optional().describe("Number of procedural ridge layers (0..4). Default 2 for outdoor, 0 for city/beach."),
78
+ clouds: z.enum(CLOUD_DENSITIES).optional().describe("Ambient sky clouds: none, few or many."),
79
+ ground_detail: z.enum(GROUND_DETAILS).optional().describe("Ground texture and tufts: none, low or high."),
80
+ framing: z.enum(FRAMING_ELEMENTS).optional().describe("Foreground framing elements: foliage, curtain, plants or none."),
81
+ frame_elements: z.enum(FRAMING_ELEMENTS).optional().describe("Alias for canvas.framing."),
52
82
  critique: z.boolean().optional().describe("false turns the art director off."),
53
83
  shot: z.enum(SHOT_NAMES).optional().describe("Framing: wide (default), full, medium or close."),
54
84
  focus: z.union([z.string(), z.array(z.string())]).optional().describe("Object or group ids the shot frames."),
@@ -71,7 +101,7 @@ const objectSchema = z.looseObject({
71
101
  right_of: z.string().optional(),
72
102
  behind: z.string().optional(),
73
103
  in_front_of: z.string().optional(),
74
- on: z.string().optional().describe("Sits on another object's surface or seat."),
104
+ on: z.string().optional().describe("Sits on another object's surface or seat. Only assets with a surface or seat accept it; others are placed on the ground."),
75
105
  under: z.string().optional(),
76
106
  above: z.string().optional(),
77
107
  holds: z.string().optional(),
@@ -79,7 +109,7 @@ const objectSchema = z.looseObject({
79
109
  offset: z.union([z.number(), z.tuple([z.number(), z.number()])], { error: "use a number or [x, z]" }).optional(),
80
110
  align: z.union([z.number(), z.string()]).optional(),
81
111
  layer: z.enum(["back", "front"]).optional(),
82
- altitude: z.number().optional(),
112
+ altitude: z.number().optional().describe("Height in the sky as a fraction of the height, for sky objects such as a sun or moon. Ground objects ignore it."),
83
113
  along: z.number().optional().describe("2.5d: position along the path, 0..1."),
84
114
  side: z.enum(["left", "right"]).optional().describe("2.5d: which side of the path an `along` object stands on."),
85
115
  dist: z.number().optional().describe("2.5d: distance from the path for an `along` object."),
@@ -90,9 +120,14 @@ const objectSchema = z.looseObject({
90
120
  lift: z.number().optional(),
91
121
  hang: z.number().optional(),
92
122
  facing: z.enum(["left", "right"]).optional(),
123
+ variant: z.union([z.number(), z.string()]).optional().describe("Asset variant: number or name for an alternate visual style."),
93
124
  pose: z.string().optional().describe("Person pose. See `scenec catalog poses`."),
94
125
  expr: z.string().optional().describe("Person expression."),
95
126
  look: z.string().optional().describe("Where a person looks: another object id, or left, right, up, down, camera."),
127
+ body: z.enum(BODY_NAMES).optional().describe("Person proportions: chibi, standard or long."),
128
+ detail: z.enum(DETAIL_NAMES).optional().describe(
129
+ "How much is drawn: low drops small parts, high adds highlights and texture. Defaults: focus high, far low, else mid."
130
+ ),
96
131
  haze: z.boolean().optional(),
97
132
  light: z.boolean().optional(),
98
133
  kit: z.boolean().optional(),
@@ -107,7 +142,14 @@ const textSchema = z.looseObject({
107
142
  y: z.number().optional(),
108
143
  x: z.number().optional(),
109
144
  color: z.string().optional(),
145
+ font: z.enum(FONT_NAMES).optional().describe("Font family: sans, serif or hand."),
110
146
  box: z.string().optional().describe("Background color behind the text."),
147
+ box_style: z.enum(BOX_STYLES).optional().describe("Caption container style: rect, highlight, pill, sticker or underline."),
148
+ emphasis: z.array(z.string()).optional().describe("Key words to underline in the underline style."),
149
+ tracking: z.number().optional().describe("Letter spacing in em."),
150
+ wrap: z.number().int().positive().optional().describe("Max line width in characters to wrap text."),
151
+ balance: z.boolean().optional().describe("Balance line lengths for multi-line titles."),
152
+ rotation: z.number().optional().describe("Rotation angle in degrees (for sticker style)."),
111
153
  pad: z.number().optional(),
112
154
  radius: z.number().optional(),
113
155
  weight: z.number().optional()
@@ -274,22 +316,33 @@ const OBJECT_PARAM_KEYS = [
274
316
  export {
275
317
  BOX_FACES,
276
318
  BOX_FRONTS,
319
+ BOX_STYLES,
277
320
  CAMERA_PRESETS,
321
+ CLOUD_DENSITIES,
278
322
  DEPTH_NAMES,
323
+ FRAMING_ELEMENTS,
324
+ GROUND_DETAILS,
325
+ HARMONY_NAMES,
279
326
  LABEL_SIDES,
280
327
  MAX_CANVAS_PX,
281
328
  MAX_OBJECTS,
329
+ MAX_SEED_COLORS,
282
330
  MODE_NAMES,
331
+ MOOD_NAMES,
283
332
  OBJECT_PARAM_KEYS,
333
+ RIDGES_MAX,
334
+ RIDGES_MIN,
284
335
  SETTING_NAMES,
285
336
  SHOT_NAMES,
286
337
  SIZE_NAMES,
287
338
  SLOT_NAMES,
339
+ TIME_NAMES,
288
340
  boxDetailsSchema,
289
341
  boxSchema,
290
342
  cameraSchema,
291
343
  canvasSchema,
292
344
  floorSchema,
345
+ generatedThemeSchema,
293
346
  mapSchema,
294
347
  objectSchema,
295
348
  pathPointSchema,
@@ -5,6 +5,7 @@ export declare abstract class BaseAsset implements LibraryAsset {
5
5
  abstract readonly width: number;
6
6
  abstract readonly height: number;
7
7
  abstract readonly tags: readonly string[];
8
+ readonly variants?: readonly string[];
8
9
  readonly isBackdrop?: boolean;
9
10
  readonly seat?: number;
10
11
  readonly elevation?: number;
@@ -1,4 +1,5 @@
1
1
  class BaseAsset {
2
+ variants;
2
3
  isBackdrop;
3
4
  seat;
4
5
  elevation;
@@ -10,7 +10,14 @@ class BigPlantAsset extends BaseAsset {
10
10
  draw(params, theme) {
11
11
  const [first, second, color] = theme.foliage;
12
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})"/>`;
13
+ const lf = (posX, posY, rot, colr) => ShapeUtil.blob(posX, posY, 22, {
14
+ seed: Math.abs(posX * 3 + posY),
15
+ lobes: 3,
16
+ wobble: 0.07,
17
+ squash: 0.5,
18
+ fill: colr,
19
+ extra: `transform="rotate(${rot} ${posX} ${posY})"`
20
+ }) + `<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
21
  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
22
  }
16
23
  }
@@ -0,0 +1,11 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class BlackboardAsset extends BaseAsset {
4
+ readonly id = "blackboard";
5
+ readonly kind = "wall";
6
+ readonly width = 140;
7
+ readonly height = 95;
8
+ readonly elevation = 60;
9
+ readonly tags: string[];
10
+ draw(params: AssetParams, theme: Theme): string;
11
+ }
@@ -0,0 +1,20 @@
1
+ import { ColorUtil } from "../../Utils/ColorUtil.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
+ class BlackboardAsset extends BaseAsset {
5
+ id = "blackboard";
6
+ kind = "wall";
7
+ width = 140;
8
+ height = 95;
9
+ elevation = 60;
10
+ tags = ["lousa", "quadro_negro", "blackboard", "chalkboard", "chalk"];
11
+ draw(params, theme) {
12
+ const frame = theme.woodDark;
13
+ const boardBg = "#22332B";
14
+ const chalk = "rgba(255, 255, 255, 0.75)";
15
+ return ShapeUtil.rect(-70, -95, 140, 95, frame, { rx: 3 }) + ShapeUtil.rect(-65, -90, 130, 85, boardBg, { rx: 1 }) + ShapeUtil.rect(-68, -4, 136, 4, ColorUtil.sh(frame, -0.2), { rx: 1 }) + ShapeUtil.rect(-40, -6, 12, 3, chalk, { rx: 0.5 }) + ShapeUtil.rect(10, -7, 16, 5, theme.wood, { rx: 1 }) + `<path d="M-50 -70 L-40 -50 L-30 -70" stroke="${chalk}" stroke-width="2" fill="none" stroke-linecap="round"/><path d="M-15 -60 L15 -60 M0 -75 L0 -45" stroke="${chalk}" stroke-width="2" stroke-linecap="round"/><path d="M30 -50 Q45 -70 55 -50" stroke="${chalk}" stroke-width="2" fill="none" stroke-linecap="round"/>`;
16
+ }
17
+ }
18
+ export {
19
+ BlackboardAsset
20
+ };
@@ -9,7 +9,7 @@ class BushAsset extends BaseAsset {
9
9
  tags = ["arbusto", "shrub"];
10
10
  draw(params, theme) {
11
11
  const [first, second, color] = theme.foliage;
12
- return ShapeUtil.shadow(theme, 36, 3) + ShapeUtil.circle(-20, -14, 15, color) + ShapeUtil.circle(20, -14, 15, ColorUtil.sh(color, -0.1)) + ShapeUtil.circle(0, -24, 21, first) + `<path d="M0 -3 A21 21 0 0 0 21 -24 A21 21 0 0 1 6 -5 Z" fill="${ColorUtil.sh(first, -0.12)}"/>` + ShapeUtil.circle(-9, -12, 12, second) + ShapeUtil.circle(10, -11, 12, ColorUtil.sh(second, -0.08)) + ShapeUtil.circle(-6, -34, 6, ColorUtil.sh(first, 0.2), 'opacity="0.6"');
12
+ return ShapeUtil.shadow(theme, 36, 3) + ShapeUtil.blob(-20, -14, 15, { seed: 21, lobes: 4, fill: color }) + ShapeUtil.blob(20, -14, 15, { seed: 22, lobes: 4, fill: ColorUtil.sh(color, -0.1) }) + ShapeUtil.blob(0, -24, 21, { seed: 23, lobes: 5, fill: ColorUtil.sh(first, -0.12) }) + ShapeUtil.blob(-1.5, -25.5, 19.5, { seed: 23, lobes: 5, fill: first }) + ShapeUtil.blob(-9, -12, 12, { seed: 24, lobes: 4, fill: second }) + ShapeUtil.blob(10, -11, 12, { seed: 25, lobes: 4, fill: ColorUtil.sh(second, -0.08) }) + ShapeUtil.blob(-6, -34, 6, { seed: 26, lobes: 3, fill: ColorUtil.sh(first, 0.2), extra: 'opacity="0.6"' });
13
13
  }
14
14
  }
15
15
  export {
@@ -7,5 +7,10 @@ export declare class ChairAsset extends BaseAsset {
7
7
  readonly height = 88;
8
8
  readonly seat = 45;
9
9
  readonly tags: string[];
10
+ readonly variants: string[];
11
+ private static readonly VARIANT_TO_DRAWER;
10
12
  draw(params: AssetParams, theme: Theme): string;
13
+ private drawDefault;
14
+ private drawStool;
15
+ private drawArmchair;
11
16
  }
@@ -1,5 +1,6 @@
1
1
  import { ColorUtil } from "../../Utils/ColorUtil.js";
2
2
  import { BaseAsset } from "./BaseAsset.js";
3
+ import { IdUtil } from "../../Utils/IdUtil.js";
3
4
  import { ShapeUtil } from "../../Utils/ShapeUtil.js";
4
5
  class ChairAsset extends BaseAsset {
5
6
  id = "chair";
@@ -8,7 +9,19 @@ class ChairAsset extends BaseAsset {
8
9
  height = 88;
9
10
  seat = 45;
10
11
  tags = ["cadeira", "seat"];
12
+ variants = ["2", "stool", "3", "armchair"];
13
+ static VARIANT_TO_DRAWER = {
14
+ 2: (asset, params, theme) => asset.drawStool(params, theme),
15
+ stool: (asset, params, theme) => asset.drawStool(params, theme),
16
+ 3: (asset, params, theme) => asset.drawArmchair(params, theme),
17
+ armchair: (asset, params, theme) => asset.drawArmchair(params, theme)
18
+ };
11
19
  draw(params, theme) {
20
+ const variantKey = String(params.variant ?? "");
21
+ const drawer = IdUtil.lookup(ChairAsset.VARIANT_TO_DRAWER, variantKey);
22
+ return drawer ? drawer(this, params, theme) : this.drawDefault(params, theme);
23
+ }
24
+ drawDefault(params, theme) {
12
25
  const flip = ShapeUtil.directionOf(params.facing);
13
26
  const mainColor = ShapeUtil.color(theme, params.color, theme.secondary);
14
27
  return ShapeUtil.shadow(theme, 24, 3) + ShapeUtil.rect(-16, -40, 4, 40, theme.metal) + ShapeUtil.rect(
@@ -26,6 +39,16 @@ class ChairAsset extends BaseAsset {
26
39
  { rx: 2 }
27
40
  ) + ShapeUtil.rect(-18, -41, 36, 2, ColorUtil.sh(mainColor, -0.25));
28
41
  }
42
+ drawStool(params, theme) {
43
+ const mainColor = ShapeUtil.color(theme, params.color, theme.wood);
44
+ const legColor = theme.woodDark;
45
+ return ShapeUtil.shadow(theme, 18, 2.5) + `<path d="M-12 0 L-8 -42 M12 0 L8 -42" stroke="${legColor}" stroke-width="3" stroke-linecap="round"/>` + ShapeUtil.rect(-15, -46, 30, 6, mainColor, { rx: 3 }) + ShapeUtil.rect(-15, -42, 30, 2, ColorUtil.sh(mainColor, -0.2));
46
+ }
47
+ drawArmchair(params, theme) {
48
+ const mainColor = ShapeUtil.color(theme, params.color, theme.secondary);
49
+ const darker = ColorUtil.sh(mainColor, -0.2);
50
+ return ShapeUtil.shadow(theme, 28, 3.5) + ShapeUtil.rect(-18, -10, 4, 10, theme.woodDark) + ShapeUtil.rect(14, -10, 4, 10, theme.woodDark) + ShapeUtil.rect(-22, -80, 44, 42, darker, { rx: 8 }) + ShapeUtil.rect(-20, -78, 40, 38, mainColor, { rx: 6 }) + ShapeUtil.rect(-24, -45, 48, 35, mainColor, { rx: 6 }) + ShapeUtil.rect(-26, -55, 8, 30, darker, { rx: 4 }) + ShapeUtil.rect(18, -55, 8, 30, darker, { rx: 4 });
51
+ }
29
52
  }
30
53
  export {
31
54
  ChairAsset
@@ -0,0 +1,11 @@
1
+ import type { AssetParams, Theme } from "../../Protocols/AssetProtocol.js";
2
+ import { BaseAsset } from "./BaseAsset.js";
3
+ export declare class ChatBubbleAsset extends BaseAsset {
4
+ readonly id = "chat_bubble";
5
+ readonly kind = "wall";
6
+ readonly width = 52;
7
+ readonly height = 44;
8
+ readonly elevation = 100;
9
+ readonly tags: string[];
10
+ draw(params: AssetParams, theme: Theme): string;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseAsset } from "./BaseAsset.js";
2
+ import { ShapeUtil } from "../../Utils/ShapeUtil.js";
3
+ class ChatBubbleAsset extends BaseAsset {
4
+ id = "chat_bubble";
5
+ kind = "wall";
6
+ width = 52;
7
+ height = 44;
8
+ elevation = 100;
9
+ tags = ["balao_de_fala", "conversa", "chat_bubble", "message", "speech_bubble", "comment"];
10
+ draw(params, theme) {
11
+ const bg = ShapeUtil.color(theme, params.color, theme.primary);
12
+ const dotColor = theme.paper;
13
+ return ShapeUtil.shadow(theme, 24, 3) + `<path d="M-24 -44 L24 -44 Q26 -44 26 -24 Q26 -4 4 -4 L-8 -4 L-18 2 L-16 -4 L-24 -4 Q-26 -4 -26 -24 Q-26 -44 -24 -44 Z" fill="${bg}"/>` + ShapeUtil.circle(-10, -24, 3, dotColor) + ShapeUtil.circle(0, -24, 3, dotColor) + ShapeUtil.circle(10, -24, 3, dotColor);
14
+ }
15
+ }
16
+ export {
17
+ ChatBubbleAsset
18
+ };