@oim-media/spec 1.27.8 → 1.27.10
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/BINARY_SPEC.md +190 -186
- package/CANONICAL_SPEC.md +409 -409
- package/LICENSE +55 -55
- package/NOTICE +6 -6
- package/README.md +458 -444
- package/action-cases.json +13 -13
- package/artistic-text-cases.json +690 -690
- package/canonical-cases.json +6 -0
- package/keyframe-cases.json +32 -32
- package/keys.json +22 -22
- package/marks-cases.json +34 -34
- package/package.json +2 -1
- package/pattern-cases.json +552 -552
- package/schema/oim.schema.json +2920 -2920
- package/schema/oim2.schema.json +2763 -0
- package/schema/ovm.schema.json +2701 -2701
- package/text-effect-cases.json +835 -835
- package/tools/parity-core.mjs +122 -122
- package/tools/parity.mjs +86 -86
- package/vectors/README.md +105 -103
- package/vectors/accessibility.expected.json +67 -67
- package/vectors/artistic-text.expected.json +84 -84
- package/vectors/asymmetric-borders.expected.json +29 -29
- package/vectors/background-pattern-order.expected.json +95 -95
- package/vectors/basic-text.expected.json +29 -29
- package/vectors/color-blending-opacity.expected.json +47 -47
- package/vectors/crop.expected.json +32 -32
- package/vectors/embedded-font-woff.expected.json +57 -57
- package/vectors/extreme-aspect-ratios.expected.json +29 -29
- package/vectors/filter-effects.expected.json +33 -33
- package/vectors/flip.expected.json +47 -47
- package/vectors/frame-shapes.expected.json +73 -73
- package/vectors/full-monty-composite.expected.json +96 -96
- package/vectors/golden/exceptions.json +3 -3
- package/vectors/golden/mask-window.web.png +0 -0
- package/vectors/golden/zone-group.web.png +0 -0
- package/vectors/groups-and-parallax.expected.json +90 -90
- package/vectors/image-fill.expected.json +54 -54
- package/vectors/interactive-chained-actions.expected.json +77 -77
- package/vectors/interactive-hover.expected.json +36 -36
- package/vectors/interactive.expected.json +121 -121
- package/vectors/layer-blur.expected.json +48 -48
- package/vectors/layer-grain.expected.json +52 -52
- package/vectors/layer-ordering-zindex.expected.json +62 -62
- package/vectors/legacy-text-chunk.expected.json +29 -29
- package/vectors/mask-window.expected.json +45 -0
- package/vectors/mask-window.oim.png +0 -0
- package/vectors/media-filters.expected.json +50 -50
- package/vectors/multi-container-layout.expected.json +45 -45
- package/vectors/multilang-cjk-rtl.expected.json +30 -30
- package/vectors/nested-groups.expected.json +68 -68
- package/vectors/palettes.expected.json +57 -57
- package/vectors/parallax-infinite.expected.json +39 -39
- package/vectors/pattern-color-roles.expected.json +68 -68
- package/vectors/reedit-english.expected.json +45 -45
- package/vectors/reveal-and-play.expected.json +107 -107
- package/vectors/shadow-effects.expected.json +34 -34
- package/vectors/shape-shadows.expected.json +62 -62
- package/vectors/strokes-and-borders.expected.json +31 -31
- package/vectors/text-runs-precalculated.expected.json +46 -46
- package/vectors/transparent-background.expected.json +30 -30
- package/vectors/typography-styling.expected.json +34 -34
- package/vectors/zone-group.expected.json +46 -0
- package/vectors/zone-group.oim.png +0 -0
package/action-cases.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
[
|
|
2
|
-
{ "name": "show", "actions": [{ "target": "a", "type": "show" }], "current": { "a": false }, "expected": { "visibility": { "a": true }, "texts": {} } },
|
|
3
|
-
{ "name": "hide", "actions": [{ "target": "a", "type": "hide" }], "current": { "a": true }, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
4
|
-
{ "name": "toggle a visible layer", "actions": [{ "target": "a", "type": "toggle" }], "current": { "a": true }, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
5
|
-
{ "name": "toggle a hidden layer", "actions": [{ "target": "a", "type": "toggle" }], "current": { "a": false }, "expected": { "visibility": { "a": true }, "texts": {} } },
|
|
6
|
-
{ "name": "toggle an unknown layer counts it as visible", "actions": [{ "target": "a", "type": "toggle" }], "current": {}, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
7
|
-
{ "name": "setText with a value", "actions": [{ "target": "t", "type": "setText", "value": "Hola" }], "current": {}, "expected": { "visibility": {}, "texts": { "t": "Hola" } } },
|
|
8
|
-
{ "name": "setText without a value clears", "actions": [{ "target": "t", "type": "setText" }], "current": {}, "expected": { "visibility": {}, "texts": { "t": "" } } },
|
|
9
|
-
{ "name": "play changes no visibility", "actions": [{ "target": "i", "type": "play" }], "current": { "i": true }, "expected": { "visibility": {}, "texts": {} } },
|
|
10
|
-
{ "name": "an empty target is skipped", "actions": [{ "target": "", "type": "hide" }], "current": {}, "expected": { "visibility": {}, "texts": {} } },
|
|
11
|
-
{ "name": "chained toggle and hide", "actions": [{ "target": "panel", "type": "toggle" }, { "target": "alerta", "type": "hide" }], "current": { "panel": true, "alerta": true }, "expected": { "visibility": { "panel": false, "alerta": false }, "texts": {} } },
|
|
12
|
-
{ "name": "the last action on a target wins", "actions": [{ "target": "a", "type": "hide" }, { "target": "a", "type": "show" }], "current": { "a": true }, "expected": { "visibility": { "a": true }, "texts": {} } }
|
|
13
|
-
]
|
|
1
|
+
[
|
|
2
|
+
{ "name": "show", "actions": [{ "target": "a", "type": "show" }], "current": { "a": false }, "expected": { "visibility": { "a": true }, "texts": {} } },
|
|
3
|
+
{ "name": "hide", "actions": [{ "target": "a", "type": "hide" }], "current": { "a": true }, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
4
|
+
{ "name": "toggle a visible layer", "actions": [{ "target": "a", "type": "toggle" }], "current": { "a": true }, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
5
|
+
{ "name": "toggle a hidden layer", "actions": [{ "target": "a", "type": "toggle" }], "current": { "a": false }, "expected": { "visibility": { "a": true }, "texts": {} } },
|
|
6
|
+
{ "name": "toggle an unknown layer counts it as visible", "actions": [{ "target": "a", "type": "toggle" }], "current": {}, "expected": { "visibility": { "a": false }, "texts": {} } },
|
|
7
|
+
{ "name": "setText with a value", "actions": [{ "target": "t", "type": "setText", "value": "Hola" }], "current": {}, "expected": { "visibility": {}, "texts": { "t": "Hola" } } },
|
|
8
|
+
{ "name": "setText without a value clears", "actions": [{ "target": "t", "type": "setText" }], "current": {}, "expected": { "visibility": {}, "texts": { "t": "" } } },
|
|
9
|
+
{ "name": "play changes no visibility", "actions": [{ "target": "i", "type": "play" }], "current": { "i": true }, "expected": { "visibility": {}, "texts": {} } },
|
|
10
|
+
{ "name": "an empty target is skipped", "actions": [{ "target": "", "type": "hide" }], "current": {}, "expected": { "visibility": {}, "texts": {} } },
|
|
11
|
+
{ "name": "chained toggle and hide", "actions": [{ "target": "panel", "type": "toggle" }, { "target": "alerta", "type": "hide" }], "current": { "panel": true, "alerta": true }, "expected": { "visibility": { "panel": false, "alerta": false }, "texts": {} } },
|
|
12
|
+
{ "name": "the last action on a target wins", "actions": [{ "target": "a", "type": "hide" }, { "target": "a", "type": "show" }], "current": { "a": true }, "expected": { "visibility": { "a": true }, "texts": {} } }
|
|
13
|
+
]
|