Skip to content

Conversation

@RileyCullen
Copy link
Owner

No description provided.

Copy link
Owner Author

@RileyCullen RileyCullen left a 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(){
Copy link
Owner Author

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(
{
Copy link
Owner Author

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);
Copy link
Owner Author

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,
Copy link
Owner Author

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',
Copy link
Owner Author

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>'
Copy link
Owner Author

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),
Copy link
Owner Author

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(
Copy link
Owner Author

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);
Copy link
Owner Author

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({
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants