forked from lichen-community-systems/phet-osc-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lichen-community-systemsgh-3: Adds support for composite events.
- Loading branch information
1 parent
6965667
commit afa5786
Showing
4 changed files
with
483 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
282 changes: 282 additions & 0 deletions
282
tests/data/osc/osc-composite-event-drag-ended-bundled.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,282 @@ | ||
[ | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.nucleons_9.inputListener/user/dragEnded" | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.protons_9.userControlledProperty/model/changed/oldValue", | ||
"args": [ | ||
{ | ||
"type": "b", | ||
"value": true | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.protons_9.userControlledProperty/model/changed/newValue", | ||
"args": [ | ||
{ | ||
"type": "b", | ||
"value": false | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.protonCountProperty/model/changed/oldValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.protonCountProperty/model/changed/newValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.chargeProperty/model/changed/oldValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.chargeProperty/model/changed/newValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.chargeMeter.readoutText/model/textChanged/oldText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "0" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.chargeMeter.readoutText/model/textChanged/newText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "+1" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.massNumberProperty/model/changed/oldValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.massNumberProperty/model/changed/newValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.massNumberDisplay.numericalText/model/textChanged/oldText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "0" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.massNumberDisplay.numericalText/model/textChanged/newText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "1" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.particleCountProperty/model/changed/oldValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.particleCountProperty/model/changed/newValue", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.elementName/model/textChanged/oldText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.elementName/model/textChanged/newText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "Hydrogen" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.ionIndicator/model/textChanged/oldText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.ionIndicator/model/textChanged/newText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "+ Ion" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.stabilityIndicator/model/textChanged/oldText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "/buildAnAtom.atomScreen.view.atomNode.stabilityIndicator/model/textChanged/newText", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "Stable" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address": "/buildAnAtom.atomScreen.model.particleAtom.protons/model/itemAdded/item", | ||
"args": [ | ||
{ | ||
"type": "s", | ||
"value": "TParticle" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"packets": [ | ||
{ | ||
"address":"/buildAnAtom.atomScreen.model.protons_9.destinationProperty/model/changed/oldValue/x", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": -9.20000000000003 | ||
} | ||
] | ||
}, | ||
{ | ||
"address":"/buildAnAtom.atomScreen.model.protons_9.destinationProperty/model/changed/oldValue/y", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": -41.360000000000014 | ||
} | ||
] | ||
}, | ||
{ | ||
"address":"/buildAnAtom.atomScreen.model.protons_9.destinationProperty/model/changed/newValue/x", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"address":"/buildAnAtom.atomScreen.model.protons_9.destinationProperty/model/changed/newValue/y", | ||
"args": [ | ||
{ | ||
"type": "d", | ||
"value": 0 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.