diff --git a/src/Node.ts b/src/Node.ts index 64519539..2dac2715 100644 --- a/src/Node.ts +++ b/src/Node.ts @@ -1167,7 +1167,7 @@ export abstract class Node { * // move node in x direction by 1px and y direction by 2px * node.move({ * x: 1, - * y: 2) + * y: 2 * }); */ move(change) { @@ -2405,7 +2405,7 @@ Factory.addGetterSetter(Node, 'zIndex'); * * // set position * node.absolutePosition({ - * x: 5 + * x: 5, * y: 10 * }); */ @@ -2426,7 +2426,7 @@ Factory.addGetterSetter(Node, 'position'); * * // set position * node.position({ - * x: 5 + * x: 5, * y: 10 * }); */ @@ -2568,7 +2568,7 @@ Factory.addComponentsGetterSetter(Node, 'scale', ['x', 'y']); * * // set scale * shape.scale({ - * x: 2 + * x: 2, * y: 3 * }); */ @@ -2621,7 +2621,7 @@ Factory.addComponentsGetterSetter(Node, 'skew', ['x', 'y']); * * // set skew * node.skew({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -2673,7 +2673,7 @@ Factory.addComponentsGetterSetter(Node, 'offset', ['x', 'y']); * * // set offset * node.offset({ - * x: 20 + * x: 20, * y: 10 * }); */ diff --git a/src/Shape.ts b/src/Shape.ts index 43a05a90..81fac66c 100644 --- a/src/Shape.ts +++ b/src/Shape.ts @@ -1095,7 +1095,7 @@ Factory.addComponentsGetterSetter(Shape, 'shadowOffset', ['x', 'y']); * * // set shadow offset * shape.shadowOffset({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1440,7 +1440,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillPatternOffset', ['x', 'y']); * * // set fill pattern offset * shape.fillPatternOffset({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1493,7 +1493,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillPatternScale', ['x', 'y']); * * // set fill pattern scale * shape.fillPatternScale({ - * x: 2 + * x: 2, * y: 2 * }); */ @@ -1549,7 +1549,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillLinearGradientStartPoint', [ * * // set fill linear gradient start point * shape.fillLinearGradientStartPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1573,7 +1573,7 @@ Factory.addComponentsGetterSetter(Shape, 'strokeLinearGradientStartPoint', [ * * // set stroke linear gradient start point * shape.strokeLinearGradientStartPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1660,7 +1660,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillLinearGradientEndPoint', [ * * // set fill linear gradient end point * shape.fillLinearGradientEndPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1684,7 +1684,7 @@ Factory.addComponentsGetterSetter(Shape, 'strokeLinearGradientEndPoint', [ * * // set stroke linear gradient end point * shape.strokeLinearGradientEndPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1768,7 +1768,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillRadialGradientStartPoint', [ * * // set fill radial gradient start point * shape.fillRadialGradientStartPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ @@ -1822,7 +1822,7 @@ Factory.addComponentsGetterSetter(Shape, 'fillRadialGradientEndPoint', [ * * // set fill radial gradient end point * shape.fillRadialGradientEndPoint({ - * x: 20 + * x: 20, * y: 10 * }); */ diff --git a/src/shapes/Circle.ts b/src/shapes/Circle.ts index ea35c960..1fbd43ef 100644 --- a/src/shapes/Circle.ts +++ b/src/shapes/Circle.ts @@ -23,7 +23,7 @@ export interface CircleConfig extends ShapeConfig { * var circle = new Konva.Circle({ * radius: 40, * fill: 'red', - * stroke: 'black' + * stroke: 'black', * strokeWidth: 5 * }); */ diff --git a/src/shapes/Ellipse.ts b/src/shapes/Ellipse.ts index 1da532a6..383bd213 100644 --- a/src/shapes/Ellipse.ts +++ b/src/shapes/Ellipse.ts @@ -25,7 +25,8 @@ export interface EllipseConfig extends ShapeConfig { * radius : { * x : 50, * y : 50 - * } * fill: 'red' + * }, + * fill: 'red' * }); */ export class Ellipse extends Shape { diff --git a/src/shapes/Sprite.ts b/src/shapes/Sprite.ts index 6626301f..537d3038 100644 --- a/src/shapes/Sprite.ts +++ b/src/shapes/Sprite.ts @@ -55,7 +55,8 @@ export interface SpriteConfig extends ShapeConfig { * 229, 109, 60, 98, * 287, 109, 41, 98 * ] - * } * frameRate: 7, + * }, + * frameRate: 7, * frameIndex: 0 * }); * }; diff --git a/src/shapes/TextPath.ts b/src/shapes/TextPath.ts index f425c485..88a229e3 100644 --- a/src/shapes/TextPath.ts +++ b/src/shapes/TextPath.ts @@ -49,12 +49,13 @@ function _strokeFunc(context) { * 'A': { * ' ': -0.05517578125, * 'T': -0.07421875, - * 'V': -0.07421875, - * } * 'V': { + * 'V': -0.07421875 + * } + * 'V': { * ',': -0.091796875, * ":": -0.037109375, * ";": -0.037109375, - * "A": -0.07421875, + * "A": -0.07421875 * } * } * var textpath = new Konva.TextPath({