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 t
|> XYShape.T.zip |> XYShape.T.zip
|> XYShape.T.Zipped.sortByY |> XYShape.T.Zipped.sortByY
|> Belt.Array.reverse
|> Belt.Array.slice(_, ~offset=0, ~len=i) |> Belt.Array.slice(_, ~offset=0, ~len=i)
|> XYShape.T.Zipped.sortByX |> XYShape.T.Zipped.sortByX
|> XYShape.T.fromZippedArray; |> XYShape.T.fromZippedArray;