bugfix
This commit is contained in:
parent
dba7d34f1a
commit
67c8eb8dfb
@ -123,6 +123,7 @@ export function initLineNetApp(): IGraphicApp {
|
||||
});
|
||||
lineNetApp.subscribe({
|
||||
destination: '/queue/lineNet',
|
||||
|
||||
messageConverter: (message: Uint8Array) => {
|
||||
const storage = state.WsLineNetMessage.deserialize(message);
|
||||
const states: GraphicState[] = [];
|
||||
|
@ -485,10 +485,11 @@ export class SectionPointEditPlugin extends GraphicInteractionPlugin<Section> {
|
||||
}
|
||||
points.forEach((ps, i) => {
|
||||
const data = new LogicSectionData();
|
||||
const logicSectionDA = this.drawAssistant.app.drawAssistants.find(
|
||||
(da) => da instanceof LogicSectionDraw
|
||||
) as LogicSectionDraw;
|
||||
data.id = logicSectionDA.nextId();
|
||||
const logicSectionDraw =
|
||||
this.drawAssistant.app.getDrawAssistant<LogicSectionDraw>(
|
||||
LogicSection.Type
|
||||
);
|
||||
data.id = logicSectionDraw.nextId();
|
||||
data.code = `${sectionData.code}-${codeAppend.charAt(i % 26)}`;
|
||||
data.points = ps.map(
|
||||
(p) => new graphicData.Point({ x: p.x, y: p.y })
|
||||
@ -512,9 +513,9 @@ export class SectionPointEditPlugin extends GraphicInteractionPlugin<Section> {
|
||||
)
|
||||
),
|
||||
];
|
||||
const g = logicSectionDA.graphicTemplate.new();
|
||||
const g = logicSectionDraw.graphicTemplate.new();
|
||||
g.loadData(data);
|
||||
logicSectionDA.storeGraphic(g);
|
||||
logicSectionDraw.storeGraphic(g);
|
||||
children.push(g);
|
||||
});
|
||||
sectionData.children = children.map((g) => g.datas.id);
|
||||
|
@ -16,7 +16,6 @@ import { useLineStore } from 'src/stores/line-store';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useLineNetStore } from 'src/stores/line-net-store';
|
||||
import StateProperties from 'src/components/state-app/StateProperties.vue';
|
||||
import { JlGraphic } from 'src/jl-graphic';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
Loading…
Reference in New Issue
Block a user