mirror of
https://github.com/konvajs/konva.git
synced 2025-12-21 19:27:08 +08:00
ellipse code example is added to docs
This commit is contained in:
@@ -11,6 +11,14 @@
|
|||||||
* @param {Object} config.radius defines x and y radius
|
* @param {Object} config.radius defines x and y radius
|
||||||
* @@ShapeParams
|
* @@ShapeParams
|
||||||
* @@NodeParams
|
* @@NodeParams
|
||||||
|
* @example
|
||||||
|
* var ellipse = new Kinetic.Ellipse({<br>
|
||||||
|
* radius : {<br>
|
||||||
|
* x : 50,<br>
|
||||||
|
* y : 50<br>
|
||||||
|
* },<br>
|
||||||
|
* fill: 'red'<br>
|
||||||
|
* });
|
||||||
*/
|
*/
|
||||||
Kinetic.Ellipse = function(config) {
|
Kinetic.Ellipse = function(config) {
|
||||||
this.___init(config);
|
this.___init(config);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* width: 100,<br>
|
* width: 100,<br>
|
||||||
* height: 50,<br>
|
* height: 50,<br>
|
||||||
* fill: 'red',<br>
|
* fill: 'red',<br>
|
||||||
* stroke: 'black'<br>
|
* stroke: 'black',<br>
|
||||||
* strokeWidth: 5<br>
|
* strokeWidth: 5<br>
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user