-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,372 additions
and
800 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
syntax = "proto3"; | ||
|
||
package pinnacle.layout.v1; | ||
|
||
message LayoutTree { | ||
uint32 tree_id = 1; | ||
float outer_gaps = 2; | ||
float inner_gaps = 3; | ||
LayoutNode root = 4; | ||
} | ||
|
||
message LayoutNode { | ||
uint32 node_id = 1; | ||
NodeStyle style = 2; | ||
repeated LayoutNode children = 3; | ||
} | ||
|
||
enum FlexDir { | ||
FLEX_DIR_UNSPECIFIED = 0; | ||
FLEX_DIR_ROW = 1; | ||
FLEX_DIR_COLUMN = 2; | ||
} | ||
|
||
message NodeStyle { | ||
FlexDir flex_dir = 1; | ||
float size_proportion = 2; | ||
} | ||
|
||
message LayoutRequest { | ||
message TreeResponse { | ||
uint32 request_id = 1; | ||
LayoutTree tree = 2; | ||
string output_name = 3; | ||
} | ||
|
||
message ForceLayout { | ||
string output_name = 1; | ||
} | ||
|
||
oneof request { | ||
TreeResponse tree_response = 1; | ||
ForceLayout force_layout = 2; | ||
} | ||
} | ||
|
||
message LayoutResponse { | ||
uint32 request_id = 1; | ||
string output_name = 2; | ||
uint32 window_count = 3; | ||
repeated uint32 tag_ids = 4; | ||
} | ||
|
||
service LayoutService { | ||
rpc Layout(stream LayoutRequest) returns (stream LayoutResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.