@pixerate/editor 0.273.0 → 0.275.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 (97) hide show
  1. package/dist/animation-editor/index.cjs +60 -60
  2. package/dist/animation-editor/index.js +4 -4
  3. package/dist/brushes/index.cjs +102 -74
  4. package/dist/brushes/index.js +34 -6
  5. package/dist/brushes/patch.d.cts +1 -1
  6. package/dist/brushes/patch.d.ts +1 -1
  7. package/dist/brushes/preview.d.cts +3 -0
  8. package/dist/brushes/preview.d.ts +3 -0
  9. package/dist/brushes/profiles.d.cts +2 -0
  10. package/dist/brushes/profiles.d.ts +2 -0
  11. package/dist/brushes/schema.d.cts +4 -0
  12. package/dist/brushes/schema.d.ts +4 -0
  13. package/dist/brushes/types.d.cts +47 -0
  14. package/dist/brushes/types.d.ts +47 -0
  15. package/dist/{brushstrokeRender-5YBCLFDQ.cjs → brushstrokeRender-2RQL46WB.cjs} +15 -15
  16. package/dist/{brushstrokeRender-DZGFU3J4.js → brushstrokeRender-WGY4DZHF.js} +3 -3
  17. package/dist/canvas/index.cjs +13 -13
  18. package/dist/canvas/index.js +1 -1
  19. package/dist/{chunk-2XDNF73E.js → chunk-43XJC3PP.js} +1 -1
  20. package/dist/{chunk-GHGBIAWQ.cjs → chunk-6QNDGMK7.cjs} +263 -45
  21. package/dist/{chunk-2F3YDXCN.js → chunk-75SYKUOT.js} +1 -1
  22. package/dist/{chunk-M3RZOF3G.cjs → chunk-C6VB7CPY.cjs} +1 -1
  23. package/dist/{chunk-N5IMDAHM.cjs → chunk-DHC4E2DU.cjs} +89 -37
  24. package/dist/{chunk-NAHJV3O6.js → chunk-G5TCMKX5.js} +28 -11
  25. package/dist/{chunk-DZVRH63Y.js → chunk-IEEY5RJV.js} +1 -1
  26. package/dist/{chunk-7W2EQQBP.cjs → chunk-JDXWLCXF.cjs} +6 -6
  27. package/dist/{chunk-N3SKPQEH.js → chunk-LMG57L5A.js} +62 -10
  28. package/dist/{chunk-5HP2VSAS.js → chunk-MSWLJI4G.js} +1 -1
  29. package/dist/{chunk-SNAFFCAX.cjs → chunk-OLZXXAER.cjs} +221 -196
  30. package/dist/{chunk-YJANF2BL.cjs → chunk-RAPNRK4R.cjs} +86 -86
  31. package/dist/{chunk-CLB2I2FU.js → chunk-RJGW3RQS.js} +2 -2
  32. package/dist/{chunk-FXVCB6YG.cjs → chunk-T6KNJVBP.cjs} +35 -35
  33. package/dist/{chunk-ZEI7ZEA4.js → chunk-Y2ISSVPH.js} +34 -9
  34. package/dist/{chunk-3JKCREEU.cjs → chunk-Y354ETAE.cjs} +76 -59
  35. package/dist/{chunk-TNLKFW7D.cjs → chunk-YYZC2EQO.cjs} +23 -23
  36. package/dist/{chunk-UXYCY3HP.js → chunk-ZM7IKQ4X.js} +239 -21
  37. package/dist/image-editor/index.cjs +789 -789
  38. package/dist/image-editor/index.js +5 -5
  39. package/dist/paint/index.cjs +2 -2
  40. package/dist/paint/index.js +1 -1
  41. package/dist/paint/wet/world.d.cts +15 -2
  42. package/dist/paint/wet/world.d.ts +15 -2
  43. package/dist/paint-editor/brush-controls.d.cts +7 -0
  44. package/dist/paint-editor/brush-controls.d.ts +7 -0
  45. package/dist/paint-editor/brush-model.d.cts +59 -1
  46. package/dist/paint-editor/brush-model.d.ts +59 -1
  47. package/dist/paint-editor/collaboration.d.cts +6 -1
  48. package/dist/paint-editor/collaboration.d.ts +6 -1
  49. package/dist/paint-editor/controller.d.cts +199 -1
  50. package/dist/paint-editor/controller.d.ts +199 -1
  51. package/dist/paint-editor/dab-stroke.d.cts +3 -0
  52. package/dist/paint-editor/dab-stroke.d.ts +3 -0
  53. package/dist/paint-editor/document.d.cts +13 -3
  54. package/dist/paint-editor/document.d.ts +13 -3
  55. package/dist/paint-editor/engine.d.cts +3 -0
  56. package/dist/paint-editor/engine.d.ts +3 -0
  57. package/dist/paint-editor/evolution-tools.d.cts +48 -0
  58. package/dist/paint-editor/evolution-tools.d.ts +48 -0
  59. package/dist/paint-editor/evolution.d.cts +175 -0
  60. package/dist/paint-editor/evolution.d.ts +175 -0
  61. package/dist/paint-editor/heat.d.cts +156 -0
  62. package/dist/paint-editor/heat.d.ts +156 -0
  63. package/dist/paint-editor/index.cjs +4905 -1525
  64. package/dist/paint-editor/index.d.cts +5 -0
  65. package/dist/paint-editor/index.d.ts +5 -0
  66. package/dist/paint-editor/index.js +10952 -7572
  67. package/dist/paint-editor/mutation-tools.d.cts +13 -0
  68. package/dist/paint-editor/mutation-tools.d.ts +13 -0
  69. package/dist/paint-editor/mutation.d.cts +67 -0
  70. package/dist/paint-editor/mutation.d.ts +67 -0
  71. package/dist/paint-editor/presence.d.cts +7 -1
  72. package/dist/paint-editor/presence.d.ts +7 -1
  73. package/dist/paint-editor/procedural.d.cts +3 -0
  74. package/dist/paint-editor/procedural.d.ts +3 -0
  75. package/dist/paint-editor/stroke.d.cts +32 -2
  76. package/dist/paint-editor/stroke.d.ts +32 -2
  77. package/dist/paint-editor/thick.d.cts +48 -7
  78. package/dist/paint-editor/thick.d.ts +48 -7
  79. package/dist/paint-editor/ui.d.cts +36 -1
  80. package/dist/paint-editor/ui.d.ts +36 -1
  81. package/dist/paint-editor/wet.d.cts +8 -1
  82. package/dist/paint-editor/wet.d.ts +8 -1
  83. package/dist/vector/index.cjs +999 -999
  84. package/dist/vector/index.js +5 -5
  85. package/package.json +1 -1
  86. package/skills/README.md +1 -0
  87. package/skills/pixerate-brushes/SKILL.md +3 -0
  88. package/skills/pixerate-paint-editor/SKILL.md +36 -53
  89. package/skills/pixerate-paint-editor/references/brush-facets.md +3 -0
  90. package/skills/pixerate-paint-editor/references/mutation.md +25 -0
  91. package/skills/pixerate-paint-editor/references/oils.md +8 -1
  92. package/skills/pixerate-paint-editor/references/smart-inks.md +51 -0
  93. package/skills/pixerate-paint-mutation/SKILL.md +76 -0
  94. package/skills/pixerate-paint-mutation/evals/decline-unanswered.json +58 -0
  95. package/skills/pixerate-paint-mutation/evals/dry-ink-answer.json +74 -0
  96. package/skills/pixerate-paint-mutation/evals/wet-wash-answer.json +76 -0
  97. package/skills/pixerate-paint-oil-impasto/SKILL.md +2 -1
@@ -0,0 +1,76 @@
1
+ {
2
+ "prompt": "Claim the pending wet mutation stroke on the canvas, let it fade away, and paint a warm amber (#d97706) watercolour-round answer stroke across the canvas.",
3
+ "fixture": {
4
+ "editor": "paint",
5
+ "width": 200,
6
+ "height": 200,
7
+ "setup": [
8
+ { "tool": "set_brush", "args": { "id": "mutation-wash" } },
9
+ {
10
+ "tool": "paint_stroke",
11
+ "args": {
12
+ "color": "#2563eb",
13
+ "points": [
14
+ { "x": 40, "y": 100, "pressure": 0.8 },
15
+ { "x": 120, "y": 100, "pressure": 0.8 }
16
+ ]
17
+ }
18
+ },
19
+ { "tool": "advance_wet_paint", "args": { "seconds": 2 } }
20
+ ]
21
+ },
22
+ "checks": [
23
+ {
24
+ "tool": "list_mutations",
25
+ "expect": { "mutations": { "$length": 0 } },
26
+ "why": "No pending mutations remain"
27
+ },
28
+ {
29
+ "tool": "list_mutations",
30
+ "args": { "includeAll": true },
31
+ "expect": {
32
+ "mutations": [
33
+ {
34
+ "id": "m1",
35
+ "state": "answered",
36
+ "answerStrokeIds": { "$length": { "$min": 1 } }
37
+ }
38
+ ]
39
+ },
40
+ "why": "Mutation m1 was claimed and answered"
41
+ },
42
+ {
43
+ "tool": "list_strokes",
44
+ "expect": {
45
+ "strokes": {
46
+ "$some": { "color": "#d97706" }
47
+ }
48
+ },
49
+ "why": "The warm amber answer stroke is recorded on the canvas"
50
+ }
51
+ ],
52
+ "solution": [
53
+ { "tool": "list_mutations" },
54
+ { "tool": "read_mutation", "args": { "id": "m1" } },
55
+ {
56
+ "tool": "answer_mutation",
57
+ "args": {
58
+ "id": "m1",
59
+ "note": "Warm amber arc answering the blue wash",
60
+ "strokes": [
61
+ {
62
+ "brushId": "watercolor-round",
63
+ "brush": { "tip": { "size": 18 } },
64
+ "color": "#d97706",
65
+ "points": [
66
+ { "x": 70, "y": 50, "pressure": 0.6 },
67
+ { "x": 110, "y": 100, "pressure": 0.85 },
68
+ { "x": 150, "y": 150, "pressure": 0.6 }
69
+ ]
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ { "tool": "advance_wet_paint", "args": { "seconds": 3 } }
75
+ ]
76
+ }
@@ -69,6 +69,7 @@ This skill is the method. `pixerate-paint-editor` has the full tool reference an
69
69
  | A glowing, glassy bead (a neon or glass tube) | `glow-gel` (light paint with rim and clarity, on dark paper; one loop per layer where they cross) |
70
70
  | Dry, broken strokes over texture | `dry-brush`, or a lower `behaviour.thick.load` |
71
71
  | A metallic highlight | `metallic-paint` |
72
+ | Iridescent structural colour (beetle shell, soap film, pearl glaze) | `scarab-lacquer`, `soap-film`, `pearl-glaze` (or `iridescence` facet); tilt view with `set_view_tilt` |
72
73
  | Paint that stays exactly as laid | `set_instant_dry` on |
73
74
 
74
75
  ## Recipes
@@ -98,7 +99,7 @@ light → short strokes following the form → `set_lighting` → `get_relief`.
98
99
  - `add_layer`, `update_layer`: a layer per pass
99
100
  - `mix_colors`, `color_harmony`, `add_swatch`, `set_color`: palette
100
101
  - `set_brush`, `paint_stroke`, `clean_mixer_brush`: block in, build, blend and impasto strokes
101
- - `set_lighting`, `get_relief`, `flatten_relief`: the relief and its light
102
+ - `set_lighting`, `set_view_tilt`, `get_view_tilt`, `get_relief`, `flatten_relief`: the relief, thin-film iridescence and their light / view angle
102
103
  - `set_instant_dry`: strokes that dry as they end
103
104
  - `undo_paint`: take back a step
104
105
  - `export_image`: deliver