Ellipse
import {Ellipse} from 'cx/svg';Ellipse is a Cx version of SVG ellipse object which can be used in responsive scenarios.
<Svg style="width:400px;height:400px;background:white" padding={5}>
<Ellipse margin={10} colorIndex={0} />
<Ellipse margin={20} colorIndex={1} />
<Ellipse margin={30} colorIndex={2} />
<Ellipse margin={40} colorIndex={3} />
<Ellipse margin={50} colorIndex={4} />
<Ellipse margin={60} colorIndex={5} />
<Ellipse margin={70} colorIndex={6} />
<Ellipse margin={80} colorIndex={7} />
<Ellipse margin={90} colorIndex={8} />
<Ellipse margin={100} colorIndex={9} />
<Ellipse margin={110} colorIndex={10} />
<Ellipse margin={120} colorIndex={11} />
<Ellipse margin={130} colorIndex={12} />
<Ellipse margin={140} colorIndex={13} />
<Ellipse margin={150} colorIndex={14} />
<Ellipse margin={160} colorIndex={15} />
</Svg>| Property | Description | Type |
|---|---|---|
fill | A color used to paint the box. | string |
rx | The horizontal corner radius of the rect. Defaults to | string/number |
ry | The vertical corner radius of the rect. Defaults to | string/number |
stroke | A color used to paint the outline of the box. | string |
anchors | Anchor defines how child bounds are tied to the parent. Zero aligns with the top/left edge. One aligns with the bottom/right edge. See Svg for more information. | string/number/rect |
class | Additional CSS classes to be applied to the element. If an object is provided, all keys with a "truthy" value will be added to the CSS class list. | string/object |
colorIndex | Index of the color in the default color palette. Setting this property will set both fill and stroke on the
object.
Use | number |
items | List of child elements. | array |
margin | Apply margin to the given boundaries. See Svg for more information. | string/number/rect |
mod | Appearance modifier. For example, | string/array |
offset | Move boundaries specified by the offset. See Svg for more information. | string/number/rect |
outerLayout | Defines the outer layout which wraps the widget. | widget |
padding | Padding to be applied to the boundaries rectangle before passing to the children. | string/number/rect |
plainText | Set to | boolean |
preserveWhitespace | Keep whitespace in text based children. Default is | boolean |
putInto | Used with outer layouts. Specifies the name of the content placeholder which should render the widget. | string |
style | Style object applied to the wrapper div. Used for setting the dimensions of the element. | string/object |
trimWhitespace | Remove all whitespace in text based children. Default is | boolean |
vdomKey | Key that will be used as the key when rendering the React component. | string |
visible | Visibility of the widget. Defaults to | boolean |