Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const fadeFar =
technique.fadeFar !== undefined
? getPropertyValue(technique.fadeFar, displayZoomLevel)
: FadingFeature.DEFAULT_FADE_FAR;
const lineFadeNear =
technique.lineFadeNear !== undefined
? getPropertyValue(technique.lineFadeNear, displayZoomLevel)
: fadeNear;
const lineFadeFar =
technique.lineFadeFar !== undefined
? getPropertyValue(technique.lineFadeFar, displayZoomLevel)
: fadeFar;
if (color === undefined) {
color = EdgeMaterial.DEFAULT_COLOR;
}
return {
color,
colorMix,
fadeNear,
fadeFar,
lineFadeNear,
lineFadeFar
};
}
}