Ok – I was now able to test this myself and can confirm that it doesn’t appear to be working.
Tested on XD 16, Windows 10, with the following code:
const { LinearGradientFill } = require('scenegraph');
console.log(LinearGradientFill);
const fill = new LinearGradientFill();
It first logs undefined
to the console and then (which in this case makes sense) throws the same error as for @Prime about (in this case undefined
) it not being a constructor.
This leaves me to believe that LinearGradientFill
is no longer an exported member of the scenegraph
module (unlike, e.g., Color
), leaving the question of where the LinearGradientFill
and thereby its constructor can get found. Also, this really makes resolving this issue a necessity since with unexpected behavior like LinearGradientFill
not behaving like Color
, the question of which class can get found where isn’t even implied anymore (like it was before, with everything of this sort just being an exported member of scenegraph
).
@kerrishotts @ashryan @peterflynn Sorry to tag you (I’m usually not the kind of person to do that
), but this seems pretty important (since unclear), and with hopefully some (or many) new developers getting “on board” the next few days with the three Hello, XD Plugin workshops, I think that this might be worth taking a look at if you can find the time (since I look at all changes to the docs and check all branches day-in, day-out to keep the typings up to date (and have read every bit in detail at least once), I think it’s safe to say that I know the docs better than many plugin developers (not meaning this in a bragging way, I really would be worried if someone checked the docs repo for updates as often as I do without the justification of staying up to date to update the typings
), meaning it probably isn’t a good sign that I have no idea where LinearGradientFill
can currently be found…).