ducjs 2.0.1 → 2.2.2
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.
- package/README.md +1 -1
- package/dist/flatbuffers/duc/duc-block-collection-entry.d.ts +16 -0
- package/dist/flatbuffers/duc/duc-block-collection-entry.js +48 -0
- package/dist/flatbuffers/duc/duc-block-collection.d.ts +31 -0
- package/dist/flatbuffers/duc/duc-block-collection.js +97 -0
- package/dist/flatbuffers/duc/duc-block-instance-element.d.ts +0 -20
- package/dist/flatbuffers/duc/duc-block-instance-element.js +0 -66
- package/dist/flatbuffers/duc/duc-block-instance.d.ts +32 -0
- package/dist/flatbuffers/duc/duc-block-instance.js +100 -0
- package/dist/flatbuffers/duc/duc-block-metadata.d.ts +23 -0
- package/dist/flatbuffers/duc/duc-block-metadata.js +72 -0
- package/dist/flatbuffers/duc/duc-block.d.ts +9 -7
- package/dist/flatbuffers/duc/duc-block.js +31 -30
- package/dist/flatbuffers/duc/duc-element-base.d.ts +9 -0
- package/dist/flatbuffers/duc/duc-element-base.js +29 -1
- package/dist/flatbuffers/duc/duc-feature-control-frame-style.d.ts +0 -3
- package/dist/flatbuffers/duc/duc-feature-control-frame-style.js +0 -8
- package/dist/flatbuffers/duc/duc-leader-style.d.ts +0 -3
- package/dist/flatbuffers/duc/duc-leader-style.js +0 -8
- package/dist/flatbuffers/duc/duc-plot-style.d.ts +1 -4
- package/dist/flatbuffers/duc/duc-plot-style.js +1 -10
- package/dist/flatbuffers/duc/duc-table-style.d.ts +0 -3
- package/dist/flatbuffers/duc/duc-table-style.js +0 -8
- package/dist/flatbuffers/duc/duc-text-style.d.ts +0 -3
- package/dist/flatbuffers/duc/duc-text-style.js +0 -8
- package/dist/flatbuffers/duc/duc-viewport-style.d.ts +1 -4
- package/dist/flatbuffers/duc/duc-viewport-style.js +1 -10
- package/dist/flatbuffers/duc/duc-xray-style.d.ts +1 -4
- package/dist/flatbuffers/duc/duc-xray-style.js +1 -10
- package/dist/flatbuffers/duc/exported-data-state.d.ts +15 -0
- package/dist/flatbuffers/duc/exported-data-state.js +52 -1
- package/dist/flatbuffers/duc.d.ts +4 -0
- package/dist/flatbuffers/duc.js +4 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/parse.d.ts +2 -2
- package/dist/parse.js +149 -37
- package/dist/restore/restoreDataState.d.ts +29 -3
- package/dist/restore/restoreDataState.js +188 -25
- package/dist/restore/restoreElements.js +16 -9
- package/dist/serialize.d.ts +2 -1
- package/dist/serialize.js +136 -55
- package/dist/types/elements/index.d.ts +96 -27
- package/dist/types/elements/typeChecks.d.ts +2 -2
- package/dist/types/elements/typeChecks.js +4 -5
- package/dist/types/index.d.ts +7 -2
- package/dist/types/index.js +1 -0
- package/dist/types/typeChecks.d.ts +5 -0
- package/dist/types/typeChecks.js +10 -0
- package/dist/utils/bounds.js +1 -1
- package/dist/utils/constants.d.ts +14 -2
- package/dist/utils/constants.js +19 -5
- package/dist/utils/elements/frameElement.d.ts +1 -0
- package/dist/utils/elements/frameElement.js +13 -1
- package/dist/utils/elements/index.js +12 -15
- package/dist/utils/elements/newElement.d.ts +1 -7
- package/dist/utils/elements/newElement.js +26 -28
- package/dist/utils/elements/textElement.js +3 -1
- package/dist/utils/functionCodec.js +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/traverse.d.ts +22 -0
- package/dist/utils/traverse.js +87 -0
- package/package.json +4 -2
- package/dist/legacy/index.d.ts +0 -1
- package/dist/legacy/index.js +0 -1
- package/dist/legacy/v1/duc/app-state.d.ts +0 -124
- package/dist/legacy/v1/duc/app-state.js +0 -388
- package/dist/legacy/v1/duc/binary-file-data.d.ts +0 -27
- package/dist/legacy/v1/duc/binary-file-data.js +0 -90
- package/dist/legacy/v1/duc/binary-files-entry.d.ts +0 -16
- package/dist/legacy/v1/duc/binary-files-entry.js +0 -43
- package/dist/legacy/v1/duc/binary-files.d.ts +0 -17
- package/dist/legacy/v1/duc/binary-files.js +0 -55
- package/dist/legacy/v1/duc/binding-point.d.ts +0 -15
- package/dist/legacy/v1/duc/binding-point.js +0 -48
- package/dist/legacy/v1/duc/bound-element.d.ts +0 -17
- package/dist/legacy/v1/duc/bound-element.js +0 -48
- package/dist/legacy/v1/duc/duc-block-attribute-details.d.ts +0 -22
- package/dist/legacy/v1/duc/duc-block-attribute-details.js +0 -57
- package/dist/legacy/v1/duc/duc-block-attribute.d.ts +0 -16
- package/dist/legacy/v1/duc/duc-block-attribute.js +0 -43
- package/dist/legacy/v1/duc/duc-block-instance-element-override.d.ts +0 -17
- package/dist/legacy/v1/duc/duc-block-instance-element-override.js +0 -48
- package/dist/legacy/v1/duc/duc-block.d.ts +0 -34
- package/dist/legacy/v1/duc/duc-block.js +0 -110
- package/dist/legacy/v1/duc/duc-element.d.ts +0 -273
- package/dist/legacy/v1/duc/duc-element.js +0 -865
- package/dist/legacy/v1/duc/duc-group.d.ts +0 -40
- package/dist/legacy/v1/duc/duc-group.js +0 -114
- package/dist/legacy/v1/duc/duc-line-reference.d.ts +0 -15
- package/dist/legacy/v1/duc/duc-line-reference.js +0 -43
- package/dist/legacy/v1/duc/duc-line.d.ts +0 -15
- package/dist/legacy/v1/duc/duc-line.js +0 -43
- package/dist/legacy/v1/duc/duc-path.d.ts +0 -26
- package/dist/legacy/v1/duc/duc-path.js +0 -69
- package/dist/legacy/v1/duc/duc-table-cell.d.ts +0 -22
- package/dist/legacy/v1/duc/duc-table-cell.js +0 -57
- package/dist/legacy/v1/duc/duc-table-column.d.ts +0 -18
- package/dist/legacy/v1/duc/duc-table-column.js +0 -50
- package/dist/legacy/v1/duc/duc-table-row.d.ts +0 -18
- package/dist/legacy/v1/duc/duc-table-row.js +0 -50
- package/dist/legacy/v1/duc/duc-table-style-props.d.ts +0 -39
- package/dist/legacy/v1/duc/duc-table-style-props.js +0 -114
- package/dist/legacy/v1/duc/duc-table-style.d.ts +0 -14
- package/dist/legacy/v1/duc/duc-table-style.js +0 -41
- package/dist/legacy/v1/duc/element-background.d.ts +0 -14
- package/dist/legacy/v1/duc/element-background.js +0 -41
- package/dist/legacy/v1/duc/element-content-base.d.ts +0 -22
- package/dist/legacy/v1/duc/element-content-base.js +0 -64
- package/dist/legacy/v1/duc/element-stroke.d.ts +0 -23
- package/dist/legacy/v1/duc/element-stroke.js +0 -66
- package/dist/legacy/v1/duc/exported-data-state.d.ts +0 -51
- package/dist/legacy/v1/duc/exported-data-state.js +0 -155
- package/dist/legacy/v1/duc/image-crop.d.ts +0 -23
- package/dist/legacy/v1/duc/image-crop.js +0 -80
- package/dist/legacy/v1/duc/linear-element-editor.d.ts +0 -44
- package/dist/legacy/v1/duc/linear-element-editor.js +0 -119
- package/dist/legacy/v1/duc/point-binding.d.ts +0 -25
- package/dist/legacy/v1/duc/point-binding.js +0 -72
- package/dist/legacy/v1/duc/point.d.ts +0 -20
- package/dist/legacy/v1/duc/point.js +0 -63
- package/dist/legacy/v1/duc/pointer-down-state.d.ts +0 -32
- package/dist/legacy/v1/duc/pointer-down-state.js +0 -90
- package/dist/legacy/v1/duc/renderer-state.d.ts +0 -17
- package/dist/legacy/v1/duc/renderer-state.js +0 -54
- package/dist/legacy/v1/duc/segment-midpoint-state.d.ts +0 -18
- package/dist/legacy/v1/duc/segment-midpoint-state.js +0 -57
- package/dist/legacy/v1/duc/simple-point.d.ts +0 -15
- package/dist/legacy/v1/duc/simple-point.js +0 -48
- package/dist/legacy/v1/duc/stroke-sides.d.ts +0 -23
- package/dist/legacy/v1/duc/stroke-sides.js +0 -66
- package/dist/legacy/v1/duc/stroke-style.d.ts +0 -31
- package/dist/legacy/v1/duc/stroke-style.js +0 -102
- package/dist/legacy/v1/duc/tiling-properties.d.ts +0 -21
- package/dist/legacy/v1/duc/tiling-properties.js +0 -75
- package/dist/legacy/v1/duc.d.ts +0 -35
- package/dist/legacy/v1/duc.js +0 -37
- package/dist/legacy/v1/index.d.ts +0 -1
- package/dist/legacy/v1/index.js +0 -1
- package/dist/legacy/v1/parse/index.d.ts +0 -67
- package/dist/legacy/v1/parse/index.js +0 -101
- package/dist/legacy/v1/parse/parseAppStateFromBinary.d.ts +0 -3
- package/dist/legacy/v1/parse/parseAppStateFromBinary.js +0 -139
- package/dist/legacy/v1/parse/parseBinaryFilesFromBinary.d.ts +0 -4
- package/dist/legacy/v1/parse/parseBinaryFilesFromBinary.js +0 -32
- package/dist/legacy/v1/parse/parseBlockFromBinary.d.ts +0 -3
- package/dist/legacy/v1/parse/parseBlockFromBinary.js +0 -70
- package/dist/legacy/v1/parse/parseElementFromBinary.d.ts +0 -8
- package/dist/legacy/v1/parse/parseElementFromBinary.js +0 -387
- package/dist/legacy/v1/parse/parseGroupFromBinary.d.ts +0 -4
- package/dist/legacy/v1/parse/parseGroupFromBinary.js +0 -36
- package/dist/legacy/v1/parse/parseRendererStateFromBinary.d.ts +0 -4
- package/dist/legacy/v1/parse/parseRendererStateFromBinary.js +0 -15
- package/dist/legacy/v1/serialize/index.d.ts +0 -5
- package/dist/legacy/v1/serialize/index.js +0 -81
- package/dist/legacy/v1/serialize/serializationUtils.d.ts +0 -17
- package/dist/legacy/v1/serialize/serializationUtils.js +0 -27
- package/dist/legacy/v1/serialize/serializeAppStateFromDuc.d.ts +0 -4
- package/dist/legacy/v1/serialize/serializeAppStateFromDuc.js +0 -145
- package/dist/legacy/v1/serialize/serializeBinaryFilesFromDuc.d.ts +0 -4
- package/dist/legacy/v1/serialize/serializeBinaryFilesFromDuc.js +0 -46
- package/dist/legacy/v1/serialize/serializeBlockFromDuc.d.ts +0 -3
- package/dist/legacy/v1/serialize/serializeBlockFromDuc.js +0 -60
- package/dist/legacy/v1/serialize/serializeElementFromDuc.d.ts +0 -8
- package/dist/legacy/v1/serialize/serializeElementFromDuc.js +0 -435
- package/dist/legacy/v1/serialize/serializeGroupFromDuc.d.ts +0 -3
- package/dist/legacy/v1/serialize/serializeGroupFromDuc.js +0 -37
- package/dist/legacy/v1/serialize/serializeRendererStateFromDuc.d.ts +0 -4
- package/dist/legacy/v1/serialize/serializeRendererStateFromDuc.js +0 -7
- package/dist/legacy/v1/types/elements/index.d.ts +0 -480
- package/dist/legacy/v1/types/elements/index.js +0 -1
- package/dist/legacy/v1/types/elements/typeChecks.d.ts +0 -40
- package/dist/legacy/v1/types/elements/typeChecks.js +0 -179
- package/dist/legacy/v1/types/geometryTypes.d.ts +0 -78
- package/dist/legacy/v1/types/geometryTypes.js +0 -1
- package/dist/legacy/v1/types/index.d.ts +0 -496
- package/dist/legacy/v1/types/index.js +0 -1
- package/dist/legacy/v1/types/utility-types.d.ts +0 -31
- package/dist/legacy/v1/types/utility-types.js +0 -1
- package/dist/legacy/v1/utils/bounds.d.ts +0 -76
- package/dist/legacy/v1/utils/bounds.js +0 -415
- package/dist/legacy/v1/utils/constants.d.ts +0 -370
- package/dist/legacy/v1/utils/constants.js +0 -571
- package/dist/legacy/v1/utils/elements/index.d.ts +0 -26
- package/dist/legacy/v1/utils/elements/index.js +0 -108
- package/dist/legacy/v1/utils/elements/linearElement.d.ts +0 -133
- package/dist/legacy/v1/utils/elements/linearElement.js +0 -544
- package/dist/legacy/v1/utils/elements/textElement.d.ts +0 -89
- package/dist/legacy/v1/utils/elements/textElement.js +0 -563
- package/dist/legacy/v1/utils/index.d.ts +0 -26
- package/dist/legacy/v1/utils/index.js +0 -40
- package/dist/legacy/v1/utils/math/algebra/ga.d.ts +0 -63
- package/dist/legacy/v1/utils/math/algebra/ga.js +0 -268
- package/dist/legacy/v1/utils/math/algebra/gadirections.d.ts +0 -9
- package/dist/legacy/v1/utils/math/algebra/gadirections.js +0 -18
- package/dist/legacy/v1/utils/math/algebra/galines.d.ts +0 -23
- package/dist/legacy/v1/utils/math/algebra/galines.js +0 -32
- package/dist/legacy/v1/utils/math/algebra/gapoints.d.ts +0 -8
- package/dist/legacy/v1/utils/math/algebra/gapoints.js +0 -30
- package/dist/legacy/v1/utils/math/algebra/gatransforms.d.ts +0 -10
- package/dist/legacy/v1/utils/math/algebra/gatransforms.js +0 -23
- package/dist/legacy/v1/utils/math/bbox.d.ts +0 -10
- package/dist/legacy/v1/utils/math/bbox.js +0 -42
- package/dist/legacy/v1/utils/math/geometry.d.ts +0 -102
- package/dist/legacy/v1/utils/math/geometry.js +0 -790
- package/dist/legacy/v1/utils/math/index.d.ts +0 -309
- package/dist/legacy/v1/utils/math/index.js +0 -1140
- package/dist/legacy/v1/utils/math/random.d.ts +0 -4
- package/dist/legacy/v1/utils/math/random.js +0 -25
- package/dist/legacy/v1/utils/measurements.d.ts +0 -33
- package/dist/legacy/v1/utils/measurements.js +0 -65
- package/dist/legacy/v1/utils/normalize.d.ts +0 -14
- package/dist/legacy/v1/utils/normalize.js +0 -49
- package/dist/legacy/v1/utils/restore.d.ts +0 -197
- package/dist/legacy/v1/utils/restore.js +0 -1255
- package/dist/legacy/v1/utils/scopes.d.ts +0 -260
- package/dist/legacy/v1/utils/scopes.js +0 -661
- package/dist/legacy/v1/utils/standards.d.ts +0 -12
- package/dist/legacy/v1/utils/standards.js +0 -10
- package/dist/legacy/v1/utils/state/index.d.ts +0 -2
- package/dist/legacy/v1/utils/state/index.js +0 -68
- package/dist/legacy/v1/utils/url.d.ts +0 -8
- package/dist/legacy/v1/utils/url.js +0 -33
|
@@ -1,865 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
-
import * as flatbuffers from 'flatbuffers';
|
|
4
|
-
import { BoundElement } from '../duc/bound-element';
|
|
5
|
-
import { DucBlockInstanceElementOverride } from '../duc/duc-block-instance-element-override';
|
|
6
|
-
import { DucLine } from '../duc/duc-line';
|
|
7
|
-
import { DucPath } from '../duc/duc-path';
|
|
8
|
-
import { DucTableCell } from '../duc/duc-table-cell';
|
|
9
|
-
import { DucTableColumn } from '../duc/duc-table-column';
|
|
10
|
-
import { DucTableRow } from '../duc/duc-table-row';
|
|
11
|
-
import { DucTableStyle } from '../duc/duc-table-style';
|
|
12
|
-
import { ElementBackground } from '../duc/element-background';
|
|
13
|
-
import { ElementStroke } from '../duc/element-stroke';
|
|
14
|
-
import { ImageCrop } from '../duc/image-crop';
|
|
15
|
-
import { Point } from '../duc/point';
|
|
16
|
-
import { PointBinding } from '../duc/point-binding';
|
|
17
|
-
import { SimplePoint } from '../duc/simple-point';
|
|
18
|
-
export class DucElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.bb = null;
|
|
21
|
-
this.bb_pos = 0;
|
|
22
|
-
}
|
|
23
|
-
__init(i, bb) {
|
|
24
|
-
this.bb_pos = i;
|
|
25
|
-
this.bb = bb;
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
static getRootAsDucElement(bb, obj) {
|
|
29
|
-
return (obj || new DucElement()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
30
|
-
}
|
|
31
|
-
static getSizePrefixedRootAsDucElement(bb, obj) {
|
|
32
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
33
|
-
return (obj || new DucElement()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
34
|
-
}
|
|
35
|
-
id(optionalEncoding) {
|
|
36
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
37
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
38
|
-
}
|
|
39
|
-
type(optionalEncoding) {
|
|
40
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
41
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
42
|
-
}
|
|
43
|
-
xV2() {
|
|
44
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
45
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
46
|
-
}
|
|
47
|
-
yV2() {
|
|
48
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
49
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
50
|
-
}
|
|
51
|
-
scope(optionalEncoding) {
|
|
52
|
-
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
53
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
54
|
-
}
|
|
55
|
-
label(optionalEncoding) {
|
|
56
|
-
const offset = this.bb.__offset(this.bb_pos, 18);
|
|
57
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
58
|
-
}
|
|
59
|
-
isVisible() {
|
|
60
|
-
const offset = this.bb.__offset(this.bb_pos, 20);
|
|
61
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
62
|
-
}
|
|
63
|
-
backgroundColorV3(optionalEncoding) {
|
|
64
|
-
const offset = this.bb.__offset(this.bb_pos, 26);
|
|
65
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
66
|
-
}
|
|
67
|
-
strokeColorV3(optionalEncoding) {
|
|
68
|
-
const offset = this.bb.__offset(this.bb_pos, 28);
|
|
69
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
70
|
-
}
|
|
71
|
-
opacity() {
|
|
72
|
-
const offset = this.bb.__offset(this.bb_pos, 38);
|
|
73
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : 0.0;
|
|
74
|
-
}
|
|
75
|
-
widthV2() {
|
|
76
|
-
const offset = this.bb.__offset(this.bb_pos, 40);
|
|
77
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
78
|
-
}
|
|
79
|
-
heightV2() {
|
|
80
|
-
const offset = this.bb.__offset(this.bb_pos, 42);
|
|
81
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
82
|
-
}
|
|
83
|
-
angleV2() {
|
|
84
|
-
const offset = this.bb.__offset(this.bb_pos, 44);
|
|
85
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
86
|
-
}
|
|
87
|
-
isDeleted() {
|
|
88
|
-
const offset = this.bb.__offset(this.bb_pos, 46);
|
|
89
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
90
|
-
}
|
|
91
|
-
groupIds(index, optionalEncoding) {
|
|
92
|
-
const offset = this.bb.__offset(this.bb_pos, 48);
|
|
93
|
-
return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
94
|
-
}
|
|
95
|
-
groupIdsLength() {
|
|
96
|
-
const offset = this.bb.__offset(this.bb_pos, 48);
|
|
97
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
98
|
-
}
|
|
99
|
-
frameId(optionalEncoding) {
|
|
100
|
-
const offset = this.bb.__offset(this.bb_pos, 50);
|
|
101
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
102
|
-
}
|
|
103
|
-
boundElements(index, obj) {
|
|
104
|
-
const offset = this.bb.__offset(this.bb_pos, 52);
|
|
105
|
-
return offset ? (obj || new BoundElement()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
106
|
-
}
|
|
107
|
-
boundElementsLength() {
|
|
108
|
-
const offset = this.bb.__offset(this.bb_pos, 52);
|
|
109
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
110
|
-
}
|
|
111
|
-
link(optionalEncoding) {
|
|
112
|
-
const offset = this.bb.__offset(this.bb_pos, 54);
|
|
113
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
114
|
-
}
|
|
115
|
-
locked() {
|
|
116
|
-
const offset = this.bb.__offset(this.bb_pos, 56);
|
|
117
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
118
|
-
}
|
|
119
|
-
textFontSizeV2() {
|
|
120
|
-
const offset = this.bb.__offset(this.bb_pos, 64);
|
|
121
|
-
return offset ? this.bb.readInt32(this.bb_pos + offset) : null;
|
|
122
|
-
}
|
|
123
|
-
textFontFamily(optionalEncoding) {
|
|
124
|
-
const offset = this.bb.__offset(this.bb_pos, 66);
|
|
125
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
126
|
-
}
|
|
127
|
-
textText(optionalEncoding) {
|
|
128
|
-
const offset = this.bb.__offset(this.bb_pos, 68);
|
|
129
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
130
|
-
}
|
|
131
|
-
textContainerId(optionalEncoding) {
|
|
132
|
-
const offset = this.bb.__offset(this.bb_pos, 74);
|
|
133
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
134
|
-
}
|
|
135
|
-
textLineHeightV2() {
|
|
136
|
-
const offset = this.bb.__offset(this.bb_pos, 78);
|
|
137
|
-
return offset ? this.bb.readFloat32(this.bb_pos + offset) : null;
|
|
138
|
-
}
|
|
139
|
-
textAutoResize() {
|
|
140
|
-
const offset = this.bb.__offset(this.bb_pos, 80);
|
|
141
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
142
|
-
}
|
|
143
|
-
linearElementPoints(index, obj) {
|
|
144
|
-
const offset = this.bb.__offset(this.bb_pos, 82);
|
|
145
|
-
return offset ? (obj || new Point()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
146
|
-
}
|
|
147
|
-
linearElementPointsLength() {
|
|
148
|
-
const offset = this.bb.__offset(this.bb_pos, 82);
|
|
149
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
150
|
-
}
|
|
151
|
-
linearElementLastCommittedPoint(obj) {
|
|
152
|
-
const offset = this.bb.__offset(this.bb_pos, 84);
|
|
153
|
-
return offset ? (obj || new Point()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
154
|
-
}
|
|
155
|
-
linearElementStartBinding(obj) {
|
|
156
|
-
const offset = this.bb.__offset(this.bb_pos, 86);
|
|
157
|
-
return offset ? (obj || new PointBinding()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
158
|
-
}
|
|
159
|
-
linearElementEndBinding(obj) {
|
|
160
|
-
const offset = this.bb.__offset(this.bb_pos, 88);
|
|
161
|
-
return offset ? (obj || new PointBinding()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
162
|
-
}
|
|
163
|
-
arrowElbowed() {
|
|
164
|
-
const offset = this.bb.__offset(this.bb_pos, 94);
|
|
165
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
166
|
-
}
|
|
167
|
-
freeDrawSimulatePressure() {
|
|
168
|
-
const offset = this.bb.__offset(this.bb_pos, 98);
|
|
169
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
170
|
-
}
|
|
171
|
-
fileId(optionalEncoding) {
|
|
172
|
-
const offset = this.bb.__offset(this.bb_pos, 100);
|
|
173
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
174
|
-
}
|
|
175
|
-
imageStatus(optionalEncoding) {
|
|
176
|
-
const offset = this.bb.__offset(this.bb_pos, 102);
|
|
177
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
178
|
-
}
|
|
179
|
-
stackLikeIsCollapsed() {
|
|
180
|
-
const offset = this.bb.__offset(this.bb_pos, 106);
|
|
181
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
182
|
-
}
|
|
183
|
-
strokeStyleV3() {
|
|
184
|
-
const offset = this.bb.__offset(this.bb_pos, 112);
|
|
185
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : 0;
|
|
186
|
-
}
|
|
187
|
-
fillStyleV3() {
|
|
188
|
-
const offset = this.bb.__offset(this.bb_pos, 114);
|
|
189
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : 0;
|
|
190
|
-
}
|
|
191
|
-
textTextAlign() {
|
|
192
|
-
const offset = this.bb.__offset(this.bb_pos, 116);
|
|
193
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : null;
|
|
194
|
-
}
|
|
195
|
-
textVerticalAlign() {
|
|
196
|
-
const offset = this.bb.__offset(this.bb_pos, 118);
|
|
197
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : 0;
|
|
198
|
-
}
|
|
199
|
-
x() {
|
|
200
|
-
const offset = this.bb.__offset(this.bb_pos, 120);
|
|
201
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
202
|
-
}
|
|
203
|
-
y() {
|
|
204
|
-
const offset = this.bb.__offset(this.bb_pos, 122);
|
|
205
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
206
|
-
}
|
|
207
|
-
imageScale(obj) {
|
|
208
|
-
const offset = this.bb.__offset(this.bb_pos, 124);
|
|
209
|
-
return offset ? (obj || new SimplePoint()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
210
|
-
}
|
|
211
|
-
freeDrawPressures(index) {
|
|
212
|
-
const offset = this.bb.__offset(this.bb_pos, 126);
|
|
213
|
-
return offset ? this.bb.readFloat64(this.bb.__vector(this.bb_pos + offset) + index * 8) : 0;
|
|
214
|
-
}
|
|
215
|
-
freeDrawPressuresLength() {
|
|
216
|
-
const offset = this.bb.__offset(this.bb_pos, 126);
|
|
217
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
218
|
-
}
|
|
219
|
-
freeDrawPressuresArray() {
|
|
220
|
-
const offset = this.bb.__offset(this.bb_pos, 126);
|
|
221
|
-
return offset ? new Float64Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
|
|
222
|
-
}
|
|
223
|
-
strokeWidthV3() {
|
|
224
|
-
const offset = this.bb.__offset(this.bb_pos, 128);
|
|
225
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
226
|
-
}
|
|
227
|
-
angle() {
|
|
228
|
-
const offset = this.bb.__offset(this.bb_pos, 130);
|
|
229
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
230
|
-
}
|
|
231
|
-
roundness() {
|
|
232
|
-
const offset = this.bb.__offset(this.bb_pos, 132);
|
|
233
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
234
|
-
}
|
|
235
|
-
width() {
|
|
236
|
-
const offset = this.bb.__offset(this.bb_pos, 134);
|
|
237
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
238
|
-
}
|
|
239
|
-
height() {
|
|
240
|
-
const offset = this.bb.__offset(this.bb_pos, 136);
|
|
241
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0.0;
|
|
242
|
-
}
|
|
243
|
-
textFontSize() {
|
|
244
|
-
const offset = this.bb.__offset(this.bb_pos, 138);
|
|
245
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
246
|
-
}
|
|
247
|
-
textLineHeight() {
|
|
248
|
-
const offset = this.bb.__offset(this.bb_pos, 140);
|
|
249
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
250
|
-
}
|
|
251
|
-
blending() {
|
|
252
|
-
const offset = this.bb.__offset(this.bb_pos, 142);
|
|
253
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : null;
|
|
254
|
-
}
|
|
255
|
-
background(index, obj) {
|
|
256
|
-
const offset = this.bb.__offset(this.bb_pos, 144);
|
|
257
|
-
return offset ? (obj || new ElementBackground()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
258
|
-
}
|
|
259
|
-
backgroundLength() {
|
|
260
|
-
const offset = this.bb.__offset(this.bb_pos, 144);
|
|
261
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
262
|
-
}
|
|
263
|
-
stroke(index, obj) {
|
|
264
|
-
const offset = this.bb.__offset(this.bb_pos, 146);
|
|
265
|
-
return offset ? (obj || new ElementStroke()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
266
|
-
}
|
|
267
|
-
strokeLength() {
|
|
268
|
-
const offset = this.bb.__offset(this.bb_pos, 146);
|
|
269
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
270
|
-
}
|
|
271
|
-
imageCrop(obj) {
|
|
272
|
-
const offset = this.bb.__offset(this.bb_pos, 148);
|
|
273
|
-
return offset ? (obj || new ImageCrop()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
274
|
-
}
|
|
275
|
-
stackLikeClip() {
|
|
276
|
-
const offset = this.bb.__offset(this.bb_pos, 150);
|
|
277
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
278
|
-
}
|
|
279
|
-
subset() {
|
|
280
|
-
const offset = this.bb.__offset(this.bb_pos, 152);
|
|
281
|
-
return offset ? this.bb.readInt8(this.bb_pos + offset) : null;
|
|
282
|
-
}
|
|
283
|
-
zIndex() {
|
|
284
|
-
const offset = this.bb.__offset(this.bb_pos, 154);
|
|
285
|
-
return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
|
|
286
|
-
}
|
|
287
|
-
polygonSides() {
|
|
288
|
-
const offset = this.bb.__offset(this.bb_pos, 156);
|
|
289
|
-
return offset ? this.bb.readInt32(this.bb_pos + offset) : null;
|
|
290
|
-
}
|
|
291
|
-
tableColumnOrder(index, optionalEncoding) {
|
|
292
|
-
const offset = this.bb.__offset(this.bb_pos, 158);
|
|
293
|
-
return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
294
|
-
}
|
|
295
|
-
tableColumnOrderLength() {
|
|
296
|
-
const offset = this.bb.__offset(this.bb_pos, 158);
|
|
297
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
298
|
-
}
|
|
299
|
-
tableRowOrder(index, optionalEncoding) {
|
|
300
|
-
const offset = this.bb.__offset(this.bb_pos, 160);
|
|
301
|
-
return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
302
|
-
}
|
|
303
|
-
tableRowOrderLength() {
|
|
304
|
-
const offset = this.bb.__offset(this.bb_pos, 160);
|
|
305
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
306
|
-
}
|
|
307
|
-
tableColumns(index, obj) {
|
|
308
|
-
const offset = this.bb.__offset(this.bb_pos, 162);
|
|
309
|
-
return offset ? (obj || new DucTableColumn()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
310
|
-
}
|
|
311
|
-
tableColumnsLength() {
|
|
312
|
-
const offset = this.bb.__offset(this.bb_pos, 162);
|
|
313
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
314
|
-
}
|
|
315
|
-
tableRows(index, obj) {
|
|
316
|
-
const offset = this.bb.__offset(this.bb_pos, 164);
|
|
317
|
-
return offset ? (obj || new DucTableRow()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
318
|
-
}
|
|
319
|
-
tableRowsLength() {
|
|
320
|
-
const offset = this.bb.__offset(this.bb_pos, 164);
|
|
321
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
322
|
-
}
|
|
323
|
-
tableCells(index, obj) {
|
|
324
|
-
const offset = this.bb.__offset(this.bb_pos, 166);
|
|
325
|
-
return offset ? (obj || new DucTableCell()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
326
|
-
}
|
|
327
|
-
tableCellsLength() {
|
|
328
|
-
const offset = this.bb.__offset(this.bb_pos, 166);
|
|
329
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
330
|
-
}
|
|
331
|
-
tableStyle(obj) {
|
|
332
|
-
const offset = this.bb.__offset(this.bb_pos, 168);
|
|
333
|
-
return offset ? (obj || new DucTableStyle()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
334
|
-
}
|
|
335
|
-
docContent(optionalEncoding) {
|
|
336
|
-
const offset = this.bb.__offset(this.bb_pos, 170);
|
|
337
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
338
|
-
}
|
|
339
|
-
linearElementLines(index, obj) {
|
|
340
|
-
const offset = this.bb.__offset(this.bb_pos, 172);
|
|
341
|
-
return offset ? (obj || new DucLine()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
342
|
-
}
|
|
343
|
-
linearElementLinesLength() {
|
|
344
|
-
const offset = this.bb.__offset(this.bb_pos, 172);
|
|
345
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
346
|
-
}
|
|
347
|
-
ellipseRatio() {
|
|
348
|
-
const offset = this.bb.__offset(this.bb_pos, 174);
|
|
349
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
350
|
-
}
|
|
351
|
-
ellipseStartAngle() {
|
|
352
|
-
const offset = this.bb.__offset(this.bb_pos, 176);
|
|
353
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
354
|
-
}
|
|
355
|
-
ellipseEndAngle() {
|
|
356
|
-
const offset = this.bb.__offset(this.bb_pos, 178);
|
|
357
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
358
|
-
}
|
|
359
|
-
ellipseShowAuxCrosshair() {
|
|
360
|
-
const offset = this.bb.__offset(this.bb_pos, 180);
|
|
361
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
362
|
-
}
|
|
363
|
-
freeDrawThinning() {
|
|
364
|
-
const offset = this.bb.__offset(this.bb_pos, 182);
|
|
365
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
366
|
-
}
|
|
367
|
-
freeDrawSmoothing() {
|
|
368
|
-
const offset = this.bb.__offset(this.bb_pos, 184);
|
|
369
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
370
|
-
}
|
|
371
|
-
freeDrawStreamline() {
|
|
372
|
-
const offset = this.bb.__offset(this.bb_pos, 186);
|
|
373
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
374
|
-
}
|
|
375
|
-
freeDrawEasing(optionalEncoding) {
|
|
376
|
-
const offset = this.bb.__offset(this.bb_pos, 188);
|
|
377
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
378
|
-
}
|
|
379
|
-
freeDrawStartCap() {
|
|
380
|
-
const offset = this.bb.__offset(this.bb_pos, 190);
|
|
381
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
382
|
-
}
|
|
383
|
-
freeDrawStartTaper() {
|
|
384
|
-
const offset = this.bb.__offset(this.bb_pos, 192);
|
|
385
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
386
|
-
}
|
|
387
|
-
freeDrawStartEasing(optionalEncoding) {
|
|
388
|
-
const offset = this.bb.__offset(this.bb_pos, 194);
|
|
389
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
390
|
-
}
|
|
391
|
-
freeDrawEndCap() {
|
|
392
|
-
const offset = this.bb.__offset(this.bb_pos, 196);
|
|
393
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
394
|
-
}
|
|
395
|
-
freeDrawEndTaper() {
|
|
396
|
-
const offset = this.bb.__offset(this.bb_pos, 198);
|
|
397
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
398
|
-
}
|
|
399
|
-
freeDrawEndEasing(optionalEncoding) {
|
|
400
|
-
const offset = this.bb.__offset(this.bb_pos, 200);
|
|
401
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
402
|
-
}
|
|
403
|
-
freeDrawSvgPath(optionalEncoding) {
|
|
404
|
-
const offset = this.bb.__offset(this.bb_pos, 202);
|
|
405
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
406
|
-
}
|
|
407
|
-
freeDrawSize() {
|
|
408
|
-
const offset = this.bb.__offset(this.bb_pos, 204);
|
|
409
|
-
return offset ? this.bb.readFloat64(this.bb_pos + offset) : null;
|
|
410
|
-
}
|
|
411
|
-
linearElementPathOverrides(index, obj) {
|
|
412
|
-
const offset = this.bb.__offset(this.bb_pos, 206);
|
|
413
|
-
return offset ? (obj || new DucPath()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
414
|
-
}
|
|
415
|
-
linearElementPathOverridesLength() {
|
|
416
|
-
const offset = this.bb.__offset(this.bb_pos, 206);
|
|
417
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
418
|
-
}
|
|
419
|
-
description(optionalEncoding) {
|
|
420
|
-
const offset = this.bb.__offset(this.bb_pos, 208);
|
|
421
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
422
|
-
}
|
|
423
|
-
noPlot() {
|
|
424
|
-
const offset = this.bb.__offset(this.bb_pos, 210);
|
|
425
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : null;
|
|
426
|
-
}
|
|
427
|
-
stackLikeLabelingColor(optionalEncoding) {
|
|
428
|
-
const offset = this.bb.__offset(this.bb_pos, 212);
|
|
429
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
430
|
-
}
|
|
431
|
-
stackLikeStrokeOverride(obj) {
|
|
432
|
-
const offset = this.bb.__offset(this.bb_pos, 214);
|
|
433
|
-
return offset ? (obj || new ElementStroke()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
434
|
-
}
|
|
435
|
-
stackLikeBackgroundOverride(obj) {
|
|
436
|
-
const offset = this.bb.__offset(this.bb_pos, 216);
|
|
437
|
-
return offset ? (obj || new ElementBackground()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
438
|
-
}
|
|
439
|
-
blockInstanceBlockId(optionalEncoding) {
|
|
440
|
-
const offset = this.bb.__offset(this.bb_pos, 218);
|
|
441
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
442
|
-
}
|
|
443
|
-
blockInstanceElementOverrides(index, obj) {
|
|
444
|
-
const offset = this.bb.__offset(this.bb_pos, 220);
|
|
445
|
-
return offset ? (obj || new DucBlockInstanceElementOverride()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
446
|
-
}
|
|
447
|
-
blockInstanceElementOverridesLength() {
|
|
448
|
-
const offset = this.bb.__offset(this.bb_pos, 220);
|
|
449
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
450
|
-
}
|
|
451
|
-
static startDucElement(builder) {
|
|
452
|
-
builder.startObject(109);
|
|
453
|
-
}
|
|
454
|
-
static addId(builder, idOffset) {
|
|
455
|
-
builder.addFieldOffset(0, idOffset, 0);
|
|
456
|
-
}
|
|
457
|
-
static addType(builder, typeOffset) {
|
|
458
|
-
builder.addFieldOffset(1, typeOffset, 0);
|
|
459
|
-
}
|
|
460
|
-
static addXV2(builder, xV2) {
|
|
461
|
-
builder.addFieldFloat32(2, xV2, null);
|
|
462
|
-
}
|
|
463
|
-
static addYV2(builder, yV2) {
|
|
464
|
-
builder.addFieldFloat32(3, yV2, null);
|
|
465
|
-
}
|
|
466
|
-
static addScope(builder, scopeOffset) {
|
|
467
|
-
builder.addFieldOffset(5, scopeOffset, 0);
|
|
468
|
-
}
|
|
469
|
-
static addLabel(builder, labelOffset) {
|
|
470
|
-
builder.addFieldOffset(7, labelOffset, 0);
|
|
471
|
-
}
|
|
472
|
-
static addIsVisible(builder, isVisible) {
|
|
473
|
-
builder.addFieldInt8(8, +isVisible, +false);
|
|
474
|
-
}
|
|
475
|
-
static addBackgroundColorV3(builder, backgroundColorV3Offset) {
|
|
476
|
-
builder.addFieldOffset(11, backgroundColorV3Offset, 0);
|
|
477
|
-
}
|
|
478
|
-
static addStrokeColorV3(builder, strokeColorV3Offset) {
|
|
479
|
-
builder.addFieldOffset(12, strokeColorV3Offset, 0);
|
|
480
|
-
}
|
|
481
|
-
static addOpacity(builder, opacity) {
|
|
482
|
-
builder.addFieldFloat32(17, opacity, 0.0);
|
|
483
|
-
}
|
|
484
|
-
static addWidthV2(builder, widthV2) {
|
|
485
|
-
builder.addFieldFloat32(18, widthV2, null);
|
|
486
|
-
}
|
|
487
|
-
static addHeightV2(builder, heightV2) {
|
|
488
|
-
builder.addFieldFloat32(19, heightV2, null);
|
|
489
|
-
}
|
|
490
|
-
static addAngleV2(builder, angleV2) {
|
|
491
|
-
builder.addFieldFloat32(20, angleV2, null);
|
|
492
|
-
}
|
|
493
|
-
static addIsDeleted(builder, isDeleted) {
|
|
494
|
-
builder.addFieldInt8(21, +isDeleted, +false);
|
|
495
|
-
}
|
|
496
|
-
static addGroupIds(builder, groupIdsOffset) {
|
|
497
|
-
builder.addFieldOffset(22, groupIdsOffset, 0);
|
|
498
|
-
}
|
|
499
|
-
static createGroupIdsVector(builder, data) {
|
|
500
|
-
builder.startVector(4, data.length, 4);
|
|
501
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
502
|
-
builder.addOffset(data[i]);
|
|
503
|
-
}
|
|
504
|
-
return builder.endVector();
|
|
505
|
-
}
|
|
506
|
-
static startGroupIdsVector(builder, numElems) {
|
|
507
|
-
builder.startVector(4, numElems, 4);
|
|
508
|
-
}
|
|
509
|
-
static addFrameId(builder, frameIdOffset) {
|
|
510
|
-
builder.addFieldOffset(23, frameIdOffset, 0);
|
|
511
|
-
}
|
|
512
|
-
static addBoundElements(builder, boundElementsOffset) {
|
|
513
|
-
builder.addFieldOffset(24, boundElementsOffset, 0);
|
|
514
|
-
}
|
|
515
|
-
static createBoundElementsVector(builder, data) {
|
|
516
|
-
builder.startVector(4, data.length, 4);
|
|
517
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
518
|
-
builder.addOffset(data[i]);
|
|
519
|
-
}
|
|
520
|
-
return builder.endVector();
|
|
521
|
-
}
|
|
522
|
-
static startBoundElementsVector(builder, numElems) {
|
|
523
|
-
builder.startVector(4, numElems, 4);
|
|
524
|
-
}
|
|
525
|
-
static addLink(builder, linkOffset) {
|
|
526
|
-
builder.addFieldOffset(25, linkOffset, 0);
|
|
527
|
-
}
|
|
528
|
-
static addLocked(builder, locked) {
|
|
529
|
-
builder.addFieldInt8(26, +locked, +false);
|
|
530
|
-
}
|
|
531
|
-
static addTextFontSizeV2(builder, textFontSizeV2) {
|
|
532
|
-
builder.addFieldInt32(30, textFontSizeV2, null);
|
|
533
|
-
}
|
|
534
|
-
static addTextFontFamily(builder, textFontFamilyOffset) {
|
|
535
|
-
builder.addFieldOffset(31, textFontFamilyOffset, 0);
|
|
536
|
-
}
|
|
537
|
-
static addTextText(builder, textTextOffset) {
|
|
538
|
-
builder.addFieldOffset(32, textTextOffset, 0);
|
|
539
|
-
}
|
|
540
|
-
static addTextContainerId(builder, textContainerIdOffset) {
|
|
541
|
-
builder.addFieldOffset(35, textContainerIdOffset, 0);
|
|
542
|
-
}
|
|
543
|
-
static addTextLineHeightV2(builder, textLineHeightV2) {
|
|
544
|
-
builder.addFieldFloat32(37, textLineHeightV2, null);
|
|
545
|
-
}
|
|
546
|
-
static addTextAutoResize(builder, textAutoResize) {
|
|
547
|
-
builder.addFieldInt8(38, +textAutoResize, null);
|
|
548
|
-
}
|
|
549
|
-
static addLinearElementPoints(builder, linearElementPointsOffset) {
|
|
550
|
-
builder.addFieldOffset(39, linearElementPointsOffset, 0);
|
|
551
|
-
}
|
|
552
|
-
static createLinearElementPointsVector(builder, data) {
|
|
553
|
-
builder.startVector(4, data.length, 4);
|
|
554
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
555
|
-
builder.addOffset(data[i]);
|
|
556
|
-
}
|
|
557
|
-
return builder.endVector();
|
|
558
|
-
}
|
|
559
|
-
static startLinearElementPointsVector(builder, numElems) {
|
|
560
|
-
builder.startVector(4, numElems, 4);
|
|
561
|
-
}
|
|
562
|
-
static addLinearElementLastCommittedPoint(builder, linearElementLastCommittedPointOffset) {
|
|
563
|
-
builder.addFieldOffset(40, linearElementLastCommittedPointOffset, 0);
|
|
564
|
-
}
|
|
565
|
-
static addLinearElementStartBinding(builder, linearElementStartBindingOffset) {
|
|
566
|
-
builder.addFieldOffset(41, linearElementStartBindingOffset, 0);
|
|
567
|
-
}
|
|
568
|
-
static addLinearElementEndBinding(builder, linearElementEndBindingOffset) {
|
|
569
|
-
builder.addFieldOffset(42, linearElementEndBindingOffset, 0);
|
|
570
|
-
}
|
|
571
|
-
static addArrowElbowed(builder, arrowElbowed) {
|
|
572
|
-
builder.addFieldInt8(45, +arrowElbowed, null);
|
|
573
|
-
}
|
|
574
|
-
static addFreeDrawSimulatePressure(builder, freeDrawSimulatePressure) {
|
|
575
|
-
builder.addFieldInt8(47, +freeDrawSimulatePressure, null);
|
|
576
|
-
}
|
|
577
|
-
static addFileId(builder, fileIdOffset) {
|
|
578
|
-
builder.addFieldOffset(48, fileIdOffset, 0);
|
|
579
|
-
}
|
|
580
|
-
static addImageStatus(builder, imageStatusOffset) {
|
|
581
|
-
builder.addFieldOffset(49, imageStatusOffset, 0);
|
|
582
|
-
}
|
|
583
|
-
static addStackLikeIsCollapsed(builder, stackLikeIsCollapsed) {
|
|
584
|
-
builder.addFieldInt8(51, +stackLikeIsCollapsed, null);
|
|
585
|
-
}
|
|
586
|
-
static addStrokeStyleV3(builder, strokeStyleV3) {
|
|
587
|
-
builder.addFieldInt8(54, strokeStyleV3, 0);
|
|
588
|
-
}
|
|
589
|
-
static addFillStyleV3(builder, fillStyleV3) {
|
|
590
|
-
builder.addFieldInt8(55, fillStyleV3, 0);
|
|
591
|
-
}
|
|
592
|
-
static addTextTextAlign(builder, textTextAlign) {
|
|
593
|
-
builder.addFieldInt8(56, textTextAlign, null);
|
|
594
|
-
}
|
|
595
|
-
static addTextVerticalAlign(builder, textVerticalAlign) {
|
|
596
|
-
builder.addFieldInt8(57, textVerticalAlign, 0);
|
|
597
|
-
}
|
|
598
|
-
static addX(builder, x) {
|
|
599
|
-
builder.addFieldFloat64(58, x, 0.0);
|
|
600
|
-
}
|
|
601
|
-
static addY(builder, y) {
|
|
602
|
-
builder.addFieldFloat64(59, y, 0.0);
|
|
603
|
-
}
|
|
604
|
-
static addImageScale(builder, imageScaleOffset) {
|
|
605
|
-
builder.addFieldOffset(60, imageScaleOffset, 0);
|
|
606
|
-
}
|
|
607
|
-
static addFreeDrawPressures(builder, freeDrawPressuresOffset) {
|
|
608
|
-
builder.addFieldOffset(61, freeDrawPressuresOffset, 0);
|
|
609
|
-
}
|
|
610
|
-
static createFreeDrawPressuresVector(builder, data) {
|
|
611
|
-
builder.startVector(8, data.length, 8);
|
|
612
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
613
|
-
builder.addFloat64(data[i]);
|
|
614
|
-
}
|
|
615
|
-
return builder.endVector();
|
|
616
|
-
}
|
|
617
|
-
static startFreeDrawPressuresVector(builder, numElems) {
|
|
618
|
-
builder.startVector(8, numElems, 8);
|
|
619
|
-
}
|
|
620
|
-
static addStrokeWidthV3(builder, strokeWidthV3) {
|
|
621
|
-
builder.addFieldFloat64(62, strokeWidthV3, 0.0);
|
|
622
|
-
}
|
|
623
|
-
static addAngle(builder, angle) {
|
|
624
|
-
builder.addFieldFloat64(63, angle, 0.0);
|
|
625
|
-
}
|
|
626
|
-
static addRoundness(builder, roundness) {
|
|
627
|
-
builder.addFieldFloat64(64, roundness, 0.0);
|
|
628
|
-
}
|
|
629
|
-
static addWidth(builder, width) {
|
|
630
|
-
builder.addFieldFloat64(65, width, 0.0);
|
|
631
|
-
}
|
|
632
|
-
static addHeight(builder, height) {
|
|
633
|
-
builder.addFieldFloat64(66, height, 0.0);
|
|
634
|
-
}
|
|
635
|
-
static addTextFontSize(builder, textFontSize) {
|
|
636
|
-
builder.addFieldFloat64(67, textFontSize, null);
|
|
637
|
-
}
|
|
638
|
-
static addTextLineHeight(builder, textLineHeight) {
|
|
639
|
-
builder.addFieldFloat64(68, textLineHeight, null);
|
|
640
|
-
}
|
|
641
|
-
static addBlending(builder, blending) {
|
|
642
|
-
builder.addFieldInt8(69, blending, null);
|
|
643
|
-
}
|
|
644
|
-
static addBackground(builder, backgroundOffset) {
|
|
645
|
-
builder.addFieldOffset(70, backgroundOffset, 0);
|
|
646
|
-
}
|
|
647
|
-
static createBackgroundVector(builder, data) {
|
|
648
|
-
builder.startVector(4, data.length, 4);
|
|
649
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
650
|
-
builder.addOffset(data[i]);
|
|
651
|
-
}
|
|
652
|
-
return builder.endVector();
|
|
653
|
-
}
|
|
654
|
-
static startBackgroundVector(builder, numElems) {
|
|
655
|
-
builder.startVector(4, numElems, 4);
|
|
656
|
-
}
|
|
657
|
-
static addStroke(builder, strokeOffset) {
|
|
658
|
-
builder.addFieldOffset(71, strokeOffset, 0);
|
|
659
|
-
}
|
|
660
|
-
static createStrokeVector(builder, data) {
|
|
661
|
-
builder.startVector(4, data.length, 4);
|
|
662
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
663
|
-
builder.addOffset(data[i]);
|
|
664
|
-
}
|
|
665
|
-
return builder.endVector();
|
|
666
|
-
}
|
|
667
|
-
static startStrokeVector(builder, numElems) {
|
|
668
|
-
builder.startVector(4, numElems, 4);
|
|
669
|
-
}
|
|
670
|
-
static addImageCrop(builder, imageCropOffset) {
|
|
671
|
-
builder.addFieldOffset(72, imageCropOffset, 0);
|
|
672
|
-
}
|
|
673
|
-
static addStackLikeClip(builder, stackLikeClip) {
|
|
674
|
-
builder.addFieldInt8(73, +stackLikeClip, null);
|
|
675
|
-
}
|
|
676
|
-
static addSubset(builder, subset) {
|
|
677
|
-
builder.addFieldInt8(74, subset, null);
|
|
678
|
-
}
|
|
679
|
-
static addZIndex(builder, zIndex) {
|
|
680
|
-
builder.addFieldInt32(75, zIndex, 0);
|
|
681
|
-
}
|
|
682
|
-
static addPolygonSides(builder, polygonSides) {
|
|
683
|
-
builder.addFieldInt32(76, polygonSides, null);
|
|
684
|
-
}
|
|
685
|
-
static addTableColumnOrder(builder, tableColumnOrderOffset) {
|
|
686
|
-
builder.addFieldOffset(77, tableColumnOrderOffset, 0);
|
|
687
|
-
}
|
|
688
|
-
static createTableColumnOrderVector(builder, data) {
|
|
689
|
-
builder.startVector(4, data.length, 4);
|
|
690
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
691
|
-
builder.addOffset(data[i]);
|
|
692
|
-
}
|
|
693
|
-
return builder.endVector();
|
|
694
|
-
}
|
|
695
|
-
static startTableColumnOrderVector(builder, numElems) {
|
|
696
|
-
builder.startVector(4, numElems, 4);
|
|
697
|
-
}
|
|
698
|
-
static addTableRowOrder(builder, tableRowOrderOffset) {
|
|
699
|
-
builder.addFieldOffset(78, tableRowOrderOffset, 0);
|
|
700
|
-
}
|
|
701
|
-
static createTableRowOrderVector(builder, data) {
|
|
702
|
-
builder.startVector(4, data.length, 4);
|
|
703
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
704
|
-
builder.addOffset(data[i]);
|
|
705
|
-
}
|
|
706
|
-
return builder.endVector();
|
|
707
|
-
}
|
|
708
|
-
static startTableRowOrderVector(builder, numElems) {
|
|
709
|
-
builder.startVector(4, numElems, 4);
|
|
710
|
-
}
|
|
711
|
-
static addTableColumns(builder, tableColumnsOffset) {
|
|
712
|
-
builder.addFieldOffset(79, tableColumnsOffset, 0);
|
|
713
|
-
}
|
|
714
|
-
static createTableColumnsVector(builder, data) {
|
|
715
|
-
builder.startVector(4, data.length, 4);
|
|
716
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
717
|
-
builder.addOffset(data[i]);
|
|
718
|
-
}
|
|
719
|
-
return builder.endVector();
|
|
720
|
-
}
|
|
721
|
-
static startTableColumnsVector(builder, numElems) {
|
|
722
|
-
builder.startVector(4, numElems, 4);
|
|
723
|
-
}
|
|
724
|
-
static addTableRows(builder, tableRowsOffset) {
|
|
725
|
-
builder.addFieldOffset(80, tableRowsOffset, 0);
|
|
726
|
-
}
|
|
727
|
-
static createTableRowsVector(builder, data) {
|
|
728
|
-
builder.startVector(4, data.length, 4);
|
|
729
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
730
|
-
builder.addOffset(data[i]);
|
|
731
|
-
}
|
|
732
|
-
return builder.endVector();
|
|
733
|
-
}
|
|
734
|
-
static startTableRowsVector(builder, numElems) {
|
|
735
|
-
builder.startVector(4, numElems, 4);
|
|
736
|
-
}
|
|
737
|
-
static addTableCells(builder, tableCellsOffset) {
|
|
738
|
-
builder.addFieldOffset(81, tableCellsOffset, 0);
|
|
739
|
-
}
|
|
740
|
-
static createTableCellsVector(builder, data) {
|
|
741
|
-
builder.startVector(4, data.length, 4);
|
|
742
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
743
|
-
builder.addOffset(data[i]);
|
|
744
|
-
}
|
|
745
|
-
return builder.endVector();
|
|
746
|
-
}
|
|
747
|
-
static startTableCellsVector(builder, numElems) {
|
|
748
|
-
builder.startVector(4, numElems, 4);
|
|
749
|
-
}
|
|
750
|
-
static addTableStyle(builder, tableStyleOffset) {
|
|
751
|
-
builder.addFieldOffset(82, tableStyleOffset, 0);
|
|
752
|
-
}
|
|
753
|
-
static addDocContent(builder, docContentOffset) {
|
|
754
|
-
builder.addFieldOffset(83, docContentOffset, 0);
|
|
755
|
-
}
|
|
756
|
-
static addLinearElementLines(builder, linearElementLinesOffset) {
|
|
757
|
-
builder.addFieldOffset(84, linearElementLinesOffset, 0);
|
|
758
|
-
}
|
|
759
|
-
static createLinearElementLinesVector(builder, data) {
|
|
760
|
-
builder.startVector(4, data.length, 4);
|
|
761
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
762
|
-
builder.addOffset(data[i]);
|
|
763
|
-
}
|
|
764
|
-
return builder.endVector();
|
|
765
|
-
}
|
|
766
|
-
static startLinearElementLinesVector(builder, numElems) {
|
|
767
|
-
builder.startVector(4, numElems, 4);
|
|
768
|
-
}
|
|
769
|
-
static addEllipseRatio(builder, ellipseRatio) {
|
|
770
|
-
builder.addFieldFloat64(85, ellipseRatio, null);
|
|
771
|
-
}
|
|
772
|
-
static addEllipseStartAngle(builder, ellipseStartAngle) {
|
|
773
|
-
builder.addFieldFloat64(86, ellipseStartAngle, null);
|
|
774
|
-
}
|
|
775
|
-
static addEllipseEndAngle(builder, ellipseEndAngle) {
|
|
776
|
-
builder.addFieldFloat64(87, ellipseEndAngle, null);
|
|
777
|
-
}
|
|
778
|
-
static addEllipseShowAuxCrosshair(builder, ellipseShowAuxCrosshair) {
|
|
779
|
-
builder.addFieldInt8(88, +ellipseShowAuxCrosshair, null);
|
|
780
|
-
}
|
|
781
|
-
static addFreeDrawThinning(builder, freeDrawThinning) {
|
|
782
|
-
builder.addFieldFloat64(89, freeDrawThinning, null);
|
|
783
|
-
}
|
|
784
|
-
static addFreeDrawSmoothing(builder, freeDrawSmoothing) {
|
|
785
|
-
builder.addFieldFloat64(90, freeDrawSmoothing, null);
|
|
786
|
-
}
|
|
787
|
-
static addFreeDrawStreamline(builder, freeDrawStreamline) {
|
|
788
|
-
builder.addFieldFloat64(91, freeDrawStreamline, null);
|
|
789
|
-
}
|
|
790
|
-
static addFreeDrawEasing(builder, freeDrawEasingOffset) {
|
|
791
|
-
builder.addFieldOffset(92, freeDrawEasingOffset, 0);
|
|
792
|
-
}
|
|
793
|
-
static addFreeDrawStartCap(builder, freeDrawStartCap) {
|
|
794
|
-
builder.addFieldInt8(93, +freeDrawStartCap, null);
|
|
795
|
-
}
|
|
796
|
-
static addFreeDrawStartTaper(builder, freeDrawStartTaper) {
|
|
797
|
-
builder.addFieldFloat64(94, freeDrawStartTaper, null);
|
|
798
|
-
}
|
|
799
|
-
static addFreeDrawStartEasing(builder, freeDrawStartEasingOffset) {
|
|
800
|
-
builder.addFieldOffset(95, freeDrawStartEasingOffset, 0);
|
|
801
|
-
}
|
|
802
|
-
static addFreeDrawEndCap(builder, freeDrawEndCap) {
|
|
803
|
-
builder.addFieldInt8(96, +freeDrawEndCap, null);
|
|
804
|
-
}
|
|
805
|
-
static addFreeDrawEndTaper(builder, freeDrawEndTaper) {
|
|
806
|
-
builder.addFieldFloat64(97, freeDrawEndTaper, null);
|
|
807
|
-
}
|
|
808
|
-
static addFreeDrawEndEasing(builder, freeDrawEndEasingOffset) {
|
|
809
|
-
builder.addFieldOffset(98, freeDrawEndEasingOffset, 0);
|
|
810
|
-
}
|
|
811
|
-
static addFreeDrawSvgPath(builder, freeDrawSvgPathOffset) {
|
|
812
|
-
builder.addFieldOffset(99, freeDrawSvgPathOffset, 0);
|
|
813
|
-
}
|
|
814
|
-
static addFreeDrawSize(builder, freeDrawSize) {
|
|
815
|
-
builder.addFieldFloat64(100, freeDrawSize, null);
|
|
816
|
-
}
|
|
817
|
-
static addLinearElementPathOverrides(builder, linearElementPathOverridesOffset) {
|
|
818
|
-
builder.addFieldOffset(101, linearElementPathOverridesOffset, 0);
|
|
819
|
-
}
|
|
820
|
-
static createLinearElementPathOverridesVector(builder, data) {
|
|
821
|
-
builder.startVector(4, data.length, 4);
|
|
822
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
823
|
-
builder.addOffset(data[i]);
|
|
824
|
-
}
|
|
825
|
-
return builder.endVector();
|
|
826
|
-
}
|
|
827
|
-
static startLinearElementPathOverridesVector(builder, numElems) {
|
|
828
|
-
builder.startVector(4, numElems, 4);
|
|
829
|
-
}
|
|
830
|
-
static addDescription(builder, descriptionOffset) {
|
|
831
|
-
builder.addFieldOffset(102, descriptionOffset, 0);
|
|
832
|
-
}
|
|
833
|
-
static addNoPlot(builder, noPlot) {
|
|
834
|
-
builder.addFieldInt8(103, +noPlot, null);
|
|
835
|
-
}
|
|
836
|
-
static addStackLikeLabelingColor(builder, stackLikeLabelingColorOffset) {
|
|
837
|
-
builder.addFieldOffset(104, stackLikeLabelingColorOffset, 0);
|
|
838
|
-
}
|
|
839
|
-
static addStackLikeStrokeOverride(builder, stackLikeStrokeOverrideOffset) {
|
|
840
|
-
builder.addFieldOffset(105, stackLikeStrokeOverrideOffset, 0);
|
|
841
|
-
}
|
|
842
|
-
static addStackLikeBackgroundOverride(builder, stackLikeBackgroundOverrideOffset) {
|
|
843
|
-
builder.addFieldOffset(106, stackLikeBackgroundOverrideOffset, 0);
|
|
844
|
-
}
|
|
845
|
-
static addBlockInstanceBlockId(builder, blockInstanceBlockIdOffset) {
|
|
846
|
-
builder.addFieldOffset(107, blockInstanceBlockIdOffset, 0);
|
|
847
|
-
}
|
|
848
|
-
static addBlockInstanceElementOverrides(builder, blockInstanceElementOverridesOffset) {
|
|
849
|
-
builder.addFieldOffset(108, blockInstanceElementOverridesOffset, 0);
|
|
850
|
-
}
|
|
851
|
-
static createBlockInstanceElementOverridesVector(builder, data) {
|
|
852
|
-
builder.startVector(4, data.length, 4);
|
|
853
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
854
|
-
builder.addOffset(data[i]);
|
|
855
|
-
}
|
|
856
|
-
return builder.endVector();
|
|
857
|
-
}
|
|
858
|
-
static startBlockInstanceElementOverridesVector(builder, numElems) {
|
|
859
|
-
builder.startVector(4, numElems, 4);
|
|
860
|
-
}
|
|
861
|
-
static endDucElement(builder) {
|
|
862
|
-
const offset = builder.endObject();
|
|
863
|
-
return offset;
|
|
864
|
-
}
|
|
865
|
-
}
|