Skip to content

Commit

Permalink
chore: update svg-drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkzt committed May 7, 2020
1 parent 7b3ba31 commit a6848c0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/useDrawing.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { SvgDrawing, DrawingOption } from 'svg-drawing/lib/SvgDrawing';
import { SvgDrawing, DrawingOption } from 'svg-drawing';
interface UseSvgDrawing {
two: SvgDrawing | null;
clear: () => void;
Expand Down
2 changes: 1 addition & 1 deletion lib/useDrawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
return __assign.apply(this, arguments);
};
import { useRef, useEffect, useCallback } from 'react';
import { SvgDrawing } from 'svg-drawing/lib/SvgDrawing';
import { SvgDrawing } from 'svg-drawing';
import { downloadBlob } from './utils/downloadBlob';
export var useSvgDrawing = function (option) {
var renderRef = useRef(null);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"release": "release-it"
},
"dependencies": {
"svg-drawing": "1.6.1",
"svg-drawing": "1.8.6",
"two.js": "0.7.0-beta.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/useDrawing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef, useEffect, useCallback, MutableRefObject } from 'react'
import Two from 'two.js'
import { SvgDrawing, DrawingOption } from 'svg-drawing/lib/SvgDrawing'
import { SvgDrawing, DrawingOption } from 'svg-drawing'
import { downloadBlob } from './utils/downloadBlob'

interface UseSvgDrawing {
Expand Down
10 changes: 4 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9013,12 +9013,10 @@ supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"

[email protected]:
version "1.6.1"
resolved "https://registry.npmjs.org/svg-drawing/-/svg-drawing-1.6.1.tgz#cd311a035e0292e40becf0759e89b20417657fe0"
integrity sha512-Re/7HdNYKoDwtTqOYv9rpr+Qw23ajOisanyzSm7yK2sy+rlLhAl3rf909GTx8uaT1PzANjszqALmtm1XOKGGIw==
dependencies:
two.js "0.7.0-beta.3"
[email protected]:
version "1.8.6"
resolved "https://registry.npmjs.org/svg-drawing/-/svg-drawing-1.8.6.tgz#62446806105cee0a5b1a7b98bf5f70639dee539c"
integrity sha512-Vx8RWUk6ilgu67+XDh0QnH2gUPbvab6NCU+bxS3oHCaquSuMl5tY1C75PBFNjgUSs4OwBHVk+cHbu1ljTeHKKw==

symbol-tree@^3.2.2:
version "3.2.2"
Expand Down

0 comments on commit a6848c0

Please sign in to comment.