Bug 496542 - BundledImageShape extension should me more documented
Summary: BundledImageShape extension should me more documented
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-06-22 06:19 EDT by Frédéric Madiot CLA
Modified: 2017-06-15 09:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Madiot CLA 2016-06-22 06:19:45 EDT
The constraints on the SVG images supported by this extennsion point should be indicated in the documentation.

Some constraints :
- the fill color must be defined by a linearGradient
- the linearGradient must have only one stop
- the color defined by the stop must be an hexa (not "none", "green", ...)
- the colorIdentifier used by Sirius is the id of the stop
- the borderColorIdentifier used by Sirius is the id of a path
- the border color is defined by the stroke attribute of the path
- the stroke attribute of the path must not be an hexa

In addition, when Sirius doesn't find the right attributes, there is a "String index out of range" exception. The exception should be more explicit and indicate the missing attribute or invalid value (for example when it expects an hexa color).