-
Notifications
You must be signed in to change notification settings - Fork 0
Addition of new template (ADHD) #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
RileyCullen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, good job. Most of the issues were formatting issues.
Make sure to check the statements where you create text elements so that the CSS matches the attributes in the call to SetCSSInfo. If these are inconsistent, then the text displayed in the Quill text editor will be different.
Also, use let instead of var.
| }); | ||
| } | ||
|
|
||
| _CreateSectionHeader(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting: Brackets for functions should be on the next line (NOTE that the exception is when using arrow functions)
| let sideBarGroup = new Konva.Group(); | ||
| sectionHead.add(sideBarGroup) | ||
| let sideBarLeft = new RectangleHeader( | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting: Opening brackets should be on the same line as "new RectangleHeader" and closing brackets should be on same line as ");"
|
|
||
| this._main.add(sectionHead) | ||
|
|
||
| var roboto700 = this._quillMap('Roboto', 700); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove declaration, variable already defined
| }); | ||
| this._textHandler.SetCSSInfo({ | ||
| id: this._textHandler.GetCurrID(), | ||
| fontFamily: roboto700, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fontFamily not consistent with font weight used in sectionTitle
| fontSize: '55px', | ||
| textColor: sectionTitleDiv.style.color, | ||
| lineHeight: '1.2', | ||
| align: 'center', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lineHeight and center attributes defined here but not in the CSS for sectionTitle
|
|
||
| var waffleOneTextDiv = document.createElement('div') | ||
| var waffleOneText = '<p style="margin: 0px;"><span style="font-size: 20px; font-family: Roboto, sans-serif; font-weight: 400; line-height: 1.0;">' | ||
| + '8.4% of children ages 3-17 are</span></p>' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting: Multi-line statements should be indented
| }); | ||
| sectionOne.add(waffleTwoGroup); | ||
|
|
||
| var BoysPreset = GenerateWafflePreset(ADHD, DARK_BLUE, DEFAULT_OFFSET, ICON_FONT), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting: variable names should start lower case
Also, you should use let instead of var
Added a bar chart, waffle chart, images and the last line of text
|
|
||
| _CreateWaffleCharts() | ||
| { | ||
| let sectionOne = this._CreateSwitchableContainer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create groups using new Konva.Group() and not _CreateSwitchableContainer
| sectionOne.add(waffleOneGroup); | ||
|
|
||
| var ICON_FONT = '"Font Awesome 5 Free"'; | ||
| console.log("Default offset: " + DEFAULT_OFFSET); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log debugging statements
| tickStrokeWidth: 0.5, | ||
| font: xAxisFont | ||
| }); | ||
| var valueDecoratorOne = new DataValueDecorator({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove decorator creation call and addition to handler
No description provided.