Files
zeekay 919f04d122 composer 0.2.1: the ring turns on the compositor, the halo is still, and both rest off screen
The ring animated a registered <angle> feeding conic-gradient(from ...), so
every frame restyled and repainted it and the halo's 16px blur: 321 paints
in 3 s of an idle page on a 4x-throttled phone with the composer in view,
and none with the animation held. The band now masks a square as long as
its diagonal that turns by transform; a turned conic gradient is the same
gradient from that angle. The halo, blurred, does not move. An observer
marks the host data-still while no part of it is on screen or the tab is
hidden, which pauses the turn; reduced motion still stops it.
2026-10-30 09:26:54 -07:00

53 lines
1.4 KiB
JSON

{
"name": "@hanzo/composer",
"version": "0.2.1",
"description": "The composer's material — the lit ring around anything you can type into, as @hanzo/gui components.",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"scripts": {
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
"build": "rm -rf dist && tsc -p tsconfig.build.json && node ../ui/scripts/postbuild.mjs .",
"clean": "rm -rf dist",
"prepack": "pnpm run build",
"typecheck": "tsc --noEmit",
"tc": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"license": "MIT",
"peerDependencies": {
"@hanzo/gui": "^8.3.5",
"react": ">=19.2.8"
},
"devDependencies": {
"@hanzo/gui": "catalog:",
"@hanzogui/config": "catalog:",
"@hanzogui/core": "catalog:",
"@hanzogui/web": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"react-native-web": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
}
}