xvai-loi 0.1.41 → 0.1.42

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 (3) hide show
  1. package/co.txt +1 -1
  2. package/package.json +1 -1
  3. package/xvai-loi.js +16 -13
package/co.txt CHANGED
@@ -1 +1 @@
1
- xvaiLoi100208
1
+ xvaiLoi100236
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xvai-loi",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Loi dung video (Edit Video Tu Dong) nap vao tool Google Flow qua o cam engine/oCam.ts",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/xvai-loi.js CHANGED
@@ -10042,16 +10042,19 @@ dangKy("cmAnh", (g, d, tuoi, W4, H2, _n, _s, dai2) => {
10042
10042
  const z = (1.03 + 0.045 * Math.min(1, tuoi / Math.max(0.5, dai2))) * Math.max(W4 / im.width, H2 / im.height);
10043
10043
  g.drawImage(im, (W4 - im.width * z) / 2, (H2 - im.height * z) / 2, im.width * z, im.height * z);
10044
10044
  }
10045
- g.globalCompositeOperation = "saturation";
10046
- g.fillStyle = "rgb(128,128,128)";
10047
- g.fillRect(0, 0, W4, H2);
10048
- g.globalCompositeOperation = "multiply";
10049
- g.fillStyle = "rgb(255,196,150)";
10050
- g.fillRect(0, 0, W4, H2);
10051
- g.globalCompositeOperation = "screen";
10052
- g.fillStyle = "rgb(46,20,12)";
10053
- g.fillRect(0, 0, W4, H2);
10054
- g.globalCompositeOperation = "source-over";
10045
+ const trangThat = /^trang:/.test(String(d.ten || ""));
10046
+ if (!trangThat) {
10047
+ g.globalCompositeOperation = "saturation";
10048
+ g.fillStyle = "rgb(128,128,128)";
10049
+ g.fillRect(0, 0, W4, H2);
10050
+ g.globalCompositeOperation = "multiply";
10051
+ g.fillStyle = "rgb(255,196,150)";
10052
+ g.fillRect(0, 0, W4, H2);
10053
+ g.globalCompositeOperation = "screen";
10054
+ g.fillStyle = "rgb(46,20,12)";
10055
+ g.fillRect(0, 0, W4, H2);
10056
+ g.globalCompositeOperation = "source-over";
10057
+ }
10055
10058
  const rg = g.createRadialGradient(W4 / 2, H2 / 2, 0.2 * H2, W4 / 2, H2 / 2, 0.75 * H2);
10056
10059
  rg.addColorStop(0, "rgba(0,0,0,0)");
10057
10060
  rg.addColorStop(1, "rgba(0,0,0,0.55)");
@@ -19100,7 +19103,7 @@ async function napLoi(d) {
19100
19103
  return "LOI: " + String(e && e.message || e).slice(0, 300);
19101
19104
  }
19102
19105
  }
19103
- var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.40/nap.js";
19106
+ var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.41/nap.js";
19104
19107
  var TRONG_LOI = !!globalThis.__xvaiReact;
19105
19108
  try {
19106
19109
  if (!TRONG_LOI) setTimeout(() => {
@@ -19130,7 +19133,7 @@ function datCauLenh(a) {
19130
19133
  on2 = true;
19131
19134
  window.addEventListener("message", async (ev) => {
19132
19135
  const d = ev.data;
19133
- if (!d || d.xvaiLoi100208 !== true) return;
19136
+ if (!d || d.xvaiLoi100236 !== true) return;
19134
19137
  const o = String(ev.origin || "");
19135
19138
  if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
19136
19139
  const tra = (kq) => {
@@ -19428,7 +19431,7 @@ var SuaLich = ({ ten, onDong }) => {
19428
19431
  };
19429
19432
 
19430
19433
  // loi/vo-flow.tsx
19431
- var PHIEN_BAN = "loi-1010Q";
19434
+ var PHIEN_BAN = "loi-1010R";
19432
19435
  var TRONG = () => migrateProject({ id: crypto.randomUUID(), name: "D\u1EF1 \xE1n m\u1EDBi", scenes: [], timeline: [], images: [null, null, null] });
19433
19436
  var nut4 = "px-3 py-1.5 rounded-lg border border-[#2C4A73] text-[11px] font-bold text-[#A2B2C9] hover:text-[#F6D178] hover:border-[#F6D178]/60";
19434
19437
  var Vo = () => {