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