I feel like I might have it?
This commit is contained in:
parent
1cde86fe2a
commit
f1f8ced0b8
@ -21,6 +21,8 @@
|
|||||||
<style>
|
<style>
|
||||||
rect {
|
rect {
|
||||||
fill: inherit;
|
fill: inherit;
|
||||||
|
stroke: black;
|
||||||
|
stroke-width: 0.25px;
|
||||||
}
|
}
|
||||||
g use {
|
g use {
|
||||||
fill: gray;
|
fill: gray;
|
||||||
@ -40,7 +42,7 @@
|
|||||||
/*}*/
|
/*}*/
|
||||||
g#out circle {
|
g#out circle {
|
||||||
fill: orange;
|
fill: orange;
|
||||||
/*transform: scale(3);*/
|
transform: scale(3);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<g
|
<g
|
||||||
@ -1586,7 +1588,7 @@
|
|||||||
[...out.children].forEach(child => {
|
[...out.children].forEach(child => {
|
||||||
console.log('child', child, 'belongs to', store.get(child));
|
console.log('child', child, 'belongs to', store.get(child));
|
||||||
console.log('relatedTarget', e.relatedTarget);
|
console.log('relatedTarget', e.relatedTarget);
|
||||||
if (store.get(child) !== g || !e.relatedTarget) {
|
if (!e.relatedTarget || store.get(child) !== g || e.relatedTarget !== child) {
|
||||||
console.log('returning to', store.get(child));
|
console.log('returning to', store.get(child));
|
||||||
store.get(child).append(child);
|
store.get(child).append(child);
|
||||||
store.delete(child);
|
store.delete(child);
|
||||||
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Loading…
x
Reference in New Issue
Block a user