MCPcopy Index your code
hub / github.com/microsoft/SandDance / isGradient

Function isGradient

docs/app/js/sanddance-app.js:121034–121036  ·  view source on GitHub ↗
(value1)

Source from the content-addressed store, hash-verified

121032}
121033const patternPrefix = "p_";
121034function isGradient(value1) {
121035 return value1 && value1.gradient;
121036}
121037function gradientRef(g, defs, base1) {
121038 const type1 = g.gradient;
121039 let id = g.id, prefix = type1 === "radial" ? patternPrefix : ""; // check id, assign default values as needed

Callers 2

colorFunction · 0.70
styleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected