jellies-draw 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jellies-draw",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "A drawer for jellies",
5
5
  "private": false,
6
6
  "main": "./src/index.js",
@@ -46,7 +46,7 @@ export default {
46
46
  }
47
47
  }, 200)
48
48
  },
49
- generate({ x, y, radiusX, radiusY, scaleX, scaleY, fill, stroke, strokeWidth }) {
49
+ generate({ x, y, radiusX, radiusY, scaleX, scaleY, skewX, rotation, fill, stroke, strokeWidth }) {
50
50
  const newEllipse = new Konva.Ellipse({
51
51
  x,
52
52
  y,
@@ -54,6 +54,8 @@ export default {
54
54
  radiusY,
55
55
  scaleX,
56
56
  scaleY,
57
+ skewX,
58
+ rotation,
57
59
  fill,
58
60
  stroke,
59
61
  strokeWidth,
@@ -34,12 +34,14 @@ export default {
34
34
  finish() {
35
35
  this.temporalShape = null
36
36
  },
37
- generate({ x, y, scaleX, scaleY, points, stroke, strokeWidth }) {
37
+ generate({ x, y, scaleX, scaleY, skewX, rotation, points, stroke, strokeWidth }) {
38
38
  const newLine = new Konva.Line({
39
39
  x,
40
40
  y,
41
41
  scaleX,
42
42
  scaleY,
43
+ skewX,
44
+ rotation,
43
45
  points,
44
46
  stroke,
45
47
  strokeWidth,
@@ -44,7 +44,7 @@ export default {
44
44
  }
45
45
  }, 200)
46
46
  },
47
- generate({ x, y, scaleX, scaleY, width, height, fill, stroke, strokeWidth }) {
47
+ generate({ x, y, scaleX, scaleY, width, height, skewX, rotation, fill, stroke, strokeWidth }) {
48
48
  const newRectangle = new Konva.Rect({
49
49
  x,
50
50
  y,
@@ -52,6 +52,8 @@ export default {
52
52
  scaleY,
53
53
  width,
54
54
  height,
55
+ skewX,
56
+ rotation,
55
57
  fill,
56
58
  stroke,
57
59
  strokeWidth,
@@ -157,7 +157,7 @@ export default {
157
157
  }
158
158
  this.textarea.style.width = `${ newWidth }px`;
159
159
  },
160
- generate({ text, x, y, fill, fontSize, width, height, scaleX, scaleY }) {
160
+ generate({ text, x, y, fill, fontSize, width, height, scaleX, scaleY, skewX, rotation }) {
161
161
  const newText = new Konva.Text({
162
162
  text,
163
163
  x,
@@ -168,6 +168,8 @@ export default {
168
168
  height,
169
169
  scaleX,
170
170
  scaleY,
171
+ skewX,
172
+ rotation,
171
173
  name: 'node',
172
174
  nodeType: 'text',
173
175
  strokeEnabled: false