@clypra-studio/engine 1.10.2 → 2.2.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.
@@ -81,7 +81,7 @@ declare function getRenderCapabilities(plan: RenderPlan, target: RenderTarget):
81
81
 
82
82
  declare const TEXT_TEMPLATE_KIND: "text-template";
83
83
  declare const TEXT_TEMPLATE_SCHEMA_VERSION: 4;
84
- declare const TEXT_TEMPLATE_RENDERER_VERSION: "1.5.0";
84
+ declare const TEXT_TEMPLATE_RENDERER_VERSION: "1.6.0";
85
85
  type TemplateControlType = "text" | "color" | "number" | "boolean" | "enum" | "font" | "media";
86
86
  interface TemplateControlOption {
87
87
  value: string;
@@ -96,6 +96,21 @@ interface TemplateControlConstraints {
96
96
  options?: TemplateControlOption[];
97
97
  allowedMimeTypes?: string[];
98
98
  }
99
+ interface TemplateControlLinearTransform {
100
+ kind: "linear";
101
+ scale: number;
102
+ offset: number;
103
+ }
104
+ interface TemplateControlEnumMapTransform {
105
+ kind: "enumMap";
106
+ values: Record<string, string | number | boolean | null>;
107
+ }
108
+ type TemplateControlTransform = TemplateControlLinearTransform | TemplateControlEnumMapTransform;
109
+ interface TemplateControlTarget {
110
+ nodeId: string;
111
+ propertyPath: string;
112
+ transform?: TemplateControlTransform;
113
+ }
99
114
  interface TemplateControl {
100
115
  id: string;
101
116
  label: string;
@@ -105,10 +120,10 @@ interface TemplateControl {
105
120
  required?: boolean;
106
121
  defaultValue: string | number | boolean | null;
107
122
  constraints?: TemplateControlConstraints;
108
- target: {
109
- nodeId: string;
110
- propertyPath: string;
111
- };
123
+ /** Required primary target retained for compatibility with existing artifacts. */
124
+ target: Omit<TemplateControlTarget, "transform">;
125
+ /** Additional node targets are applied after the primary target, in order. */
126
+ additionalTargets?: TemplateControlTarget[];
112
127
  }
113
128
  interface TemplateProtectedRegion {
114
129
  start: number;
@@ -780,4 +795,4 @@ type CanonicalRenderInput = {
780
795
  /** Extensible capability registry for all package-owned render semantics. */
781
796
  declare function renderCanonicalToCanvas(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, input: CanonicalRenderInput): CanonicalRenderResult;
782
797
 
783
- export { type TemplateNodeAnimation as $, TEXT_TEMPLATE_KIND as A, type BubbleAppearance as B, type CompiledTextTemplate as C, TEXT_TEMPLATE_RENDERER_VERSION as D, type EvaluatedTemplateScene as E, type FreeformBubbleDefinition as F, TEXT_TEMPLATE_SCHEMA_VERSION as G, type TemplateAssetRef as H, type TemplateBackgroundPanel as I, type TemplateCapabilityReport as J, type TemplateContainerNode as K, type TemplateContainerNodeStyle as L, type TemplateControl as M, type TemplateControlConstraints as N, type TemplateControlOption as O, type ParametricBubbleDefinition as P, type TemplateControlType as Q, type RenderPlan as R, type SceneDocumentV2 as S, type TextTemplateArtifact as T, type TemplateDependencyManifest as U, type TemplateDurationPolicy as V, type TemplateFontRef as W, type TemplateImageNode as X, type TemplateLayerV2 as Y, type TemplateMetadata as Z, type TemplateNode as _, type ResolveTemplateControlValuesOptions as a, type TemplatePreviewArtifacts as a0, type TemplatePropertyKeyframes as a1, type TemplateProtectedRegion as a2, type TemplateRenderTarget as a3, type TemplateRevision as a4, type TemplateShapeNode as a5, type TemplateShapeNodeStyle as a6, type TemplateStyleRef as a7, type TemplateTextNode as a8, type TemplateTextNodeStyle as a9, evaluateTextTemplate as aA, getRenderCapabilities as aB, getTextTemplateControls as aC, normalizeTextEffect as aD, normalizeTextTemplate as aE, pseudoNoise as aF, renderBubbleAssetDefinition as aG, renderBubbleBackground as aH, renderBubblePresetBackground as aI, renderCanonicalToCanvas as aJ, renderTextEffectToCanvas as aK, renderTextTemplateToCanvas as aL, resolveBubbleLayout as aM, resolveTemplateFontFamily as aN, resolveTextTemplateArtifact as aO, validateBubbleAssetDefinition as aP, type TemplateTimelineMarker as aa, type TemplateTiming as ab, type TextBubbleCategory as ac, type TextBubbleLayout as ad, type TextBubblePadding as ae, type TextBubblePreset as af, type TextEffectRenderInput as ag, type TextTemplateCanvas as ah, type TextTemplateClip as ai, type TextTemplateDocument as aj, type TextTemplateDocumentV2 as ak, type TextTemplateFlexLayout as al, type TextTemplateRenderInput as am, canonicalContentHash as an, canonicalizeSceneDocument as ao, compileBubblePath as ap, compileBubbleSvg as aq, createBubbleAssetDefinition as ar, createFreeformBubbleAssetDefinition as as, drawChalkSpeechBubble as at, drawComicBurst as au, drawRibbonBanner as av, drawSpeechBubble as aw, drawThoughtCloud as ax, drawTornPaper as ay, evaluateTextEffect as az, type TemplateCustomization as b, type TemplateRenderContext as c, type BubbleAssetDefinition as d, type BubblePathCommand as e, type BubbleRenderMode as f, type BubbleRenderOptions as g, type BubbleShape as h, type BubbleTailPosition as i, type BubbleTailSide as j, type BubbleTexture as k, CANONICAL_RENDERER_VERSION as l, CANONICAL_SCHEMA_VERSION as m, type CanonicalRenderContext as n, type CanonicalRenderInput as o, type CanonicalRenderResult as p, type CapabilityReport as q, type CapabilityStatus as r, type CompiledTemplateRenderLayer as s, type PublishedRevision as t, type RenderCapability as u, type RenderDiagnostic as v, type RenderDiagnostics as w, type RenderEnvironment as x, type RenderIdentity as y, type RenderTarget as z };
798
+ export { type TemplateImageNode as $, TEXT_TEMPLATE_KIND as A, type BubbleAppearance as B, type CompiledTextTemplate as C, TEXT_TEMPLATE_RENDERER_VERSION as D, type EvaluatedTemplateScene as E, type FreeformBubbleDefinition as F, TEXT_TEMPLATE_SCHEMA_VERSION as G, type TemplateAssetRef as H, type TemplateBackgroundPanel as I, type TemplateCapabilityReport as J, type TemplateContainerNode as K, type TemplateContainerNodeStyle as L, type TemplateControl as M, type TemplateControlConstraints as N, type TemplateControlEnumMapTransform as O, type ParametricBubbleDefinition as P, type TemplateControlLinearTransform as Q, type RenderPlan as R, type SceneDocumentV2 as S, type TextTemplateArtifact as T, type TemplateControlOption as U, type TemplateControlTarget as V, type TemplateControlTransform as W, type TemplateControlType as X, type TemplateDependencyManifest as Y, type TemplateDurationPolicy as Z, type TemplateFontRef as _, type ResolveTemplateControlValuesOptions as a, type TemplateLayerV2 as a0, type TemplateMetadata as a1, type TemplateNode as a2, type TemplateNodeAnimation as a3, type TemplatePreviewArtifacts as a4, type TemplatePropertyKeyframes as a5, type TemplateProtectedRegion as a6, type TemplateRenderTarget as a7, type TemplateRevision as a8, type TemplateShapeNode as a9, drawSpeechBubble as aA, drawThoughtCloud as aB, drawTornPaper as aC, evaluateTextEffect as aD, evaluateTextTemplate as aE, getRenderCapabilities as aF, getTextTemplateControls as aG, normalizeTextEffect as aH, normalizeTextTemplate as aI, pseudoNoise as aJ, renderBubbleAssetDefinition as aK, renderBubbleBackground as aL, renderBubblePresetBackground as aM, renderCanonicalToCanvas as aN, renderTextEffectToCanvas as aO, renderTextTemplateToCanvas as aP, resolveBubbleLayout as aQ, resolveTemplateFontFamily as aR, resolveTextTemplateArtifact as aS, validateBubbleAssetDefinition as aT, type TemplateShapeNodeStyle as aa, type TemplateStyleRef as ab, type TemplateTextNode as ac, type TemplateTextNodeStyle as ad, type TemplateTimelineMarker as ae, type TemplateTiming as af, type TextBubbleCategory as ag, type TextBubbleLayout as ah, type TextBubblePadding as ai, type TextBubblePreset as aj, type TextEffectRenderInput as ak, type TextTemplateCanvas as al, type TextTemplateClip as am, type TextTemplateDocument as an, type TextTemplateDocumentV2 as ao, type TextTemplateFlexLayout as ap, type TextTemplateRenderInput as aq, canonicalContentHash as ar, canonicalizeSceneDocument as as, compileBubblePath as at, compileBubbleSvg as au, createBubbleAssetDefinition as av, createFreeformBubbleAssetDefinition as aw, drawChalkSpeechBubble as ax, drawComicBurst as ay, drawRibbonBanner as az, type TemplateCustomization as b, type TemplateRenderContext as c, type BubbleAssetDefinition as d, type BubblePathCommand as e, type BubbleRenderMode as f, type BubbleRenderOptions as g, type BubbleShape as h, type BubbleTailPosition as i, type BubbleTailSide as j, type BubbleTexture as k, CANONICAL_RENDERER_VERSION as l, CANONICAL_SCHEMA_VERSION as m, type CanonicalRenderContext as n, type CanonicalRenderInput as o, type CanonicalRenderResult as p, type CapabilityReport as q, type CapabilityStatus as r, type CompiledTemplateRenderLayer as s, type PublishedRevision as t, type RenderCapability as u, type RenderDiagnostic as v, type RenderDiagnostics as w, type RenderEnvironment as x, type RenderIdentity as y, type RenderTarget as z };