Skip to content

Commit 5caaa8b

Browse files
committed
into the void
1 parent e03ebb4 commit 5caaa8b

File tree

10 files changed

+14
-403346
lines changed

10 files changed

+14
-403346
lines changed

TODO

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ definition([
2121

2222
// copy to project
2323
// autozoom based on sprite size for sprites tab
24+
// close button for new mapping screen / raw editor
2425

2526
// art ffset save message / input size
2627
// crackers first, then kd cham

app/components/import/state.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class ImportState {
2525
@observable scale = 4;
2626

2727
@action reset = () => {
28-
this.path = void 0;
29-
this.canvas = void 0;
30-
this.ctx = void 0;
28+
this.path = undefined;
29+
this.canvas = undefined;
30+
this.ctx = undefined;
3131
this.spriteIndex = 0;
3232
this.auto = false;
3333
this.bboxes.replace([]);

app/components/mappings/new-mapping.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const baseConfig = {
1818
priority: false,
1919
};
2020

21-
2221
const AutoDismiss = observer(() => (
2322
<div className="autodismiss">
2423
<span onClick={mappingState.toggleAutodismiss}>autodismiss</span>
@@ -35,7 +34,7 @@ export class NewMapping extends Component {
3534
this.node = node;
3635
};
3736

38-
pos = [void 0, void 0];
37+
pos = [undefined, undefined];
3938
mapDefz = [];
4039

4140
dragPlacementFactory = (index) => {

app/components/mappings/raw-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const SortableDPLCItem = SortableElement(observer(({dplc, dplcIndex}) => (
158158
</div>
159159
<div className="dplc-tiles">
160160
{Array.from({length: dplc.size}).map((_, i) => {
161-
const data = environment.tiles.length > dplc.art + i ? environment.tiles[dplc.art+i] : void 0;
161+
const data = environment.tiles.length > dplc.art + i ? environment.tiles[dplc.art+i] : undefined;
162162
return (
163163
<Tile
164164
key={i}

app/components/mappings/state/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MappingState {
9292
};
9393
}
9494
else {
95-
return void 0;
95+
return undefined;
9696
}
9797
}
9898

@@ -129,7 +129,7 @@ class MappingState {
129129

130130
@observable newMapping = {
131131
active: false,
132-
piece: void 0,
132+
piece: undefined,
133133
};
134134

135135
@observable autodismiss = true;

app/components/mappings/state/place-new-mapping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { mappingState } from './index';
33

44
export function placeNewMapping() {
55
if (!environment.mappings.length) {
6-
mappingState.newMapping.piece = void 0;
6+
mappingState.newMapping.piece = undefined;
77
return;
88
}
99

@@ -30,7 +30,7 @@ export function placeNewMapping() {
3030
Object.assign(piece, { left, top, art })
3131
);
3232
environment.config.currentTile += piece.width * piece.height;
33-
mappingState.newMapping.piece = void 0;
33+
mappingState.newMapping.piece = undefined;
3434
if (mappingState.autodismiss) {
3535
mappingState.newMapping.active = false;
3636
}

app/components/ui/select/dist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ let Dropdown = function (_Component) {
137137
style: this.props.color && label[0] == '#' ? {
138138
backgroundColor: label,
139139
height: 15,
140-
} : void 0,
140+
} : undefined,
141141
},
142142
this.props.color && label[0] == '#' ? '' : label
143143
);
@@ -209,7 +209,7 @@ let Dropdown = function (_Component) {
209209
style: this.props.color && placeHolderValue[0] == '#' ? {
210210
backgroundColor: placeHolderValue,
211211
height: 14,
212-
} : this.props.color ? { height: 14 } : void 0,
212+
} : this.props.color ? { height: 14 } : undefined,
213213
},
214214
this.props.color && placeHolderValue[0] == '#' ? '' : placeHolderValue
215215
);

app/store/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { environment } from './environment';
55

66
const maxHistory = 1000;
77
let past = [];
8-
let now = void 0;
8+
let now = undefined;
99
let future = [];
1010
let timeTravelling = false;
1111

development/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = (env = {}, args = {}) => {
1515
rules: [
1616
{
1717
test: /\.m?jsx?$/,
18-
exclude: env.dev ? /node_modules/ : void 0,
18+
exclude: env.dev ? /node_modules/ : undefined,
1919
use: [
2020
{
2121
loader: 'babel-loader',

0 commit comments

Comments
 (0)