Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Sep 23, 2019
1 parent f80d08f commit 3172fd7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/js/molecules/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ export default class Constant extends Atom{
else if(this.selected){
GlobalVariables.c.fillStyle = this.selectedColor
GlobalVariables.c.strokeStyle = this.defaultColor
/**
* This background color
* @type {string}
*/
this.color = this.selectedColor
/**
* This atoms accent color
* @type {string}
*/
this.strokeColor = this.defaultColor
}
else{
Expand Down
8 changes: 8 additions & 0 deletions src/js/molecules/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,15 @@ export default class Input extends Atom {
else if(this.selected){
GlobalVariables.c.fillStyle = this.selectedColor
GlobalVariables.c.strokeStyle = this.defaultColor
/**
* This background color
* @type {string}
*/
this.color = this.selectedColor
/**
* This atoms accent color
* @type {string}
*/
this.strokeColor = this.defaultColor
}
else{
Expand Down
8 changes: 8 additions & 0 deletions src/js/molecules/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ export default class Output extends Atom {
else if(this.selected){
GlobalVariables.c.fillStyle = this.selectedColor
GlobalVariables.c.strokeStyle = this.defaultColor
/**
* This background color
* @type {string}
*/
this.color = this.selectedColor
/**
* This atoms accent color
* @type {string}
*/
this.strokeColor = this.defaultColor
}
else{
Expand Down
9 changes: 8 additions & 1 deletion src/js/prototypes/attachmentpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,17 @@ export default class AttachmentPoint {
*/
this.type = 'output'
/**
* The attachment point current value. Default is 10.
* The attachment point current value.
* @type {number}
*/
this.value = 10

/**
* The default value to be used by the ap when nothing is attached
* @type {string}
*/
this.defaultValue = 10

/**
* A flag to indicate if the attachment point is currently ready. Used to order initilization when program is loaded.
* @type {string}
Expand Down

0 comments on commit 3172fd7

Please sign in to comment.