Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
evalColorByTemperature(node) {
const temperature = Utils.forceNumInRange(node.value.evaluate(this), 0, 200000, node.value.$loc)
const value = Chroma.temperature(temperature)
return value
}
CoreEvaluator.prototype.evalManageColorTemperature = function (node) {
var curValue = node.obj.evaluate(this).temperature();
if (node.value === void 0)
return curValue;
else {
var value = utils_1.forceType(node.value.evaluate(this), utils_1.ValueType.Number, node.value.$loc);
if (node.operator)
value = this.getNumberArithmeticFunc(node.operator)(curValue, value);
var obj = chroma.temperature(value);
return obj;
}
};
CoreEvaluator.prototype.evalManageColorLuminance = function (node) {
evalManageColorTemperature(node) {
const curValue = (node.obj.evaluate(this)).temperature()
if (node.value === void 0) {
return curValue
} else {
let value = Utils.forceType(node.value.evaluate(this), ValueType.Number, node.value.$loc)
if (node.operator) {
value = this._getNumberArithmeticFunc(node.operator)(curValue, value)
}
const obj = Chroma.temperature(value)
return obj
}
}
CoreEvaluator.prototype.evalColorByTemperature = function (node) {
var temperature = utils_1.forceNumInRange(node.value.evaluate(this), 0, 200000, node.value.$loc);
var value = chroma.temperature(temperature);
return value;
};
CoreEvaluator.prototype.evalColorByWavelength = function (node) {