@clypra-studio/engine 1.6.0 → 1.7.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/{chunk-V5D5SJPO.js → chunk-7VLGHWCA.js} +117 -5
- package/dist/chunk-7VLGHWCA.js.map +1 -0
- package/dist/{index-QSvA1MMy.d.ts → index-9ozUyd9c.d.ts} +1 -1
- package/dist/{index-DKJxLj6P.d.cts → index-CHLTQy2v.d.cts} +1 -1
- package/dist/{index-DbojK0dC.d.ts → index-CYeaxi3E.d.cts} +45 -2
- package/dist/{index-l2Qgw6Dt.d.cts → index-_pgmsrBj.d.ts} +45 -2
- package/dist/index.cjs +123 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -53
- package/dist/index.d.ts +100 -53
- package/dist/index.js +34 -26
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +70 -4
- package/dist/rendering/index.cjs.map +1 -1
- package/dist/rendering/index.d.cts +2 -2
- package/dist/rendering/index.d.ts +2 -2
- package/dist/rendering/index.js +1 -1
- package/dist/textEffects/index.d.cts +2 -2
- package/dist/textEffects/index.d.ts +2 -2
- package/dist/{types-CoshNXmU.d.cts → types-BsF33bC4.d.cts} +38 -0
- package/dist/{types-CoshNXmU.d.ts → types-BsF33bC4.d.ts} +38 -0
- package/package.json +1 -1
- package/dist/chunk-V5D5SJPO.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FontLoader,
|
|
3
|
+
checkFontVariant,
|
|
4
|
+
ensureFontsLoaded,
|
|
5
|
+
getFontLoader,
|
|
6
|
+
initializeFontSystem,
|
|
7
|
+
injectFontVariantRules,
|
|
8
|
+
resetFontLoader
|
|
9
|
+
} from "./chunk-NG4F55V7.js";
|
|
1
10
|
import {
|
|
2
11
|
CANONICAL_RENDERER_VERSION,
|
|
3
12
|
CANONICAL_SCHEMA_VERSION,
|
|
@@ -30,21 +39,13 @@ import {
|
|
|
30
39
|
renderCanonicalToCanvas,
|
|
31
40
|
renderTextEffectToCanvas,
|
|
32
41
|
renderTextTemplateToCanvas,
|
|
42
|
+
resolveTemplateControlValues,
|
|
33
43
|
resolveTemplateFontFamily,
|
|
34
44
|
resolveTextTemplateArtifact,
|
|
35
45
|
solveSpring,
|
|
36
46
|
splitTextContent,
|
|
37
47
|
validateTextTemplateArtifact
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
FontLoader,
|
|
41
|
-
checkFontVariant,
|
|
42
|
-
ensureFontsLoaded,
|
|
43
|
-
getFontLoader,
|
|
44
|
-
initializeFontSystem,
|
|
45
|
-
injectFontVariantRules,
|
|
46
|
-
resetFontLoader
|
|
47
|
-
} from "./chunk-NG4F55V7.js";
|
|
48
|
+
} from "./chunk-7VLGHWCA.js";
|
|
48
49
|
import {
|
|
49
50
|
COMPOSITION_PRESETS,
|
|
50
51
|
CanvasDevice,
|
|
@@ -106,6 +107,22 @@ import {
|
|
|
106
107
|
textEffectConfigToScene,
|
|
107
108
|
wrapTextToWidth
|
|
108
109
|
} from "./chunk-7ORA5BPW.js";
|
|
110
|
+
import {
|
|
111
|
+
ALL_TRANSITIONS,
|
|
112
|
+
TRANSITION_CATEGORIES,
|
|
113
|
+
TRANSITION_PRESETS,
|
|
114
|
+
TransitionRenderer,
|
|
115
|
+
getAllTransitionTags,
|
|
116
|
+
getAllTransitions,
|
|
117
|
+
getRecommendedDuration,
|
|
118
|
+
getTransitionById,
|
|
119
|
+
getTransitionByRenderer,
|
|
120
|
+
getTransitionCategories,
|
|
121
|
+
getTransitionCountByCategory,
|
|
122
|
+
getTransitionsByCategory,
|
|
123
|
+
getTransitionsByTags,
|
|
124
|
+
searchTransitions
|
|
125
|
+
} from "./chunk-PU3Q4QI7.js";
|
|
109
126
|
import {
|
|
110
127
|
EFFECTS_REGISTRY,
|
|
111
128
|
EffectEngine,
|
|
@@ -132,22 +149,6 @@ import {
|
|
|
132
149
|
searchEffectsForApi,
|
|
133
150
|
withContext
|
|
134
151
|
} from "./chunk-SH7HOGVX.js";
|
|
135
|
-
import {
|
|
136
|
-
ALL_TRANSITIONS,
|
|
137
|
-
TRANSITION_CATEGORIES,
|
|
138
|
-
TRANSITION_PRESETS,
|
|
139
|
-
TransitionRenderer,
|
|
140
|
-
getAllTransitionTags,
|
|
141
|
-
getAllTransitions,
|
|
142
|
-
getRecommendedDuration,
|
|
143
|
-
getTransitionById,
|
|
144
|
-
getTransitionByRenderer,
|
|
145
|
-
getTransitionCategories,
|
|
146
|
-
getTransitionCountByCategory,
|
|
147
|
-
getTransitionsByCategory,
|
|
148
|
-
getTransitionsByTags,
|
|
149
|
-
searchTransitions
|
|
150
|
-
} from "./chunk-PU3Q4QI7.js";
|
|
151
152
|
import "./chunk-PZ5AY32C.js";
|
|
152
153
|
|
|
153
154
|
// src/validation.ts
|
|
@@ -291,6 +292,12 @@ var BoundingBoxSchema = z.object({
|
|
|
291
292
|
mode: z.enum(["ink", "panel"]).optional()
|
|
292
293
|
});
|
|
293
294
|
var EffectFullDefinitionSchema = EffectIndexItemSchema.extend({
|
|
295
|
+
schemaVersion: z.number().optional(),
|
|
296
|
+
revisionId: z.string().optional(),
|
|
297
|
+
contentHash: z.string().optional(),
|
|
298
|
+
rendererVersion: z.string().optional(),
|
|
299
|
+
revision: z.record(z.string(), z.unknown()).optional(),
|
|
300
|
+
scene: z.any().optional(),
|
|
294
301
|
version: z.string().optional(),
|
|
295
302
|
description: z.string(),
|
|
296
303
|
tags: z.array(z.string()),
|
|
@@ -17622,6 +17629,7 @@ export {
|
|
|
17622
17629
|
resolveMediaLayout,
|
|
17623
17630
|
resolveNodeForBreakpoint,
|
|
17624
17631
|
resolveSpatialConstraints,
|
|
17632
|
+
resolveTemplateControlValues,
|
|
17625
17633
|
resolveTemplateFontFamily,
|
|
17626
17634
|
resolveTextTemplateArtifact,
|
|
17627
17635
|
restoreLetterSpacing,
|