Closed tinchodias closed 3 years ago
Update the code and now we can see the canvas up the floor.
visitCanvas: aRSCanvas
| rec |
scale := 0.006.
rec := aRSCanvas encompassingRectangle.
translation := (rec floatCenter negated * scale) + (0@rec height negated * scale).
aRSCanvas shapes
do: [ :shape | shape accept: self ]
separatedBy: [ stream crlf ]
Nice!
When a visualization has elements close enough to position y=0, the floor hides them.
I propose this solution: When the HTML is writtten, calculate the initial y position of the floor in with the min y position of all elements.