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
- // background
112
- let fillColorRGBA = this.inputs.fillColor.replace(/rgb/i, 'rgba');
113
- fillColorRGBA = fillColorRGBA.replace(/\)/i, ',' + (this.hovered ? 0.9 : this.inputs.opacity) + ')');
114
- ctx.fillStyle = fillColorRGBA;
115
- ctx.fillRect(0, 0, 64, 64);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architwin",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
4
4
  "description": "ArchiTwin Library for Matterport",
5
5
  "main": "./lib/architwin.js",
6
6
  "types": "./lib/architwin.d.ts",