Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
// fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.strokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
// fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
React.useEffect(() => {
setValue({
root: ref.current,
rough: roughjs.svg(ref.current, props.config),
})
}, [ref.current, config])
return (
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg, {options:
{strokeWidth: this.strokeWidth >= 3 ? 3 : this.strokeWidth},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg,
{options: {
strokeWidth: this.axisStrokeWidth,
roughness: this.axisRoughness,
},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
stroke: this.stroke === 'none' ? undefined : this.stroke,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}
initRoughObjects() {
this.roughSvg = document.getElementById(this.roughId);
this.rcAxis = rough.svg(this.roughSvg, {options:
{strokeWidth: this.strokeWidth >= 3 ? 3 : this.strokeWidth},
});
this.rc = rough.svg(this.roughSvg, {
options: {
fill: this.color,
strokeWidth: this.innerStrokeWidth,
roughness: this.roughness,
bowing: this.bowing,
fillStyle: this.fillStyle,
},
});
}