Fix selection notes refresh and force fresh placement on import compile
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
parent
9f5ff8eb42
commit
c247a337a9
@ -1352,6 +1352,7 @@ function renderSelected() {
|
|||||||
el.symbolEditor.classList.add("hidden");
|
el.symbolEditor.classList.add("hidden");
|
||||||
el.pinEditor.classList.add("hidden");
|
el.pinEditor.classList.add("hidden");
|
||||||
el.netEditor.classList.add("hidden");
|
el.netEditor.classList.add("hidden");
|
||||||
|
updateSelectedNoteHint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1364,6 +1365,7 @@ function renderSelected() {
|
|||||||
el.symbolEditor.classList.add("hidden");
|
el.symbolEditor.classList.add("hidden");
|
||||||
renderPinEditor();
|
renderPinEditor();
|
||||||
el.netEditor.classList.add("hidden");
|
el.netEditor.classList.add("hidden");
|
||||||
|
updateSelectedNoteHint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1373,6 +1375,7 @@ function renderSelected() {
|
|||||||
el.symbolEditor.classList.add("hidden");
|
el.symbolEditor.classList.add("hidden");
|
||||||
el.pinEditor.classList.add("hidden");
|
el.pinEditor.classList.add("hidden");
|
||||||
el.netEditor.classList.add("hidden");
|
el.netEditor.classList.add("hidden");
|
||||||
|
updateSelectedNoteHint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1393,6 +1396,7 @@ function renderSelected() {
|
|||||||
renderSymbolEditorForRef(inst.ref);
|
renderSymbolEditorForRef(inst.ref);
|
||||||
el.pinEditor.classList.add("hidden");
|
el.pinEditor.classList.add("hidden");
|
||||||
el.netEditor.classList.add("hidden");
|
el.netEditor.classList.add("hidden");
|
||||||
|
updateSelectedNoteHint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1405,6 +1409,7 @@ function renderSelected() {
|
|||||||
el.symbolEditor.classList.add("hidden");
|
el.symbolEditor.classList.add("hidden");
|
||||||
el.pinEditor.classList.add("hidden");
|
el.pinEditor.classList.add("hidden");
|
||||||
renderNetEditor();
|
renderNetEditor();
|
||||||
|
updateSelectedNoteHint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1414,6 +1419,7 @@ function renderSelected() {
|
|||||||
el.symbolEditor.classList.add("hidden");
|
el.symbolEditor.classList.add("hidden");
|
||||||
el.pinEditor.classList.add("hidden");
|
el.pinEditor.classList.add("hidden");
|
||||||
el.netEditor.classList.add("hidden");
|
el.netEditor.classList.add("hidden");
|
||||||
|
updateSelectedNoteHint();
|
||||||
}
|
}
|
||||||
|
|
||||||
function issueById(issueId) {
|
function issueById(issueId) {
|
||||||
@ -1907,20 +1913,23 @@ async function compileModel(model, opts = {}) {
|
|||||||
const fit = opts.fit ?? false;
|
const fit = opts.fit ?? false;
|
||||||
const keepView = opts.keepView ?? false;
|
const keepView = opts.keepView ?? false;
|
||||||
const preservePlacement = opts.preservePlacement ?? false;
|
const preservePlacement = opts.preservePlacement ?? false;
|
||||||
|
const compileLayoutOpts = preservePlacement
|
||||||
setStatus(source === "drag" ? "Compiling after drag..." : "Compiling...");
|
|
||||||
try {
|
|
||||||
const result = await apiPost("/compile", {
|
|
||||||
payload: model,
|
|
||||||
options: compileOptions(
|
|
||||||
preservePlacement
|
|
||||||
? {
|
? {
|
||||||
preserve_placement: true,
|
preserve_placement: true,
|
||||||
auto_rotate: false,
|
auto_rotate: false,
|
||||||
respect_locks: true
|
respect_locks: true
|
||||||
}
|
}
|
||||||
: {}
|
: {
|
||||||
)
|
preserve_placement: false,
|
||||||
|
auto_rotate: true,
|
||||||
|
respect_locks: false
|
||||||
|
};
|
||||||
|
|
||||||
|
setStatus(source === "drag" ? "Compiling after drag..." : "Compiling...");
|
||||||
|
try {
|
||||||
|
const result = await apiPost("/compile", {
|
||||||
|
payload: model,
|
||||||
|
options: compileOptions(compileLayoutOpts)
|
||||||
});
|
});
|
||||||
|
|
||||||
state.model = applyCompileLayoutToModel(model, result);
|
state.model = applyCompileLayoutToModel(model, result);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user