Files
excalidraw/packages/utils/package.json
T
David Luzar b03c3bb2c6 chore(packages/excalidraw): vendor roughjs as @excalidraw/sloppy (#12832)
* chore(packages/sloppy): vendor roughjs as @excalidraw/sloppy

- port roughjs 4.6.4 with hachure-fill, path-data-parser and points-on-path into packages/sloppy
- move points-on-curve and roughjs's Random into @excalidraw/math
- output is identical to roughjs 4.6.4 (tests/parity.test.ts)

* fix(packages/sloppy): don't change the caller's points in polygon pattern fills

The fillers rotate a polygon's points in place and back, which left float
drift in an element's points every time a sharp, pattern-filled line's
shape was regenerated.
2026-12-03 23:03:24 +01:00

92 lines
2.4 KiB
JSON

{
"name": "@excalidraw/utils",
"version": "0.1.2",
"type": "module",
"types": "./dist/types/utils/src/index.d.ts",
"main": "./dist/prod/index.js",
"module": "./dist/prod/index.js",
"exports": {
".": {
"excalidraw-source": "./src/index.ts",
"types": "./dist/types/utils/src/index.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
},
"./*": {
"excalidraw-source": "./src/*.js",
"types": "./dist/types/utils/src/*.d.ts"
}
},
"files": [
"dist/*"
],
"description": "Excalidraw utility functions",
"publishConfig": {
"access": "public",
"exports": {
".": {
"types": "./dist/types/utils/src/index.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./dist/types/utils/src/*.d.ts"
}
}
},
"license": "MIT",
"keywords": [
"excalidraw",
"excalidraw-utils"
],
"browserslist": {
"production": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all",
"not safari < 12",
"not kaios <= 2.5",
"not edge < 79",
"not chrome < 70",
"not and_uc < 13",
"not samsung < 10"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@braintree/sanitize-url": "6.0.2",
"@excalidraw/laser-pointer": "workspace:*",
"browser-fs-access": "0.38.0",
"pako": "2.0.3",
"perfect-freehand": "1.2.0",
"png-chunk-text": "1.0.0",
"png-chunks-encode": "1.0.0",
"png-chunks-extract": "1.0.0"
},
"devDependencies": {
"@excalidraw/common": "workspace:*",
"@excalidraw/element": "workspace:*",
"@excalidraw/excalidraw": "workspace:*",
"@excalidraw/math": "workspace:*",
"@excalidraw/sloppy": "workspace:*",
"cross-env": "7.0.3",
"typescript": "5.9.3",
"wawoff2": "2.0.1",
"which": "4.0.0"
},
"bugs": "https://github.com/excalidraw/excalidraw/issues",
"repository": "https://github.com/excalidraw/excalidraw",
"scripts": {
"gen:types": "rimraf types && tsc",
"build:esm": "rimraf dist && node ../../scripts/buildUtils.js && pnpm gen:types",
"prepublishOnly": "node ../../scripts/ensure-pnpm-publish.js"
}
}