From 8d807733b44b2c6747ec31d40b187f202906a427 Mon Sep 17 00:00:00 2001 From: Anne Gropler Date: Thu, 11 Oct 2018 17:54:57 +0200 Subject: [PATCH] format; remove double-assignment --- source/label.ts | 4 ++-- source/position2dlabel.ts | 2 +- source/position3dlabel.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/label.ts b/source/label.ts index a47d966e..2871e164 100644 --- a/source/label.ts +++ b/source/label.ts @@ -1,10 +1,10 @@ -import { mat4, vec3, vec4 } from 'gl-matrix'; +import { mat4, vec3 } from 'gl-matrix'; import { ChangeLookup } from './changelookup'; import { Color } from './color'; import { FontFace } from './fontface'; -import { GlyphVertex, GlyphVertices } from './glyphvertices'; +import { GlyphVertices } from './glyphvertices'; import { Text } from './text'; diff --git a/source/position2dlabel.ts b/source/position2dlabel.ts index c2f7e5a1..24b59bd6 100644 --- a/source/position2dlabel.ts +++ b/source/position2dlabel.ts @@ -115,7 +115,7 @@ export class Position2DLabel extends Label { * Sets the 2D direction of the label, i.e., the direction of the baseline. */ set direction(xy: vec2) { - this._direction = vec2.normalize(this._direction, xy); + vec2.normalize(this._direction, xy); } get direction(): vec2 { return this._direction; diff --git a/source/position3dlabel.ts b/source/position3dlabel.ts index eee57424..e2ecfcfe 100644 --- a/source/position3dlabel.ts +++ b/source/position3dlabel.ts @@ -89,7 +89,7 @@ export class Position3DLabel extends Label { * Sets the 3D direction of the label, i.e., the direction of the baseline. */ set direction(xyz: vec3) { - this._direction = vec3.normalize(this._direction, xyz); + vec3.normalize(this._direction, xyz); } get direction(): vec3 { return this._direction;