Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2024
1 parent 9c16625 commit 3b84465
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ export class MainView extends React.Component<IProps, IStates> {
offset: { top: 0, left: 0, right: 0, bottom: 0 },
font: {
family: 'helvetica',
weight: 900,
weight: 900
},
resolution: 64,
backgroundSphere: {
enabled: true,
color: 0xffffff,
opacity: 0.2,
opacity: 0.2
},
x: {
text: 'X',
Expand All @@ -250,8 +250,8 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#ff7f9b',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
hoverText: '#000000'
}
},
y: {
text: 'Y',
Expand All @@ -261,8 +261,8 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#c2ee00',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
hoverText: '#000000'
}
},
z: {
text: 'Z',
Expand All @@ -272,8 +272,8 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#73c5ff',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
hoverText: '#000000'
}
},
nx: {
text: '-X',
Expand All @@ -283,8 +283,8 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#ff7f9b',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
hoverText: '#000000'
}
},
ny: {
text: '-Y',
Expand All @@ -294,8 +294,8 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#c2ee00',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
hoverText: '#000000'
}
},
nz: {
text: '-Z',
Expand All @@ -305,12 +305,16 @@ export class MainView extends React.Component<IProps, IStates> {
main: '#73c5ff',
hover: '#ffffff',
text: '#000000',
hoverText: '#000000',
},
},
hoverText: '#000000'
}
}
};

this._viewportGizmo = new ViewportGizmo(this._camera, this._renderer, options);
this._viewportGizmo = new ViewportGizmo(
this._camera,
this._renderer,
options
);
this._viewportGizmo.update();

this._syncPointer = throttle(
Expand Down

0 comments on commit 3b84465

Please sign in to comment.