Files
excalidraw/packages/common/package.json
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

87 lines
2.3 KiB
JSON

{
"name": "@excalidraw/common",
"version": "0.18.0",
"type": "module",
"types": "./dist/types/common/src/index.d.ts",
"main": "./dist/prod/index.js",
"module": "./dist/prod/index.js",
"exports": {
".": {
"excalidraw-source": "./src/index.ts",
"types": "./dist/types/common/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/common/src/*.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
}
},
"files": [
"dist/*"
],
"description": "Excalidraw common functions, constants, etc.",
"publishConfig": {
"access": "public",
"exports": {
".": {
"types": "./dist/types/common/src/index.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./dist/types/common/src/*.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
}
}
},
"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"
]
},
"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/buildBase.js && pnpm gen:types",
"prepublishOnly": "node ../../scripts/ensure-pnpm-publish.js"
},
"dependencies": {
"@braintree/sanitize-url": "6.0.2",
"@excalidraw/math": "workspace:*",
"es6-promise-pool": "2.5.0",
"nanoid": "3.3.8",
"tinycolor2": "1.6.0"
},
"devDependencies": {
"@types/tinycolor2": "1.4.6"
}
}