Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(`no no no ${type}/${color}/${size}`);
}
/* eslint-enable no-console */
}
// CONSTRAINTS FOR TEXT IN BUBBLE
if (layer instanceof Text && node.parentElement.classList.contains('sg-bubble')) {
layer.setResizingConstraint(RESIZING_CONSTRAINTS.LEFT);
}
// CONSTRAINTS FOR SVG IN SEARCH
if (node.parentElement.classList.contains('sg-search__icon') ||
layer instanceof SVG && node.parentElement.parentElement.classList.contains('sg-round-button__hole') ||
layer instanceof SVG && node.parentElement.parentElement.classList.contains('custom-select__icon')) {
layer.setResizingConstraint(
RESIZING_CONSTRAINTS.RIGHT,
RESIZING_CONSTRAINTS.WIDTH,
RESIZING_CONSTRAINTS.HEIGHT
);
}
// CONSTRAINTS FOR SVG IN SELECT AND COUNTER
if (node.parentElement.classList.contains('sg-counter')) {
layer.setResizingConstraint(
RESIZING_CONSTRAINTS.WIDTH,
RESIZING_CONSTRAINTS.HEIGHT
);
}
// CONSTRAINTS FOR TEXT IN INPUT
if (layer instanceof Text && node.parentElement.classList.contains('sg-input')) {
layer.setResizingConstraint(RESIZING_CONSTRAINTS.LEFT);