-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18e56ce
commit 8bba72b
Showing
4 changed files
with
32 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import IOType from '../../../../tandem/js/types/IOType.js'; | ||
import NumberIO from '../../../../tandem/js/types/NumberIO.js'; | ||
import moleculeShapes from '../../moleculeShapes.js'; | ||
|
||
class Bond { | ||
|
@@ -84,5 +86,16 @@ class Bond { | |
} | ||
} | ||
|
||
// @public {IOType} | ||
Bond.BondIO = new IOType( 'BondIO', { | ||
valueType: Bond, | ||
stateSchema: { | ||
a: NumberIO, | ||
b: NumberIO, | ||
order: NumberIO, | ||
length: NumberIO | ||
} | ||
} ); | ||
|
||
moleculeShapes.register( 'Bond', Bond ); | ||
export default Bond; |
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
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
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