- 셰이더 2종을 fetch 대신 번들 문자열로 임포트 (tsup --loader .glsl=text) - 기본 사용에서 네트워크 왕복 없이 즉시 준비 - 커스텀 셰이더 경로가 주어진 것만 fetch하고 나머지는 번들 소스 사용 - onFirstRender 콜백 추가 - 첫 텍스처 렌더 직후 1회 호출, 소비자가 스켈레톤 내리는 시점으로 쓴다 - 마운트마다 찍히던 디버그 console.log 제거 (v1.5.1 잔재 문구 포함) - v1.8.0
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"name": "@baekryang/responsive-image-canvas",
|
|
"version": "1.8.0",
|
|
"publishConfig": {
|
|
"registry": "https://git.bnovalab.com/api/packages/baekryang/npm/"
|
|
},
|
|
"description": "React component for interactive image distortion with GPU-accelerated shaders",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format cjs,esm --dts --loader \".glsl=text\"",
|
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch --loader \".glsl=text\""
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0 || ^19.0.0",
|
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
"three": ">=0.150.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.2.2",
|
|
"@types/react-dom": "^19.2.2",
|
|
"@types/three": "^0.181.0",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"three": "^0.181.0",
|
|
"tsup": "^8.5.0",
|
|
"typescript": "^5.5.3"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.bnovalab.com/baekryang/responsive-image-canvas.git"
|
|
},
|
|
"keywords": [
|
|
"react",
|
|
"three.js",
|
|
"webgl",
|
|
"shader",
|
|
"image-distortion",
|
|
"canvas",
|
|
"animation"
|
|
],
|
|
"author": "",
|
|
"license": "MIT"
|
|
}
|