Skip to content

Commit

Permalink
refactor: Use Vector2 for Style members
Browse files Browse the repository at this point in the history
  • Loading branch information
warxander committed Nov 17, 2023
1 parent bf44502 commit 1775038
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color, Image, FontSize } from './types';
import { Color, Image, FontSize, Vector2 } from './types';
import { parse, CssRuleAST, CssTypes, CssDeclarationAST } from '@adobe/css-tools';

type StylePropertyValuesMap = Map<string, StylePropertyValue>;
Expand Down Expand Up @@ -123,7 +123,7 @@ export class Style {

this.slider = {
height: 0.004,
tickMarkSize: { x: 0.002, y: 0.016 }
tickMarkSize: new Vector2(0.002, 0.016)
};

this.spriteButton = {
Expand All @@ -142,8 +142,8 @@ export class Style {
};

this.frame = {
margins: { x: 0.01, y: 0.018 },
spacing: { x: 0.005, y: 0.01 }
margins: new Vector2(0.01, 0.018),
spacing: new Vector2(0.005, 0.01)
};
}

Expand Down

0 comments on commit 1775038

Please sign in to comment.