@oim-media/spec 1.36.2 → 1.36.4
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.
- package/CANONICAL_SPEC.md +1 -1
- package/CANONICAL_SPEC_2.md +5 -5
- package/package.json +1 -1
- package/schema/oim.schema.json +2 -2
- package/schema/ovm.schema.json +2 -2
package/CANONICAL_SPEC.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This document describes **1.x** (legacy, no longer painted by readers). The current format is OIM 2.0: see [CANONICAL_SPEC_2.md](CANONICAL_SPEC_2.md).
|
|
4
4
|
|
|
5
|
-
**Contract version:** 1.36.
|
|
5
|
+
**Contract version:** 1.36.4
|
|
6
6
|
**Date:** 2026-11-02 (reviewed against `packages/core/src/schema.ts`; the source of truth is the schema, this document summarises it)
|
|
7
7
|
**Status:** Normative / In force
|
|
8
8
|
**License:** Apache-2.0
|
package/CANONICAL_SPEC_2.md
CHANGED
|
@@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0
|
|
|
6
6
|
# OIM 2.0 Canonical Specification
|
|
7
7
|
|
|
8
8
|
**Document version emitted by the reference writer:** `2.0.0` (`DOCUMENT_VERSION` in `@oim-media/core/v2`)
|
|
9
|
-
**Contract release this text was checked against:** 1.36.
|
|
9
|
+
**Contract release this text was checked against:** 1.36.4
|
|
10
10
|
**Status:** Normative
|
|
11
11
|
**License:** Apache-2.0
|
|
12
12
|
**Authority:** Xue Studios LLC
|
|
@@ -291,7 +291,7 @@ it draws as an SVG outline (a preset, a line, an ellipse, a single path); a plai
|
|
|
291
291
|
| `rect`, `ellipse`, `line` | none |
|
|
292
292
|
| `polygon` | `sides`: integer 3..64. |
|
|
293
293
|
| `star` | `points`: integer 3..64; `inner`: 0..1. |
|
|
294
|
-
| `preset` | `name` (1..64): a catalogue shape: `triangle`, `star`, `arrow`, `diamond`, `hexagon`, `circle`, `heart`, `line`, `blob`, `scribble`, `pill`, `octagon`, `pentagon`, `cross`, `moon`, `cloud`, `drop`, `bolt`, `bubble`, `flower`, `burst`, `arch`. A preset fills its box, drawn in the box's own pixels: `arch`, `pill`, `bubble` and `circle` keep round curves at any aspect ratio; every other preset is its drawing scaled to span the box. |
|
|
294
|
+
| `preset` | `name` (1..64): a catalogue shape: `triangle`, `star`, `arrow`, `diamond`, `hexagon`, `circle`, `heart`, `line`, `blob`, `scribble`, `pill`, `octagon`, `pentagon`, `cross`, `moon`, `cloud`, `drop`, `bolt`, `bubble`, `flower`, `burst`, `arch`. A preset fills its box, drawn in the box's own pixels: `arch`, `pill`, `bubble` and `circle` keep round curves at any aspect ratio; every other preset is its drawing scaled to span the box. With a centred colour stroke, the preset is drawn half the stroke width inside every edge, so the stroke stays in the box. |
|
|
295
295
|
| `paths` | `viewBox`: 4 numbers; `paths`: 1..2000 entries `{ d (required), fillRule ("evenodd"), fill (≤128), stroke (≤128), strokeWidth ≥0, cap (round \| square), join (round \| bevel), opacity 0..1, transform (6 numbers) }`. The drawing is scaled from its `viewBox` into the box. |
|
|
296
296
|
|
|
297
297
|
`corners` (on `shape` and `image`) is a number ≥0 (all corners) or an array of exactly 4 numbers ≥0.
|
|
@@ -776,7 +776,7 @@ A writer is checked by validating its documents against `schema/oim2.schema.json
|
|
|
776
776
|
|
|
777
777
|
## 11. Appendix D: what the schema allows and the reference painter does not draw
|
|
778
778
|
|
|
779
|
-
Checked against the working tree that follows release 1.36.
|
|
779
|
+
Checked against the working tree that follows release 1.36.4. A reader that does not draw one of these is still
|
|
780
780
|
conforming to the schema; a writer SHOULD NOT rely on them being painted.
|
|
781
781
|
|
|
782
782
|
- A gradient paint with `preset` and no `gradient`: the reference painter reads the preset only for an artistic
|
|
@@ -790,8 +790,8 @@ conforming to the schema; a writer SHOULD NOT rely on them being painted.
|
|
|
790
790
|
layer; writers SHOULD respect them because the shared parser of `{name}…{/name}` does.
|
|
791
791
|
- A trim is not drawn on a rectangle (a box, no outline) or on a drawing of several paths.
|
|
792
792
|
- A trimmed stroke drops a dashed or dotted style; the trim replaces it.
|
|
793
|
-
- A
|
|
794
|
-
`
|
|
793
|
+
- A figure's stroke width is in layer pixels and scales with the figure, like the rest of the layer (no
|
|
794
|
+
`vector-effect: non-scaling-stroke`); at any display size it keeps the same share of the figure.
|
|
795
795
|
- A feathered cutout edge is drawn hard.
|
|
796
796
|
- The reference player does not check the per-layer schema limits (fills, strokes, effects, animations, interactions, actions, tracks, keyframes, gradient stops, paths and the like); only 150 per list, 1000 total, depth 32 and 10 MiB.
|
|
797
797
|
|
package/package.json
CHANGED
package/schema/oim.schema.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://oim.media/spec/1.36.
|
|
3
|
+
"$id": "https://oim.media/spec/1.36.4/oim.schema.json",
|
|
4
4
|
"title": "OIM document metadata",
|
|
5
|
-
"specVersion": "1.36.
|
|
5
|
+
"specVersion": "1.36.4",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"description": {
|
package/schema/ovm.schema.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://oim.media/spec/1.36.
|
|
3
|
+
"$id": "https://oim.media/spec/1.36.4/ovm.schema.json",
|
|
4
4
|
"title": "OVM document metadata",
|
|
5
|
-
"specVersion": "1.36.
|
|
5
|
+
"specVersion": "1.36.4",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"ovm_version": {
|