-
Notifications
You must be signed in to change notification settings - Fork 5
/
document.proto
64 lines (54 loc) · 1.1 KB
/
document.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package pdfsketchproto;
message Point {
required double x = 1;
required double y = 2;
}
message Size {
required double width = 1;
required double height = 2;
}
message Rect {
required Point origin = 1;
required Size size = 2;
}
message Color {
required double red = 1;
required double green = 2;
required double blue = 3;
required double alpha = 4;
}
message TextArea {
required string text = 2;
}
message Squiggle {
repeated Point point = 1;
required Point original_origin = 2;
}
message Image {
required bytes data = 1;
}
message Graphic {
required Rect frame = 1;
optional Size natural_size = 2;
required uint32 page = 3;
required Color fill_color = 4;
required Color stroke_color = 5;
required double line_width = 6;
required bool h_flip = 7;
required bool v_flip = 8;
enum Type {
TEXT = 0;
CIRCLE = 1;
RECTANGLE = 2;
SQUIGGLE = 3;
CHECKMARK = 4;
IMAGE = 5;
}
required Type type = 9;
optional TextArea text_area = 10;
optional Squiggle squiggle = 11;
optional Image image = 12;
}
message Document {
repeated Graphic graphic = 1;
}