mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 08:08:34 +03:00
Adjusting Visualization to Vector changes
This commit is contained in:
parent
c06faaf362
commit
025acaa676
@ -92,7 +92,7 @@ Table.Table.all_columns : Vector
|
||||
Table.Table.all_columns self =
|
||||
index = self.index.catch_ []
|
||||
index_columns = case index of
|
||||
Vector.Vector_Data _ -> index
|
||||
Vector.Vector_Data -> index
|
||||
a -> [a]
|
||||
index_columns + self.columns
|
||||
|
||||
|
@ -56,7 +56,7 @@ from_value : Any -> Update
|
||||
from_value value =
|
||||
case value of
|
||||
Table.Table_Data _ -> from_table value
|
||||
Vector.Vector_Data _ -> from_vector value
|
||||
Vector.Vector_Data -> from_vector value
|
||||
Column.Column_Data _ -> from_table value.to_table
|
||||
_ -> from_vector value.to_vector
|
||||
|
||||
|
@ -203,7 +203,7 @@ process_to_json_text value bounds=Nothing limit=Nothing =
|
||||
json = case value of
|
||||
Column.Column_Data _ -> json_from_table value.to_table bounds limit
|
||||
Table.Table_Data _ -> json_from_table value bounds limit
|
||||
Vector.Vector_Data _ -> json_from_vector value bounds limit
|
||||
Vector.Vector_Data -> json_from_vector value bounds limit
|
||||
_ -> json_from_vector value.to_vector bounds limit
|
||||
|
||||
json.to_text
|
||||
|
@ -56,7 +56,7 @@ prepare_visualization x max_rows = Helpers.recover_errors <| case x of
|
||||
truncated = x.take (First max_rows)
|
||||
Json.from_pairs [["json", truncated], ["all_rows_count", x.length]] . to_text
|
||||
Array ->
|
||||
prepare_visualization (Vector.Vector_Data x) max_rows
|
||||
prepare_visualization (Vector.from_array x) max_rows
|
||||
|
||||
# Anything else will be visualized with the JSON or matrix visualization
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user