abstractnew bcdui.component.chart.SVGDrawer(args)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
Object |
Parameter object
|
- Deprecated
- Yes
Extends
Methods
-
arc(args)
-
Draw a SVG arc
Name Type Description argsObject Parameter object Name Type Default Description xnumber Center ynumber Center radiusnumber Radius startnumber Start endnumber End effectstring optional An effect to be used for areas. Possible values: linearGradient, radialPlate, linearRound, linearPlate percWidthnumber optional Inner radius rgbstring "black" optional Fill color strokestring "black" optional Border color isFilledboolean false optional Fill area onClickfunction optional On click callback addAttrObject optional A set of additional string attributes to be attached to the root element -
box(args)
-
Draw a SVG box
Name Type Description argsObject Parameter object Name Type Default Description xnumber Left ynumber Top widthnumber Width heightnumber Height effectstring optional An effect to be used for areas. Possible values: linearGradient, radialPlate, linearRound, linearPlate rgbstring "black" optional Color isFilledboolean false optional Fill area onClickfunction optional On click callback addAttrObject optional A set of additional string attributes to be attached to the root element -
circle(args)
-
Draw a SVG circle
Name Type Description argsObject Parameter object Name Type Default Description xnumber Center ynumber Center radiusnumber Radius effectstring optional An effect to be used for areas. Possible values: linearGradient, radialPlate, linearRound, linearPlate rgbstring "black" optional Color isFilledboolean false optional Fill area onClickfunction optional On click callback addAttrObject optional A set of additional string attributes to be attached to the root element -
inherited getResult(){DomElement}
-
Returns the a DOM element containing the SVG drawing
Returns:
Type Description DomElement Returns the a DOM element containing the VML or SVG drawing -
image(args)
-
Draw an SVG image element
Name Type Description argsObject Parameter object Name Type Description xnumber Left ynumber Top widthnumber Width heightnumber Height hrefstring optional The image onClickfunction optional On click callback addAttrObject optional A set of additional string attributes to be attached to the root element -
line(args)
-
Draw a SVG line
Name Type Description argsObject Parameter object Name Type Default Description pointsArray.<Array.<number>> 2 dimensional array with x,y points, args.points[0][0] being the first one effectstring optional An effect to be used for areas. Possible values: linearGradient, radialPlate, linearRound, linearPlate rgbstring "black" optional Line color widthnumber 1 optional Line width isFilledboolean false optional Fill area onClickfunction optional On click callback addAttrObject optional A set of additional string attributes to be attached to the root element -
inherited setTransScale(args)
-
Set transform and scale
Name Type Description argsObject parameter Object Name Type Default Description scaleObject {x:1,y:1} optional Default is no scaling \{ x: 1, y: 1\} transformObject optional Default is no shifting \{ x: 0, y: 0 \} -
text(args)
-
Draw a SVG text
Name Type Description argsObject Parameter object Name Type Description xnumber Position ynumber Position textstring The text cssClassstring optional A css class to be used alignstring optional Possible values middle, end layoutFlowstring optional A css value lie vertical-ideographic