From d4db3124ddcdf74a15c9992f45905fc0ec161ecb Mon Sep 17 00:00:00 2001 From: James Conkling Date: Tue, 27 Oct 2020 14:13:42 -0400 Subject: [PATCH] bump juno graph to rc-4 --- src/renderers/pixi/sprites/circleSprite.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/renderers/pixi/sprites/circleSprite.ts b/src/renderers/pixi/sprites/circleSprite.ts index 17bebaf1..9458d7b8 100644 --- a/src/renderers/pixi/sprites/circleSprite.ts +++ b/src/renderers/pixi/sprites/circleSprite.ts @@ -32,12 +32,19 @@ export class CircleSprite { } +/** + * TODO - generate circle sprites on the fly scaled to the max scale they can be rendered at + */ // export class CircleSprite extends PIXI.Sprite { -// maxRadius: number +// private _maxRadius: number // constructor(texture: PIXI.Texture, maxRadius: number) { // super(texture) -// this.maxRadius = maxRadius +// this._maxRadius = maxRadius +// } + +// scaleToRadius(radius: number) { +// this.scale.set(radius / this._maxRadius) // } // }