|
Hi, \nIs it possible to create a simple shape with a shadow in an mxGraph stencil ? \nfor example can I add a shadow to this ellipse ? \n</shape>\n\nIf not is there a way to create shapes with shadows using stencils ? |
|
The background element is responsible for the shadow (unless you paint it explicitely inside the stencil XML, which is not recommended). The rule for the background element is that it should contain one path, ellipse or rectangle, or in other words, the path, move and close are not needed: \n\nFor strokewidth you can also use "inherit" to use the strokeWidth value from the cell's style. More details about the format are available in the mxStencil API specification. Hi, thanks. \nThe only docs I could find for mxStencil is in the mxStencilShape class. and there it's only mentioned in : n
(31 Jan, 23:00)
Raanan
The specification is at docs/js-api/files/shape/mxStencil-js.html. The name of the class will be fixed in the next release.
(31 Jan, 23:09)
Gaudenz ♦♦
|
|
thanks for the help. \nI can get what is need by using a style on the stencil shape like : \ndefine the shape : \n\nadd style to it : \n\nIs there a way to get something like this only by using a stencil ? |