As I understand fill can be either
ImageFill. What is the proper way to understand what fill was applied. I checked typeof but it doesn’t work. I believe LinearGradientFill is not scenegraph module but which one instead?
console.log("scenegraph.Color", typeof(scenegraph.Color)); console.log("scenegraph.LinearGradientFill", typeof(scenegraph.LinearGradientFill)); console.log("scenegraph.RadialGradientFill", typeof(scenegraph.RadialGradientFill));
has following output:
scenegraph.Color function scenegraph.LinearGradientFill undefined scenegraph.RadialGradientFill undefined