From a9b94619a40a51561435bbe87ba74db782a10d04 Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Wed, 6 Jan 2021 14:32:39 +0000 Subject: [PATCH] visual/ShapeStim: set closeStroke on PIXI polygon creation --- js/visual/ShapeStim.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/visual/ShapeStim.js b/js/visual/ShapeStim.js index aa69690..8e26dc8 100644 --- a/js/visual/ShapeStim.js +++ b/js/visual/ShapeStim.js @@ -311,6 +311,7 @@ export class ShapeStim extends util.mix(VisualStim).with(ColorMixin, WindowMixin // destroy the previous PIXI polygon and create a new one: this._pixiPolygon_px = new PIXI.Polygon(coords_px); + this._pixiPolygon_px.closeStroke = this._closeShape; return this._pixiPolygon_px; }