添加编辑模式
This commit is contained in:
1 parent
d92cdedc57
commit
37158e7cb1
9 files changed
+105
-26
No files matched your search
+2
-1
@@ -27,6 +27,7 @@ export function Mount(element: Element, options: Partial<LibOutputConfig>) {
|
||||
/** 对程序配置进行更改 */
|
||||
export function Configure(options: Partial<LibOutputConfig>) {
|
||||
ConfigureLibOutput(options);
|
||||
useEvent().Publish('update-config');
|
||||
}
|
||||
|
||||
/** 卸载已经挂载的DOM */
|
||||
@@ -52,7 +53,7 @@ export async function SubmitRawAsync(options: { textureSrc: string }): Promise<{
|
||||
const virtualDom = document.createElement('div');
|
||||
virtualDom.style.display = 'none';
|
||||
scene.Initial(virtualDom);
|
||||
await scene.ChangeTextureAsync(options.textureSrc);
|
||||
await scene.ChangeTextureFromUrlAsync(options.textureSrc);
|
||||
var json = btoa(String.fromCharCode(...await DeflateAsync(await scene.SerializeMaterialAsync())));
|
||||
|
||||
scene.Dispose();
|
||||
|
||||
Reference in new issue
Block a user