@@ -47,6 +47,7 @@ export function replace(node, index) {
47
47
node . parent = parent
48
48
parent . nodeList . push ( node )
49
49
node . updateRotation ( )
50
+ node . scope . timeStamp = new Date ( ) . getTime ( )
50
51
return node
51
52
}
52
53
function rotate ( x1 , y1 , dir ) {
@@ -186,6 +187,7 @@ export default class Node {
186
187
this . hover = false
187
188
this . wasClicked = false
188
189
this . scope = this . parent . scope
190
+ this . scope . timeStamp = new Date ( ) . getTime ( )
189
191
/**
190
192
* @type {string }
191
193
* value of this.prev is
@@ -289,6 +291,7 @@ export default class Node {
289
291
for ( var i = 0 ; i < this . connections . length ; i ++ ) {
290
292
this . connections [ i ] . connections = this . connections [ i ] . connections . filter ( x => x !== this )
291
293
}
294
+ this . scope . timeStamp = new Date ( ) . getTime ( )
292
295
this . connections = [ ]
293
296
}
294
297
@@ -341,6 +344,8 @@ export default class Node {
341
344
this . connections . push ( n )
342
345
n . connections . push ( this )
343
346
347
+ this . scope . timeStamp = new Date ( ) . getTime ( )
348
+
344
349
updateCanvasSet ( true )
345
350
updateSimulationSet ( true )
346
351
scheduleUpdate ( )
@@ -355,7 +360,9 @@ export default class Node {
355
360
this . connections . push ( n )
356
361
n . connections . push ( this )
357
362
358
- updateCanvasSet ( true )
363
+ this . scope . timeStamp = new Date ( ) . getTime ( )
364
+
365
+ // updateCanvasSet(true)
359
366
updateSimulationSet ( true )
360
367
scheduleUpdate ( )
361
368
}
@@ -366,6 +373,8 @@ export default class Node {
366
373
disconnectWireLess ( n ) {
367
374
this . connections = this . connections . filter ( x => x !== n )
368
375
n . connections = n . connections . filter ( x => x !== this )
376
+
377
+ this . scope . timeStamp = new Date ( ) . getTime ( )
369
378
}
370
379
371
380
/**
@@ -908,6 +917,9 @@ export default class Node {
908
917
this . connections [ i ] . connections = this . connections [ i ] . connections . filter ( x => x !== this )
909
918
this . connections [ i ] . checkDeleted ( )
910
919
}
920
+
921
+ this . scope . timeStamp = new Date ( ) . getTime ( )
922
+
911
923
wireToBeCheckedSet ( 1 )
912
924
forceResetNodesSet ( true )
913
925
scheduleUpdate ( )
0 commit comments