mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
update docs
This commit is contained in:
parent
b201d94cbb
commit
4f4291dc38
6
konva.js
6
konva.js
@ -8,7 +8,7 @@
|
|||||||
* Konva JavaScript Framework v4.2.0
|
* Konva JavaScript Framework v4.2.0
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Sat Mar 14 2020
|
* Date: Mon Mar 16 2020
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
@ -10338,7 +10338,7 @@
|
|||||||
* Arrow constructor
|
* Arrow constructor
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof Konva
|
* @memberof Konva
|
||||||
* @augments Konva.Shape
|
* @augments Konva.Line
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
* @param {Array} config.points Flat array of points coordinates. You should define them as [x1, y1, x2, y2, x3, y3].
|
* @param {Array} config.points Flat array of points coordinates. You should define them as [x1, y1, x2, y2, x3, y3].
|
||||||
* @param {Number} [config.tension] Higher values will result in a more curvy line. A value of 0 will result in no interpolation.
|
* @param {Number} [config.tension] Higher values will result in a more curvy line. A value of 0 will result in no interpolation.
|
||||||
@ -10504,7 +10504,7 @@
|
|||||||
x: lineRect.x - offset,
|
x: lineRect.x - offset,
|
||||||
y: lineRect.y - offset,
|
y: lineRect.y - offset,
|
||||||
width: lineRect.width + offset * 2,
|
width: lineRect.width + offset * 2,
|
||||||
height: lineRect.height + offset * 2,
|
height: lineRect.height + offset * 2
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
return Arrow;
|
return Arrow;
|
||||||
|
2
konva.min.js
vendored
2
konva.min.js
vendored
@ -3,7 +3,7 @@
|
|||||||
* Konva JavaScript Framework v4.2.0
|
* Konva JavaScript Framework v4.2.0
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Sat Mar 14 2020
|
* Date: Mon Mar 16 2020
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
|
@ -161,10 +161,10 @@ export class Canvas {
|
|||||||
* @returns {Number}
|
* @returns {Number}
|
||||||
* @example
|
* @example
|
||||||
* // get
|
* // get
|
||||||
* var pixelRatio = canvas.pixelRatio();
|
* var pixelRatio = layer.getCanvas.pixelRatio();
|
||||||
*
|
*
|
||||||
* // set
|
* // set
|
||||||
* canvas.pixelRatio(100);
|
* layer.getCanvas().pixelRatio(3);
|
||||||
*/
|
*/
|
||||||
Factory.addGetterSetter(Canvas, 'pixelRatio', undefined, getNumberValidator());
|
Factory.addGetterSetter(Canvas, 'pixelRatio', undefined, getNumberValidator());
|
||||||
|
|
||||||
|
@ -128,12 +128,13 @@ export const Konva = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device.
|
* Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device.
|
||||||
* But you may override such property, if you want to use your value.
|
* But you may override such property, if you want to use your value. Set this value before any components initializations.
|
||||||
* @property pixelRatio
|
* @property pixelRatio
|
||||||
* @default undefined
|
* @default undefined
|
||||||
* @name pixelRatio
|
* @name pixelRatio
|
||||||
* @memberof Konva
|
* @memberof Konva
|
||||||
* @example
|
* @example
|
||||||
|
* // before any Konva code:
|
||||||
* Konva.pixelRatio = 1;
|
* Konva.pixelRatio = 1;
|
||||||
*/
|
*/
|
||||||
pixelRatio: undefined,
|
pixelRatio: undefined,
|
||||||
|
@ -18,7 +18,7 @@ export interface ArrowConfig extends LineConfig {
|
|||||||
* Arrow constructor
|
* Arrow constructor
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof Konva
|
* @memberof Konva
|
||||||
* @augments Konva.Shape
|
* @augments Konva.Line
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
* @param {Array} config.points Flat array of points coordinates. You should define them as [x1, y1, x2, y2, x3, y3].
|
* @param {Array} config.points Flat array of points coordinates. You should define them as [x1, y1, x2, y2, x3, y3].
|
||||||
* @param {Number} [config.tension] Higher values will result in a more curvy line. A value of 0 will result in no interpolation.
|
* @param {Number} [config.tension] Higher values will result in a more curvy line. A value of 0 will result in no interpolation.
|
||||||
@ -119,8 +119,8 @@ export class Arrow extends Line<ArrowConfig> {
|
|||||||
x: lineRect.x - offset,
|
x: lineRect.x - offset,
|
||||||
y: lineRect.y - offset,
|
y: lineRect.y - offset,
|
||||||
width: lineRect.width + offset * 2,
|
width: lineRect.width + offset * 2,
|
||||||
height: lineRect.height + offset * 2,
|
height: lineRect.height + offset * 2
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
pointerLength: GetSet<number, this>;
|
pointerLength: GetSet<number, this>;
|
||||||
|
Loading…
Reference in New Issue
Block a user