@oim-media/spec 1.33.0 → 1.34.1

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 (46) hide show
  1. package/BINARY_SPEC.md +2 -2
  2. package/CANONICAL_SPEC.md +1 -1
  3. package/package.json +1 -1
  4. package/schema/oim.schema.json +2 -2
  5. package/schema/oim2.schema.json +269 -237
  6. package/schema/ovm.schema.json +2 -2
  7. package/vectors/README.md +8 -1
  8. package/vectors/animation-presets.expected.json +82 -0
  9. package/vectors/animation-presets.oim.png +0 -0
  10. package/vectors/color-grade.expected.json +64 -0
  11. package/vectors/color-grade.oim.png +0 -0
  12. package/vectors/duotone.expected.json +29 -0
  13. package/vectors/duotone.oim.png +0 -0
  14. package/vectors/generative-fill.expected.json +49 -0
  15. package/vectors/generative-fill.oim.png +0 -0
  16. package/vectors/golden/animation-presets.web.png +0 -0
  17. package/vectors/golden/color-grade.web.png +0 -0
  18. package/vectors/golden/duotone.web.png +0 -0
  19. package/vectors/golden/exceptions.json +8 -1
  20. package/vectors/golden/generative-fill.web.png +0 -0
  21. package/vectors/golden/mask-cutout.web.png +0 -0
  22. package/vectors/golden/text-decorations.web.png +0 -0
  23. package/vectors/golden/texture.web.png +0 -0
  24. package/vectors/mask-cutout.expected.json +47 -0
  25. package/vectors/mask-cutout.oim.png +0 -0
  26. package/vectors/mask-frame-fill.expected.json +3 -1
  27. package/vectors/mask-window.expected.json +3 -1
  28. package/vectors/shape-shadows.expected.json +24 -2
  29. package/vectors/text-decorations.expected.json +121 -0
  30. package/vectors/text-decorations.oim.png +0 -0
  31. package/vectors/texture.expected.json +65 -0
  32. package/vectors/texture.oim.png +0 -0
  33. package/vectors-2/animation-presets.oim.png +0 -0
  34. package/vectors-2/color-grade.oim.png +0 -0
  35. package/vectors-2/duotone.oim.png +0 -0
  36. package/vectors-2/generative-fill.oim.png +0 -0
  37. package/vectors-2/golden/animation-presets.web.png +0 -0
  38. package/vectors-2/golden/color-grade.web.png +0 -0
  39. package/vectors-2/golden/duotone.web.png +0 -0
  40. package/vectors-2/golden/generative-fill.web.png +0 -0
  41. package/vectors-2/golden/mask-cutout.web.png +0 -0
  42. package/vectors-2/golden/text-decorations.web.png +0 -0
  43. package/vectors-2/golden/texture.web.png +0 -0
  44. package/vectors-2/mask-cutout.oim.png +0 -0
  45. package/vectors-2/text-decorations.oim.png +0 -0
  46. package/vectors-2/texture.oim.png +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://oim.media/spec/1.33.0/ovm.schema.json",
3
+ "$id": "https://oim.media/spec/1.34.1/ovm.schema.json",
4
4
  "title": "OVM document metadata",
5
- "specVersion": "1.33.0",
5
+ "specVersion": "1.34.1",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "ovm_version": {
package/vectors/README.md CHANGED
@@ -12,7 +12,7 @@ this says what **result** comes out of a specific one.
12
12
  ## The Normative Vectors
13
13
 
14
14
  A reduced suite cannot tell apart an implementation that **reads the format**
15
- from one that **gets a simple case right by chance**. These 39 vectors cover the
15
+ from one that **gets a simple case right by chance**. These 46 vectors cover the
16
16
  initial 20-vector matrix plus every capability added since contract 1.10.0:
17
17
 
18
18
  | # | Vector | What it covers |
@@ -56,6 +56,13 @@ initial 20-vector matrix plus every capability added since contract 1.10.0:
56
56
  | 37 | `artistic-text` | Artistic text (4.6): a curved 3D title with shaded extrusion, outer and inner strokes and a gradient, and a two-line word, drawn with the embedded Inter subset |
57
57
  | 38 | `zone-group` | A 1.x zone becomes a 2.0 group: background, corners and backdrop blur kept; its layers keep their own x/y, the flex flow is retired (Decision 14 Nov) |
58
58
  | 39 | `mask-window` | A window mask: a circle cut out of a dark cover with a white outline |
59
+ | 40 | `color-grade` | Colour grade effects: `warm-vintage` on a photo frame, `cool-cinema` on a solid shape |
60
+ | 41 | `duotone` | A duotone backdrop: a `filter` layer with `filterPreset: "duotone"` over half the base |
61
+ | 42 | `texture` | Texture effects: halftone dots in overlay and vintage paper multiplied at scale 2 |
62
+ | 43 | `generative-fill` | A generative fill: `stacked-waves`, seed 7, a two-stop palette over a visible background |
63
+ | 44 | `text-decorations` | A text mark with a highlight, an underline, a boxed whole-text highlight and a two-line drop cap |
64
+ | 45 | `mask-cutout` | A cutout mask: a star cut through the shape under it |
65
+ | 46 | `animation-presets` | Named presets at rest: a `pulse` loop, a `grow` hover and a `fade-chars` entrance |
59
66
 
60
67
  ## How to use it from another language
61
68
 
@@ -0,0 +1,82 @@
1
+ {
2
+ "description": "Named animation presets at rest: a pulse loop, a grow hover and a fade-chars text entrance; painted with animations disabled, each shows its resting frame.",
3
+ "canvas": {
4
+ "natural_height": 600,
5
+ "natural_width": 800
6
+ },
7
+ "signed": true,
8
+ "key_version": "v1",
9
+ "reedit": "author_only",
10
+ "fonts": [
11
+ {
12
+ "family": "Inter",
13
+ "name": "oim-26dd479f-Inter",
14
+ "weight": 700,
15
+ "style": "normal",
16
+ "format": "woff"
17
+ }
18
+ ],
19
+ "slots": [
20
+ {
21
+ "id": "pulse",
22
+ "type": "geo",
23
+ "position": [
24
+ 10,
25
+ 13.3333
26
+ ],
27
+ "name": "Pulse",
28
+ "content": {
29
+ "es": ""
30
+ },
31
+ "style": {
32
+ "width": "25.0cqw",
33
+ "height": "25.0cqw",
34
+ "fillColor": "#22c55e",
35
+ "animation": {
36
+ "loop": "pulse"
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "id": "grow",
42
+ "type": "geo",
43
+ "position": [
44
+ 65,
45
+ 13.3333
46
+ ],
47
+ "name": "Grow",
48
+ "content": {
49
+ "es": ""
50
+ },
51
+ "style": {
52
+ "width": "25.0cqw",
53
+ "height": "25.0cqw",
54
+ "fillColor": "#3b82f6",
55
+ "animation": {
56
+ "hover": "grow"
57
+ }
58
+ }
59
+ },
60
+ {
61
+ "id": "chars",
62
+ "type": "text",
63
+ "position": [
64
+ 10,
65
+ 63.3333
66
+ ],
67
+ "name": "Chars",
68
+ "content": {
69
+ "es": "Fuente"
70
+ },
71
+ "style": {
72
+ "width": "80.0cqw",
73
+ "height": "12.5cqw",
74
+ "fontSize": "8.0cqw",
75
+ "fillColor": "#18181b",
76
+ "fontFamily": "Inter",
77
+ "fontWeight": "700",
78
+ "textAnimationType": "fade-chars"
79
+ }
80
+ }
81
+ ]
82
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "description": "Colour grade (4.x effects): a warm-vintage grade at 80 on a photo frame and a cool-cinema grade at 50 on a solid shape.",
3
+ "canvas": {
4
+ "natural_height": 600,
5
+ "natural_width": 800
6
+ },
7
+ "signed": true,
8
+ "key_version": "v1",
9
+ "reedit": "author_only",
10
+ "slots": [
11
+ {
12
+ "id": "graded-photo",
13
+ "type": "geo",
14
+ "position": [
15
+ 7.5,
16
+ 13.3333
17
+ ],
18
+ "name": "Graded photo",
19
+ "content": {
20
+ "es": ""
21
+ },
22
+ "style": {
23
+ "width": "40.0cqw",
24
+ "height": "55.0cqw",
25
+ "fillImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAEElEQVR4nGN4nh8IRwzEcQC5Ehpxr683xgAAAABJRU5ErkJggg==",
26
+ "fillType": "image",
27
+ "geoShape": "rectangle",
28
+ "effects": [
29
+ {
30
+ "enabled": true,
31
+ "intensity": 80,
32
+ "preset": "warm-vintage",
33
+ "type": "color-grade"
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ {
39
+ "id": "graded-shape",
40
+ "type": "geo",
41
+ "position": [
42
+ 55,
43
+ 13.3333
44
+ ],
45
+ "name": "Graded shape",
46
+ "content": {
47
+ "es": ""
48
+ },
49
+ "style": {
50
+ "width": "37.5cqw",
51
+ "height": "55.0cqw",
52
+ "fillColor": "#3b82f6",
53
+ "effects": [
54
+ {
55
+ "enabled": true,
56
+ "intensity": 50,
57
+ "preset": "cool-cinema",
58
+ "type": "color-grade"
59
+ }
60
+ ]
61
+ }
62
+ }
63
+ ]
64
+ }
Binary file
@@ -0,0 +1,29 @@
1
+ {
2
+ "description": "Duotone backdrop: a filter layer with filterPreset duotone over the left half of the base picture.",
3
+ "canvas": {
4
+ "natural_height": 600,
5
+ "natural_width": 800
6
+ },
7
+ "signed": true,
8
+ "key_version": "v1",
9
+ "reedit": "author_only",
10
+ "slots": [
11
+ {
12
+ "id": "duotone-filter",
13
+ "type": "filter",
14
+ "position": [
15
+ 0,
16
+ 0
17
+ ],
18
+ "name": "Duotone",
19
+ "content": {
20
+ "es": ""
21
+ },
22
+ "style": {
23
+ "width": "50.0cqw",
24
+ "height": "75.0cqw",
25
+ "filterPreset": "duotone"
26
+ }
27
+ }
28
+ ]
29
+ }
Binary file
@@ -0,0 +1,49 @@
1
+ {
2
+ "description": "Generative fill: stacked waves, seed 7, five layers, a two-stop palette over a visible dark background.",
3
+ "canvas": {
4
+ "natural_height": 600,
5
+ "natural_width": 800
6
+ },
7
+ "signed": true,
8
+ "key_version": "v1",
9
+ "reedit": "author_only",
10
+ "slots": [
11
+ {
12
+ "id": "waves",
13
+ "type": "geo",
14
+ "position": [
15
+ 12.5,
16
+ 16.6667
17
+ ],
18
+ "name": "Waves",
19
+ "content": {
20
+ "es": ""
21
+ },
22
+ "style": {
23
+ "width": "75.0cqw",
24
+ "height": "50.0cqw",
25
+ "fillType": "generative",
26
+ "geoShape": "rectangle",
27
+ "fillGenerative": {
28
+ "colors": {
29
+ "background": "#0f172a",
30
+ "backgroundVisible": true,
31
+ "direction": "forward",
32
+ "mode": "palette",
33
+ "stops": [
34
+ "#f59e0b",
35
+ "#7c3aed"
36
+ ]
37
+ },
38
+ "generatorId": "stacked-waves",
39
+ "params": {
40
+ "amplitude": 0.5,
41
+ "frequency": 4,
42
+ "layers": 5
43
+ },
44
+ "seed": 7
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ }
Binary file
Binary file
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "flutter": {
3
3
  "filter-shape": "Flutter SDK does not clip a filter to its geoShape yet (1.32.0).",
4
- "mask-frame-fill": "Flutter SDK does not paint the mask frame fill (fill* fields) yet (1.32.0)."
4
+ "mask-frame-fill": "Flutter SDK does not paint the mask frame fill (fill* fields) yet (1.32.0).",
5
+ "duotone": "Flutter SDK does not paint the duotone backdrop yet (group C).",
6
+ "generative-fill": "Flutter SDK does not paint the generative fill yet (group C).",
7
+ "mask-cutout": "Flutter SDK does not paint a cutout mask yet (group C).",
8
+ "text-decorations": "Flutter SDK does not paint text marks, highlight, drop cap or decoration yet (group C)."
9
+ },
10
+ "web": {
11
+ "color-blending-opacity": "This golden predates multiply blending; the vector asks for multiply and vectors-2/golden paints it. Kept for Flutter until its blend is checked (phase 3)."
5
12
  }
6
13
  }
Binary file
@@ -0,0 +1,47 @@
1
+ {
2
+ "description": "Cutout mask: a star cut through the shape under it, so the base picture shows through the star.",
3
+ "canvas": {
4
+ "natural_height": 600,
5
+ "natural_width": 800
6
+ },
7
+ "signed": true,
8
+ "key_version": "v1",
9
+ "reedit": "author_only",
10
+ "slots": [
11
+ {
12
+ "id": "cover",
13
+ "type": "geo",
14
+ "position": [
15
+ 0,
16
+ 0
17
+ ],
18
+ "name": "Cover",
19
+ "content": {
20
+ "es": ""
21
+ },
22
+ "style": {
23
+ "width": "100.0cqw",
24
+ "height": "75.0cqw",
25
+ "fillColor": "#0f172a"
26
+ }
27
+ },
28
+ {
29
+ "id": "star-cut",
30
+ "type": "mask",
31
+ "position": [
32
+ 31.25,
33
+ 25
34
+ ],
35
+ "name": "Star cut",
36
+ "content": {
37
+ "es": ""
38
+ },
39
+ "style": {
40
+ "width": "37.5cqw",
41
+ "height": "37.5cqw",
42
+ "maskMode": "cutout",
43
+ "maskShape": "star"
44
+ }
45
+ }
46
+ ]
47
+ }
Binary file
@@ -39,7 +39,9 @@
39
39
  "style": {
40
40
  "width": "37.5cqw",
41
41
  "height": "25.0cqw",
42
- "fillType": "gradient"
42
+ "fillType": "gradient",
43
+ "maskMode": "window",
44
+ "maskShape": "arch"
43
45
  }
44
46
  }
45
47
  ]
@@ -38,7 +38,9 @@
38
38
  },
39
39
  "style": {
40
40
  "width": "37.5cqw",
41
- "height": "25.0cqw"
41
+ "height": "25.0cqw",
42
+ "maskMode": "window",
43
+ "maskShape": "circle"
42
44
  }
43
45
  }
44
46
  ]