Skip to content

Commit d0d95b6

Browse files
committed
revert change to vector layer alpha temporarily
1 parent 6d07cac commit d0d95b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app/canvas/canvas.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ export class CanvasComponent implements AfterViewInit, OnDestroy {
291291
ctx.scale(this.attrScale, this.attrScale);
292292
ctx.clearRect(0, 0, this.vlWidth, this.vlHeight);
293293

294-
let currentAlpha = this.shouldDisableLayer ? DISABLED_LAYER_ALPHA : 1;
295-
if (this.shouldDrawLayer) {
296-
currentAlpha *= this.vectorLayer.alpha;
297-
}
294+
const currentAlpha = this.shouldDisableLayer ? DISABLED_LAYER_ALPHA : 1;
295+
// TODO: draw vector layer's alpha property w/o fading out selections/points
296+
// if (this.shouldDrawLayer) {
297+
// currentAlpha *= this.vectorLayer.alpha;
298+
// }
298299
if (currentAlpha < 1) {
299300
offscreenCtx.save();
300301
offscreenCtx.scale(this.attrScale, this.attrScale);

0 commit comments

Comments
 (0)