@dino-dna/d3-svg-path-editor
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "@dino-dna/d3-svg-path-editor", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"license": "MIT", | ||
@@ -19,3 +19,2 @@ "main": "./src/index.js", | ||
"@types/lodash": "4.14.149", | ||
"@types/react": "16.9.13", | ||
"@types/react-dom": "16.9.4", | ||
@@ -31,2 +30,3 @@ "@typescript-eslint/eslint-plugin": "2.10.0", | ||
"parcel-bundler": "1.12.4", | ||
"perish": "1.0.2", | ||
"phantomjs-prebuilt": "2.1.16", | ||
@@ -50,3 +50,3 @@ "prettier-standard": "16.1.0", | ||
"lint": "standardx '{demo,src,test,scripts}/**/*.{js,jsx,ts,tsx}' --fix", | ||
"build:demo": "parcel build demo/index.html --public-url ./", | ||
"build:demo": "parcel build demo/index.html --public-url '.'", | ||
"demo": "parcel demo/index.html", | ||
@@ -53,0 +53,0 @@ "test": "testem ci" |
@@ -1,2 +0,2 @@ | ||
# d3-svg-path-editor | ||
# @dino-dna/d3-svg-path-editor | ||
@@ -18,5 +18,5 @@ create an editable svg [path](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path). a library to enable in-app path editing | ||
`npm install --save d3-svg-path-editor d3` | ||
`npm install --save @dino-dna/d3-svg-path-editor d3` | ||
on the topic of d3 and bundle performance, some minimal subset of d3 packages must be installed and added onto the `d3` instance. we use d3-line, d3-selection, and d3 events. `d3` experts are welcome to add documentation on how to | ||
on the topic of d3 and bundle performance, some minimal subset of d3 packages must be installed and added onto the `d3` instance. we use d3-line, d3-selection, and d3 events. `d3` experts are welcome to add documentation on how to optimize web builds here for d3 bundles! | ||
@@ -28,3 +28,3 @@ ## usage | ||
```tsx | ||
import { fromPoints } from 'd3-svg-path-editor' | ||
import { fromPoints } from '@dino-dna/d3-svg-path-editor' | ||
const points: [number, number][] = [[0, 0], [10, 10]] | ||
@@ -31,0 +31,0 @@ const svg$ = d3.select((document.getElementById('my_svg')) as SVGSVGElement) |
@@ -6,3 +6,2 @@ import { circle, path, LineTransform } from './dom' | ||
import { getPointInsertionIndex } from './point-maths' | ||
import { onStateChange } from '../demo/util/on-state-change' | ||
export * from './interfaces' | ||
@@ -9,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
51286
1065