JavaFX linearGradient export doesn't include start/end node locations, just stops

Bug #1079965 reported by Dave Blanpied
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Won't Fix
Medium
Unassigned

Bug Description

Export a Windows Inkscape 0.48.2 r9819 document using gradients with the JavaFX filter (*.fx).

Radial gradients are exported as:

    /* create RadialGradient for radialGradient3771 */
    function radialGradient3771() {
        RadialGradient {
            centerX: 360.00000000
            centerY: 741.65087891
            focusX: 360.00000000
            focusY: 741.65087891
            radius: 213.46115112
            stops:
            [
                Stop {
                    offset: 0.00000000
                    color: Color.rgb(0xff, 0x4f, 0xcb, 1.00000000)
                },
                Stop {
                    offset: 1.00000000
                    color: Color.rgb(0x2a, 0x04, 0xff, 1.00000000)
                },
            ]
        };
    } // end RadialGradient: radialGradient3771

Notice node information is provided.

Linear gradients are exported as:

    /* create LinearGradient for linearGradient2993 */
    function linearGradient2993(): LinearGradient {
        LinearGradient {
            stops:
                [
                Stop {
                    offset: 0.00000000
                    color: Color.rgb(0xff, 0x99, 0x4f, 1.00000000)
                },
                Stop {
                    offset: 1.00000000
                    color: Color.rgb(0xff, 0x4f, 0xcb, 1.00000000)
                },
            ]
        };
    } // end LinearGradient: linearGradient2993

Notice no node information.

Linear gradients are exported to XAML as:

><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3765" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FFFF4FCB" Offset="0"/><GradientStop Color="#FF2A04FF" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush>

or

><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient2993" MappingMode="Absolute" StartPoint="217,367" EndPoint="511,364"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FFFF994F" Offset="0"/><GradientStop Color="#FFFF4FCB" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush>

Notice start and end node information is provided or inferred.

Revision history for this message
Dave Blanpied (daveblanpied) wrote :
su_v (suv-lp)
tags: added: javafx
Kris (kris-degussem)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

Unfortunately support for saving as JavaFX 1.x script files (*.fx) has been removed in Inkscape 1.0, so this won't be fixed.

Closed by: https://gitlab.com/Qantas94Heavy

Changed in inkscape:
status: New → Won't Fix
tbnorth (terry-n-brown)
tags: added: bug-migration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.