tldraw/packages/vec/package.json
Christian Petersen e2814943e9
[feature] Add grids (#344)
* [feature] grids

* Shows relative grids at different zoom levels

* Update colors

* Restores vec and intersect to monorepo, changes vec.round to vec.toFixed, adds vec.snap

* Snapping in translate and transforms, fix shortcut

* fix bugs in build

* use grid size for nudge too

* update scripts

* Update grid.tsx

* Update grid.tsx

* Fixed!

* Update grid.tsx

* Fix package imports

* Update Editor.tsx

* Improve tsconfigs, imports

* Fix tiny arrow bugs, snap starting points to grid

* Update tsconfig.base.json

* Update shape-styles.ts

* Fix example tsconfig

* Fix translate type error

* Fix types, paths

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-26 15:14:10 +00:00

35 lines
No EOL
914 B
JSON

{
"version": "1.1.4",
"name": "@tldraw/vec",
"description": "2D vector utilities for TLDraw and maybe you, too.",
"author": "@steveruizok",
"repository": {
"type": "git",
"url": "git+https://github.com/tldraw/tldraw.git"
},
"license": "MIT",
"keywords": [
"2d",
"vector",
"typescript",
"javascript"
],
"files": [
"dist/**/*"
],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"scripts": {
"start:packages": "yarn start",
"start:core": "yarn start",
"start": "node scripts/dev & yarn types:dev",
"build:core": "yarn build",
"build:packages": "yarn build",
"build": "node scripts/build && yarn types:build",
"types:dev": "tsc -w --p tsconfig.build.json",
"types:build": "tsc -p tsconfig.build.json",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf dist"
}
}