Skip to content

Commit

Permalink
Fixed linting and import of grid
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Nov 21, 2024
1 parent 34c2753 commit d339eca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/src/examples/gizmos/transform-rotate.example.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { data } from 'examples/observer';
import { deviceType, fileImport, rootPath } from 'examples/utils';

const { Grid } = await fileImport(rootPath + '/static/scripts/grid.js');
const { Grid } = await fileImport(`${rootPath}/static/scripts/grid.mjs`);

const canvas = /** @type {HTMLCanvasElement} */ (document.getElementById('application-canvas'));
window.focus();
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/gizmos/transform-scale.example.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { data } from 'examples/observer';
import { deviceType, fileImport, rootPath } from 'examples/utils';

const { Grid } = await fileImport(rootPath + '/static/scripts/grid.js');
const { Grid } = await fileImport(`${rootPath}/static/scripts/grid.mjs`);

const canvas = /** @type {HTMLCanvasElement} */ (document.getElementById('application-canvas'));
window.focus();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { data } from 'examples/observer';
import { deviceType, rootPath, fileImport } from 'examples/utils';

const { Grid } = await fileImport(rootPath + '/static/scripts/grid.js');
const { Grid } = await fileImport(`${rootPath}/static/scripts/grid.mjs`);

const canvas = /** @type {HTMLCanvasElement} */ (document.getElementById('application-canvas'));
window.focus();
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/misc/editor.example.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { data } from 'examples/observer';
import { deviceType, rootPath, localImport, fileImport } from 'examples/utils';

const { Grid } = await fileImport(rootPath + '/static/scripts/grid.mjs');
const { Grid } = await fileImport(`${rootPath}/static/scripts/grid.mjs`);

const canvas = /** @type {HTMLCanvasElement} */ (document.getElementById('application-canvas'));
window.focus();
Expand Down

0 comments on commit d339eca

Please sign in to comment.