clipoox-render 0.2.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.
Files changed (137) hide show
  1. package/dist/server-text/titleRaster.js +1413 -0
  2. package/package.json +5 -3
  3. package/scripts/render-local.mjs +1514 -1379
  4. package/shared/transitionStarterPack.json +616 -0
  5. package/web/assets/{FxEmbed-BymBArNa.js → FxEmbed-CGqGi2Lw.js} +1 -1
  6. package/web/assets/{GLTFLoader-Dy6SrZg8.js → GLTFLoader-BHWu1lKg.js} +1 -1
  7. package/web/assets/{MotionEmbed-PmXWSWe5.js → MotionEmbed-C3CZ3_y_.js} +1 -1
  8. package/web/assets/PluginStore-DKXZ-jBj.js +3 -0
  9. package/web/assets/{ShotComposer-Dprx-Yi7.js → ShotComposer-DFfaYLoV.js} +4 -4
  10. package/web/assets/TemplateEmbed-C8pXcPsc.js +2 -0
  11. package/web/assets/TimelinePlugins-DYarX9RK.css +1 -0
  12. package/web/assets/TimelinePlugins-DnkV3i4G.js +5 -0
  13. package/web/assets/TimelineShotFx-foiuuogg.js +2 -0
  14. package/web/assets/TransitionEmbed-BueDilY0.js +1 -0
  15. package/web/assets/{Whiteboard-DybaKCdo.js → Whiteboard-zBsNHh5h.js} +3 -3
  16. package/web/assets/aerial-z34Nww_T.js +2 -0
  17. package/web/assets/{agentTools-CxZqRLeR.js → agentTools-ALxghYpf.js} +2 -2
  18. package/web/assets/analyzerRun-DNwryAlU.js +1 -0
  19. package/web/assets/{analyzerSandbox-DO5ZTv5q.js → analyzerSandbox-A1oFsCrO.js} +2 -2
  20. package/web/assets/{api-BsKbf3l3.js → api-DUp403BK.js} +158 -158
  21. package/web/assets/auraTrack-BKVZCwNt.js +1 -0
  22. package/web/assets/breakthrough-Cwt8gEwK.js +2 -0
  23. package/web/assets/{cameraPresets-B234aNzE.js → cameraPresets-DSOPj4oy.js} +1 -1
  24. package/web/assets/{captionLayout-CNgb471H.js → captionLayout-EuB59pN_.js} +1 -1
  25. package/web/assets/clientExport-BL1XMTF0.js +1 -0
  26. package/web/assets/depthEstimate-DOvsY8mn.js +1 -0
  27. package/web/assets/{directorTools-BqFcShgT.js → directorTools-BkbNYbSq.js} +1 -1
  28. package/web/assets/{distortFrames-D3TQNcJA.js → distortFrames-Drch0LhT.js} +2 -2
  29. package/web/assets/{distortGL-BklPDXPq.js → distortGL-BlmBZKRU.js} +2 -2
  30. package/web/assets/{editTools-BQlG5WB_.js → editTools-BcGinqHC.js} +1 -1
  31. package/web/assets/{exportEncode-CaKEPgsy.js → exportEncode-MUwVTI52.js} +1 -1
  32. package/web/assets/{exportGlb-DstxwzH5.js → exportGlb-SIXFRRJM.js} +1 -1
  33. package/web/assets/faceTracker-DCbZbLMc.js +1 -0
  34. package/web/assets/fightDirector-hlF1JS_z.js +1 -0
  35. package/web/assets/fightDrama-fHN5EXk3.js +2 -0
  36. package/web/assets/{frameSink-Dj71jCRb.js → frameSink-BvOXjLuw.js} +3 -3
  37. package/web/assets/{gpuCompose-DIxBHlTa.js → gpuCompose-CNkLwpbZ.js} +1 -1
  38. package/web/assets/gpuExport-DQB6x4eh.js +194 -0
  39. package/web/assets/handMatte-BD7OE3Zc.js +1 -0
  40. package/web/assets/handTracker-BumGtRCW.js +2 -0
  41. package/web/assets/{index-CZn97Ygs.js → index-CuaB7Y0L.js} +1 -1
  42. package/web/assets/layer-worker-DxPMMKIZ.js +5 -0
  43. package/web/assets/library-CyjJ8nGG.js +1 -0
  44. package/web/assets/{lottieLayer-CfUPParC.js → lottieLayer-1ET89OUr.js} +5 -5
  45. package/web/assets/{lottie_light_canvas-7iv3btPX.js → lottie_light_canvas-DD9pkFL8.js} +1 -1
  46. package/web/assets/main-BKjBWQik.js +309 -0
  47. package/web/assets/{main-BPmr0TOL.css → main-Ca_CVxMz.css} +1 -1
  48. package/web/assets/mapBake-DLoBt_k5.js +1 -0
  49. package/web/assets/maskTrack-C2SJbDGO.js +1 -0
  50. package/web/assets/matteFixRun-BdHKC3m5.js +1 -0
  51. package/web/assets/{objectLocate-BDqfSo9J.js → objectLocate-bZtc5AJo.js} +1 -1
  52. package/web/assets/{objectTrack.worker-ENzKeSiV.js → objectTrack.worker-BlZkgpOX.js} +483 -352
  53. package/web/assets/pendingMatte-mlyLLZCT.js +2 -0
  54. package/web/assets/personAi-CUNQeseG.js +2 -0
  55. package/web/assets/plateCamera-_jP1xXnj.js +1 -0
  56. package/web/assets/{plateCameraMatch-D41LQrsm.js → plateCameraMatch-rr0oUwQ2.js} +2 -2
  57. package/web/assets/{plateFollow-CNfi4xuP.js → plateFollow-BjvtcT8q.js} +2 -2
  58. package/web/assets/plateMatte-BqyL8cQZ.js +2 -0
  59. package/web/assets/{pluginAutomation-BtQ_w2TB.js → pluginAutomation-Dp188qm7.js} +1 -1
  60. package/web/assets/poseTracker-DDGDhhMF.js +1 -0
  61. package/web/assets/{productTools-r2RgILaA.js → productTools-CRgI88-O.js} +2 -2
  62. package/web/assets/remote-Dva2qg58.js +1241 -0
  63. package/web/assets/{rigTrack-Bx9QHlFv.js → rigTrack-UYZU4P-e.js} +1 -1
  64. package/web/assets/{rotoMaskStore-pxpRt5Cj.js → rotoMaskStore-BxyxB2bD.js} +1 -1
  65. package/web/assets/{rotoMatte-DyXlW4jK.js → rotoMatte-BdYa8FSB.js} +1 -1
  66. package/web/assets/{rotoscope-GORCSVBr.js → rotoscope-DDixNQCt.js} +1 -1
  67. package/web/assets/{sceneTrack.worker-CEvCN5OB.js → sceneTrack.worker-CT4uoTKn.js} +475 -344
  68. package/web/assets/{shot-worker-B8JWkmBz.js → shot-worker-D9sZS6bn.js} +1 -1
  69. package/web/assets/{shotFxAgent-CzHfe75S.js → shotFxAgent-7RQNtEe4.js} +2 -2
  70. package/web/assets/{skin-BkaT2QuX.js → skin-CVwmK130.js} +1 -1
  71. package/web/assets/{spark.module-BRT8yMS4.js → spark.module-B34aiScb.js} +1 -1
  72. package/web/assets/{spellDuel-BUy289OT.js → spellDuel-BkweL6pI.js} +2 -2
  73. package/web/assets/{store-BSSbvpzr.js → store-75tQUvPT.js} +1 -1
  74. package/web/assets/{surfaceLight-CMaBhZ_d.js → surfaceLight-DhU-zgNL.js} +1 -1
  75. package/web/assets/surfacePin-ObK6QgDm.js +2 -0
  76. package/web/assets/textAnimators-nVSz_sZo.js +1 -0
  77. package/web/assets/{thumb-Cs636sYt.js → thumb-r6dlZprA.js} +1 -1
  78. package/web/assets/timeline3d-246tBEJl.js +2 -0
  79. package/web/assets/timeline3dExport-T57qnWi9.js +1 -0
  80. package/web/assets/{timelineComp-CRRzLazc.js → timelineComp-BcewYGR2.js} +1 -1
  81. package/web/assets/{timelineProps-tN2YsMYN.js → timelineProps-CJzzAWWO.js} +1 -1
  82. package/web/assets/{timelineText-CkoUgWcY.js → timelineText-BzUhNWPB.js} +1 -1
  83. package/web/assets/titleArt-B8DVR58F.js +5 -0
  84. package/web/assets/{titleFrameBudget-3MFHWIT6.js → titleFrameBudget-BYRZAQPs.js} +970 -839
  85. package/web/assets/titleFrames-BVgm601q.js +1 -0
  86. package/web/assets/{tool-BhIsq238.js → tool-CAGU3dUa.js} +1 -1
  87. package/web/assets/{tools-DMUnabc_.js → tools-DVaOkokV.js} +1 -1
  88. package/web/assets/{toonTools-CICrV3QB.js → toonTools-CfGTR_H1.js} +2 -2
  89. package/web/assets/trackAnchor-DzUt1r5Q.js +1 -0
  90. package/web/assets/{userFonts-BZ4QL-zq.js → userFonts-DzY0A4bD.js} +1 -1
  91. package/web/assets/{vfxAlpha-D3Dk1tfF.js → vfxAlpha-DQJOaZ9v.js} +2 -2
  92. package/web/assets/vfxBackground-DiktQFOD.js +2 -0
  93. package/web/assets/{videoExport-l5MGvMn_.js → videoExport-Ce0ElSQR.js} +1 -1
  94. package/web/assets/{views-BdWnG2xK.js → views-V3si1lOz.js} +1 -1
  95. package/web/assets/{weaponDuel-B2wTffPC.js → weaponDuel-D6sLVGmG.js} +1 -1
  96. package/web/assets/{windowFrames-CoIyWqxr.js → windowFrames-D_2QJCJJ.js} +1 -1
  97. package/web/layer-worker.html +3 -3
  98. package/web/assets/PluginStore-BVsm6n6N.js +0 -3
  99. package/web/assets/TemplateEmbed-CrZXoUk_.js +0 -2
  100. package/web/assets/TimelinePlugins-B1KGtbmb.js +0 -5
  101. package/web/assets/TimelinePlugins-B5WmAawO.css +0 -1
  102. package/web/assets/TimelineShotFx-DoLx312Y.js +0 -2
  103. package/web/assets/TransitionEmbed-C5SUosv2.js +0 -1
  104. package/web/assets/aerial-DSt_mJNA.js +0 -2
  105. package/web/assets/analyzerRun-DCJwb_-Z.js +0 -1
  106. package/web/assets/auraTrack-QR0WqBHp.js +0 -1
  107. package/web/assets/breakthrough-Dv1bndQb.js +0 -2
  108. package/web/assets/clientExport-NtJmxOYP.js +0 -1
  109. package/web/assets/depthEstimate-wVYSJtW8.js +0 -1
  110. package/web/assets/desktop-BWhFnYwd.js +0 -1
  111. package/web/assets/faceTracker-DWxxieVC.js +0 -1
  112. package/web/assets/fightDirector-OMlPZgjv.js +0 -1
  113. package/web/assets/fightDrama-G7bXfpQu.js +0 -2
  114. package/web/assets/gpuExport-CPSw_dmq.js +0 -189
  115. package/web/assets/handMatte-DHsHHz4m.js +0 -1
  116. package/web/assets/handTracker-D_O-C4Dw.js +0 -2
  117. package/web/assets/layer-worker-Bar7WgOA.js +0 -5
  118. package/web/assets/library-BtBrCaFk.js +0 -1
  119. package/web/assets/main-M1vRa-gd.js +0 -309
  120. package/web/assets/mapBake-lPNhNZgv.js +0 -1
  121. package/web/assets/maskTrack-D2jUh7aw.js +0 -1
  122. package/web/assets/matteFixRun-B7tWV9Y1.js +0 -1
  123. package/web/assets/pendingMatte-q35zVaiB.js +0 -2
  124. package/web/assets/personAi-ZjQVo-80.js +0 -2
  125. package/web/assets/plateCamera-A2E_WO_x.js +0 -1
  126. package/web/assets/plateMatte-BdIxGhw5.js +0 -2
  127. package/web/assets/poseTracker-DVX__OK7.js +0 -1
  128. package/web/assets/remote-sTZauTqM.js +0 -1220
  129. package/web/assets/surfacePin-DM9b9ubh.js +0 -2
  130. package/web/assets/textAnimators-Cihw35O8.js +0 -1
  131. package/web/assets/timeline3d-BEuZZOxM.js +0 -2
  132. package/web/assets/timeline3dExport-CmSI_pjv.js +0 -1
  133. package/web/assets/titleArt-CcTdJuOC.js +0 -5
  134. package/web/assets/titleFrames-w-iWje9N.js +0 -1
  135. package/web/assets/trackAnchor-D2bB5mZE.js +0 -1
  136. package/web/assets/vfxBackground-CHlCg8lb.js +0 -2
  137. package/web/assets/vfxTrack-CqiQDEYm.js +0 -1
@@ -3996,6 +3996,622 @@
3996
3996
  }
3997
3997
  ]
3998
3998
  }
3999
+ },
4000
+ {
4001
+ "id": "grid-pop",
4002
+ "name": "Lưới ô bật",
4003
+ "category": "Hình",
4004
+ "duration": 0.6,
4005
+ "version": 1,
4006
+ "sortOrder": 1210,
4007
+ "tags": [
4008
+ "grid",
4009
+ "checker",
4010
+ "block",
4011
+ "editorial",
4012
+ "katana",
4013
+ "beat"
4014
+ ],
4015
+ "mask": {
4016
+ "type": "grid",
4017
+ "count": 10,
4018
+ "feather": 0.03
4019
+ }
4020
+ },
4021
+ {
4022
+ "id": "grid-pop-fine",
4023
+ "name": "Lưới ô nhỏ",
4024
+ "category": "Hình",
4025
+ "duration": 0.5,
4026
+ "version": 1,
4027
+ "sortOrder": 1211,
4028
+ "tags": [
4029
+ "grid",
4030
+ "checker",
4031
+ "block",
4032
+ "pixel",
4033
+ "editorial",
4034
+ "katana"
4035
+ ],
4036
+ "mask": {
4037
+ "type": "grid",
4038
+ "count": 18,
4039
+ "feather": 0.03
4040
+ }
4041
+ },
4042
+ {
4043
+ "id": "grid-flash-lime",
4044
+ "name": "Lưới ô loé lime",
4045
+ "category": "Hình",
4046
+ "duration": 0.6,
4047
+ "version": 1,
4048
+ "sortOrder": 1212,
4049
+ "tags": [
4050
+ "grid",
4051
+ "checker",
4052
+ "flash",
4053
+ "lime",
4054
+ "clipoox",
4055
+ "katana",
4056
+ "beat"
4057
+ ],
4058
+ "mask": {
4059
+ "type": "grid",
4060
+ "count": 8,
4061
+ "feather": 0.03
4062
+ },
4063
+ "flash": {
4064
+ "color": "#a3ff00",
4065
+ "opacity": [
4066
+ {
4067
+ "t": 0,
4068
+ "v": 0,
4069
+ "ease": "ease-out"
4070
+ },
4071
+ {
4072
+ "t": 0.4,
4073
+ "v": 0.65,
4074
+ "ease": "ease-in"
4075
+ },
4076
+ {
4077
+ "t": 1,
4078
+ "v": 0
4079
+ }
4080
+ ]
4081
+ }
4082
+ },
4083
+ {
4084
+ "id": "light-streak",
4085
+ "name": "Vệt sáng lướt",
4086
+ "category": "Hiệu ứng",
4087
+ "duration": 0.5,
4088
+ "version": 1,
4089
+ "sortOrder": 1220,
4090
+ "tags": [
4091
+ "light",
4092
+ "streak",
4093
+ "speed",
4094
+ "whoosh",
4095
+ "flare",
4096
+ "katana",
4097
+ "impact"
4098
+ ],
4099
+ "a": {
4100
+ "dirBlur": [
4101
+ {
4102
+ "t": 0,
4103
+ "v": 0,
4104
+ "ease": "expo-in"
4105
+ },
4106
+ {
4107
+ "t": 0.5,
4108
+ "v": 1
4109
+ }
4110
+ ],
4111
+ "exposure": [
4112
+ {
4113
+ "t": 0,
4114
+ "v": 0,
4115
+ "ease": "expo-in"
4116
+ },
4117
+ {
4118
+ "t": 0.5,
4119
+ "v": 0.7
4120
+ }
4121
+ ]
4122
+ },
4123
+ "b": {
4124
+ "dirBlur": [
4125
+ {
4126
+ "t": 0,
4127
+ "v": 1,
4128
+ "ease": "hold"
4129
+ },
4130
+ {
4131
+ "t": 0.5,
4132
+ "v": 1,
4133
+ "ease": "expo-out"
4134
+ },
4135
+ {
4136
+ "t": 1,
4137
+ "v": 0
4138
+ }
4139
+ ],
4140
+ "exposure": [
4141
+ {
4142
+ "t": 0,
4143
+ "v": 0.7,
4144
+ "ease": "hold"
4145
+ },
4146
+ {
4147
+ "t": 0.5,
4148
+ "v": 0.7,
4149
+ "ease": "expo-out"
4150
+ },
4151
+ {
4152
+ "t": 1,
4153
+ "v": 0
4154
+ }
4155
+ ],
4156
+ "opacity": [
4157
+ {
4158
+ "t": 0,
4159
+ "v": 0,
4160
+ "ease": "hold"
4161
+ },
4162
+ {
4163
+ "t": 0.5,
4164
+ "v": 1
4165
+ }
4166
+ ]
4167
+ },
4168
+ "light": {
4169
+ "kind": "flare",
4170
+ "color": "#ffffff",
4171
+ "color2": "#cfe3ff",
4172
+ "cx": 0.5,
4173
+ "cy": 0.5,
4174
+ "opacity": [
4175
+ {
4176
+ "t": 0,
4177
+ "v": 0,
4178
+ "ease": "expo-in"
4179
+ },
4180
+ {
4181
+ "t": 0.5,
4182
+ "v": 1,
4183
+ "ease": "expo-out"
4184
+ },
4185
+ {
4186
+ "t": 1,
4187
+ "v": 0
4188
+ }
4189
+ ]
4190
+ }
4191
+ },
4192
+ {
4193
+ "id": "light-streak-diagonal",
4194
+ "name": "Vệt sáng quét chéo",
4195
+ "category": "Hiệu ứng",
4196
+ "duration": 0.55,
4197
+ "version": 1,
4198
+ "sortOrder": 1221,
4199
+ "tags": [
4200
+ "light",
4201
+ "streak",
4202
+ "diagonal",
4203
+ "sweep",
4204
+ "wipe",
4205
+ "katana"
4206
+ ],
4207
+ "a": {
4208
+ "dirBlur": [
4209
+ {
4210
+ "t": 0,
4211
+ "v": 0,
4212
+ "ease": "ease-in"
4213
+ },
4214
+ {
4215
+ "t": 0.6,
4216
+ "v": 0.8
4217
+ }
4218
+ ]
4219
+ },
4220
+ "b": {
4221
+ "dirBlur": [
4222
+ {
4223
+ "t": 0.3,
4224
+ "v": 0.8,
4225
+ "ease": "expo-out"
4226
+ },
4227
+ {
4228
+ "t": 1,
4229
+ "v": 0
4230
+ }
4231
+ ]
4232
+ },
4233
+ "mask": {
4234
+ "type": "wipe",
4235
+ "angle": -30,
4236
+ "feather": 0.22
4237
+ },
4238
+ "light": {
4239
+ "kind": "leak",
4240
+ "color": "#ffffff",
4241
+ "color2": "#dfe8ff",
4242
+ "angle": -30,
4243
+ "opacity": [
4244
+ {
4245
+ "t": 0,
4246
+ "v": 0,
4247
+ "ease": "ease-out"
4248
+ },
4249
+ {
4250
+ "t": 0.45,
4251
+ "v": 1,
4252
+ "ease": "ease-in"
4253
+ },
4254
+ {
4255
+ "t": 1,
4256
+ "v": 0
4257
+ }
4258
+ ]
4259
+ }
4260
+ },
4261
+ {
4262
+ "id": "kit-slide-right",
4263
+ "name": "Trượt phải (Speed Kit)",
4264
+ "category": "Trượt/Đẩy",
4265
+ "duration": 0.45,
4266
+ "tags": [
4267
+ "speed kit",
4268
+ "slide",
4269
+ "motion blur",
4270
+ "car"
4271
+ ],
4272
+ "a": {
4273
+ "x": [
4274
+ {
4275
+ "t": 0,
4276
+ "v": 0,
4277
+ "ease": "expo-in"
4278
+ },
4279
+ {
4280
+ "t": 1,
4281
+ "v": 1
4282
+ }
4283
+ ],
4284
+ "dirBlur": [
4285
+ {
4286
+ "t": 0,
4287
+ "v": 0,
4288
+ "ease": "expo-in"
4289
+ },
4290
+ {
4291
+ "t": 1,
4292
+ "v": 1
4293
+ }
4294
+ ]
4295
+ },
4296
+ "b": {
4297
+ "x": [
4298
+ {
4299
+ "t": 0,
4300
+ "v": -1,
4301
+ "ease": "expo-out"
4302
+ },
4303
+ {
4304
+ "t": 1,
4305
+ "v": 0
4306
+ }
4307
+ ],
4308
+ "dirBlur": [
4309
+ {
4310
+ "t": 0,
4311
+ "v": 1,
4312
+ "ease": "expo-out"
4313
+ },
4314
+ {
4315
+ "t": 1,
4316
+ "v": 0
4317
+ }
4318
+ ]
4319
+ },
4320
+ "version": 1,
4321
+ "sortOrder": 1300
4322
+ },
4323
+ {
4324
+ "id": "kit-slide-left",
4325
+ "name": "Trượt trái (Speed Kit)",
4326
+ "category": "Trượt/Đẩy",
4327
+ "duration": 0.45,
4328
+ "tags": [
4329
+ "speed kit",
4330
+ "slide",
4331
+ "motion blur",
4332
+ "car"
4333
+ ],
4334
+ "a": {
4335
+ "x": [
4336
+ {
4337
+ "t": 0,
4338
+ "v": 0,
4339
+ "ease": "expo-in"
4340
+ },
4341
+ {
4342
+ "t": 1,
4343
+ "v": -1
4344
+ }
4345
+ ],
4346
+ "dirBlur": [
4347
+ {
4348
+ "t": 0,
4349
+ "v": 0,
4350
+ "ease": "expo-in"
4351
+ },
4352
+ {
4353
+ "t": 1,
4354
+ "v": 1
4355
+ }
4356
+ ]
4357
+ },
4358
+ "b": {
4359
+ "x": [
4360
+ {
4361
+ "t": 0,
4362
+ "v": 1,
4363
+ "ease": "expo-out"
4364
+ },
4365
+ {
4366
+ "t": 1,
4367
+ "v": 0
4368
+ }
4369
+ ],
4370
+ "dirBlur": [
4371
+ {
4372
+ "t": 0,
4373
+ "v": 1,
4374
+ "ease": "expo-out"
4375
+ },
4376
+ {
4377
+ "t": 1,
4378
+ "v": 0
4379
+ }
4380
+ ]
4381
+ },
4382
+ "version": 1,
4383
+ "sortOrder": 1302
4384
+ },
4385
+ {
4386
+ "id": "kit-slide-up",
4387
+ "name": "Trượt lên (Speed Kit)",
4388
+ "category": "Trượt/Đẩy",
4389
+ "duration": 0.45,
4390
+ "tags": [
4391
+ "speed kit",
4392
+ "slide",
4393
+ "motion blur",
4394
+ "car"
4395
+ ],
4396
+ "a": {
4397
+ "y": [
4398
+ {
4399
+ "t": 0,
4400
+ "v": 0,
4401
+ "ease": "expo-in"
4402
+ },
4403
+ {
4404
+ "t": 1,
4405
+ "v": -1
4406
+ }
4407
+ ],
4408
+ "dirBlurV": [
4409
+ {
4410
+ "t": 0,
4411
+ "v": 0,
4412
+ "ease": "expo-in"
4413
+ },
4414
+ {
4415
+ "t": 1,
4416
+ "v": 1
4417
+ }
4418
+ ]
4419
+ },
4420
+ "b": {
4421
+ "y": [
4422
+ {
4423
+ "t": 0,
4424
+ "v": 1,
4425
+ "ease": "expo-out"
4426
+ },
4427
+ {
4428
+ "t": 1,
4429
+ "v": 0
4430
+ }
4431
+ ],
4432
+ "dirBlurV": [
4433
+ {
4434
+ "t": 0,
4435
+ "v": 1,
4436
+ "ease": "expo-out"
4437
+ },
4438
+ {
4439
+ "t": 1,
4440
+ "v": 0
4441
+ }
4442
+ ]
4443
+ },
4444
+ "version": 1,
4445
+ "sortOrder": 1304
4446
+ },
4447
+ {
4448
+ "id": "kit-slide-down",
4449
+ "name": "Trượt xuống (Speed Kit)",
4450
+ "category": "Trượt/Đẩy",
4451
+ "duration": 0.45,
4452
+ "tags": [
4453
+ "speed kit",
4454
+ "slide",
4455
+ "motion blur",
4456
+ "car"
4457
+ ],
4458
+ "a": {
4459
+ "y": [
4460
+ {
4461
+ "t": 0,
4462
+ "v": 0,
4463
+ "ease": "expo-in"
4464
+ },
4465
+ {
4466
+ "t": 1,
4467
+ "v": 1
4468
+ }
4469
+ ],
4470
+ "dirBlurV": [
4471
+ {
4472
+ "t": 0,
4473
+ "v": 0,
4474
+ "ease": "expo-in"
4475
+ },
4476
+ {
4477
+ "t": 1,
4478
+ "v": 1
4479
+ }
4480
+ ]
4481
+ },
4482
+ "b": {
4483
+ "y": [
4484
+ {
4485
+ "t": 0,
4486
+ "v": -1,
4487
+ "ease": "expo-out"
4488
+ },
4489
+ {
4490
+ "t": 1,
4491
+ "v": 0
4492
+ }
4493
+ ],
4494
+ "dirBlurV": [
4495
+ {
4496
+ "t": 0,
4497
+ "v": 1,
4498
+ "ease": "expo-out"
4499
+ },
4500
+ {
4501
+ "t": 1,
4502
+ "v": 0
4503
+ }
4504
+ ]
4505
+ },
4506
+ "version": 1,
4507
+ "sortOrder": 1306
4508
+ },
4509
+ {
4510
+ "id": "kit-gravity",
4511
+ "name": "Hút tâm (Speed Kit)",
4512
+ "category": "Zoom/Xoay",
4513
+ "duration": 0.5,
4514
+ "tags": [
4515
+ "speed kit",
4516
+ "zoom",
4517
+ "pull",
4518
+ "gravity",
4519
+ "car"
4520
+ ],
4521
+ "a": {
4522
+ "zoom": [
4523
+ {
4524
+ "t": 0,
4525
+ "v": 1,
4526
+ "ease": "expo-in"
4527
+ },
4528
+ {
4529
+ "t": 1,
4530
+ "v": 3.2
4531
+ }
4532
+ ],
4533
+ "zoomBlur": [
4534
+ {
4535
+ "t": 0,
4536
+ "v": 0,
4537
+ "ease": "expo-in"
4538
+ },
4539
+ {
4540
+ "t": 1,
4541
+ "v": 1
4542
+ }
4543
+ ],
4544
+ "rot": [
4545
+ {
4546
+ "t": 0,
4547
+ "v": 0,
4548
+ "ease": "expo-in"
4549
+ },
4550
+ {
4551
+ "t": 1,
4552
+ "v": 18
4553
+ }
4554
+ ],
4555
+ "opacity": [
4556
+ {
4557
+ "t": 0,
4558
+ "v": 1,
4559
+ "ease": "hold"
4560
+ },
4561
+ {
4562
+ "t": 0.5,
4563
+ "v": 0
4564
+ }
4565
+ ]
4566
+ },
4567
+ "b": {
4568
+ "zoom": [
4569
+ {
4570
+ "t": 0,
4571
+ "v": 0.45,
4572
+ "ease": "expo-out"
4573
+ },
4574
+ {
4575
+ "t": 1,
4576
+ "v": 1
4577
+ }
4578
+ ],
4579
+ "zoomBlur": [
4580
+ {
4581
+ "t": 0,
4582
+ "v": 1,
4583
+ "ease": "expo-out"
4584
+ },
4585
+ {
4586
+ "t": 1,
4587
+ "v": 0
4588
+ }
4589
+ ],
4590
+ "rot": [
4591
+ {
4592
+ "t": 0,
4593
+ "v": -18,
4594
+ "ease": "expo-out"
4595
+ },
4596
+ {
4597
+ "t": 1,
4598
+ "v": 0
4599
+ }
4600
+ ],
4601
+ "opacity": [
4602
+ {
4603
+ "t": 0,
4604
+ "v": 0,
4605
+ "ease": "hold"
4606
+ },
4607
+ {
4608
+ "t": 0.5,
4609
+ "v": 1
4610
+ }
4611
+ ]
4612
+ },
4613
+ "version": 1,
4614
+ "sortOrder": 1308
3999
4615
  }
4000
4616
  ]
4001
4617
  }
@@ -1 +1 @@
1
- import{j as d,dp as y,dq as w}from"./remote-sTZauTqM.js";import{r as p}from"./api-BsKbf3l3.js";import{t as b,a as E,d as u}from"./thumb-Cs636sYt.js";import"./three.module-Bx43vjkH.js";import"./GLTFLoader-Dy6SrZg8.js";import"./store-BSSbvpzr.js";import"./titleFrameBudget-3MFHWIT6.js";import"./rotoMaskStore-pxpRt5Cj.js";import"./textAnimators-Cihw35O8.js";import"./timelineComp-CRRzLazc.js";import"./rigTrack-Bx9QHlFv.js";const j=["https://admin.clipoox.com","http://localhost:3000","http://localhost:5173"],x=960,h=540;function F(i){const r=i&&typeof i=="object"?i:{},m=y({...r,name:String(r.name||"preview").slice(0,60),category:r.category||"tu-tien"});let o=5381;for(const l of JSON.stringify(m))o=(o<<5)+o+l.charCodeAt(0)|0;return w({id:(o>>>0).toString(16).padStart(32,"0"),...m})}function D(){const i=p.useRef(null),[r,m]=p.useState(null),[o,l]=p.useState("");return p.useEffect(()=>{const s=(t,a)=>t.source?.postMessage(a,{targetOrigin:t.origin}),c=t=>{if(!j.includes(t.origin)||t.source!==window.parent||!t.data||typeof t.data!="object")return;const a="id"in t.data?t.data.id:null;let n;try{n=F(t.data.fx)}catch(e){t.data.type==="clipoox-fx-play"&&l(e.message),s(t,{type:"clipoox-fx-error",id:a,error:e.message});return}if(t.data.type==="clipoox-fx-play"){l(""),m(n);return}if(t.data.type==="clipoox-fx-thumb")try{const e=Object.assign(document.createElement("canvas"),{width:480,height:270}),f=e.getContext("2d");if(!f)throw Error("canvas");const g=Number.isFinite(t.data.t)?Math.max(0,Number(t.data.t)):E(n);u(f,n,g,480,270),s(t,{type:"clipoox-fx-thumb",id:a,webp:e.toDataURL("image/webp",.85)})}catch(e){s(t,{type:"clipoox-fx-error",id:a,error:e.message})}};return window.addEventListener("message",c),window.parent?.postMessage({type:"clipoox-fx-ready"},"*"),()=>window.removeEventListener("message",c)},[]),p.useEffect(()=>{const s=i.current,c=s?.getContext("2d");if(!r||!s||!c)return;let t=0;const a=performance.now(),n=b(r),e=()=>{u(c,r,(performance.now()-a)/1e3%n,x,h),t=requestAnimationFrame(e)};return t=requestAnimationFrame(e),()=>cancelAnimationFrame(t)},[r]),d.jsxs("div",{style:{margin:0,background:"#0a0e14",width:"100vw",height:"100vh",display:"grid",placeItems:"center"},children:[d.jsx("canvas",{ref:i,width:x,height:h,style:{maxWidth:"100%",maxHeight:"100vh",objectFit:"contain"},"aria-label":"FX preview"}),o&&d.jsx("p",{role:"alert",style:{position:"fixed",bottom:8,left:8,right:8,color:"#ff8080",font:"12px sans-serif"},children:o})]})}export{D as default,F as previewEntry};
1
+ import{j as d,dy as y,dz as w}from"./remote-Dva2qg58.js";import{r as p}from"./api-DUp403BK.js";import{t as b,a as E,d as u}from"./thumb-r6dlZprA.js";import"./three.module-Bx43vjkH.js";import"./GLTFLoader-BHWu1lKg.js";import"./store-75tQUvPT.js";import"./titleFrameBudget-BYRZAQPs.js";import"./rotoMaskStore-BxyxB2bD.js";import"./textAnimators-nVSz_sZo.js";import"./timelineComp-BcewYGR2.js";import"./rigTrack-UYZU4P-e.js";const j=["https://admin.clipoox.com","http://localhost:3000","http://localhost:5173"],x=960,h=540;function F(i){const r=i&&typeof i=="object"?i:{},m=y({...r,name:String(r.name||"preview").slice(0,60),category:r.category||"tu-tien"});let o=5381;for(const l of JSON.stringify(m))o=(o<<5)+o+l.charCodeAt(0)|0;return w({id:(o>>>0).toString(16).padStart(32,"0"),...m})}function D(){const i=p.useRef(null),[r,m]=p.useState(null),[o,l]=p.useState("");return p.useEffect(()=>{const s=(t,a)=>t.source?.postMessage(a,{targetOrigin:t.origin}),c=t=>{if(!j.includes(t.origin)||t.source!==window.parent||!t.data||typeof t.data!="object")return;const a="id"in t.data?t.data.id:null;let n;try{n=F(t.data.fx)}catch(e){t.data.type==="clipoox-fx-play"&&l(e.message),s(t,{type:"clipoox-fx-error",id:a,error:e.message});return}if(t.data.type==="clipoox-fx-play"){l(""),m(n);return}if(t.data.type==="clipoox-fx-thumb")try{const e=Object.assign(document.createElement("canvas"),{width:480,height:270}),f=e.getContext("2d");if(!f)throw Error("canvas");const g=Number.isFinite(t.data.t)?Math.max(0,Number(t.data.t)):E(n);u(f,n,g,480,270),s(t,{type:"clipoox-fx-thumb",id:a,webp:e.toDataURL("image/webp",.85)})}catch(e){s(t,{type:"clipoox-fx-error",id:a,error:e.message})}};return window.addEventListener("message",c),window.parent?.postMessage({type:"clipoox-fx-ready"},"*"),()=>window.removeEventListener("message",c)},[]),p.useEffect(()=>{const s=i.current,c=s?.getContext("2d");if(!r||!s||!c)return;let t=0;const a=performance.now(),n=b(r),e=()=>{u(c,r,(performance.now()-a)/1e3%n,x,h),t=requestAnimationFrame(e)};return t=requestAnimationFrame(e),()=>cancelAnimationFrame(t)},[r]),d.jsxs("div",{style:{margin:0,background:"#0a0e14",width:"100vw",height:"100vh",display:"grid",placeItems:"center"},children:[d.jsx("canvas",{ref:i,width:x,height:h,style:{maxWidth:"100%",maxHeight:"100vh",objectFit:"contain"},"aria-label":"FX preview"}),o&&d.jsx("p",{role:"alert",style:{position:"fixed",bottom:8,left:8,right:8,color:"#ff8080",font:"12px sans-serif"},children:o})]})}export{D as default,F as previewEntry};