Class constructorTextRect
represents text in rectangular frame
Defined in: raphaelsm.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
constructorTextRect(raphael, x, z, width, height, str, fontSize)
Text in rectangular frame
|
Field Attributes | Field Name and Description |
---|---|
font size
|
|
height of rectangle
|
|
raphael rect object
TextRect = function(raphael,x,z,width,height,str,fontSize) {
/** Constructor, see TextRect for parameters description
|
|
text to display
|
|
raphael text object
|
|
width of rectangle
|
|
x coordinate of top left corner
|
|
z coordinate of top left corner
|
Class Detail
constructorTextRect(raphael, x, z, width, height, str, fontSize)
Text in rectangular frame
- Parameters:
- {Raphael} raphael
- rapheal instance
- {float} x Optional, Default: 100.
- x coordinate of left lower corner [pixel]
- {float} z Optional, Default: 100.
- z coordinate of left lower corner [pixel]
- {float} width Optional, Default: 100.
- width [pixel]
- {float} height Optional, Default: 100.
- height [pixel]
- {string} str Optional, Default: "string"
- string to be shown
- {float} fontSize Optional, Default: 20.
- font size
Field Detail
{float}
fontSize
font size
{float}
height
height of rectangle
{Raphael.rect}
rect
raphael rect object
TextRect = function(raphael,x,z,width,height,str,fontSize) {
/** Constructor, see TextRect for parameters description
{string}
str
text to display
{Raphael.text}
text
raphael text object
{float}
width
width of rectangle
{float}
x
x coordinate of top left corner
{float}
z
z coordinate of top left corner