Skip to content

Commit b5f44e7

Browse files
committed
Prettier and move to src
1 parent 1357d30 commit b5f44e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1128
-1113
lines changed

.prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120
4+
}

dat/DatButton.tsx

-19
This file was deleted.

index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from 'react'
2-
import * as ReactDOM from 'react-dom'
3-
import { App } from './ui/App'
1+
import * as React from 'react';
2+
import * as ReactDOM from 'react-dom';
3+
import { App } from './src/ui/App';
44

55
// Render the app
6-
ReactDOM.render(<App />, document.getElementById('root'))
6+
ReactDOM.render(<App />, document.getElementById('root'));

lib/__tests__/binaryReader.ts

-126
This file was deleted.

lib/screneRenderer.ts

-86
This file was deleted.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"scripts": {
33
"start": "webpack-dev-server --mode development --host 0.0.0.0",
44
"build": "webpack --p",
5-
"test": "jest"
5+
"test": "jest",
6+
"prettier": "prettier -c --write ./src/**/*"
67
},
78
"author": "Danakt Saushkin <[email protected]>",
89
"license": "MIT",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
/** Supported model format version */
2-
export const VERSION = 10
2+
export const VERSION = 10;
33

44
/** Maximum number of bone controllers per bone */
5-
export const MAX_PER_BONE_CONTROLLERS = 6
5+
export const MAX_PER_BONE_CONTROLLERS = 6;
66

77
/** Flag of texture masking */
8-
export const NF_MASKED = 0x0040
8+
export const NF_MASKED = 0x0040;
99

1010
/** Number of colors */
11-
export const PALETTE_ENTRIES = 256
11+
export const PALETTE_ENTRIES = 256;
1212

1313
/** Number of channels for RGB color. Was "PALETTE_CHANNELS" */
14-
export const RGB_SIZE = 3
14+
export const RGB_SIZE = 3;
1515

1616
/** Number of channels for RGBA color. Was "PALETTE_CHANNELS_ALPHA" */
17-
export const RGBA_SIZE = 4
17+
export const RGBA_SIZE = 4;
1818

1919
/** Total size of a palette, in bytes. */
20-
export const PALETTE_SIZE = PALETTE_ENTRIES * RGB_SIZE
20+
export const PALETTE_SIZE = PALETTE_ENTRIES * RGB_SIZE;
2121

2222
/** The index in a palette where the alpha color is stored. Used for transparent textures. */
23-
export const PALETTE_ALPHA_INDEX = 255 * RGB_SIZE
23+
export const PALETTE_ALPHA_INDEX = 255 * RGB_SIZE;
2424

2525
/** Number of bones allowed at source movement */
26-
export const MAX_SRCBONES = 512
26+
export const MAX_SRCBONES = 512;
2727

2828
/** Number of axles in 3d space */
29-
export const AXLES_NUM = 3
29+
export const AXLES_NUM = 3;
3030

3131
/** Animation value items index constants */
3232
export const enum ANIM_VALUE {
@@ -36,22 +36,22 @@ export const enum ANIM_VALUE {
3636
}
3737

3838
/** Triangle fan type */
39-
export const TRIANGLE_FAN = 0
39+
export const TRIANGLE_FAN = 0;
4040

4141
/** Triangle strip type */
42-
export const TRIANGLE_STRIP = 1
42+
export const TRIANGLE_STRIP = 1;
4343

4444
/** Motion flag X */
45-
export const MOTION_X = 0x0001
45+
export const MOTION_X = 0x0001;
4646

4747
/** Motion flag Y */
48-
export const MOTION_Y = 0x0002
48+
export const MOTION_Y = 0x0002;
4949

5050
/** Motion flag Z */
51-
export const MOTION_Z = 0x0004
51+
export const MOTION_Z = 0x0004;
5252

5353
/** Controller that wraps shortest distance */
54-
export const RLOOP = 0x8000
54+
export const RLOOP = 0x8000;
5555

5656
/** Default interface background color */
57-
export const INITIAL_UI_BACKGROUND = '#4d7f7e'
57+
export const INITIAL_UI_BACKGROUND = '#4d7f7e';

0 commit comments

Comments
 (0)