Fix to make sure only top discrete items are truncated

This commit is contained in:
Ozzie Gooen 2020-03-18 19:13:12 +00:00
parent 9dcef813a8
commit d0825581af

View File

@ -189,6 +189,7 @@ module Discrete = {
t
|> XYShape.T.zip
|> XYShape.T.Zipped.sortByY
|> Belt.Array.reverse
|> Belt.Array.slice(_, ~offset=0, ~len=i)
|> XYShape.T.Zipped.sortByX
|> XYShape.T.fromZippedArray;