Repository navigation
Text placement is not redone during rotation - #3582
Conversation
| this._trim(); | ||
|
|
||
| if (transferables) { | ||
| this.isTransferred = true; |
There was a problem hiding this comment.
I had to add the StructArray#isTransferred property and assert(!this.isTransferred) in order to create a regression test for this bug. When run within mapbox-gl-test-suite, transferred resources do not actually become unavailable.
These assertions should help catch similar bugs in the future. Fail loud 🎺
f510b2c to
d098d8d
Compare
mourner
left a comment
There was a problem hiding this comment.
Sorry, my omission. Glad we'll catch that next time with the new assertions.
Why did you rename trim to _trim?
|
Previously: #3365. Does the regression test for that issue catch this one too, providing the additional assertions are added? |
|
You can never blame yourself for breaking something that wasn't tested. No worries. I renamed |
|
@jfirebaugh By eyeballing, I think this new regression test would've caught #3365 with or without the new assertions. |
#3490 marks
SymbolBucket#collisionBoxArray,SymbolBucket#symbolInstancesArray,SymbolBucket#symbolQuadsArrayas transferables. TheseStructArrays need to be persisted in the workersideSymbolBucketfor layer use bySymbolBucket#redoPlacement.This manifested as a bug in which text would render upside down after the map was rotated.
ref mapbox/mapbox-gl-test-suite#163
cc @jfirebaugh @mourner
Launch Checklist