architwin 1.10.8 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108,11 +108,16 @@ export class TubeLine {
|
|
|
108
108
|
}
|
|
109
109
|
ctx.canvas.width = 64;
|
|
110
110
|
ctx.canvas.height = 64;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
if (this.inputs.fillColor == 'none') {
|
|
112
|
+
ctx.clearRect(0, 0, 64, 64);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
// background
|
|
116
|
+
let fillColorRGBA = this.inputs.fillColor.replace(/rgb/i, 'rgba');
|
|
117
|
+
fillColorRGBA = fillColorRGBA.replace(/\)/i, ',' + (this.hovered ? 0.9 : this.inputs.opacity) + ')');
|
|
118
|
+
ctx.fillStyle = fillColorRGBA;
|
|
119
|
+
ctx.fillRect(0, 0, 64, 64);
|
|
120
|
+
}
|
|
116
121
|
// render out text measurement in the rendered line
|
|
117
122
|
ctx.translate(32, 32);
|
|
118
123
|
ctx.fillStyle = this.inputs.textColor;
|