Generic properties used in kinetic js

container String | DomElement Container id or DOM element
x Number <optional>
y Number <optional>
width Number <optional>
height Number <optional>
visible Boolean <optional>
listening Boolean <optional> whether or not the node is listening for events
id String <optional> unique id
name String <optional> non-unique name
opacity Number <optional> determines node opacity. Can be any number between 0 and 1
scale Object <optional> set scale
scaleX Number <optional> set scale x
scaleY Number <optional> set scale y
rotation Number <optional> rotation in degrees
offset Object <optional> offset from center point and rotation point
offsetX Number <optional> set offset x
offsetY Number <optional> set offset y
draggable Boolean <optional> makes the node draggable. When stages are draggable, you can drag and drop the entire stage by dragging any portion of the stage
dragDistance Number <optional>
dragBoundFunc function <optional>
clipFunc function <optional> clipping function
angle Number in degrees
innerRadius Number
outerRadius Number
clockwise Boolean <optional>
fill String <optional> fill color
fillRed Integer <optional> set fill red component
fillGreen Integer <optional> set fill green component
fillBlue Integer <optional> set fill blue component
fillAlpha Integer <optional> set fill alpha component
fillPatternImage Image <optional> fill pattern image
fillPatternX Number <optional>
fillPatternY Number <optional>
fillPatternOffset Object <optional> object with x and y component
fillPatternOffsetX Number <optional>
fillPatternOffsetY Number <optional>
fillPatternScale Object <optional> object with x and y component
fillPatternScaleX Number <optional>
fillPatternScaleY Number <optional>
fillPatternRotation Number <optional>
fillPatternRepeat String <optional> can be “repeat”, “repeat-x”, “repeat-y”, or “no-repeat”. The default is “no-repeat”
fillLinearGradientStartPoint Object <optional> object with x and y component
fillLinearGradientStartPointX Number <optional>
fillLinearGradientStartPointY Number <optional>
fillLinearGradientEndPoint Object <optional> object with x and y component
fillLinearGradientEndPointX Number <optional>
fillLinearGradientEndPointY Number <optional>
fillLinearGradientColorStops Array <optional> array of color stops
fillRadialGradientStartPoint Object <optional> object with x and y component
fillRadialGradientStartPointX Number <optional>
fillRadialGradientStartPointY Number <optional>
fillRadialGradientEndPoint Object <optional> object with x and y component
fillRadialGradientEndPointX Number <optional>
fillRadialGradientEndPointY Number <optional>
fillRadialGradientStartRadius Number <optional>
fillRadialGradientEndRadius Number <optional>
fillRadialGradientColorStops Array <optional> array of color stops
fillEnabled Boolean <optional> flag which enables or disables the fill. The default value is true
fillPriority String <optional> can be color, linear-gradient, radial-graident, or pattern. The default value is color. The fillPriority property makes it really easy to toggle between different fill types. For example, if you want to toggle between a fill color style and a fill pattern style, simply set the fill property and the fillPattern properties, and then use setFillPriority(‘color’) to render the shape with a color fill, or use setFillPriority(‘pattern’) to render the shape with the pattern fill configuration
stroke String <optional> stroke color
strokeRed Integer <optional> set stroke red component
strokeGreen Integer <optional> set stroke green component
strokeBlue Integer <optional> set stroke blue component
strokeAlpha Integer <optional> set stroke alpha component
strokeWidth Number <optional> stroke width
strokeScaleEnabled Boolean <optional> flag which enables or disables stroke scale. The default is true
strokeEnabled Boolean <optional> flag which enables or disables the stroke. The default value is true
lineJoin String <optional> can be miter, round, or bevel. The default is miter
lineCap String <optional> can be butt, round, or sqare. The default is butt
shadowColor String <optional>
shadowRed Integer <optional> set shadow color red component
shadowGreen Integer <optional> set shadow color green component
shadowBlue Integer <optional> set shadow color blue component
shadowAlpha Integer <optional> set shadow color alpha component
shadowBlur Number <optional>
shadowOffset Object <optional> object with x and y component
shadowOffsetX Number <optional>
shadowOffsetY Number <optional>
shadowOpacity Number <optional> shadow opacity. Can be any real number between 0 and 1
shadowEnabled Boolean <optional> flag which enables or disables the shadow. The default value is true
dash Array <optional>
dashEnabled Boolean <optional> flag which enables or disables the dashArray. The default value is true

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s