-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Update dependency prettier to v2 (#27350)
* 📦 Update dependency prettier to v2 * Fix all JS files with Prettier v2 Co-authored-by: Raghu Simha <[email protected]>
- Loading branch information
1 parent
7163971
commit b6313e3
Showing
1,369 changed files
with
10,477 additions
and
11,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ import {user} from '../../src/log'; | |
|
||
import GltfViewer from './viewer'; | ||
|
||
const seq = (taskA, taskB) => cb => taskA(() => taskB(cb)); | ||
const parallel = (taskA, taskB) => cb => { | ||
const seq = (taskA, taskB) => (cb) => taskA(() => taskB(cb)); | ||
const parallel = (taskA, taskB) => (cb) => { | ||
let n = 0; | ||
const finish = () => { | ||
n++; | ||
|
@@ -36,8 +36,8 @@ const parallel = (taskA, taskB) => cb => { | |
}; | ||
|
||
const loadThree = (global, cb) => { | ||
const loadScriptCb = url => cb => loadScript(global, url, cb); | ||
const loadThreeExample = examplePath => | ||
const loadScriptCb = (url) => (cb) => loadScript(global, url, cb); | ||
const loadThreeExample = (examplePath) => | ||
loadScriptCb( | ||
'https://cdn.jsdelivr.net/npm/[email protected]/examples/js/' + examplePath | ||
); | ||
|
@@ -62,7 +62,7 @@ export function gltfViewer(global) { | |
onload: () => { | ||
nonSensitiveDataPostMessage('loaded'); | ||
}, | ||
onprogress: e => { | ||
onprogress: (e) => { | ||
if (!e.lengthComputable) { | ||
return; | ||
} | ||
|
@@ -74,7 +74,7 @@ export function gltfViewer(global) { | |
}) | ||
); | ||
}, | ||
onerror: err => { | ||
onerror: (err) => { | ||
user().error('3DGLTF', err); | ||
nonSensitiveDataPostMessage( | ||
'error', | ||
|
@@ -84,7 +84,7 @@ export function gltfViewer(global) { | |
); | ||
}, | ||
}); | ||
listenParent(global, 'action', msg => { | ||
listenParent(global, 'action', (msg) => { | ||
viewer.actions[msg['action']](msg['args']); | ||
}); | ||
nonSensitiveDataPostMessage('ready'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.