修正主视图长/宽样式,修复外部导入调用时实体缺失问题
This commit is contained in:
1 parent
37158e7cb1
commit
a1a541fff0
7 files changed
+21
-13
No files matched your search
@@ -7,6 +7,7 @@ import { ConfigureLibOutput, type LibOutputConfig } from './libOutputConfig';
|
||||
import { useEvent } from '../stores/eventStore';
|
||||
import { useScene, useSceneRaw } from '../stores/sceneStore';
|
||||
import { DeflateAsync } from '../helpers/helper.compression';
|
||||
import { CADFactory, Factory, LayerNode } from 'webcad_ue4_api';
|
||||
|
||||
let app: VueApp<Element> = undefined;
|
||||
|
||||
@@ -19,6 +20,12 @@ export function Mount(element: Element, options: Partial<LibOutputConfig>) {
|
||||
ConfigureLibOutput(options);
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
// TODO: Warn: 有BUG,部分实体的构造函数名带_1后缀,原因未知,这会导致CADFactory在创建实体时找不到注册的类名
|
||||
// @ts-ignore
|
||||
// console.log(CADFactory.factory.objectNameMap); // 为什么Map中的构造函数名带_1后缀?
|
||||
CADFactory.RegisterObjectAlias(LayerNode, "LayerNode");
|
||||
|
||||
app = createApp(App);
|
||||
app.use(pinia)
|
||||
.mount(element);
|
||||
|
||||
Reference in new issue
Block a user