@pixerate/flair 0.13.1 → 0.14.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.
@@ -1,6 +1,6 @@
1
- import { d as VectorControl, c as EffectPreset, E as EffectDefinition } from '../types-B23zI_jp.js';
1
+ import { d as VectorControl, c as EffectPreset, E as EffectDefinition } from '../types-CGsNkP5U.js';
2
2
  import { C as ControlValue, a as ControlDef, b as ControlType } from '../controls-Syr6drzO.js';
3
- import { S as SvgMotion, C as Clock } from '../svg-DNEreR2p.js';
3
+ import { S as SvgMotion, C as Clock } from '../svg-C_TWBtEN.js';
4
4
  import { AnimationEasingPreset, AnimationEasing, AnimationTrack, AnimationKeyframe, cubicBezierAt as cubicBezierAt$1, evaluateEasing as evaluateEasing$1 } from '@pixerate/editor/animation';
5
5
  export { CubicBezierEasing, SpringEasing } from '@pixerate/editor/animation';
6
6
  import { CommandRegistry, CommandSpec } from '@pixerate/editor/commands';
@@ -5,11 +5,11 @@ import {
5
5
  renderVectorEffect,
6
6
  vectorControlIssues,
7
7
  vectorEffectControls
8
- } from "../chunk-L4NFQM5N.js";
8
+ } from "../chunk-KWNFZ5NC.js";
9
9
  import {
10
10
  svgMotionIssues,
11
11
  svgView
12
- } from "../chunk-UJDQJK2O.js";
12
+ } from "../chunk-4RGHZWQC.js";
13
13
  import "../chunk-OHW7UG6D.js";
14
14
  import {
15
15
  BUILTIN_UNIFORMS,
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { C as ControlValue, a as ControlDef } from './controls-Syr6drzO.js';
2
2
  export { c as ControlCheck, b as ControlType, T as TextureSettings, d as checkControlValue, e as coerceControlValue, f as componentCount, g as controlValue, h as describeValue, i as hexToRgb, j as humanise, k as imageUrls, l as isImageUrl, p as parseControls, r as rgbToHex } from './controls-Syr6drzO.js';
3
3
  export { B as BUILTIN_UNIFORMS, C as CompileError, b as CompileResult, a as CompileStatus, c as CompiledShader, F as FrameState, I as ImageLoadError, R as RendererStats, S as SVG_EDGE, d as ShaderCompileError, e as ShaderRenderer, f as ShaderRendererOptions, T as TextureCache, g as TextureSource, V as VERTEX_SOURCE, h as applyTextureSettings, i as compileShader, j as createContext, k as drawFrame, l as formatCompileError, m as isSvgUrl, n as loadImage, p as parseCompileLog, o as preloadImages, r as releaseImages, q as resetGlCaches, s as sizeSvg, w as wrapSource } from './renderer-SNYZu__R.js';
4
- import { C as Clock } from './svg-DNEreR2p.js';
5
- export { A as AnimateCountOptions, D as DataKey, E as EASES, b as EaseName, M as ManualClock, c as SCRAMBLE_MS, d as STEP_MS, e as SVG_PICTURE, f as SvgAnimation, g as SvgBox, h as SvgElementFrame, S as SvgMotion, i as SvgPlayer, j as SvgPlayerOptions, a as SvgTrigger, k as SvgView, l as SvgViewOptions, m as animateCount, n as defaultDataKey, o as formatCount, p as jitter, q as lerpAttr, r as lerpData, s as pageHidden, t as parseSvg, u as realClock, v as stepData, w as stepProgress, x as stepStart, y as svgDuration, z as svgFrame, B as svgMotionIssues, F as svgOpeningTag, G as svgView, H as writtenText } from './svg-DNEreR2p.js';
4
+ import { C as Clock } from './svg-C_TWBtEN.js';
5
+ export { A as AnimateCountOptions, D as DataKey, E as EASES, b as EaseName, M as ManualClock, c as SCRAMBLE_MS, d as STEP_MS, e as SVG_PICTURE, f as SvgAnimation, g as SvgBox, h as SvgElementFrame, S as SvgMotion, i as SvgPlayer, j as SvgPlayerOptions, a as SvgTrigger, k as SvgView, l as SvgViewOptions, m as animateCount, n as defaultDataKey, o as formatCount, p as jitter, q as lerpAttr, r as lerpData, s as pageHidden, t as parseSvg, u as realClock, v as stepData, w as stepProgress, x as stepStart, y as svgDuration, z as svgFrame, B as svgMotionIssues, F as svgOpeningTag, G as svgView, H as writtenText } from './svg-C_TWBtEN.js';
6
6
  export { BoxAlignment, BoxFit, FittedBoxResult, FormatUnitOptions, MorphOptions, StackLayoutOptions, UnitFormat, computeBoxFit, formatUnit, layoutStack, morphPaths, morphSequence, remap, stepVariant } from './vector/index.js';
7
7
 
8
8
  /** Controls a registered thumbnail. */
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  svgOpeningTag,
27
27
  svgView,
28
28
  writtenText
29
- } from "./chunk-UJDQJK2O.js";
29
+ } from "./chunk-4RGHZWQC.js";
30
30
  import {
31
31
  morphPaths,
32
32
  morphSequence
@@ -265,7 +265,10 @@ interface SvgPlayerOptions extends SvgViewOptions {
265
265
  clock?: Clock;
266
266
  /** Start playing at once (default `true`). */
267
267
  autoplay?: boolean;
268
- /** Start again at the end (default `true`). */
268
+ /**
269
+ * Start again at the end (default `true`). When `false` it plays once and
270
+ * stays on the last frame (hidden instead with `hideWhenPaused`).
271
+ */
269
272
  loop?: boolean;
270
273
  /** Loop length in ms (default: the picture's own, see {@link svgDuration}, plus `hold`). */
271
274
  duration?: number;
@@ -1,5 +1,5 @@
1
1
  import { C as ControlValue, a as ControlDef } from './controls-Syr6drzO.js';
2
- import { S as SvgMotion, a as SvgTrigger } from './svg-DNEreR2p.js';
2
+ import { S as SvgMotion, a as SvgTrigger } from './svg-C_TWBtEN.js';
3
3
 
4
4
  /** What an effect is for, used to group the catalog. */
5
5
  type EffectCategory = "gradient" | "organic" | "pattern" | "light" | "space" | "retro" | "image" | "overlay" | "text" | "morph" | "interaction" | "pyrotechnics" | "timewarp" | "melt" | "electric" | "transition" | "loader" | "data" | "icon";
@@ -1,5 +1,5 @@
1
- import { g as SvgBox } from '../svg-DNEreR2p.js';
2
- export { A as AnimateCountOptions, D as DataKey, E as EASES, b as EaseName, c as SCRAMBLE_MS, d as STEP_MS, e as SVG_PICTURE, f as SvgAnimation, h as SvgElementFrame, S as SvgMotion, i as SvgPlayer, j as SvgPlayerOptions, a as SvgTrigger, k as SvgView, l as SvgViewOptions, m as animateCount, n as defaultDataKey, o as formatCount, q as lerpAttr, r as lerpData, t as parseSvg, v as stepData, w as stepProgress, x as stepStart, y as svgDuration, z as svgFrame, B as svgMotionIssues, F as svgOpeningTag, G as svgView, H as writtenText } from '../svg-DNEreR2p.js';
1
+ import { g as SvgBox } from '../svg-C_TWBtEN.js';
2
+ export { A as AnimateCountOptions, D as DataKey, E as EASES, b as EaseName, c as SCRAMBLE_MS, d as STEP_MS, e as SVG_PICTURE, f as SvgAnimation, h as SvgElementFrame, S as SvgMotion, i as SvgPlayer, j as SvgPlayerOptions, a as SvgTrigger, k as SvgView, l as SvgViewOptions, m as animateCount, n as defaultDataKey, o as formatCount, q as lerpAttr, r as lerpData, t as parseSvg, v as stepData, w as stepProgress, x as stepStart, y as svgDuration, z as svgFrame, B as svgMotionIssues, F as svgOpeningTag, G as svgView, H as writtenText } from '../svg-C_TWBtEN.js';
3
3
 
4
4
  /**
5
5
  * Shape morphing: any SVG paths turned into paths with the same structure, so
@@ -26,7 +26,7 @@ import {
26
26
  svgOpeningTag,
27
27
  svgView,
28
28
  writtenText
29
- } from "../chunk-UJDQJK2O.js";
29
+ } from "../chunk-4RGHZWQC.js";
30
30
  import {
31
31
  morphPaths,
32
32
  morphSequence
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/flair",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Web visual effects and motion graphics: WebGL2 shader effects, animated vector effects, a catalog of ready-made effects, and a UI-agnostic, agent-ready effect editor.",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",