@polotno/schema 0.9.1 → 0.11.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.
package/README.md CHANGED
@@ -63,6 +63,7 @@ oldest format, not the newest.
63
63
  | 2 | Filter `intensity` moved from `-100..100` to `-1..1`. |
64
64
  | 3 | Text backgrounds render as per-line polygons; pre-v3 rich text is stamped `legacyBackground` to keep the old full rect. |
65
65
  | 4 | Video time anchoring changed. Marker only — no document transform. |
66
+ | 5 | `move` animations travel a share of the page's shorter side, not a fixed 200px; saved `strength` is rescaled to match. |
66
67
 
67
68
  Steps 1 and 3 apply only to the modern text renderers, which every converter
68
69
  uses.
package/lib/defaults.d.ts CHANGED
@@ -82,3 +82,6 @@ export declare const MIN_FONT_SIZE = 1;
82
82
  export declare const clampFontSize: <T extends number | undefined>(size: T) => T;
83
83
  export declare const BLEND_MODES: readonly ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
84
84
  export declare const GROUP_BLEND_MODES: readonly ["pass-through", "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
85
+ /** The page size, on both sides, of a design that names none. */
86
+ export declare const DESIGN_SIZE = 1080;
87
+ export declare const ANIMATION_EASINGS: readonly ["linear", "easeIn", "easeOut", "easeInOut", "backIn", "backOut", "backInOut"];
package/lib/defaults.js CHANGED
@@ -148,3 +148,18 @@ export const BLEND_MODES = [
148
148
  ];
149
149
  // A group's default: its children blend through it. Any other mode isolates it.
150
150
  export const GROUP_BLEND_MODES = ['pass-through', ...BLEND_MODES];
151
+ /** The page size, on both sides, of a design that names none. */
152
+ export const DESIGN_SIZE = 1080;
153
+ // The named timing curves an animation's `easing` may hold. The field itself
154
+ // stays a plain string (see the schema), so a curve added here later never
155
+ // crashes an older SDK: it reads an unknown name as missing, which plays
156
+ // linear. A preset's recommended curve is `@polotno/core/easing`'s.
157
+ export const ANIMATION_EASINGS = [
158
+ 'linear',
159
+ 'easeIn',
160
+ 'easeOut',
161
+ 'easeInOut',
162
+ 'backIn',
163
+ 'backOut',
164
+ 'backInOut',
165
+ ];