radial gradient control handles are wrongly placed
Bug #1031785 reported by
Brian Marriage
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When attached test file (very small, hand-written) is loaded into Inkscape, the radial gradient is displayed correctly. However, if the rectangle is selected and the gradient edit tool is then activated, the gradient editing handles are drawn in the wrong place. As soon as they are moved, the gradient jumps to the match the handles. Removing the transform from the file makes the problem go away.
Windows 7 Enterprise SP1 64bit
Inkscape 0.48.2 r9819
tags: |
added: transformations ui removed: radial transform |
To post a comment you must log in.
Reproduced with Inkscape 0.46, 0.47, 0.48.2, 0.48.3.1 and 0.48+devel r11582 on OS X 10.7.4.
<defs> ReflectionHighl ight" sform=" translate( -0.5,-0. 5) scale(2.0,2.0)"> color=" #FFF" color=" #000"
<radialGradient
id="
gradientTran
<stop
stop-
offset="0"/>
<stop
stop-
offset="1"/>
</radialGradient>
</defs>
Known underlying limitation of Inkscape: the hand-coded gradient uses "objectBoundingBox" as 'gradientUnits' [1] (this defines the gradient transformation(s) to move and scale relative to the bounding box of the object which has the gradient applied), whereas Inkscape (currently) only fully supports 'userSpaceOnUse': While the initial rendering of such a gradient with 'gradientUnits= "objectBounding Box"' in most cases is correct (and corresponds to other SVG viewers), the scale and transformation defined in that hand-coded gradient definition appear to be incorrectly converted to 'userSpaceOnUse' whenever the object (or the gradient itself) is edited in Inkscape (e.g. moved).
Other reports mentioning inconsistencies between rendering and position of handles of gradients with "objectBoundingBox" gradientUnits:
Bug #168146 “Wrong bounding box calculated for objectBoundingBox units”: comments 5-10
Bug #970355 “Regression: Radial gradients with offset focal point using 'objectBoundingBox' incorrect (zoom-dependent)”: comments 4-5
--- www.w3. org/TR/ SVG11/pservers. html#RadialGrad ientElementGrad ientUnitsAttrib ute>
[1] <http://