react-native-mask-segment-c.../dist/utils/pickMapTexture.js
a1518 8bc66a4ee9
Some checks failed
Publish to npm / publish (push) Has been cancelled
refactor: remove Chinese, add build obfuscation, polish README
- Remove all Chinese characters from src/, example/, ios/, patches/, tests/
- Add esbuild-based build obfuscation (minify + identifier mangle + no sourcemaps)
- Drop src/ from npm publish, only ship minified dist/
- Remove source maps and declaration maps from build output
- Add README icons and visual polish throughout
- Fix broken Table of Contents anchor links in README

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 19:07:32 -07:00

2 lines
843 B
JavaScript

"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},I=(t,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of y(e))!h.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(n=l(e,r))||n.enumerable});return t};var T=t=>I(i({},"__esModule",{value:!0}),t);var A={};u(A,{pickBufferToSkImage:()=>k});module.exports=T(A);var o=require("@shopify/react-native-skia");function k(t,e,a){if(t.length!==e*a)return null;const n=new Uint8Array(e*a*4);for(let m=0;m<t.length;m++){const g=m*4,p=t[m];n[g]=p,n[g+1]=p,n[g+2]=p,n[g+3]=255}const r=o.Skia.Data.fromBytes(n);return o.Skia.Image.MakeImage({width:e,height:a,alphaType:o.AlphaType.Opaque,colorType:o.ColorType.RGBA_8888},r,e*4)}