psl调整2
This commit is contained in:
parent
7fbbe51486
commit
f646bc0840
@ -9,6 +9,8 @@ import { PslButtonData } from './graphics/PslButtonInteraction';
|
||||
import { PslLightTemplate } from 'src/graphics/pslLight/pslLight';
|
||||
import { PslLightData } from './graphics/PslLightInteraction';
|
||||
import { pslGraphicData } from 'src/protos/pslGraphics';
|
||||
import { PslTextData } from './graphics/TextContentInteraction';
|
||||
import { TextContentTemplate } from 'src/graphics/textContent/TextContent';
|
||||
|
||||
export function initPslScene(lineApp: IGraphicApp, sceneName: string) {
|
||||
// psl
|
||||
@ -24,6 +26,7 @@ export function initPslScene(lineApp: IGraphicApp, sceneName: string) {
|
||||
new PslKeyTemplate(new PslKeyData()),
|
||||
new PslButtonTemplate(new PslButtonData()),
|
||||
new PslLightTemplate(new PslLightData()),
|
||||
new TextContentTemplate(new PslTextData()),
|
||||
];
|
||||
pslScene.registerGraphicTemplates(...graphicTemplate);
|
||||
return lineApp;
|
||||
@ -51,6 +54,9 @@ async function loadPslDatas(): Promise<IGraphicStorage> {
|
||||
storage.pslKeys.forEach((pslKey) => {
|
||||
datas.push(new PslKeyData(pslKey));
|
||||
});
|
||||
storage.pslTexts.forEach((pslText) => {
|
||||
datas.push(new PslTextData(pslText));
|
||||
});
|
||||
return Promise.resolve({
|
||||
canvasProperty: storage.canvas,
|
||||
datas: datas,
|
||||
|
Loading…
Reference in New Issue
Block a user