toolbar button to undo last step
This commit is contained in:
parent
59d5e9913a
commit
5e60b3dc95
8 changed files with 99 additions and 31 deletions
|
|
@ -39,19 +39,12 @@
|
|||
/* fill: rgba(0, 0, 255, 0.2); */
|
||||
}
|
||||
.rountangle.error {
|
||||
stroke: rgb(230,0,0);
|
||||
stroke: var(--error-color);
|
||||
}
|
||||
.rountangle.active {
|
||||
/* fill: rgb(255, 140, 0); */
|
||||
/* fill-opacity: 0.2; */
|
||||
/* stroke: rgb(100, 149, 237); */
|
||||
/* stroke: */
|
||||
stroke: rgb(192, 125, 0);
|
||||
fill:rgb(255, 251, 244);
|
||||
/* fill: lightgrey; */
|
||||
/* color: white; */
|
||||
filter: drop-shadow( 0px 0px 3px rgba(192, 125, 0, 0.856));
|
||||
/* stroke-width: 3px; */
|
||||
filter: drop-shadow( 0px 0px 3px rgba(192, 125, 0, 0.85));
|
||||
}
|
||||
|
||||
.selected:hover:not(:active) {
|
||||
|
|
@ -166,7 +159,7 @@ text.helper:hover {
|
|||
}
|
||||
|
||||
.arrow.error {
|
||||
stroke: rgb(230,0,0);
|
||||
stroke: var(--error-color);
|
||||
}
|
||||
.arrow.fired {
|
||||
stroke: rgb(192, 125, 0);
|
||||
|
|
@ -174,7 +167,7 @@ text.helper:hover {
|
|||
}
|
||||
|
||||
text.error, tspan.error {
|
||||
fill: rgb(230,0,0);
|
||||
fill: var(--error-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -314,7 +314,8 @@ export function VisualEditor({ast, setAST, rt, errors, setErrors, mode, highligh
|
|||
const onMouseMove = (e: {pageX: number, pageY: number}) => {
|
||||
const currentPointer = getCurrentPointer(e);
|
||||
if (dragging) {
|
||||
const pointerDelta = subtractV2D(currentPointer, dragging.lastMousePos);
|
||||
// const pointerDelta = subtractV2D(currentPointer, dragging.lastMousePos);
|
||||
const pointerDelta = {x: e.movementX, y: e.movementY};
|
||||
setState(state => ({
|
||||
...state,
|
||||
rountangles: state.rountangles.map(r => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue