@altnovatrail/contracts 0.19.15 → 0.19.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -668,7 +668,7 @@ export declare type HistoryEvent = Message<"novatrail.eval.v1.HistoryEvent"> & {
|
|
|
668
668
|
case: "write";
|
|
669
669
|
} | {
|
|
670
670
|
/**
|
|
671
|
-
* The eraser took strokes off, in one stroke of the eraser.
|
|
671
|
+
* The eraser took strokes off whole, in one stroke of the eraser.
|
|
672
672
|
*
|
|
673
673
|
* @generated from field: novatrail.eval.v1.StrokeIds erase = 3;
|
|
674
674
|
*/
|
|
@@ -690,6 +690,15 @@ export declare type HistoryEvent = Message<"novatrail.eval.v1.HistoryEvent"> & {
|
|
|
690
690
|
*/
|
|
691
691
|
value: Undo;
|
|
692
692
|
case: "undo";
|
|
693
|
+
} | {
|
|
694
|
+
/**
|
|
695
|
+
* The eraser took off the strokes it crossed and left the pieces of them it did not pass over,
|
|
696
|
+
* in one stroke of an eraser that takes a part.
|
|
697
|
+
*
|
|
698
|
+
* @generated from field: novatrail.eval.v1.Cut cut = 6;
|
|
699
|
+
*/
|
|
700
|
+
value: Cut;
|
|
701
|
+
case: "cut";
|
|
693
702
|
} | { case: undefined; value?: undefined };
|
|
694
703
|
};
|
|
695
704
|
|
|
@@ -726,6 +735,14 @@ export declare type Stroke = Message<"novatrail.eval.v1.Stroke"> & {
|
|
|
726
735
|
* @generated from field: repeated novatrail.eval.v1.InkPoint points = 3;
|
|
727
736
|
*/
|
|
728
737
|
points: InkPoint[];
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* How it looks, as the learner chose it; none in a stroke written before strokes had a style,
|
|
741
|
+
* which is drawn black and opaque.
|
|
742
|
+
*
|
|
743
|
+
* @generated from field: novatrail.eval.v1.StrokeStyle style = 4;
|
|
744
|
+
*/
|
|
745
|
+
style?: StrokeStyle | undefined;
|
|
729
746
|
};
|
|
730
747
|
|
|
731
748
|
/**
|
|
@@ -734,6 +751,103 @@ export declare type Stroke = Message<"novatrail.eval.v1.Stroke"> & {
|
|
|
734
751
|
*/
|
|
735
752
|
export declare const StrokeSchema: GenMessage<Stroke>;
|
|
736
753
|
|
|
754
|
+
/**
|
|
755
|
+
* How a stroke looks: its kind of pen, its colour, its width and its opacity.
|
|
756
|
+
*
|
|
757
|
+
* @generated from message novatrail.eval.v1.StrokeStyle
|
|
758
|
+
*/
|
|
759
|
+
export declare type StrokeStyle = Message<"novatrail.eval.v1.StrokeStyle"> & {
|
|
760
|
+
/**
|
|
761
|
+
* The kind of pen.
|
|
762
|
+
*
|
|
763
|
+
* @generated from field: novatrail.eval.v1.PenKind pen = 1;
|
|
764
|
+
*/
|
|
765
|
+
pen: PenKind;
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Its colour, any of sRGB: `#` and six lowercase hexadecimal digits.
|
|
769
|
+
*
|
|
770
|
+
* @generated from field: string color = 2;
|
|
771
|
+
*/
|
|
772
|
+
color: string;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* The width of its line, in units of the sheet, to a tenth, from 0.1 to 50.
|
|
776
|
+
*
|
|
777
|
+
* @generated from field: double width = 3;
|
|
778
|
+
*/
|
|
779
|
+
width: number;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Its opacity, in whole percent from 10 to 100.
|
|
783
|
+
*
|
|
784
|
+
* @generated from field: int32 opacity = 4;
|
|
785
|
+
*/
|
|
786
|
+
opacity: number;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Describes the message novatrail.eval.v1.StrokeStyle.
|
|
791
|
+
* Use `create(StrokeStyleSchema)` to create a new message.
|
|
792
|
+
*/
|
|
793
|
+
export declare const StrokeStyleSchema: GenMessage<StrokeStyle>;
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* What a cut changed: the strokes it took off, and the pieces of them it left.
|
|
797
|
+
*
|
|
798
|
+
* @generated from message novatrail.eval.v1.Cut
|
|
799
|
+
*/
|
|
800
|
+
export declare type Cut = Message<"novatrail.eval.v1.Cut"> & {
|
|
801
|
+
/**
|
|
802
|
+
* The IDs of the strokes it took off, in the order of the sheet: one at least.
|
|
803
|
+
*
|
|
804
|
+
* @generated from field: repeated int32 ids = 1;
|
|
805
|
+
*/
|
|
806
|
+
ids: number[];
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* The pieces it left, in the order of `ids` and along each stroke: none of a stroke it covered
|
|
810
|
+
* whole.
|
|
811
|
+
*
|
|
812
|
+
* @generated from field: repeated novatrail.eval.v1.Piece pieces = 2;
|
|
813
|
+
*/
|
|
814
|
+
pieces: Piece[];
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Describes the message novatrail.eval.v1.Cut.
|
|
819
|
+
* Use `create(CutSchema)` to create a new message.
|
|
820
|
+
*/
|
|
821
|
+
export declare const CutSchema: GenMessage<Cut>;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* A piece of a stroke that a cut left: a new stroke on the sheet.
|
|
825
|
+
*
|
|
826
|
+
* @generated from message novatrail.eval.v1.Piece
|
|
827
|
+
*/
|
|
828
|
+
export declare type Piece = Message<"novatrail.eval.v1.Piece"> & {
|
|
829
|
+
/**
|
|
830
|
+
* The ID of the stroke it was cut of, one of the cut's `ids`.
|
|
831
|
+
*
|
|
832
|
+
* @generated from field: int32 of = 1;
|
|
833
|
+
*/
|
|
834
|
+
of: number;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* The piece: an ID no stroke had before, that stroke's pointer and style, and a run of its
|
|
838
|
+
* points, with one point of its own at most at each end, where the eraser's edge crossed it.
|
|
839
|
+
*
|
|
840
|
+
* @generated from field: novatrail.eval.v1.Stroke stroke = 2;
|
|
841
|
+
*/
|
|
842
|
+
stroke?: Stroke | undefined;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Describes the message novatrail.eval.v1.Piece.
|
|
847
|
+
* Use `create(PieceSchema)` to create a new message.
|
|
848
|
+
*/
|
|
849
|
+
export declare const PieceSchema: GenMessage<Piece>;
|
|
850
|
+
|
|
737
851
|
/**
|
|
738
852
|
* A point of a stroke as it was written.
|
|
739
853
|
*
|
|
@@ -855,6 +969,13 @@ export declare type FinalStroke = Message<"novatrail.eval.v1.FinalStroke"> & {
|
|
|
855
969
|
* @generated from field: repeated novatrail.eval.v1.FinalPoint points = 2;
|
|
856
970
|
*/
|
|
857
971
|
points: FinalPoint[];
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* How it looks, as the stroke it stands for was written; none for one without a style.
|
|
975
|
+
*
|
|
976
|
+
* @generated from field: novatrail.eval.v1.StrokeStyle style = 3;
|
|
977
|
+
*/
|
|
978
|
+
style?: StrokeStyle | undefined;
|
|
858
979
|
};
|
|
859
980
|
|
|
860
981
|
/**
|
|
@@ -1213,14 +1334,14 @@ export declare type Crop = Message<"novatrail.eval.v1.Crop"> & {
|
|
|
1213
1334
|
height: number;
|
|
1214
1335
|
|
|
1215
1336
|
/**
|
|
1216
|
-
* The margin above the strokes, px.
|
|
1337
|
+
* The margin above the strokes' points, px.
|
|
1217
1338
|
*
|
|
1218
1339
|
* @generated from field: int32 margin_top = 5;
|
|
1219
1340
|
*/
|
|
1220
1341
|
marginTop: number;
|
|
1221
1342
|
|
|
1222
1343
|
/**
|
|
1223
|
-
* The margin left of the strokes, px.
|
|
1344
|
+
* The margin left of the strokes' points, px.
|
|
1224
1345
|
*
|
|
1225
1346
|
* @generated from field: int32 margin_left = 6;
|
|
1226
1347
|
*/
|
|
@@ -1234,7 +1355,7 @@ export declare type Crop = Message<"novatrail.eval.v1.Crop"> & {
|
|
|
1234
1355
|
scale: number;
|
|
1235
1356
|
|
|
1236
1357
|
/**
|
|
1237
|
-
* The width of the line, px.
|
|
1358
|
+
* The width of the widest line of its strokes, px.
|
|
1238
1359
|
*
|
|
1239
1360
|
* @generated from field: double line_width = 8;
|
|
1240
1361
|
*/
|
|
@@ -1256,7 +1377,8 @@ export declare type Crop = Message<"novatrail.eval.v1.Crop"> & {
|
|
|
1256
1377
|
frames: Frame[];
|
|
1257
1378
|
|
|
1258
1379
|
/**
|
|
1259
|
-
* The crop, a PNG
|
|
1380
|
+
* The crop, a PNG of 8 bits with no ancillary chunk: grey when none of its strokes has a style,
|
|
1381
|
+
* and RGB when one has.
|
|
1260
1382
|
*
|
|
1261
1383
|
* @generated from field: bytes png = 11;
|
|
1262
1384
|
*/
|
|
@@ -1444,3 +1566,44 @@ export enum Writer {
|
|
|
1444
1566
|
*/
|
|
1445
1567
|
export declare const WriterSchema: GenEnum<Writer>;
|
|
1446
1568
|
|
|
1569
|
+
/**
|
|
1570
|
+
* The kind of pen a stroke is written with.
|
|
1571
|
+
*
|
|
1572
|
+
* @generated from enum novatrail.eval.v1.PenKind
|
|
1573
|
+
*/
|
|
1574
|
+
export enum PenKind {
|
|
1575
|
+
/**
|
|
1576
|
+
* No kind: never written. A style that holds it is not valid.
|
|
1577
|
+
*
|
|
1578
|
+
* @generated from enum value: PEN_KIND_UNSPECIFIED = 0;
|
|
1579
|
+
*/
|
|
1580
|
+
UNSPECIFIED = 0,
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* A pen, whose line the device draws wider and finer by its pressure or its speed: a crop
|
|
1584
|
+
* draws it at its width.
|
|
1585
|
+
*
|
|
1586
|
+
* @generated from enum value: PEN_KIND_PEN = 1;
|
|
1587
|
+
*/
|
|
1588
|
+
PEN = 1,
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* A liner: one width all along.
|
|
1592
|
+
*
|
|
1593
|
+
* @generated from enum value: PEN_KIND_LINER = 2;
|
|
1594
|
+
*/
|
|
1595
|
+
LINER = 2,
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* A marker: one width, multiplied with what lies under it.
|
|
1599
|
+
*
|
|
1600
|
+
* @generated from enum value: PEN_KIND_MARKER = 3;
|
|
1601
|
+
*/
|
|
1602
|
+
MARKER = 3,
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Describes the enum novatrail.eval.v1.PenKind.
|
|
1607
|
+
*/
|
|
1608
|
+
export declare const PenKindSchema: GenEnum<PenKind>;
|
|
1609
|
+
|
|
@@ -15,7 +15,7 @@ import { file_novatrail_observation_v1_observation } from "../../observation/v1/
|
|
|
15
15
|
* Describes the file novatrail/eval/v1/sample.proto.
|
|
16
16
|
*/
|
|
17
17
|
export const file_novatrail_eval_v1_sample = /*@__PURE__*/
|
|
18
|
-
fileDesc("Ch5ub3ZhdHJhaWwvZXZhbC92MS9zYW1wbGUucHJvdG8SEW5vdmF0cmFpbC5ldmFsLnYxIo8FCgZTYW1wbGUSEAoIcHJvdG9jb2wYASABKAkSCgoCaWQYAiABKAkSKwoHcHVycG9zZRgDIAEoDjIaLm5vdmF0cmFpbC5ldmFsLnYxLlB1cnBvc2USKQoGd3JpdGVyGAQgASgOMhkubm92YXRyYWlsLmV2YWwudjEuV3JpdGVyEisKBnBlcnNvbhgFIAEoCzIZLm5vdmF0cmFpbC5ldmFsLnYxLlBlcnNvbkgAEjEKCXN5bnRoZXRpYxgGIAEoCzIcLm5vdmF0cmFpbC5ldmFsLnYxLlN5bnRoZXRpY0gAEhgKC3dyaXRlcl9jb2RlGAcgASgJSAOIAQESGAoQdGV4dF9zZXRfdmVyc2lvbhgIIAEoCRIWCg5jYW52YXNfdmVyc2lvbhgJIAEoCRIUCgdsaWNlbnNlGAogASgJSASIAQESLgoEdGFzaxgLIAEoCzIgLm5vdmF0cmFpbC5ldmFsLnYxLlRhc2tSZWZlcmVuY2USLQoHaGlzdG9yeRgMIAEoCzIaLm5vdmF0cmFpbC5ldmFsLnYxLkhpc3RvcnlIARIvCghnZW9tZXRyeRgNIAEoCzIbLm5vdmF0cmFpbC5ldmFsLnYxLkdlb21ldHJ5SAESKQoFc2hlZXQYDiABKAsyGC5ub3ZhdH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ISFgoSV1JJVEVSX1VOU1BFQ0lGSUVEEAASEAoMV1JJVEVSX0FEVUxUEAESGQoVV1JJVEVSX0FEVUxUX0FTX0NISUxEEAISEAoMV1JJVEVSX0NISUxEEAMqXgoHUGVuS2luZBIYChRQRU5fS0lORF9VTlNQRUNJRklFRBAAEhAKDFBFTl9LSU5EX1BFThABEhIKDlBFTl9LSU5EX0xJTkVSEAISEwoPUEVOX0tJTkRfTUFSS0VSEANCzQEKFWNvbS5ub3ZhdHJhaWwuZXZhbC52MUILU2FtcGxlUHJvdG9QAVo/Z2l0aHViLmNvbS9hbHRub3ZhdHJhaWwvc3BlYy9jb250cmFjdHMvbm92YXRyYWlsL2V2YWwvdjE7ZXZhbHYxogIDTkVYqgIRTm92YXRyYWlsLkV2YWwuVjHKAhJOb3ZhdHJhaWxcRXZhbF9cVjHiAh5Ob3ZhdHJhaWxcRXZhbF9cVjFcR1BCTWV0YWRhdGHqAhNOb3ZhdHJhaWw6OkV2YWw6OlYxYgZwcm90bzM", [file_novatrail_observation_v1_observation]);
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Describes the message novatrail.eval.v1.Sample.
|
|
@@ -129,117 +129,138 @@ export const HistoryEventSchema = /*@__PURE__*/
|
|
|
129
129
|
export const StrokeSchema = /*@__PURE__*/
|
|
130
130
|
messageDesc(file_novatrail_eval_v1_sample, 15);
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Describes the message novatrail.eval.v1.StrokeStyle.
|
|
134
|
+
* Use `create(StrokeStyleSchema)` to create a new message.
|
|
135
|
+
*/
|
|
136
|
+
export const StrokeStyleSchema = /*@__PURE__*/
|
|
137
|
+
messageDesc(file_novatrail_eval_v1_sample, 16);
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message novatrail.eval.v1.Cut.
|
|
141
|
+
* Use `create(CutSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export const CutSchema = /*@__PURE__*/
|
|
144
|
+
messageDesc(file_novatrail_eval_v1_sample, 17);
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Describes the message novatrail.eval.v1.Piece.
|
|
148
|
+
* Use `create(PieceSchema)` to create a new message.
|
|
149
|
+
*/
|
|
150
|
+
export const PieceSchema = /*@__PURE__*/
|
|
151
|
+
messageDesc(file_novatrail_eval_v1_sample, 18);
|
|
152
|
+
|
|
132
153
|
/**
|
|
133
154
|
* Describes the message novatrail.eval.v1.InkPoint.
|
|
134
155
|
* Use `create(InkPointSchema)` to create a new message.
|
|
135
156
|
*/
|
|
136
157
|
export const InkPointSchema = /*@__PURE__*/
|
|
137
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
158
|
+
messageDesc(file_novatrail_eval_v1_sample, 19);
|
|
138
159
|
|
|
139
160
|
/**
|
|
140
161
|
* Describes the message novatrail.eval.v1.StrokeIds.
|
|
141
162
|
* Use `create(StrokeIdsSchema)` to create a new message.
|
|
142
163
|
*/
|
|
143
164
|
export const StrokeIdsSchema = /*@__PURE__*/
|
|
144
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
165
|
+
messageDesc(file_novatrail_eval_v1_sample, 20);
|
|
145
166
|
|
|
146
167
|
/**
|
|
147
168
|
* Describes the message novatrail.eval.v1.Undo.
|
|
148
169
|
* Use `create(UndoSchema)` to create a new message.
|
|
149
170
|
*/
|
|
150
171
|
export const UndoSchema = /*@__PURE__*/
|
|
151
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
172
|
+
messageDesc(file_novatrail_eval_v1_sample, 21);
|
|
152
173
|
|
|
153
174
|
/**
|
|
154
175
|
* Describes the message novatrail.eval.v1.Geometry.
|
|
155
176
|
* Use `create(GeometrySchema)` to create a new message.
|
|
156
177
|
*/
|
|
157
178
|
export const GeometrySchema = /*@__PURE__*/
|
|
158
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
179
|
+
messageDesc(file_novatrail_eval_v1_sample, 22);
|
|
159
180
|
|
|
160
181
|
/**
|
|
161
182
|
* Describes the message novatrail.eval.v1.FinalStroke.
|
|
162
183
|
* Use `create(FinalStrokeSchema)` to create a new message.
|
|
163
184
|
*/
|
|
164
185
|
export const FinalStrokeSchema = /*@__PURE__*/
|
|
165
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
186
|
+
messageDesc(file_novatrail_eval_v1_sample, 23);
|
|
166
187
|
|
|
167
188
|
/**
|
|
168
189
|
* Describes the message novatrail.eval.v1.FinalPoint.
|
|
169
190
|
* Use `create(FinalPointSchema)` to create a new message.
|
|
170
191
|
*/
|
|
171
192
|
export const FinalPointSchema = /*@__PURE__*/
|
|
172
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
193
|
+
messageDesc(file_novatrail_eval_v1_sample, 24);
|
|
173
194
|
|
|
174
195
|
/**
|
|
175
196
|
* Describes the message novatrail.eval.v1.Sheet.
|
|
176
197
|
* Use `create(SheetSchema)` to create a new message.
|
|
177
198
|
*/
|
|
178
199
|
export const SheetSchema = /*@__PURE__*/
|
|
179
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
200
|
+
messageDesc(file_novatrail_eval_v1_sample, 25);
|
|
180
201
|
|
|
181
202
|
/**
|
|
182
203
|
* Describes the message novatrail.eval.v1.Group.
|
|
183
204
|
* Use `create(GroupSchema)` to create a new message.
|
|
184
205
|
*/
|
|
185
206
|
export const GroupSchema = /*@__PURE__*/
|
|
186
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
207
|
+
messageDesc(file_novatrail_eval_v1_sample, 26);
|
|
187
208
|
|
|
188
209
|
/**
|
|
189
210
|
* Describes the message novatrail.eval.v1.Workbook.
|
|
190
211
|
* Use `create(WorkbookSchema)` to create a new message.
|
|
191
212
|
*/
|
|
192
213
|
export const WorkbookSchema = /*@__PURE__*/
|
|
193
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
214
|
+
messageDesc(file_novatrail_eval_v1_sample, 27);
|
|
194
215
|
|
|
195
216
|
/**
|
|
196
217
|
* Describes the message novatrail.eval.v1.PageBox.
|
|
197
218
|
* Use `create(PageBoxSchema)` to create a new message.
|
|
198
219
|
*/
|
|
199
220
|
export const PageBoxSchema = /*@__PURE__*/
|
|
200
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
221
|
+
messageDesc(file_novatrail_eval_v1_sample, 28);
|
|
201
222
|
|
|
202
223
|
/**
|
|
203
224
|
* Describes the message novatrail.eval.v1.FilledBox.
|
|
204
225
|
* Use `create(FilledBoxSchema)` to create a new message.
|
|
205
226
|
*/
|
|
206
227
|
export const FilledBoxSchema = /*@__PURE__*/
|
|
207
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
228
|
+
messageDesc(file_novatrail_eval_v1_sample, 29);
|
|
208
229
|
|
|
209
230
|
/**
|
|
210
231
|
* Describes the message novatrail.eval.v1.CropSet.
|
|
211
232
|
* Use `create(CropSetSchema)` to create a new message.
|
|
212
233
|
*/
|
|
213
234
|
export const CropSetSchema = /*@__PURE__*/
|
|
214
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
235
|
+
messageDesc(file_novatrail_eval_v1_sample, 30);
|
|
215
236
|
|
|
216
237
|
/**
|
|
217
238
|
* Describes the message novatrail.eval.v1.TenthsBox.
|
|
218
239
|
* Use `create(TenthsBoxSchema)` to create a new message.
|
|
219
240
|
*/
|
|
220
241
|
export const TenthsBoxSchema = /*@__PURE__*/
|
|
221
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
242
|
+
messageDesc(file_novatrail_eval_v1_sample, 31);
|
|
222
243
|
|
|
223
244
|
/**
|
|
224
245
|
* Describes the message novatrail.eval.v1.Crop.
|
|
225
246
|
* Use `create(CropSchema)` to create a new message.
|
|
226
247
|
*/
|
|
227
248
|
export const CropSchema = /*@__PURE__*/
|
|
228
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
249
|
+
messageDesc(file_novatrail_eval_v1_sample, 32);
|
|
229
250
|
|
|
230
251
|
/**
|
|
231
252
|
* Describes the message novatrail.eval.v1.SheetBox.
|
|
232
253
|
* Use `create(SheetBoxSchema)` to create a new message.
|
|
233
254
|
*/
|
|
234
255
|
export const SheetBoxSchema = /*@__PURE__*/
|
|
235
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
256
|
+
messageDesc(file_novatrail_eval_v1_sample, 33);
|
|
236
257
|
|
|
237
258
|
/**
|
|
238
259
|
* Describes the message novatrail.eval.v1.Frame.
|
|
239
260
|
* Use `create(FrameSchema)` to create a new message.
|
|
240
261
|
*/
|
|
241
262
|
export const FrameSchema = /*@__PURE__*/
|
|
242
|
-
messageDesc(file_novatrail_eval_v1_sample,
|
|
263
|
+
messageDesc(file_novatrail_eval_v1_sample, 34);
|
|
243
264
|
|
|
244
265
|
/**
|
|
245
266
|
* Describes the enum novatrail.eval.v1.PartKind.
|
|
@@ -283,3 +304,17 @@ export const WriterSchema = /*@__PURE__*/
|
|
|
283
304
|
export const Writer = /*@__PURE__*/
|
|
284
305
|
tsEnum(WriterSchema);
|
|
285
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Describes the enum novatrail.eval.v1.PenKind.
|
|
309
|
+
*/
|
|
310
|
+
export const PenKindSchema = /*@__PURE__*/
|
|
311
|
+
enumDesc(file_novatrail_eval_v1_sample, 3);
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The kind of pen a stroke is written with.
|
|
315
|
+
*
|
|
316
|
+
* @generated from enum novatrail.eval.v1.PenKind
|
|
317
|
+
*/
|
|
318
|
+
export const PenKind = /*@__PURE__*/
|
|
319
|
+
tsEnum(PenKindSchema);
|
|
320
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/contracts",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.17",
|
|
4
4
|
"description": "The code of NovaTrail's API contracts for TypeScript, which protoc-gen-es generates from their protobuf files: the messages and enums of each contract, with their descriptors, for @bufbuild/protobuf and Connect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "The rule of the crop (contracts/README.md, section 12): from the strokes a sheet shows and their groups to the bundles of the strokes and the crops' numbers at each height of a digit of eval and at the module's, 24 px — the box of the points and h_med in tenths, and of each crop the height drawn, its size, margins, scale, line, where it lies on the sheet and the frames of the groups —, without their PNG. canvas's vectors/crops.json at its tag v0.1.2.",
|
|
2
|
+
"description": "The rule of the crop (contracts/README.md, section 12): from the strokes a sheet shows and their groups to the bundles of the strokes and the crops' numbers at each height of a digit of eval and at the module's, 24 px — the box of the points and h_med in tenths, and of each crop the height drawn, its size, margins, scale, line, where it lies on the sheet and the frames of the groups —, without their PNG. canvas's vectors/crops.json at its tag v0.1.2, but the last two, spec's own, of strokes with a style.",
|
|
3
3
|
"rule": {"margin": 12, "flat": 15, "ceiling": 100, "side": 200, "edge": 1568, "tokens": 1568, "patch": 28, "heights": [16, 24, 32, 48]},
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -1060,6 +1060,47 @@
|
|
|
1060
1060
|
{"digit_height": 32, "drawn_height": 17, "width": 772, "height": 1568, "margin_top": 12, "margin_left": 12, "scale": 1.1333333333333333, "line_width": 1.4166666666666667, "sheet_box": {"ymin": -0.5882352941176471, "xmin": 89.41176470588235, "ymax": 1382.9411764705883, "xmax": 770.5882352941177}, "frames": [{"label": "A", "box": {"ymin": 6, "xmin": 13, "ymax": 9, "xmax": 18}}, {"label": "B", "box": {"ymin": 6, "xmin": 982, "ymax": 9, "xmax": 987}}, {"label": "C", "box": {"ymin": 991, "xmin": 13, "ymax": 994, "xmax": 18}}], "png": ""},
|
|
1061
1061
|
{"digit_height": 48, "drawn_height": 17, "width": 772, "height": 1568, "margin_top": 12, "margin_left": 12, "scale": 1.1333333333333333, "line_width": 1.4166666666666667, "sheet_box": {"ymin": -0.5882352941176471, "xmin": 89.41176470588235, "ymax": 1382.9411764705883, "xmax": 770.5882352941177}, "frames": [{"label": "A", "box": {"ymin": 6, "xmin": 13, "ymax": 9, "xmax": 18}}, {"label": "B", "box": {"ymin": 6, "xmin": 982, "ymax": 9, "xmax": 987}}, {"label": "C", "box": {"ymin": 991, "xmin": 13, "ymax": 994, "xmax": 18}}], "png": ""}
|
|
1062
1062
|
]}
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"name": "styles",
|
|
1066
|
+
"description": "«12» in liner, a stroke of the kind pen, and an underline in marker under them: each line is its width at the crop's scale, 1 px at least, the margin 12 px, and the frame of the group as wide as its widest line.",
|
|
1067
|
+
"digit_height": 24,
|
|
1068
|
+
"strokes": [
|
|
1069
|
+
{"id": 1, "points": [{"x": 104, "y": 210.8}, {"x": 112, "y": 200}, {"x": 112, "y": 236}], "style": {"pen": "PEN_KIND_LINER", "color": "#0a63d6", "width": 1.2, "opacity": 100}},
|
|
1070
|
+
{"id": 2, "points": [{"x": 126, "y": 207.2}, {"x": 132, "y": 200}, {"x": 140, "y": 200}, {"x": 146, "y": 210.8}, {"x": 144, "y": 218}, {"x": 126, "y": 236}, {"x": 146, "y": 236}], "style": {"pen": "PEN_KIND_PEN", "color": "#1c1c1e", "width": 2, "opacity": 100}},
|
|
1071
|
+
{"id": 3, "points": [{"x": 100, "y": 246}, {"x": 150, "y": 246}], "style": {"pen": "PEN_KIND_MARKER", "color": "#ffcc00", "width": 12, "opacity": 40}}
|
|
1072
|
+
],
|
|
1073
|
+
"groups": [
|
|
1074
|
+
{"label": "A", "stroke_ids": [1, 2, 3]}
|
|
1075
|
+
],
|
|
1076
|
+
"bundles": [
|
|
1077
|
+
[1],
|
|
1078
|
+
[2]
|
|
1079
|
+
],
|
|
1080
|
+
"crops": {"ink_box": {"ymin": 2000, "xmin": 1000, "ymax": 2460, "xmax": 1500}, "bundle_median": 360, "crops": [
|
|
1081
|
+
{"digit_height": 16, "drawn_height": 16, "width": 200, "height": 200, "margin_top": 89, "margin_left": 88, "scale": 0.4444444444444444, "line_width": 5.333333333333333, "sheet_box": {"ymin": -0.25, "xmin": -98, "ymax": 449.75, "xmax": 352}, "frames": [{"label": "A", "box": {"ymin": 426, "xmin": 421, "ymax": 566, "xmax": 570}}], "png": ""},
|
|
1082
|
+
{"digit_height": 24, "drawn_height": 24, "width": 200, "height": 200, "margin_top": 84, "margin_left": 83, "scale": 0.6666666666666666, "line_width": 8, "sheet_box": {"ymin": 74, "xmin": -24.5, "ymax": 374, "xmax": 275.5}, "frames": [{"label": "A", "box": {"ymin": 395, "xmin": 390, "ymax": 599, "xmax": 607}}], "png": ""},
|
|
1083
|
+
{"digit_height": 32, "drawn_height": 32, "width": 200, "height": 200, "margin_top": 79, "margin_left": 77, "scale": 0.8888888888888888, "line_width": 10.666666666666666, "sheet_box": {"ymin": 111.125, "xmin": 13.375, "ymax": 336.125, "xmax": 238.375}, "frames": [{"label": "A", "box": {"ymin": 363, "xmin": 353, "ymax": 632, "xmax": 639}}], "png": ""},
|
|
1084
|
+
{"digit_height": 48, "drawn_height": 48, "width": 200, "height": 200, "margin_top": 69, "margin_left": 66, "scale": 1.3333333333333333, "line_width": 16, "sheet_box": {"ymin": 148.25, "xmin": 50.5, "ymax": 298.25, "xmax": 200.5}, "frames": [{"label": "A", "box": {"ymin": 300, "xmin": 285, "ymax": 697, "xmax": 709}}], "png": ""}
|
|
1085
|
+
]}
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "wide-marker",
|
|
1089
|
+
"description": "One wide stroke of a marker, 40 units, and no bundle, so the median is 15: half its line and a pixel are more than 12 px at every height, and the margins widen to hold them, the frame too.",
|
|
1090
|
+
"digit_height": 24,
|
|
1091
|
+
"strokes": [
|
|
1092
|
+
{"id": 1, "points": [{"x": 300, "y": 500}, {"x": 400, "y": 500}], "style": {"pen": "PEN_KIND_MARKER", "color": "#1e9e4a", "width": 40, "opacity": 60}}
|
|
1093
|
+
],
|
|
1094
|
+
"groups": [
|
|
1095
|
+
{"label": "A", "stroke_ids": [1]}
|
|
1096
|
+
],
|
|
1097
|
+
"bundles": [],
|
|
1098
|
+
"crops": {"ink_box": {"ymin": 5000, "xmin": 3000, "ymax": 5000, "xmax": 4000}, "bundle_median": 150, "crops": [
|
|
1099
|
+
{"digit_height": 16, "drawn_height": 16, "width": 200, "height": 200, "margin_top": 100, "margin_left": 46, "scale": 1.0666666666666667, "line_width": 42.666666666666664, "sheet_box": {"ymin": 406.25, "xmin": 256.875, "ymax": 593.75, "xmax": 444.375}, "frames": [{"label": "A", "box": {"ymin": 388, "xmin": 118, "ymax": 612, "xmax": 875}}], "png": ""},
|
|
1100
|
+
{"digit_height": 24, "drawn_height": 24, "width": 226, "height": 200, "margin_top": 100, "margin_left": 33, "scale": 1.6, "line_width": 64, "sheet_box": {"ymin": 437.5, "xmin": 279.375, "ymax": 562.5, "xmax": 420.625}, "frames": [{"label": "A", "box": {"ymin": 335, "xmin": 0, "ymax": 665, "xmax": 1000}}], "png": ""},
|
|
1101
|
+
{"digit_height": 32, "drawn_height": 32, "width": 302, "height": 200, "margin_top": 100, "margin_left": 44, "scale": 2.1333333333333333, "line_width": 85.33333333333333, "sheet_box": {"ymin": 453.125, "xmin": 279.375, "ymax": 546.875, "xmax": 420.9375}, "frames": [{"label": "A", "box": {"ymin": 281, "xmin": 1, "ymax": 719, "xmax": 997}}], "png": ""},
|
|
1102
|
+
{"digit_height": 48, "drawn_height": 48, "width": 450, "height": 200, "margin_top": 100, "margin_left": 65, "scale": 3.2, "line_width": 128, "sheet_box": {"ymin": 468.75, "xmin": 279.6875, "ymax": 531.25, "xmax": 420.3125}, "frames": [{"label": "A", "box": {"ymin": 175, "xmin": 0, "ymax": 825, "xmax": 1000}}], "png": ""}
|
|
1103
|
+
]}
|
|
1063
1104
|
}
|
|
1064
1105
|
]
|
|
1065
1106
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "The rule of the groups of strokes (contracts/README.md, section 12): from a history of writing to the strokes the sheet shows at the end, the pairs of them that are neighbours, their groups by place, the box of each group's points in tenths, and the groups of each stroke written and taken off. The cases but the last
|
|
2
|
+
"description": "The rule of the groups of strokes (contracts/README.md, section 12): from a history of writing to the strokes the sheet shows at the end, the pairs of them that are neighbours, their groups by place, the box of each group's points in tenths, and the groups of each stroke written and taken off. The cases but the last seven are canvas's vectors/groups.json at its tag v0.1.2, each history as a sample writes it: times in whole milliseconds and no pressure; the last two, spec's own, have strokes with a style and a cut.",
|
|
3
3
|
"rule": {"pause": 2000, "across": 50, "down": 50},
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -732,6 +732,34 @@
|
|
|
732
732
|
{"stroke_id": 1, "labels": []},
|
|
733
733
|
{"stroke_id": 2, "labels": []}
|
|
734
734
|
]
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "cut-in-two",
|
|
738
|
+
"description": "A line in liner, «1» after it, and the eraser that takes a part passing over the line's middle: the cut takes the line off and leaves two pieces, each a run of its points with a point of its own where the eraser's edge crossed it. The pieces are new strokes, 3 and 4, with the line's pointer and style, and with «1» one group; the line cut is taken off, in that group.",
|
|
739
|
+
"history": {"events": [
|
|
740
|
+
{"t_ms": 1000, "write": {"id": 1, "pointer": "mouse", "points": [{"x": 100, "y": 300, "t_ms": 0}, {"x": 120, "y": 300, "t_ms": 100}, {"x": 140, "y": 300, "t_ms": 200}, {"x": 160, "y": 300, "t_ms": 300}, {"x": 180, "y": 300, "t_ms": 400}, {"x": 200, "y": 300, "t_ms": 500}, {"x": 220, "y": 300, "t_ms": 600}, {"x": 240, "y": 300, "t_ms": 700}, {"x": 260, "y": 300, "t_ms": 800}, {"x": 280, "y": 300, "t_ms": 900}, {"x": 300, "y": 300, "t_ms": 1000}], "style": {"pen": "PEN_KIND_LINER", "color": "#0a63d6", "width": 1.2, "opacity": 100}}},
|
|
741
|
+
{"t_ms": 1400, "write": {"id": 2, "pointer": "mouse", "points": [{"x": 320, "y": 280, "t_ms": 1200}, {"x": 320, "y": 320, "t_ms": 1400}], "style": {"pen": "PEN_KIND_LINER", "color": "#0a63d6", "width": 1.2, "opacity": 100}}},
|
|
742
|
+
{"t_ms": 3000, "cut": {"ids": [1], "pieces": [{"of": 1, "stroke": {"id": 3, "pointer": "mouse", "points": [{"x": 100, "y": 300, "t_ms": 0}, {"x": 120, "y": 300, "t_ms": 100}, {"x": 140, "y": 300, "t_ms": 200}, {"x": 160, "y": 300, "t_ms": 300}, {"x": 180, "y": 300, "t_ms": 400}, {"x": 188, "y": 300, "t_ms": 440}], "style": {"pen": "PEN_KIND_LINER", "color": "#0a63d6", "width": 1.2, "opacity": 100}}}, {"of": 1, "stroke": {"id": 4, "pointer": "mouse", "points": [{"x": 212, "y": 300, "t_ms": 560}, {"x": 220, "y": 300, "t_ms": 600}, {"x": 240, "y": 300, "t_ms": 700}, {"x": 260, "y": 300, "t_ms": 800}, {"x": 280, "y": 300, "t_ms": 900}, {"x": 300, "y": 300, "t_ms": 1000}], "style": {"pen": "PEN_KIND_LINER", "color": "#0a63d6", "width": 1.2, "opacity": 100}}}]}}
|
|
743
|
+
]},
|
|
744
|
+
"visible": [2, 3, 4],
|
|
745
|
+
"neighbours": [[2, 4], [3, 4]],
|
|
746
|
+
"groups": [{"label": "A", "stroke_ids": [2, 3, 4]}],
|
|
747
|
+
"group_boxes": [{"ymin": 2800, "xmin": 1000, "ymax": 3200, "xmax": 3200}],
|
|
748
|
+
"erased": [{"stroke_id": 1, "labels": ["A"]}]
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "cut-undone",
|
|
752
|
+
"description": "An underline in marker, the eraser that takes a part passing over its right end, and an undo: the cut leaves one piece, 2, and no piece of the end it covered; the undo takes the piece off and puts the underline back. The piece, written and not shown, is in the underline's group.",
|
|
753
|
+
"history": {"events": [
|
|
754
|
+
{"t_ms": 400, "write": {"id": 1, "pointer": "pen", "points": [{"x": 100, "y": 250, "t_ms": 0}, {"x": 110, "y": 250, "t_ms": 50}, {"x": 120, "y": 250, "t_ms": 100}, {"x": 130, "y": 250, "t_ms": 150}, {"x": 140, "y": 250, "t_ms": 200}, {"x": 150, "y": 250, "t_ms": 250}, {"x": 160, "y": 250, "t_ms": 300}, {"x": 170, "y": 250, "t_ms": 350}, {"x": 180, "y": 250, "t_ms": 400}], "style": {"pen": "PEN_KIND_MARKER", "color": "#ffcc00", "width": 12, "opacity": 40}}},
|
|
755
|
+
{"t_ms": 2000, "cut": {"ids": [1], "pieces": [{"of": 1, "stroke": {"id": 2, "pointer": "pen", "points": [{"x": 100, "y": 250, "t_ms": 0}, {"x": 110, "y": 250, "t_ms": 50}, {"x": 120, "y": 250, "t_ms": 100}, {"x": 130, "y": 250, "t_ms": 150}, {"x": 140, "y": 250, "t_ms": 200}, {"x": 150, "y": 250, "t_ms": 250}, {"x": 154, "y": 250, "t_ms": 270}], "style": {"pen": "PEN_KIND_MARKER", "color": "#ffcc00", "width": 12, "opacity": 40}}}]}},
|
|
756
|
+
{"t_ms": 2600, "undo": {"removed": [2], "restored": [1]}}
|
|
757
|
+
]},
|
|
758
|
+
"visible": [1],
|
|
759
|
+
"neighbours": [],
|
|
760
|
+
"groups": [{"label": "A", "stroke_ids": [1]}],
|
|
761
|
+
"group_boxes": [{"ymin": 2500, "xmin": 1000, "ymax": 2500, "xmax": 1800}],
|
|
762
|
+
"erased": [{"stroke_id": 2, "labels": ["A"]}]
|
|
735
763
|
}
|
|
736
764
|
]
|
|
737
765
|
}
|