...
This commit is contained in:
parent
c07489080a
commit
12e211f358
3 changed files with 2 additions and 2 deletions
|
|
@ -118,6 +118,8 @@ export function App() {
|
||||||
borderLeft: 1,
|
borderLeft: 1,
|
||||||
borderColor: "divider",
|
borderColor: "divider",
|
||||||
flex: '0 0 content',
|
flex: '0 0 content',
|
||||||
|
height: 'calc(100vh-32px)',
|
||||||
|
overflow: "auto",
|
||||||
// paddingRight: 1,
|
// paddingRight: 1,
|
||||||
// paddingLeft: 1,
|
// paddingLeft: 1,
|
||||||
}}>
|
}}>
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,6 @@ export function VisualEditor({setAST, rt, errors, setErrors, mode}: VisualEditor
|
||||||
const uid = e.target?.dataset.uid;
|
const uid = e.target?.dataset.uid;
|
||||||
const parts: string[] = e.target?.dataset.parts?.split(' ').filter((p:string) => p!=="") || [];
|
const parts: string[] = e.target?.dataset.parts?.split(' ').filter((p:string) => p!=="") || [];
|
||||||
if (uid && parts.length > 0) {
|
if (uid && parts.length > 0) {
|
||||||
console.log('start drag');
|
|
||||||
checkPoint();
|
checkPoint();
|
||||||
|
|
||||||
// if the mouse button is pressed outside of the current selection, we reset the selection to whatever shape the mouse is on
|
// if the mouse button is pressed outside of the current selection, we reset the selection to whatever shape the mouse is on
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,6 @@ export function parseStatechart(state: VisualEditorState, conns: Connections): [
|
||||||
let tgt;
|
let tgt;
|
||||||
if (historyTgtUID) {
|
if (historyTgtUID) {
|
||||||
tgt = historyStates.find(h => h.uid === historyTgtUID)!;
|
tgt = historyStates.find(h => h.uid === historyTgtUID)!;
|
||||||
console.log(tgt);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tgt = uid2State.get(tgtUID!)!;
|
tgt = uid2State.get(tgtUID!)!;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue