clipoox-render 0.3.0 → 0.4.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/server-text/titleRaster.js +23 -4
- package/package.json +1 -1
- package/scripts/render-local.mjs +229 -229
- package/shared/transitionStarterPack.json +355 -0
- package/web/assets/{FxEmbed-D7k1ThAF.js → FxEmbed-CGqGi2Lw.js} +1 -1
- package/web/assets/{MotionEmbed-DFni5IAh.js → MotionEmbed-C3CZ3_y_.js} +1 -1
- package/web/assets/{PluginStore-BrupM_8E.js → PluginStore-DKXZ-jBj.js} +1 -1
- package/web/assets/{ShotComposer-BLztjSKy.js → ShotComposer-DFfaYLoV.js} +4 -4
- package/web/assets/{TemplateEmbed-BbAimhLj.js → TemplateEmbed-C8pXcPsc.js} +1 -1
- package/web/assets/{TimelinePlugins-BI1bE9pX.js → TimelinePlugins-DnkV3i4G.js} +3 -3
- package/web/assets/{TimelineShotFx-CQN3WIfN.js → TimelineShotFx-foiuuogg.js} +2 -2
- package/web/assets/{TransitionEmbed-CmoIrHVr.js → TransitionEmbed-BueDilY0.js} +1 -1
- package/web/assets/{Whiteboard-DMk0unYK.js → Whiteboard-zBsNHh5h.js} +1 -1
- package/web/assets/aerial-z34Nww_T.js +2 -0
- package/web/assets/{agentTools-qOww5RUs.js → agentTools-ALxghYpf.js} +2 -2
- package/web/assets/{analyzerRun-B2FLUp4G.js → analyzerRun-DNwryAlU.js} +1 -1
- package/web/assets/{analyzerSandbox-CJVsEhrg.js → analyzerSandbox-A1oFsCrO.js} +1 -1
- package/web/assets/{api-QBI5GJTZ.js → api-DUp403BK.js} +57 -57
- package/web/assets/auraTrack-BKVZCwNt.js +1 -0
- package/web/assets/breakthrough-Cwt8gEwK.js +2 -0
- package/web/assets/{cameraPresets-4pFeF2YG.js → cameraPresets-DSOPj4oy.js} +1 -1
- package/web/assets/{captionLayout-C67EMVI1.js → captionLayout-EuB59pN_.js} +1 -1
- package/web/assets/clientExport-BL1XMTF0.js +1 -0
- package/web/assets/{depthEstimate-mnXDZMW-.js → depthEstimate-DOvsY8mn.js} +1 -1
- package/web/assets/{directorTools-BOHZjcww.js → directorTools-BkbNYbSq.js} +1 -1
- package/web/assets/{distortFrames-Csuj2jHE.js → distortFrames-Drch0LhT.js} +2 -2
- package/web/assets/{distortGL-BaXfN0IK.js → distortGL-BlmBZKRU.js} +2 -2
- package/web/assets/{editTools-m0VGPmfF.js → editTools-BcGinqHC.js} +1 -1
- package/web/assets/exportEncode-MUwVTI52.js +1 -0
- package/web/assets/{exportGlb-CLfTnbMG.js → exportGlb-SIXFRRJM.js} +1 -1
- package/web/assets/{faceTracker-W0iZSiMe.js → faceTracker-DCbZbLMc.js} +1 -1
- package/web/assets/fightDirector-hlF1JS_z.js +1 -0
- package/web/assets/fightDrama-fHN5EXk3.js +2 -0
- package/web/assets/{frameSink-BGRj7wqY.js → frameSink-BvOXjLuw.js} +3 -3
- package/web/assets/{gpuCompose-CIEoLFem.js → gpuCompose-CNkLwpbZ.js} +1 -1
- package/web/assets/gpuExport-DQB6x4eh.js +194 -0
- package/web/assets/{handMatte-mHxZwLZD.js → handMatte-BD7OE3Zc.js} +1 -1
- package/web/assets/{handTracker-dTVeSUzt.js → handTracker-BumGtRCW.js} +2 -2
- package/web/assets/{index-D7M5t2re.js → index-CuaB7Y0L.js} +1 -1
- package/web/assets/{layer-worker-Cp0pjurp.js → layer-worker-DxPMMKIZ.js} +3 -3
- package/web/assets/library-CyjJ8nGG.js +1 -0
- package/web/assets/{lottieLayer-CDCGeJyv.js → lottieLayer-1ET89OUr.js} +5 -5
- package/web/assets/{lottie_light_canvas-BblLU4nU.js → lottie_light_canvas-DD9pkFL8.js} +1 -1
- package/web/assets/{main-CVRIuDW2.js → main-BKjBWQik.js} +91 -91
- package/web/assets/{main-BQ8IY0WV.css → main-Ca_CVxMz.css} +1 -1
- package/web/assets/mapBake-DLoBt_k5.js +1 -0
- package/web/assets/{maskTrack-Dtv6Jr06.js → maskTrack-C2SJbDGO.js} +1 -1
- package/web/assets/{matteFixRun-BLDH2AjH.js → matteFixRun-BdHKC3m5.js} +1 -1
- package/web/assets/{objectLocate-Cy3IFBSF.js → objectLocate-bZtc5AJo.js} +1 -1
- package/web/assets/{pendingMatte-C2AWApuv.js → pendingMatte-mlyLLZCT.js} +2 -2
- package/web/assets/{personAi-DPUnoymj.js → personAi-CUNQeseG.js} +2 -2
- package/web/assets/plateCamera-_jP1xXnj.js +1 -0
- package/web/assets/{plateCameraMatch-Chk-ZjDi.js → plateCameraMatch-rr0oUwQ2.js} +2 -2
- package/web/assets/{plateFollow-B9_QTgvo.js → plateFollow-BjvtcT8q.js} +2 -2
- package/web/assets/{plateMatte-BiqyI_8x.js → plateMatte-BqyL8cQZ.js} +2 -2
- package/web/assets/{pluginAutomation-5DYldFrb.js → pluginAutomation-Dp188qm7.js} +1 -1
- package/web/assets/{poseTracker-PuI8vWpR.js → poseTracker-DDGDhhMF.js} +1 -1
- package/web/assets/{productTools-B1h5cgyt.js → productTools-CRgI88-O.js} +2 -2
- package/web/assets/remote-Dva2qg58.js +1241 -0
- package/web/assets/{rigTrack-CUt4O67J.js → rigTrack-UYZU4P-e.js} +1 -1
- package/web/assets/{rotoMaskStore-DIi45swK.js → rotoMaskStore-BxyxB2bD.js} +1 -1
- package/web/assets/{rotoMatte-013RKqHu.js → rotoMatte-BdYa8FSB.js} +1 -1
- package/web/assets/{rotoscope-d_TUxa-J.js → rotoscope-DDixNQCt.js} +1 -1
- package/web/assets/{shot-worker-B1iZT6F5.js → shot-worker-D9sZS6bn.js} +1 -1
- package/web/assets/{shotFxAgent-BDfe73TP.js → shotFxAgent-7RQNtEe4.js} +2 -2
- package/web/assets/{skin-GDY3QPkV.js → skin-CVwmK130.js} +1 -1
- package/web/assets/{spark.module-DdwuJ_hb.js → spark.module-B34aiScb.js} +1 -1
- package/web/assets/{spellDuel-DjNN00bv.js → spellDuel-BkweL6pI.js} +2 -2
- package/web/assets/{store-2zneEhhu.js → store-75tQUvPT.js} +1 -1
- package/web/assets/surfaceLight-DhU-zgNL.js +1 -0
- package/web/assets/{surfacePin-zDPmq-hH.js → surfacePin-ObK6QgDm.js} +2 -2
- package/web/assets/textAnimators-nVSz_sZo.js +1 -0
- package/web/assets/{thumb-byAKvhQP.js → thumb-r6dlZprA.js} +1 -1
- package/web/assets/{timeline3d-YIIk_Kn2.js → timeline3d-246tBEJl.js} +2 -2
- package/web/assets/timeline3dExport-T57qnWi9.js +1 -0
- package/web/assets/{timelineComp-B73i_8vD.js → timelineComp-BcewYGR2.js} +1 -1
- package/web/assets/{timelineProps-B2pnudeT.js → timelineProps-CJzzAWWO.js} +1 -1
- package/web/assets/{timelineText-BcL4Pw3C.js → timelineText-BzUhNWPB.js} +1 -1
- package/web/assets/titleArt-B8DVR58F.js +5 -0
- package/web/assets/{titleFrameBudget-Cml-MO53.js → titleFrameBudget-BYRZAQPs.js} +260 -260
- package/web/assets/titleFrames-BVgm601q.js +1 -0
- package/web/assets/{tool-Bt9bclIf.js → tool-CAGU3dUa.js} +1 -1
- package/web/assets/{tools-BXeJbgZJ.js → tools-DVaOkokV.js} +1 -1
- package/web/assets/{toonTools-u7Y9fdEZ.js → toonTools-CfGTR_H1.js} +2 -2
- package/web/assets/{trackAnchor-9MnVHe4S.js → trackAnchor-DzUt1r5Q.js} +1 -1
- package/web/assets/{userFonts-BHduCNtc.js → userFonts-DzY0A4bD.js} +1 -1
- package/web/assets/{vfxAlpha-DpV4rbI-.js → vfxAlpha-DQJOaZ9v.js} +2 -2
- package/web/assets/{vfxBackground-Ddviync5.js → vfxBackground-DiktQFOD.js} +2 -2
- package/web/assets/{videoExport-z5WjM0hw.js → videoExport-Ce0ElSQR.js} +1 -1
- package/web/assets/{views-CsrYzCSR.js → views-V3si1lOz.js} +1 -1
- package/web/assets/weaponDuel-D6sLVGmG.js +1 -0
- package/web/assets/{windowFrames-BQEWQkEs.js → windowFrames-D_2QJCJJ.js} +1 -1
- package/web/layer-worker.html +3 -3
- package/web/assets/aerial-DT_gUtSh.js +0 -2
- package/web/assets/auraTrack-CEs_Q9EP.js +0 -1
- package/web/assets/breakthrough-DvkxvNK9.js +0 -2
- package/web/assets/clientExport-C4VgAJtO.js +0 -1
- package/web/assets/exportEncode-D9OT7_5k.js +0 -1
- package/web/assets/fightDirector-CECPf2iH.js +0 -1
- package/web/assets/fightDrama-CqNoa5XI.js +0 -2
- package/web/assets/gpuExport-uyOAyrhm.js +0 -190
- package/web/assets/library-Dsz_MLyd.js +0 -1
- package/web/assets/mapBake-CNMOKXA7.js +0 -1
- package/web/assets/plateCamera-C96L5GKm.js +0 -1
- package/web/assets/remote-BJdzzFZg.js +0 -1241
- package/web/assets/surfaceLight-B_SYg_f8.js +0 -1
- package/web/assets/textAnimators-Bdt5LWXk.js +0 -1
- package/web/assets/timeline3dExport-CEH1RjNf.js +0 -1
- package/web/assets/titleArt-hb_T45WJ.js +0 -5
- package/web/assets/titleFrames-Dw0PEBdV.js +0 -1
- package/web/assets/weaponDuel-CLLgv5A4.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const REST = { opacity: 1, x: 0, y: 0, scale: 1, scaleX: 1, scaleY: 1, reveal: 1, wipeX: 1, wipeY: 1, brightness: 1, blur: 0, rotate: 0, spread: 0, glitch: 0, flicker: 0, count: 1 };
|
|
2
|
-
const ADDITIVE = ["x", "y", "rotate", "blur", "spread", "glitch", "flicker"];
|
|
1
|
+
const REST = { opacity: 1, x: 0, y: 0, scale: 1, scaleX: 1, scaleY: 1, reveal: 1, wipeX: 1, wipeY: 1, brightness: 1, blur: 0, rotate: 0, spread: 0, glitch: 0, flicker: 0, scatter: 0, pixels: 0, count: 1 };
|
|
2
|
+
const ADDITIVE = ["x", "y", "rotate", "blur", "spread", "glitch", "flicker", "scatter", "pixels"];
|
|
3
3
|
const ease = {
|
|
4
4
|
linear: (t) => t,
|
|
5
5
|
easeOutCubic: (t) => 1 - (1 - t) ** 3,
|
|
@@ -664,6 +664,21 @@ const noise = (n) => {
|
|
|
664
664
|
const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;
|
|
665
665
|
return x - Math.floor(x);
|
|
666
666
|
};
|
|
667
|
+
const PIXEL_RED = "#ff2a1f";
|
|
668
|
+
function pixelBlocks(ctx, t, x, y, size, amount, clock) {
|
|
669
|
+
const w = Math.max(size * 0.3, ctx.measureText(t).width), tick = Math.floor(clock * 14), n = Math.round(2 + amount * 8), a = ctx.globalAlpha;
|
|
670
|
+
ctx.save();
|
|
671
|
+
ctx.shadowColor = "transparent";
|
|
672
|
+
ctx.filter = "none";
|
|
673
|
+
for (let k = 0; k < n; k++) {
|
|
674
|
+
const r = (j) => noise(k * 13.71 + j * 3.17 + x * 0.0137 + tick * 0.731);
|
|
675
|
+
const b = Math.round(size * (0.07 + 0.2 * r(1))), bx = x - size * 0.25 + (w + size * 0.5) * r(2) - b / 2, by = y - size * 1.05 + size * 1.25 * r(3) - b / 2;
|
|
676
|
+
ctx.globalAlpha = a * Math.min(1, amount * 1.6) * (0.65 + 0.35 * r(4));
|
|
677
|
+
ctx.fillStyle = k % 3 === 2 ? "#ffffff" : PIXEL_RED;
|
|
678
|
+
ctx.fillRect(Math.round(bx), Math.round(by), b, b);
|
|
679
|
+
}
|
|
680
|
+
ctx.restore();
|
|
681
|
+
}
|
|
667
682
|
function layoutDesigned(ctx, title, design, text) {
|
|
668
683
|
const { fontSize, placement, fontFamily = "Arial", align = "center" } = title;
|
|
669
684
|
const ink = design.stack === "ink";
|
|
@@ -978,7 +993,7 @@ function drawDesignedTitle(ctx, title, design, frame) {
|
|
|
978
993
|
if (typeof fill === "string") return darken(resolve(fill), brightness);
|
|
979
994
|
return gradientIn(ctx, fill, left, top, width, h, (p) => darken(resolve(p), brightness));
|
|
980
995
|
};
|
|
981
|
-
let glitch = 0;
|
|
996
|
+
let glitch = 0, pixels = 0;
|
|
982
997
|
const applyPose = (p, cx, cy, halfH, size, left = cx - 4e3, width = 8e3) => {
|
|
983
998
|
ctx.globalAlpha *= Math.min(1, Math.max(0, p.opacity));
|
|
984
999
|
if (p.flicker > 0 && noise(Math.floor(clock * 24) + cx * 0.01) < p.flicker) ctx.globalAlpha = 0;
|
|
@@ -1000,7 +1015,9 @@ function drawDesignedTitle(ctx, title, design, frame) {
|
|
|
1000
1015
|
}
|
|
1001
1016
|
const jitter = p.glitch > 0 ? p.glitch * size * 0.35 * (noise(Math.floor(clock * 18) + cy * 0.01) * 2 - 1) : 0;
|
|
1002
1017
|
glitch = Math.max(glitch, p.glitch);
|
|
1003
|
-
|
|
1018
|
+
pixels = Math.max(pixels, p.pixels);
|
|
1019
|
+
const sx = p.scatter > 0 ? p.scatter * size * (noise(cx * 0.0173 + cy * 71e-4 + 1.3) * 2 - 1) : 0, sy = p.scatter > 0 ? p.scatter * size * 0.7 * (noise(cx * 0.0119 + cy * 0.0153 + 7.9) * 2 - 1) : 0;
|
|
1020
|
+
ctx.translate(cx + p.x * size + jitter + sx, cy + p.y * size + sy);
|
|
1004
1021
|
ctx.rotate(p.rotate * Math.PI / 180);
|
|
1005
1022
|
ctx.scale(p.scale * p.scaleX, p.scale * p.scaleY);
|
|
1006
1023
|
ctx.translate(-cx, -cy);
|
|
@@ -1101,6 +1118,7 @@ function drawDesignedTitle(ctx, title, design, frame) {
|
|
|
1101
1118
|
}
|
|
1102
1119
|
const lp = pose("line", r.paragraph, r.paragraph, paragraphs);
|
|
1103
1120
|
glitch = 0;
|
|
1121
|
+
pixels = 0;
|
|
1104
1122
|
const lineBright = applyPose(lp, cx, r.center, heights[ri] / 2 + r.size * 0.1, r.size, r.left, r.width);
|
|
1105
1123
|
const moved = (rect) => !layer.motion || applyLayerMotion(ctx, layerPose(layer.motion, clock - (layer.motion.stagger ?? 0) * order), rect, layer.motion.origin, r.size);
|
|
1106
1124
|
if (layer.type === "box") {
|
|
@@ -1181,6 +1199,7 @@ function drawDesignedTitle(ctx, title, design, frame) {
|
|
|
1181
1199
|
const inkBottom = layer.reflection ? baseline(r) + oy + ctx.measureText(shown).actualBoundingBoxDescent : 0;
|
|
1182
1200
|
const draw2 = (t, x, bright, over) => {
|
|
1183
1201
|
const y = baseline(r) + oy, f = over ?? ownFill;
|
|
1202
|
+
if (pixels > 0.02) pixelBlocks(ctx, t, x + ox, y, r.size, pixels, clock);
|
|
1184
1203
|
if (glitch > 0.02) {
|
|
1185
1204
|
const a = ctx.globalAlpha, d = glitch * r.size * 0.08;
|
|
1186
1205
|
ctx.globalAlpha = a * 0.85;
|