Closed boronhub closed 4 years ago
@boronhub are you on linux or mac?
linux
@KarthikRIyer how can i fix the build errors?
@boronhub looking at the error: ld: symbol(s) not found for architecture x86_64
, the build is probably experiencing an error compiling some code. I don't know about the specifics, though. is swift build
and swift test
passing on your local system?
EDIT: probably something to do with the recent merge to update the AGG version... see #93, tests are failing after that push.
Yeah, it's passing.
@KarthikRIyer @karwa the tests are failing because of an XCTAssertTrue failed - 🔥 Image mismatch
, does that have to do with the recent AGG update ? Even one of my other PRs #96 is failing, even though it is just the addition of one line to the README.
No, the tests are failing here because the output has changed. The thickness of the legend border seems different.
@karwa what's triggering this?
hard to say - you'll have to debug it. You might try doing the stroke after the fill, though.
@boronhub once @karwa's PR gets merged try updating your fork against upstream after you fix the local errors.
That PR won't fix the issue - it only addresses a bug where some tests were not being run on Linux. These are different tests that are failing, and they are failing for good reason: the output has demonstrably regressed.
The legend's default fill colour is not transparent - it is actually white with 70% alpha. If you draw the border first, then fill the same rectangle on top of it, you're going to be drawing over the inner half of the border. Instead, you should fill the rectangle and draw the border on top of it.
@karwa I made that change, but the tests are still failing.
@karwa ping
@boronhub sorry for the delay. I've been occupied elsewhere and will probably be occupied this weekend. I've extended your deadline by 2 days just in case I'm unable to get to this.
I just pulled your changes on my system and ran swift test. All tests seem to pass except the line chart crossBothAxes and it seems to be because the X range of the plot drawn is 0 to 5 and the reference is -5 to 5.
Thanks @KarthikRIyer! How do I fix the inconsistencies?
@KarthikRIyer @karwa merging the latest commits made the tests pass !
Look good @boronhub. Thanks for your work and patience. Appreciated!
PR for #75 as part of GCI.
Added
draw_solid_rect_with_border
to AGG renderer so that callingdrawSolidRectWithBorder
does not require overlaying two rectangles made withdraw_rect
anddraw_solid_rect
.