@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.
- package/dist/captions/index.cjs +559 -0
- package/dist/captions/index.cjs.map +1 -0
- package/dist/captions/index.d.cts +184 -0
- package/dist/captions/index.d.ts +184 -0
- package/dist/captions/index.js +35 -0
- package/dist/captions/index.js.map +1 -0
- package/dist/{chunk-ZV3RQAUJ.js → chunk-3AVGIISI.js} +175 -11
- package/dist/chunk-3AVGIISI.js.map +1 -0
- package/dist/{chunk-YBOYDQU5.js → chunk-4AT7MAXU.js} +9 -3
- package/dist/chunk-4AT7MAXU.js.map +1 -0
- package/dist/chunk-5DNPTBGA.js +520 -0
- package/dist/chunk-5DNPTBGA.js.map +1 -0
- package/dist/{chunk-V5VSY64D.js → chunk-IZH6P7WL.js} +2 -2
- package/dist/{index-Qc3rcMrW.d.ts → index-BRT37RMX.d.ts} +21 -6
- package/dist/{index-9XU-qEO-.d.cts → index-Nn5el7W0.d.cts} +21 -6
- package/dist/index.cjs +717 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -48
- package/dist/index.d.ts +56 -48
- package/dist/index.js +55 -19
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +179 -11
- package/dist/rendering/index.cjs.map +1 -1
- package/dist/rendering/index.d.cts +1 -1
- package/dist/rendering/index.d.ts +1 -1
- package/dist/rendering/index.js +2 -2
- package/dist/textEffects/index.cjs +8 -2
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-YBOYDQU5.js.map +0 -1
- package/dist/chunk-ZV3RQAUJ.js.map +0 -1
- /package/dist/{chunk-V5VSY64D.js.map → chunk-IZH6P7WL.js.map} +0 -0
|
@@ -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.
|
|
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
|
-
|
|
110
|
-
|
|
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
|
|
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 };
|