On 2013-10-31 04:20 +0200, Bryan Hoyt | Brush Technology wrote:> *a)* Inkscape initially renders the gradient nodes in the correct
> If I create a gradient in Inkscape, the default coordinate space is
> userSpaceOnUse, as opposed to objectBoundingBox
> (see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/gradientUnits).
> This is ok, but if I edit a gradient manually (via a text editor or the
> XML editor) to change it to objectBoundingBox coordinates, I would like
> it to stay that way.
> objectBoundingBox gradients are very useful if you want to animate or
> gradient will move relative to the object, and you don't have to write
> extra complicated code to try and keep it lined up.
> position, but does not render the gradient colours themselves. So thePlease attach a sample SVG file - based on your other email I guess this
> object has a flat colour.
refers to Inkscape trunk, too: which revision of trunk are you currently
Note: there had been regressions wrt to rendering gradients which use
'objectBoundingBox' in trunk (rev >= 12528), but AFAIK those have been
fixed again (rev >= 12646).
> *b) *As soon as I drag one of the endpoints, it reverts to
> userSpaceOnUse coordinates.
Inkscape only supports 'userSpaceOnUse' when writing gradient definitions.
> Which means that it becomes quite difficult to edit my SVG file in
> Inkscape ever after! Ideally, the object would be coloured correctly,
> and if I move a node or endpoint, it would remain in objectBoundingBox
> Better yet, there would be a way to switch to objectBoundingBox
> coordinates from within the GUI, to avoid having to calculate the
> conversion maths in the XML editor.