Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
927 additions
and
632 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import { HitAreaFrames } from 'pixi-live2d-display/extra'; | ||
import * as PIXI from 'pixi.js'; | ||
|
||
import { setup } from './modules/index.js'; | ||
import { loadLibrary } from './utils/index.js'; | ||
import './library/iconfont.js'; | ||
import { setup } from './modules/index.js'; | ||
import { loadScript } from './utils/index.js'; | ||
|
||
export * from './types/options.js'; | ||
|
||
// @ts-ignore | ||
window.PIXI = PIXI; | ||
|
||
PIXI.utils.skipHello(); | ||
|
||
export const loadOml2d = setup(async (importType, urls) => { | ||
const PixiLive2dDisplay = await loadLibrary(importType, urls); | ||
export const loadOml2d = setup(async () => { | ||
// await loadUmdLibrary(importType, urls); | ||
await loadScript({ url: 'https://lib.oml2d.com/complete.js', id: 'test' }); | ||
window.PIXI.utils.skipHello(); | ||
|
||
return { | ||
HitAreaFrames, | ||
PixiLive2dDisplay, | ||
PIXI | ||
PIXI: window.PIXI, | ||
PixiLive2dDisplay: window.PIXI.live2d, | ||
HitAreaFrames: window.PIXI.live2d.HitAreaFrames | ||
}; | ||
}); |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.