Preview scenes now take paint from the promoted document but GEOMETRY from the unpromoted layout tree via the design canvas's exact layout pass — honoring preserve_authored_geometry for Figma imports — so preview positions match design mode by construction (was: full taffy re-solve, elements shifted 100+ px on preserve docs, 2 px per promoted hug widget). Hit-testing maps taps through the deepest painted node's scene/runtime rect pair with a per-gesture anchor (pointer capture), so drags never remap through neighbours mid-gesture. Input dispatch split to preview/input.rs for the 800-line cap. Pairs with the following device-frame commit (preview/mod.rs already declares the present module it introduces).
44 lines
979 B
JSON
44 lines
979 B
JSON
{
|
|
"name": "@zseven-w/op-web-sdk-react",
|
|
"version": "0.8.1",
|
|
"description": "React adapter for the OpenPencil read-only web viewer SDK",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@zseven-w/op-web-sdk": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^3.0.0",
|
|
"jsdom": "^25.0.0"
|
|
}
|
|
}
|