@oim-media/core 1.32.0 → 1.32.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.
- package/README.md +1 -1
- package/dist/compatibility.d.ts +1 -1
- package/dist/compatibility.js +2 -1
- package/dist/v2/upgrade/geometry.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ URLs only) and `@oim-media/core/generative` and `@oim-media/core/generative/cata
|
|
|
26
26
|
|
|
27
27
|
- `OimMetadataSchema`, `OvmMetadataSchema`, `OIMOrOVMMetadata`: Zod schemas of the
|
|
28
28
|
metadata. Types `OIMMetadata`, `OVMMetadata`, `Slot`, `TextMark`, `Reveal`, ...
|
|
29
|
-
- `CONTRACT_VERSION`: the contract version this build implements (`"1.32.
|
|
29
|
+
- `CONTRACT_VERSION`: the contract version this build implements (`"1.32.1"`).
|
|
30
30
|
- `BASE_CONTRACT_VERSION`, `PLAYER_CAPABILITIES`, `VERSION_BY_CAPABILITY`, `minVersionFor`.
|
|
31
31
|
- `MAX_SLOTS`, `MAX_MARKS`, `MARK_NAME`, `PALETTE_NAME_PATTERN`, `CSS_GRADIENT_PATTERN`.
|
|
32
32
|
|
package/dist/compatibility.d.ts
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* the format can change without the player being touched. Tying both numbers
|
|
42
42
|
* together would make an internal fix look like a format break.
|
|
43
43
|
*/
|
|
44
|
-
export declare const CONTRACT_VERSION = "1.32.
|
|
44
|
+
export declare const CONTRACT_VERSION = "1.32.1";
|
|
45
45
|
/**
|
|
46
46
|
* The first version of the format. Whatever requires nothing more requires this.
|
|
47
47
|
*
|
package/dist/compatibility.js
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
* the format can change without the player being touched. Tying both numbers
|
|
42
42
|
* together would make an internal fix look like a format break.
|
|
43
43
|
*/
|
|
44
|
-
export const CONTRACT_VERSION = "1.32.
|
|
44
|
+
export const CONTRACT_VERSION = "1.32.1";
|
|
45
|
+
// 1.32.1: an SVG icon with a gradient, pattern or generative fill keeps its paths (upgrade falls back to svgRawXml) and the player cuts that fill to them; no format change.
|
|
45
46
|
// 1.32.0: additive, no existing file changes: a mask takes any frame shape and a window frame takes the fill* paints; a filter takes a shape (geoShape) and a rounded clip; the player draws duotone in sRGB and no longer offsets window frames and filters vertically; mask silhouettes come from the shared catalogue (one changed-pixel exception, see CHANGELOG).
|
|
46
47
|
// 1.31.0: no format change; the 2.0 scene painter paints blur, shadow, glow and backdrop effects.
|
|
47
48
|
// 1.30.2: no format change; 2.0 canvas colour, drawings and icon paint, and text centred on its box despite the italic room.
|
|
@@ -97,6 +97,11 @@ function shapeGeometry(ctx, slot, media) {
|
|
|
97
97
|
const parsed = svgToPaths(xml);
|
|
98
98
|
if (parsed.ok)
|
|
99
99
|
return { kind: "paths", ...parsed.value };
|
|
100
|
+
// The editor bakes a gradient or pattern fill into the content (<defs>, url()); the original
|
|
101
|
+
// drawing is still svgRawXml, and the fill travels as the layer's own.
|
|
102
|
+
const original = xml !== rawXml && typeof rawXml === "string" && rawXml ? svgToPaths(rawXml) : undefined;
|
|
103
|
+
if (original?.ok)
|
|
104
|
+
return { kind: "paths", ...original.value };
|
|
100
105
|
ctx.note(`style.svgRawXml: ${parsed.reason}`);
|
|
101
106
|
return { kind: "rect" };
|
|
102
107
|
}
|
package/package.json
CHANGED