Skip to content

Commit

Permalink
format; remove double-assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
anne-gropler committed Oct 11, 2018
1 parent f3b26b6 commit 8d80773
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/label.ts
Original file line number Diff line number Diff line change
@@ -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';


Expand Down
2 changes: 1 addition & 1 deletion source/position2dlabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/position3dlabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d80773

Please sign in to comment.