ducjs 2.4.0 → 3.0.3
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 +4 -5
- package/dist/enums.d.ts +135 -0
- package/dist/enums.js +155 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/lazy-files.d.ts +31 -71
- package/dist/lazy-files.js +91 -163
- package/dist/parse.d.ts +16 -82
- package/dist/parse.js +56 -1646
- package/dist/restore/index.d.ts +0 -1
- package/dist/restore/index.js +0 -1
- package/dist/restore/restoreDataState.d.ts +6 -10
- package/dist/restore/restoreDataState.js +126 -128
- package/dist/restore/restoreElements.d.ts +1 -1
- package/dist/restore/restoreElements.js +31 -499
- package/dist/serialize.d.ts +11 -4
- package/dist/serialize.js +58 -2546
- package/dist/technical/index.d.ts +0 -1
- package/dist/technical/index.js +0 -1
- package/dist/technical/scopes.d.ts +2 -2
- package/dist/technical/scopes.js +29 -14
- package/dist/transform.d.ts +12 -0
- package/dist/transform.js +442 -0
- package/dist/types/elements/index.d.ts +116 -689
- package/dist/types/elements/typeChecks.d.ts +3 -3
- package/dist/types/elements/typeChecks.js +3 -8
- package/dist/types/geometryTypes.d.ts +1 -1
- package/dist/types/index.d.ts +38 -305
- package/dist/utils/constants.d.ts +3 -86
- package/dist/utils/constants.js +1 -197
- package/dist/utils/elements/index.d.ts +3 -14
- package/dist/utils/elements/index.js +7 -99
- package/dist/utils/elements/linearElement.d.ts +2 -2
- package/dist/utils/elements/newElement.d.ts +2 -12
- package/dist/utils/elements/newElement.js +22 -51
- package/dist/utils/elements/textElement.js +1 -1
- package/dist/utils/math/index.d.ts +5 -4
- package/dist/utils/math/index.js +3 -3
- package/dist/utils/shape.js +2 -2
- package/dist/utils/state/index.d.ts +0 -1
- package/dist/utils/state/index.js +4 -70
- package/dist/utils/traverse.d.ts +8 -0
- package/dist/utils/traverse.js +37 -0
- package/dist/version-control.d.ts +61 -0
- package/dist/version-control.js +84 -0
- package/dist/wasm.d.ts +20 -0
- package/dist/wasm.js +52 -0
- package/package.json +3 -2
- package/dist/flatbuffers/duc/alternate-units.d.ts +0 -21
- package/dist/flatbuffers/duc/alternate-units.js +0 -66
- package/dist/flatbuffers/duc/angular-unit-system.d.ts +0 -17
- package/dist/flatbuffers/duc/angular-unit-system.js +0 -50
- package/dist/flatbuffers/duc/angular-units-format.d.ts +0 -7
- package/dist/flatbuffers/duc/angular-units-format.js +0 -10
- package/dist/flatbuffers/duc/axis.d.ts +0 -5
- package/dist/flatbuffers/duc/axis.js +0 -8
- package/dist/flatbuffers/duc/bezier-mirroring.d.ts +0 -5
- package/dist/flatbuffers/duc/bezier-mirroring.js +0 -8
- package/dist/flatbuffers/duc/blending.d.ts +0 -9
- package/dist/flatbuffers/duc/blending.js +0 -12
- package/dist/flatbuffers/duc/block-attachment.d.ts +0 -4
- package/dist/flatbuffers/duc/block-attachment.js +0 -7
- package/dist/flatbuffers/duc/boolean-operation.d.ts +0 -6
- package/dist/flatbuffers/duc/boolean-operation.js +0 -9
- package/dist/flatbuffers/duc/bound-element.d.ts +0 -17
- package/dist/flatbuffers/duc/bound-element.js +0 -48
- package/dist/flatbuffers/duc/checkpoint.d.ts +0 -22
- package/dist/flatbuffers/duc/checkpoint.js +0 -75
- package/dist/flatbuffers/duc/column-layout.d.ts +0 -22
- package/dist/flatbuffers/duc/column-layout.js +0 -72
- package/dist/flatbuffers/duc/column-type.d.ts +0 -5
- package/dist/flatbuffers/duc/column-type.js +0 -8
- package/dist/flatbuffers/duc/custom-hatch-pattern.d.ts +0 -23
- package/dist/flatbuffers/duc/custom-hatch-pattern.js +0 -71
- package/dist/flatbuffers/duc/datum-bracket-style.d.ts +0 -5
- package/dist/flatbuffers/duc/datum-bracket-style.js +0 -8
- package/dist/flatbuffers/duc/datum-reference.d.ts +0 -17
- package/dist/flatbuffers/duc/datum-reference.js +0 -49
- package/dist/flatbuffers/duc/datum-target-type.d.ts +0 -6
- package/dist/flatbuffers/duc/datum-target-type.js +0 -9
- package/dist/flatbuffers/duc/decimal-separator.d.ts +0 -4
- package/dist/flatbuffers/duc/decimal-separator.js +0 -7
- package/dist/flatbuffers/duc/delta.d.ts +0 -22
- package/dist/flatbuffers/duc/delta.js +0 -75
- package/dist/flatbuffers/duc/dictionary-entry.d.ts +0 -17
- package/dist/flatbuffers/duc/dictionary-entry.js +0 -49
- package/dist/flatbuffers/duc/dimension-baseline-data.d.ts +0 -14
- package/dist/flatbuffers/duc/dimension-baseline-data.js +0 -40
- package/dist/flatbuffers/duc/dimension-bindings.d.ts +0 -17
- package/dist/flatbuffers/duc/dimension-bindings.js +0 -50
- package/dist/flatbuffers/duc/dimension-continue-data.d.ts +0 -14
- package/dist/flatbuffers/duc/dimension-continue-data.js +0 -40
- package/dist/flatbuffers/duc/dimension-definition-points.d.ts +0 -21
- package/dist/flatbuffers/duc/dimension-definition-points.js +0 -64
- package/dist/flatbuffers/duc/dimension-ext-line-style.d.ts +0 -18
- package/dist/flatbuffers/duc/dimension-ext-line-style.js +0 -57
- package/dist/flatbuffers/duc/dimension-fit-rule.d.ts +0 -6
- package/dist/flatbuffers/duc/dimension-fit-rule.js +0 -9
- package/dist/flatbuffers/duc/dimension-fit-style.d.ts +0 -19
- package/dist/flatbuffers/duc/dimension-fit-style.js +0 -58
- package/dist/flatbuffers/duc/dimension-line-style.d.ts +0 -16
- package/dist/flatbuffers/duc/dimension-line-style.js +0 -49
- package/dist/flatbuffers/duc/dimension-symbol-style.d.ts +0 -22
- package/dist/flatbuffers/duc/dimension-symbol-style.js +0 -72
- package/dist/flatbuffers/duc/dimension-text-placement.d.ts +0 -5
- package/dist/flatbuffers/duc/dimension-text-placement.js +0 -8
- package/dist/flatbuffers/duc/dimension-tolerance-style.d.ts +0 -24
- package/dist/flatbuffers/duc/dimension-tolerance-style.js +0 -71
- package/dist/flatbuffers/duc/dimension-type.d.ts +0 -15
- package/dist/flatbuffers/duc/dimension-type.js +0 -18
- package/dist/flatbuffers/duc/dimension-units-format.d.ts +0 -7
- package/dist/flatbuffers/duc/dimension-units-format.js +0 -10
- package/dist/flatbuffers/duc/dimension-validation-rules.d.ts +0 -25
- package/dist/flatbuffers/duc/dimension-validation-rules.js +0 -74
- package/dist/flatbuffers/duc/document-grid-align-items.d.ts +0 -5
- package/dist/flatbuffers/duc/document-grid-align-items.js +0 -8
- package/dist/flatbuffers/duc/document-grid-config.d.ts +0 -24
- package/dist/flatbuffers/duc/document-grid-config.js +0 -81
- package/dist/flatbuffers/duc/duc-arrow-element.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-arrow-element.js +0 -49
- package/dist/flatbuffers/duc/duc-block-attribute-definition-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-block-attribute-definition-entry.js +0 -44
- package/dist/flatbuffers/duc/duc-block-attribute-definition.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-block-attribute-definition.js +0 -64
- package/dist/flatbuffers/duc/duc-block-collection-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-block-collection-entry.js +0 -48
- package/dist/flatbuffers/duc/duc-block-collection.d.ts +0 -31
- package/dist/flatbuffers/duc/duc-block-collection.js +0 -97
- package/dist/flatbuffers/duc/duc-block-duplication-array.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-block-duplication-array.js +0 -64
- package/dist/flatbuffers/duc/duc-block-instance-element.d.ts +0 -10
- package/dist/flatbuffers/duc/duc-block-instance-element.js +0 -28
- package/dist/flatbuffers/duc/duc-block-instance.d.ts +0 -32
- package/dist/flatbuffers/duc/duc-block-instance.js +0 -100
- package/dist/flatbuffers/duc/duc-block-metadata.d.ts +0 -26
- package/dist/flatbuffers/duc/duc-block-metadata.js +0 -90
- package/dist/flatbuffers/duc/duc-block.d.ts +0 -36
- package/dist/flatbuffers/duc/duc-block.js +0 -112
- package/dist/flatbuffers/duc/duc-common-style.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-common-style.js +0 -44
- package/dist/flatbuffers/duc/duc-dimension-element.d.ts +0 -45
- package/dist/flatbuffers/duc/duc-dimension-element.js +0 -120
- package/dist/flatbuffers/duc/duc-dimension-style.d.ts +0 -28
- package/dist/flatbuffers/duc/duc-dimension-style.js +0 -76
- package/dist/flatbuffers/duc/duc-doc-element.d.ts +0 -39
- package/dist/flatbuffers/duc/duc-doc-element.js +0 -110
- package/dist/flatbuffers/duc/duc-doc-style.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-doc-style.js +0 -52
- package/dist/flatbuffers/duc/duc-element-base.d.ts +0 -100
- package/dist/flatbuffers/duc/duc-element-base.js +0 -315
- package/dist/flatbuffers/duc/duc-element-styles-base.d.ts +0 -30
- package/dist/flatbuffers/duc/duc-element-styles-base.js +0 -103
- package/dist/flatbuffers/duc/duc-ellipse-element.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-ellipse-element.js +0 -73
- package/dist/flatbuffers/duc/duc-embeddable-element.d.ts +0 -14
- package/dist/flatbuffers/duc/duc-embeddable-element.js +0 -41
- package/dist/flatbuffers/duc/duc-external-file-data.d.ts +0 -27
- package/dist/flatbuffers/duc/duc-external-file-data.js +0 -92
- package/dist/flatbuffers/duc/duc-external-file-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-external-file-entry.js +0 -44
- package/dist/flatbuffers/duc/duc-feature-control-frame-element.d.ts +0 -31
- package/dist/flatbuffers/duc/duc-feature-control-frame-element.js +0 -89
- package/dist/flatbuffers/duc/duc-feature-control-frame-style.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-feature-control-frame-style.js +0 -60
- package/dist/flatbuffers/duc/duc-frame-element.d.ts +0 -14
- package/dist/flatbuffers/duc/duc-frame-element.js +0 -41
- package/dist/flatbuffers/duc/duc-free-draw-element.d.ts +0 -52
- package/dist/flatbuffers/duc/duc-free-draw-element.js +0 -154
- package/dist/flatbuffers/duc/duc-free-draw-ends.d.ts +0 -18
- package/dist/flatbuffers/duc/duc-free-draw-ends.js +0 -56
- package/dist/flatbuffers/duc/duc-global-state.d.ts +0 -37
- package/dist/flatbuffers/duc/duc-global-state.js +0 -121
- package/dist/flatbuffers/duc/duc-group.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-group.js +0 -44
- package/dist/flatbuffers/duc/duc-hatch-style.d.ts +0 -28
- package/dist/flatbuffers/duc/duc-hatch-style.js +0 -79
- package/dist/flatbuffers/duc/duc-head.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-head.js +0 -57
- package/dist/flatbuffers/duc/duc-image-element.d.ts +0 -35
- package/dist/flatbuffers/duc/duc-image-element.js +0 -91
- package/dist/flatbuffers/duc/duc-image-filter.d.ts +0 -15
- package/dist/flatbuffers/duc/duc-image-filter.js +0 -48
- package/dist/flatbuffers/duc/duc-layer-overrides.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-layer-overrides.js +0 -44
- package/dist/flatbuffers/duc/duc-layer.d.ts +0 -21
- package/dist/flatbuffers/duc/duc-layer.js +0 -59
- package/dist/flatbuffers/duc/duc-leader-element.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-leader-element.js +0 -60
- package/dist/flatbuffers/duc/duc-leader-style.d.ts +0 -27
- package/dist/flatbuffers/duc/duc-leader-style.js +0 -79
- package/dist/flatbuffers/duc/duc-line-reference.d.ts +0 -15
- package/dist/flatbuffers/duc/duc-line-reference.js +0 -43
- package/dist/flatbuffers/duc/duc-line.d.ts +0 -15
- package/dist/flatbuffers/duc/duc-line.js +0 -43
- package/dist/flatbuffers/duc/duc-linear-element-base.d.ts +0 -38
- package/dist/flatbuffers/duc/duc-linear-element-base.js +0 -124
- package/dist/flatbuffers/duc/duc-linear-element.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-linear-element.js +0 -49
- package/dist/flatbuffers/duc/duc-local-state.d.ts +0 -68
- package/dist/flatbuffers/duc/duc-local-state.js +0 -206
- package/dist/flatbuffers/duc/duc-mermaid-element.d.ts +0 -23
- package/dist/flatbuffers/duc/duc-mermaid-element.js +0 -65
- package/dist/flatbuffers/duc/duc-model-element.d.ts +0 -26
- package/dist/flatbuffers/duc/duc-model-element.js +0 -79
- package/dist/flatbuffers/duc/duc-parametric-element.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-parametric-element.js +0 -44
- package/dist/flatbuffers/duc/duc-path.d.ts +0 -26
- package/dist/flatbuffers/duc/duc-path.js +0 -69
- package/dist/flatbuffers/duc/duc-pdf-element.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-pdf-element.js +0 -51
- package/dist/flatbuffers/duc/duc-plot-element.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-plot-element.js +0 -52
- package/dist/flatbuffers/duc/duc-plot-style.d.ts +0 -11
- package/dist/flatbuffers/duc/duc-plot-style.js +0 -32
- package/dist/flatbuffers/duc/duc-point-binding.d.ts +0 -26
- package/dist/flatbuffers/duc/duc-point-binding.js +0 -73
- package/dist/flatbuffers/duc/duc-point.d.ts +0 -18
- package/dist/flatbuffers/duc/duc-point.js +0 -57
- package/dist/flatbuffers/duc/duc-polygon-element.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-polygon-element.js +0 -49
- package/dist/flatbuffers/duc/duc-rectangle-element.d.ts +0 -14
- package/dist/flatbuffers/duc/duc-rectangle-element.js +0 -41
- package/dist/flatbuffers/duc/duc-region.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-region.js +0 -51
- package/dist/flatbuffers/duc/duc-stack-base.d.ts +0 -27
- package/dist/flatbuffers/duc/duc-stack-base.js +0 -78
- package/dist/flatbuffers/duc/duc-stack-element-base.d.ts +0 -23
- package/dist/flatbuffers/duc/duc-stack-element-base.js +0 -65
- package/dist/flatbuffers/duc/duc-stack-like-styles.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-stack-like-styles.js +0 -48
- package/dist/flatbuffers/duc/duc-table-auto-size.d.ts +0 -15
- package/dist/flatbuffers/duc/duc-table-auto-size.js +0 -48
- package/dist/flatbuffers/duc/duc-table-cell-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-table-cell-entry.js +0 -44
- package/dist/flatbuffers/duc/duc-table-cell-span.d.ts +0 -15
- package/dist/flatbuffers/duc/duc-table-cell-span.js +0 -48
- package/dist/flatbuffers/duc/duc-table-cell-style.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-table-cell-style.js +0 -59
- package/dist/flatbuffers/duc/duc-table-cell.d.ts +0 -27
- package/dist/flatbuffers/duc/duc-table-cell.js +0 -72
- package/dist/flatbuffers/duc/duc-table-column-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-table-column-entry.js +0 -44
- package/dist/flatbuffers/duc/duc-table-column.d.ts +0 -18
- package/dist/flatbuffers/duc/duc-table-column.js +0 -51
- package/dist/flatbuffers/duc/duc-table-element.d.ts +0 -51
- package/dist/flatbuffers/duc/duc-table-element.js +0 -167
- package/dist/flatbuffers/duc/duc-table-row-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-table-row-entry.js +0 -44
- package/dist/flatbuffers/duc/duc-table-row.d.ts +0 -18
- package/dist/flatbuffers/duc/duc-table-row.js +0 -51
- package/dist/flatbuffers/duc/duc-table-style.d.ts +0 -20
- package/dist/flatbuffers/duc/duc-table-style.js +0 -57
- package/dist/flatbuffers/duc/duc-text-dynamic-dictionary-source.d.ts +0 -14
- package/dist/flatbuffers/duc/duc-text-dynamic-dictionary-source.js +0 -40
- package/dist/flatbuffers/duc/duc-text-dynamic-element-source.d.ts +0 -17
- package/dist/flatbuffers/duc/duc-text-dynamic-element-source.js +0 -49
- package/dist/flatbuffers/duc/duc-text-dynamic-part.d.ts +0 -22
- package/dist/flatbuffers/duc/duc-text-dynamic-part.js +0 -58
- package/dist/flatbuffers/duc/duc-text-dynamic-source-data.d.ts +0 -9
- package/dist/flatbuffers/duc/duc-text-dynamic-source-data.js +0 -26
- package/dist/flatbuffers/duc/duc-text-dynamic-source.d.ts +0 -19
- package/dist/flatbuffers/duc/duc-text-dynamic-source.js +0 -58
- package/dist/flatbuffers/duc/duc-text-element.d.ts +0 -33
- package/dist/flatbuffers/duc/duc-text-element.js +0 -94
- package/dist/flatbuffers/duc/duc-text-style.d.ts +0 -41
- package/dist/flatbuffers/duc/duc-text-style.js +0 -120
- package/dist/flatbuffers/duc/duc-ucs.d.ts +0 -16
- package/dist/flatbuffers/duc/duc-ucs.js +0 -49
- package/dist/flatbuffers/duc/duc-view.d.ts +0 -24
- package/dist/flatbuffers/duc/duc-view.js +0 -71
- package/dist/flatbuffers/duc/duc-viewport-element.d.ts +0 -36
- package/dist/flatbuffers/duc/duc-viewport-element.js +0 -102
- package/dist/flatbuffers/duc/duc-viewport-style.d.ts +0 -13
- package/dist/flatbuffers/duc/duc-viewport-style.js +0 -40
- package/dist/flatbuffers/duc/duc-xray-element.d.ts +0 -23
- package/dist/flatbuffers/duc/duc-xray-element.js +0 -66
- package/dist/flatbuffers/duc/duc-xray-style.d.ts +0 -14
- package/dist/flatbuffers/duc/duc-xray-style.js +0 -40
- package/dist/flatbuffers/duc/dynamic-snap-settings.d.ts +0 -17
- package/dist/flatbuffers/duc/dynamic-snap-settings.js +0 -56
- package/dist/flatbuffers/duc/element-background.d.ts +0 -14
- package/dist/flatbuffers/duc/element-background.js +0 -41
- package/dist/flatbuffers/duc/element-content-base.d.ts +0 -29
- package/dist/flatbuffers/duc/element-content-base.js +0 -80
- package/dist/flatbuffers/duc/element-content-preference.d.ts +0 -8
- package/dist/flatbuffers/duc/element-content-preference.js +0 -11
- package/dist/flatbuffers/duc/element-stroke.d.ts +0 -24
- package/dist/flatbuffers/duc/element-stroke.js +0 -66
- package/dist/flatbuffers/duc/element-wrapper.d.ts +0 -16
- package/dist/flatbuffers/duc/element-wrapper.js +0 -49
- package/dist/flatbuffers/duc/element.d.ts +0 -51
- package/dist/flatbuffers/duc/element.js +0 -110
- package/dist/flatbuffers/duc/exported-data-state.d.ts +0 -102
- package/dist/flatbuffers/duc/exported-data-state.js +0 -341
- package/dist/flatbuffers/duc/fcfbetween-modifier.d.ts +0 -17
- package/dist/flatbuffers/duc/fcfbetween-modifier.js +0 -48
- package/dist/flatbuffers/duc/fcfdatum-definition.d.ts +0 -16
- package/dist/flatbuffers/duc/fcfdatum-definition.js +0 -43
- package/dist/flatbuffers/duc/fcfdatum-style.d.ts +0 -14
- package/dist/flatbuffers/duc/fcfdatum-style.js +0 -41
- package/dist/flatbuffers/duc/fcfframe-modifiers.d.ts +0 -22
- package/dist/flatbuffers/duc/fcfframe-modifiers.js +0 -65
- package/dist/flatbuffers/duc/fcflayout-style.d.ts +0 -17
- package/dist/flatbuffers/duc/fcflayout-style.js +0 -56
- package/dist/flatbuffers/duc/fcfprojected-zone-modifier.d.ts +0 -13
- package/dist/flatbuffers/duc/fcfprojected-zone-modifier.js +0 -40
- package/dist/flatbuffers/duc/fcfsegment-row.d.ts +0 -17
- package/dist/flatbuffers/duc/fcfsegment-row.js +0 -55
- package/dist/flatbuffers/duc/fcfsymbol-style.d.ts +0 -13
- package/dist/flatbuffers/duc/fcfsymbol-style.js +0 -40
- package/dist/flatbuffers/duc/feature-control-frame-segment.d.ts +0 -22
- package/dist/flatbuffers/duc/feature-control-frame-segment.js +0 -65
- package/dist/flatbuffers/duc/feature-modifier.d.ts +0 -18
- package/dist/flatbuffers/duc/feature-modifier.js +0 -21
- package/dist/flatbuffers/duc/gdt-symbol.d.ts +0 -22
- package/dist/flatbuffers/duc/gdt-symbol.js +0 -25
- package/dist/flatbuffers/duc/geometric-point.d.ts +0 -10
- package/dist/flatbuffers/duc/geometric-point.js +0 -27
- package/dist/flatbuffers/duc/grid-display-type.d.ts +0 -6
- package/dist/flatbuffers/duc/grid-display-type.js +0 -9
- package/dist/flatbuffers/duc/grid-settings.d.ts +0 -54
- package/dist/flatbuffers/duc/grid-settings.js +0 -165
- package/dist/flatbuffers/duc/grid-style.d.ts +0 -26
- package/dist/flatbuffers/duc/grid-style.js +0 -74
- package/dist/flatbuffers/duc/grid-type.d.ts +0 -7
- package/dist/flatbuffers/duc/grid-type.js +0 -10
- package/dist/flatbuffers/duc/handle-type.d.ts +0 -4
- package/dist/flatbuffers/duc/handle-type.js +0 -7
- package/dist/flatbuffers/duc/hatch-pattern-line.d.ts +0 -35
- package/dist/flatbuffers/duc/hatch-pattern-line.js +0 -93
- package/dist/flatbuffers/duc/hatch-style.d.ts +0 -5
- package/dist/flatbuffers/duc/hatch-style.js +0 -8
- package/dist/flatbuffers/duc/identified-common-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-common-style.js +0 -44
- package/dist/flatbuffers/duc/identified-dimension-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-dimension-style.js +0 -44
- package/dist/flatbuffers/duc/identified-doc-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-doc-style.js +0 -44
- package/dist/flatbuffers/duc/identified-fcfstyle.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-fcfstyle.js +0 -44
- package/dist/flatbuffers/duc/identified-grid-settings.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-grid-settings.js +0 -44
- package/dist/flatbuffers/duc/identified-hatch-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-hatch-style.js +0 -44
- package/dist/flatbuffers/duc/identified-leader-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-leader-style.js +0 -44
- package/dist/flatbuffers/duc/identified-snap-settings.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-snap-settings.js +0 -44
- package/dist/flatbuffers/duc/identified-stack-like-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-stack-like-style.js +0 -44
- package/dist/flatbuffers/duc/identified-table-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-table-style.js +0 -44
- package/dist/flatbuffers/duc/identified-text-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-text-style.js +0 -44
- package/dist/flatbuffers/duc/identified-ucs.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-ucs.js +0 -44
- package/dist/flatbuffers/duc/identified-view.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-view.js +0 -44
- package/dist/flatbuffers/duc/identified-viewport-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-viewport-style.js +0 -44
- package/dist/flatbuffers/duc/identified-xray-style.d.ts +0 -16
- package/dist/flatbuffers/duc/identified-xray-style.js +0 -44
- package/dist/flatbuffers/duc/identifier.d.ts +0 -20
- package/dist/flatbuffers/duc/identifier.js +0 -57
- package/dist/flatbuffers/duc/image-crop.d.ts +0 -23
- package/dist/flatbuffers/duc/image-crop.js +0 -80
- package/dist/flatbuffers/duc/image-status.d.ts +0 -5
- package/dist/flatbuffers/duc/image-status.js +0 -8
- package/dist/flatbuffers/duc/isometric-grid-settings.d.ts +0 -15
- package/dist/flatbuffers/duc/isometric-grid-settings.js +0 -48
- package/dist/flatbuffers/duc/jsonpatch-operation.d.ts +0 -23
- package/dist/flatbuffers/duc/jsonpatch-operation.js +0 -64
- package/dist/flatbuffers/duc/layer-snap-filters.d.ts +0 -23
- package/dist/flatbuffers/duc/layer-snap-filters.js +0 -76
- package/dist/flatbuffers/duc/layer-validation-rules.d.ts +0 -17
- package/dist/flatbuffers/duc/layer-validation-rules.js +0 -54
- package/dist/flatbuffers/duc/leader-block-content.d.ts +0 -25
- package/dist/flatbuffers/duc/leader-block-content.js +0 -85
- package/dist/flatbuffers/duc/leader-content-data.d.ts +0 -9
- package/dist/flatbuffers/duc/leader-content-data.js +0 -26
- package/dist/flatbuffers/duc/leader-content-type.d.ts +0 -4
- package/dist/flatbuffers/duc/leader-content-type.js +0 -7
- package/dist/flatbuffers/duc/leader-content.d.ts +0 -19
- package/dist/flatbuffers/duc/leader-content.js +0 -58
- package/dist/flatbuffers/duc/leader-text-block-content.d.ts +0 -14
- package/dist/flatbuffers/duc/leader-text-block-content.js +0 -40
- package/dist/flatbuffers/duc/line-head.d.ts +0 -17
- package/dist/flatbuffers/duc/line-head.js +0 -20
- package/dist/flatbuffers/duc/line-spacing-type.d.ts +0 -5
- package/dist/flatbuffers/duc/line-spacing-type.js +0 -8
- package/dist/flatbuffers/duc/line-spacing.d.ts +0 -16
- package/dist/flatbuffers/duc/line-spacing.js +0 -49
- package/dist/flatbuffers/duc/linear-unit-system.d.ts +0 -24
- package/dist/flatbuffers/duc/linear-unit-system.js +0 -75
- package/dist/flatbuffers/duc/margins.d.ts +0 -19
- package/dist/flatbuffers/duc/margins.js +0 -64
- package/dist/flatbuffers/duc/mark-ellipse-center.d.ts +0 -4
- package/dist/flatbuffers/duc/mark-ellipse-center.js +0 -7
- package/dist/flatbuffers/duc/material-condition.d.ts +0 -5
- package/dist/flatbuffers/duc/material-condition.js +0 -8
- package/dist/flatbuffers/duc/object-snap-mode.d.ts +0 -22
- package/dist/flatbuffers/duc/object-snap-mode.js +0 -25
- package/dist/flatbuffers/duc/paragraph-formatting.d.ts +0 -33
- package/dist/flatbuffers/duc/paragraph-formatting.js +0 -106
- package/dist/flatbuffers/duc/parametric-source-type.d.ts +0 -4
- package/dist/flatbuffers/duc/parametric-source-type.js +0 -7
- package/dist/flatbuffers/duc/parametric-source.d.ts +0 -20
- package/dist/flatbuffers/duc/parametric-source.js +0 -57
- package/dist/flatbuffers/duc/plot-layout.d.ts +0 -14
- package/dist/flatbuffers/duc/plot-layout.js +0 -41
- package/dist/flatbuffers/duc/point-binding-point.d.ts +0 -15
- package/dist/flatbuffers/duc/point-binding-point.js +0 -48
- package/dist/flatbuffers/duc/polar-grid-settings.d.ts +0 -17
- package/dist/flatbuffers/duc/polar-grid-settings.js +0 -56
- package/dist/flatbuffers/duc/polar-tracking-settings.d.ts +0 -29
- package/dist/flatbuffers/duc/polar-tracking-settings.js +0 -90
- package/dist/flatbuffers/duc/primary-units.d.ts +0 -16
- package/dist/flatbuffers/duc/primary-units.js +0 -44
- package/dist/flatbuffers/duc/pruning-level.d.ts +0 -5
- package/dist/flatbuffers/duc/pruning-level.js +0 -8
- package/dist/flatbuffers/duc/snap-marker-settings.d.ts +0 -23
- package/dist/flatbuffers/duc/snap-marker-settings.js +0 -79
- package/dist/flatbuffers/duc/snap-marker-shape.d.ts +0 -6
- package/dist/flatbuffers/duc/snap-marker-shape.js +0 -9
- package/dist/flatbuffers/duc/snap-marker-style-entry.d.ts +0 -16
- package/dist/flatbuffers/duc/snap-marker-style-entry.js +0 -43
- package/dist/flatbuffers/duc/snap-marker-style.d.ts +0 -17
- package/dist/flatbuffers/duc/snap-marker-style.js +0 -49
- package/dist/flatbuffers/duc/snap-mode.d.ts +0 -4
- package/dist/flatbuffers/duc/snap-mode.js +0 -7
- package/dist/flatbuffers/duc/snap-override-behavior.d.ts +0 -5
- package/dist/flatbuffers/duc/snap-override-behavior.js +0 -8
- package/dist/flatbuffers/duc/snap-override.d.ts +0 -17
- package/dist/flatbuffers/duc/snap-override.js +0 -49
- package/dist/flatbuffers/duc/snap-settings.d.ts +0 -75
- package/dist/flatbuffers/duc/snap-settings.js +0 -245
- package/dist/flatbuffers/duc/stack-format-properties.d.ts +0 -18
- package/dist/flatbuffers/duc/stack-format-properties.js +0 -57
- package/dist/flatbuffers/duc/stack-format.d.ts +0 -21
- package/dist/flatbuffers/duc/stack-format.js +0 -64
- package/dist/flatbuffers/duc/stacked-text-align.d.ts +0 -5
- package/dist/flatbuffers/duc/stacked-text-align.js +0 -8
- package/dist/flatbuffers/duc/standard-overrides.d.ts +0 -63
- package/dist/flatbuffers/duc/standard-overrides.js +0 -162
- package/dist/flatbuffers/duc/standard-styles.d.ts +0 -77
- package/dist/flatbuffers/duc/standard-styles.js +0 -285
- package/dist/flatbuffers/duc/standard-units.d.ts +0 -16
- package/dist/flatbuffers/duc/standard-units.js +0 -44
- package/dist/flatbuffers/duc/standard-validation.d.ts +0 -16
- package/dist/flatbuffers/duc/standard-validation.js +0 -44
- package/dist/flatbuffers/duc/standard-view-settings.d.ts +0 -35
- package/dist/flatbuffers/duc/standard-view-settings.js +0 -124
- package/dist/flatbuffers/duc/standard.d.ts +0 -33
- package/dist/flatbuffers/duc/standard.js +0 -90
- package/dist/flatbuffers/duc/string-value-entry.d.ts +0 -17
- package/dist/flatbuffers/duc/string-value-entry.js +0 -49
- package/dist/flatbuffers/duc/stroke-cap.d.ts +0 -5
- package/dist/flatbuffers/duc/stroke-cap.js +0 -8
- package/dist/flatbuffers/duc/stroke-join.d.ts +0 -5
- package/dist/flatbuffers/duc/stroke-join.js +0 -8
- package/dist/flatbuffers/duc/stroke-placement.d.ts +0 -5
- package/dist/flatbuffers/duc/stroke-placement.js +0 -8
- package/dist/flatbuffers/duc/stroke-preference.d.ts +0 -6
- package/dist/flatbuffers/duc/stroke-preference.js +0 -9
- package/dist/flatbuffers/duc/stroke-side-preference.d.ts +0 -8
- package/dist/flatbuffers/duc/stroke-side-preference.js +0 -11
- package/dist/flatbuffers/duc/stroke-sides.d.ts +0 -24
- package/dist/flatbuffers/duc/stroke-sides.js +0 -67
- package/dist/flatbuffers/duc/stroke-style.d.ts +0 -37
- package/dist/flatbuffers/duc/stroke-style.js +0 -111
- package/dist/flatbuffers/duc/stroke-width.d.ts +0 -5
- package/dist/flatbuffers/duc/stroke-width.js +0 -8
- package/dist/flatbuffers/duc/table-cell-alignment.d.ts +0 -11
- package/dist/flatbuffers/duc/table-cell-alignment.js +0 -14
- package/dist/flatbuffers/duc/table-flow-direction.d.ts +0 -4
- package/dist/flatbuffers/duc/table-flow-direction.js +0 -7
- package/dist/flatbuffers/duc/text-align.d.ts +0 -5
- package/dist/flatbuffers/duc/text-align.js +0 -8
- package/dist/flatbuffers/duc/text-column.d.ts +0 -15
- package/dist/flatbuffers/duc/text-column.js +0 -48
- package/dist/flatbuffers/duc/text-field-source-property.d.ts +0 -13
- package/dist/flatbuffers/duc/text-field-source-property.js +0 -16
- package/dist/flatbuffers/duc/text-field-source-type.d.ts +0 -4
- package/dist/flatbuffers/duc/text-field-source-type.js +0 -7
- package/dist/flatbuffers/duc/text-flow-direction.d.ts +0 -6
- package/dist/flatbuffers/duc/text-flow-direction.js +0 -9
- package/dist/flatbuffers/duc/tiling-properties.d.ts +0 -21
- package/dist/flatbuffers/duc/tiling-properties.js +0 -75
- package/dist/flatbuffers/duc/tolerance-clause.d.ts +0 -27
- package/dist/flatbuffers/duc/tolerance-clause.js +0 -84
- package/dist/flatbuffers/duc/tolerance-display.d.ts +0 -7
- package/dist/flatbuffers/duc/tolerance-display.js +0 -10
- package/dist/flatbuffers/duc/tolerance-type.d.ts +0 -5
- package/dist/flatbuffers/duc/tolerance-type.js +0 -8
- package/dist/flatbuffers/duc/tolerance-zone-type.d.ts +0 -7
- package/dist/flatbuffers/duc/tolerance-zone-type.js +0 -10
- package/dist/flatbuffers/duc/tracking-line-style.d.ts +0 -26
- package/dist/flatbuffers/duc/tracking-line-style.js +0 -74
- package/dist/flatbuffers/duc/unit-precision.d.ts +0 -19
- package/dist/flatbuffers/duc/unit-precision.js +0 -64
- package/dist/flatbuffers/duc/unit-system-base.d.ts +0 -20
- package/dist/flatbuffers/duc/unit-system-base.js +0 -65
- package/dist/flatbuffers/duc/unit-system.d.ts +0 -4
- package/dist/flatbuffers/duc/unit-system.js +0 -7
- package/dist/flatbuffers/duc/version-base.d.ts +0 -27
- package/dist/flatbuffers/duc/version-base.js +0 -80
- package/dist/flatbuffers/duc/version-graph-metadata.d.ts +0 -15
- package/dist/flatbuffers/duc/version-graph-metadata.js +0 -48
- package/dist/flatbuffers/duc/version-graph.d.ts +0 -31
- package/dist/flatbuffers/duc/version-graph.js +0 -94
- package/dist/flatbuffers/duc/vertical-align.d.ts +0 -5
- package/dist/flatbuffers/duc/vertical-align.js +0 -8
- package/dist/flatbuffers/duc/viewport-shade-plot.d.ts +0 -6
- package/dist/flatbuffers/duc/viewport-shade-plot.js +0 -9
- package/dist/flatbuffers/duc/youtube-states.d.ts +0 -8
- package/dist/flatbuffers/duc/youtube-states.js +0 -11
- package/dist/flatbuffers/duc.d.ts +0 -234
- package/dist/flatbuffers/duc.js +0 -236
- package/dist/restore/restoreStandards.d.ts +0 -8
- package/dist/restore/restoreStandards.js +0 -224
- package/dist/technical/standards.d.ts +0 -124
- package/dist/technical/standards.js +0 -10
- package/dist/utils/elements/viewportElement.d.ts +0 -6
- package/dist/utils/elements/viewportElement.js +0 -9
- package/dist/utils/state/grid.d.ts +0 -7
- package/dist/utils/state/grid.js +0 -25
|
@@ -1,57 +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 { DucTableCellStyle } from '../duc/duc-table-cell-style';
|
|
5
|
-
export class DucTableStyle {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.bb = null;
|
|
8
|
-
this.bb_pos = 0;
|
|
9
|
-
}
|
|
10
|
-
__init(i, bb) {
|
|
11
|
-
this.bb_pos = i;
|
|
12
|
-
this.bb = bb;
|
|
13
|
-
return this;
|
|
14
|
-
}
|
|
15
|
-
static getRootAsDucTableStyle(bb, obj) {
|
|
16
|
-
return (obj || new DucTableStyle()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
-
}
|
|
18
|
-
static getSizePrefixedRootAsDucTableStyle(bb, obj) {
|
|
19
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
-
return (obj || new DucTableStyle()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
flowDirection() {
|
|
23
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
24
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : null;
|
|
25
|
-
}
|
|
26
|
-
headerRowStyle(obj) {
|
|
27
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
28
|
-
return offset ? (obj || new DucTableCellStyle()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
29
|
-
}
|
|
30
|
-
dataRowStyle(obj) {
|
|
31
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
32
|
-
return offset ? (obj || new DucTableCellStyle()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
33
|
-
}
|
|
34
|
-
dataColumnStyle(obj) {
|
|
35
|
-
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
36
|
-
return offset ? (obj || new DucTableCellStyle()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
37
|
-
}
|
|
38
|
-
static startDucTableStyle(builder) {
|
|
39
|
-
builder.startObject(5);
|
|
40
|
-
}
|
|
41
|
-
static addFlowDirection(builder, flowDirection) {
|
|
42
|
-
builder.addFieldInt8(1, flowDirection, null);
|
|
43
|
-
}
|
|
44
|
-
static addHeaderRowStyle(builder, headerRowStyleOffset) {
|
|
45
|
-
builder.addFieldOffset(2, headerRowStyleOffset, 0);
|
|
46
|
-
}
|
|
47
|
-
static addDataRowStyle(builder, dataRowStyleOffset) {
|
|
48
|
-
builder.addFieldOffset(3, dataRowStyleOffset, 0);
|
|
49
|
-
}
|
|
50
|
-
static addDataColumnStyle(builder, dataColumnStyleOffset) {
|
|
51
|
-
builder.addFieldOffset(4, dataColumnStyleOffset, 0);
|
|
52
|
-
}
|
|
53
|
-
static endDucTableStyle(builder) {
|
|
54
|
-
const offset = builder.endObject();
|
|
55
|
-
return offset;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
export declare class DucTextDynamicDictionarySource {
|
|
3
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
-
bb_pos: number;
|
|
5
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextDynamicDictionarySource;
|
|
6
|
-
static getRootAsDucTextDynamicDictionarySource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicDictionarySource): DucTextDynamicDictionarySource;
|
|
7
|
-
static getSizePrefixedRootAsDucTextDynamicDictionarySource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicDictionarySource): DucTextDynamicDictionarySource;
|
|
8
|
-
key(): string | null;
|
|
9
|
-
key(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
10
|
-
static startDucTextDynamicDictionarySource(builder: flatbuffers.Builder): void;
|
|
11
|
-
static addKey(builder: flatbuffers.Builder, keyOffset: flatbuffers.Offset): void;
|
|
12
|
-
static endDucTextDynamicDictionarySource(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
13
|
-
static createDucTextDynamicDictionarySource(builder: flatbuffers.Builder, keyOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
14
|
-
}
|
|
@@ -1,40 +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
|
-
export class DucTextDynamicDictionarySource {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.bb = null;
|
|
7
|
-
this.bb_pos = 0;
|
|
8
|
-
}
|
|
9
|
-
__init(i, bb) {
|
|
10
|
-
this.bb_pos = i;
|
|
11
|
-
this.bb = bb;
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
static getRootAsDucTextDynamicDictionarySource(bb, obj) {
|
|
15
|
-
return (obj || new DucTextDynamicDictionarySource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
16
|
-
}
|
|
17
|
-
static getSizePrefixedRootAsDucTextDynamicDictionarySource(bb, obj) {
|
|
18
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
19
|
-
return (obj || new DucTextDynamicDictionarySource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
-
}
|
|
21
|
-
key(optionalEncoding) {
|
|
22
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
23
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
24
|
-
}
|
|
25
|
-
static startDucTextDynamicDictionarySource(builder) {
|
|
26
|
-
builder.startObject(1);
|
|
27
|
-
}
|
|
28
|
-
static addKey(builder, keyOffset) {
|
|
29
|
-
builder.addFieldOffset(0, keyOffset, 0);
|
|
30
|
-
}
|
|
31
|
-
static endDucTextDynamicDictionarySource(builder) {
|
|
32
|
-
const offset = builder.endObject();
|
|
33
|
-
return offset;
|
|
34
|
-
}
|
|
35
|
-
static createDucTextDynamicDictionarySource(builder, keyOffset) {
|
|
36
|
-
DucTextDynamicDictionarySource.startDucTextDynamicDictionarySource(builder);
|
|
37
|
-
DucTextDynamicDictionarySource.addKey(builder, keyOffset);
|
|
38
|
-
return DucTextDynamicDictionarySource.endDucTextDynamicDictionarySource(builder);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
import { TEXT_FIELD_SOURCE_PROPERTY } from '../duc/text-field-source-property';
|
|
3
|
-
export declare class DucTextDynamicElementSource {
|
|
4
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
5
|
-
bb_pos: number;
|
|
6
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextDynamicElementSource;
|
|
7
|
-
static getRootAsDucTextDynamicElementSource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicElementSource): DucTextDynamicElementSource;
|
|
8
|
-
static getSizePrefixedRootAsDucTextDynamicElementSource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicElementSource): DucTextDynamicElementSource;
|
|
9
|
-
elementId(): string | null;
|
|
10
|
-
elementId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
11
|
-
property(): TEXT_FIELD_SOURCE_PROPERTY | null;
|
|
12
|
-
static startDucTextDynamicElementSource(builder: flatbuffers.Builder): void;
|
|
13
|
-
static addElementId(builder: flatbuffers.Builder, elementIdOffset: flatbuffers.Offset): void;
|
|
14
|
-
static addProperty(builder: flatbuffers.Builder, property: TEXT_FIELD_SOURCE_PROPERTY): void;
|
|
15
|
-
static endDucTextDynamicElementSource(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
16
|
-
static createDucTextDynamicElementSource(builder: flatbuffers.Builder, elementIdOffset: flatbuffers.Offset, property: TEXT_FIELD_SOURCE_PROPERTY | null): flatbuffers.Offset;
|
|
17
|
-
}
|
|
@@ -1,49 +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
|
-
export class DucTextDynamicElementSource {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.bb = null;
|
|
7
|
-
this.bb_pos = 0;
|
|
8
|
-
}
|
|
9
|
-
__init(i, bb) {
|
|
10
|
-
this.bb_pos = i;
|
|
11
|
-
this.bb = bb;
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
static getRootAsDucTextDynamicElementSource(bb, obj) {
|
|
15
|
-
return (obj || new DucTextDynamicElementSource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
16
|
-
}
|
|
17
|
-
static getSizePrefixedRootAsDucTextDynamicElementSource(bb, obj) {
|
|
18
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
19
|
-
return (obj || new DucTextDynamicElementSource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
-
}
|
|
21
|
-
elementId(optionalEncoding) {
|
|
22
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
23
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
24
|
-
}
|
|
25
|
-
property() {
|
|
26
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
27
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : null;
|
|
28
|
-
}
|
|
29
|
-
static startDucTextDynamicElementSource(builder) {
|
|
30
|
-
builder.startObject(2);
|
|
31
|
-
}
|
|
32
|
-
static addElementId(builder, elementIdOffset) {
|
|
33
|
-
builder.addFieldOffset(0, elementIdOffset, 0);
|
|
34
|
-
}
|
|
35
|
-
static addProperty(builder, property) {
|
|
36
|
-
builder.addFieldInt8(1, property, null);
|
|
37
|
-
}
|
|
38
|
-
static endDucTextDynamicElementSource(builder) {
|
|
39
|
-
const offset = builder.endObject();
|
|
40
|
-
return offset;
|
|
41
|
-
}
|
|
42
|
-
static createDucTextDynamicElementSource(builder, elementIdOffset, property) {
|
|
43
|
-
DucTextDynamicElementSource.startDucTextDynamicElementSource(builder);
|
|
44
|
-
DucTextDynamicElementSource.addElementId(builder, elementIdOffset);
|
|
45
|
-
if (property !== null)
|
|
46
|
-
DucTextDynamicElementSource.addProperty(builder, property);
|
|
47
|
-
return DucTextDynamicElementSource.endDucTextDynamicElementSource(builder);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
import { DucTextDynamicSource } from '../duc/duc-text-dynamic-source';
|
|
3
|
-
import { PrimaryUnits } from '../duc/primary-units';
|
|
4
|
-
export declare class DucTextDynamicPart {
|
|
5
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
6
|
-
bb_pos: number;
|
|
7
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextDynamicPart;
|
|
8
|
-
static getRootAsDucTextDynamicPart(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicPart): DucTextDynamicPart;
|
|
9
|
-
static getSizePrefixedRootAsDucTextDynamicPart(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicPart): DucTextDynamicPart;
|
|
10
|
-
tag(): string | null;
|
|
11
|
-
tag(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
12
|
-
source(obj?: DucTextDynamicSource): DucTextDynamicSource | null;
|
|
13
|
-
formatting(obj?: PrimaryUnits): PrimaryUnits | null;
|
|
14
|
-
cachedValue(): string | null;
|
|
15
|
-
cachedValue(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
16
|
-
static startDucTextDynamicPart(builder: flatbuffers.Builder): void;
|
|
17
|
-
static addTag(builder: flatbuffers.Builder, tagOffset: flatbuffers.Offset): void;
|
|
18
|
-
static addSource(builder: flatbuffers.Builder, sourceOffset: flatbuffers.Offset): void;
|
|
19
|
-
static addFormatting(builder: flatbuffers.Builder, formattingOffset: flatbuffers.Offset): void;
|
|
20
|
-
static addCachedValue(builder: flatbuffers.Builder, cachedValueOffset: flatbuffers.Offset): void;
|
|
21
|
-
static endDucTextDynamicPart(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
22
|
-
}
|
|
@@ -1,58 +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 { DucTextDynamicSource } from '../duc/duc-text-dynamic-source';
|
|
5
|
-
import { PrimaryUnits } from '../duc/primary-units';
|
|
6
|
-
export class DucTextDynamicPart {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.bb = null;
|
|
9
|
-
this.bb_pos = 0;
|
|
10
|
-
}
|
|
11
|
-
__init(i, bb) {
|
|
12
|
-
this.bb_pos = i;
|
|
13
|
-
this.bb = bb;
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
static getRootAsDucTextDynamicPart(bb, obj) {
|
|
17
|
-
return (obj || new DucTextDynamicPart()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
18
|
-
}
|
|
19
|
-
static getSizePrefixedRootAsDucTextDynamicPart(bb, obj) {
|
|
20
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
21
|
-
return (obj || new DucTextDynamicPart()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
22
|
-
}
|
|
23
|
-
tag(optionalEncoding) {
|
|
24
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
25
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
26
|
-
}
|
|
27
|
-
source(obj) {
|
|
28
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
29
|
-
return offset ? (obj || new DucTextDynamicSource()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
30
|
-
}
|
|
31
|
-
formatting(obj) {
|
|
32
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
33
|
-
return offset ? (obj || new PrimaryUnits()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
34
|
-
}
|
|
35
|
-
cachedValue(optionalEncoding) {
|
|
36
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
37
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
38
|
-
}
|
|
39
|
-
static startDucTextDynamicPart(builder) {
|
|
40
|
-
builder.startObject(4);
|
|
41
|
-
}
|
|
42
|
-
static addTag(builder, tagOffset) {
|
|
43
|
-
builder.addFieldOffset(0, tagOffset, 0);
|
|
44
|
-
}
|
|
45
|
-
static addSource(builder, sourceOffset) {
|
|
46
|
-
builder.addFieldOffset(1, sourceOffset, 0);
|
|
47
|
-
}
|
|
48
|
-
static addFormatting(builder, formattingOffset) {
|
|
49
|
-
builder.addFieldOffset(2, formattingOffset, 0);
|
|
50
|
-
}
|
|
51
|
-
static addCachedValue(builder, cachedValueOffset) {
|
|
52
|
-
builder.addFieldOffset(3, cachedValueOffset, 0);
|
|
53
|
-
}
|
|
54
|
-
static endDucTextDynamicPart(builder) {
|
|
55
|
-
const offset = builder.endObject();
|
|
56
|
-
return offset;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DucTextDynamicDictionarySource } from '../duc/duc-text-dynamic-dictionary-source';
|
|
2
|
-
import { DucTextDynamicElementSource } from '../duc/duc-text-dynamic-element-source';
|
|
3
|
-
export declare enum DucTextDynamicSourceData {
|
|
4
|
-
NONE = 0,
|
|
5
|
-
DucTextDynamicElementSource = 1,
|
|
6
|
-
DucTextDynamicDictionarySource = 2
|
|
7
|
-
}
|
|
8
|
-
export declare function unionToDucTextDynamicSourceData(type: DucTextDynamicSourceData, accessor: (obj: DucTextDynamicDictionarySource | DucTextDynamicElementSource) => DucTextDynamicDictionarySource | DucTextDynamicElementSource | null): DucTextDynamicDictionarySource | DucTextDynamicElementSource | null;
|
|
9
|
-
export declare function unionListToDucTextDynamicSourceData(type: DucTextDynamicSourceData, accessor: (index: number, obj: DucTextDynamicDictionarySource | DucTextDynamicElementSource) => DucTextDynamicDictionarySource | DucTextDynamicElementSource | null, index: number): DucTextDynamicDictionarySource | DucTextDynamicElementSource | null;
|
|
@@ -1,26 +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 { DucTextDynamicDictionarySource } from '../duc/duc-text-dynamic-dictionary-source';
|
|
4
|
-
import { DucTextDynamicElementSource } from '../duc/duc-text-dynamic-element-source';
|
|
5
|
-
export var DucTextDynamicSourceData;
|
|
6
|
-
(function (DucTextDynamicSourceData) {
|
|
7
|
-
DucTextDynamicSourceData[DucTextDynamicSourceData["NONE"] = 0] = "NONE";
|
|
8
|
-
DucTextDynamicSourceData[DucTextDynamicSourceData["DucTextDynamicElementSource"] = 1] = "DucTextDynamicElementSource";
|
|
9
|
-
DucTextDynamicSourceData[DucTextDynamicSourceData["DucTextDynamicDictionarySource"] = 2] = "DucTextDynamicDictionarySource";
|
|
10
|
-
})(DucTextDynamicSourceData || (DucTextDynamicSourceData = {}));
|
|
11
|
-
export function unionToDucTextDynamicSourceData(type, accessor) {
|
|
12
|
-
switch (DucTextDynamicSourceData[type]) {
|
|
13
|
-
case 'NONE': return null;
|
|
14
|
-
case 'DucTextDynamicElementSource': return accessor(new DucTextDynamicElementSource());
|
|
15
|
-
case 'DucTextDynamicDictionarySource': return accessor(new DucTextDynamicDictionarySource());
|
|
16
|
-
default: return null;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export function unionListToDucTextDynamicSourceData(type, accessor, index) {
|
|
20
|
-
switch (DucTextDynamicSourceData[type]) {
|
|
21
|
-
case 'NONE': return null;
|
|
22
|
-
case 'DucTextDynamicElementSource': return accessor(index, new DucTextDynamicElementSource());
|
|
23
|
-
case 'DucTextDynamicDictionarySource': return accessor(index, new DucTextDynamicDictionarySource());
|
|
24
|
-
default: return null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
import { DucTextDynamicSourceData } from '../duc/duc-text-dynamic-source-data';
|
|
3
|
-
import { TEXT_FIELD_SOURCE_TYPE } from '../duc/text-field-source-type';
|
|
4
|
-
export declare class DucTextDynamicSource {
|
|
5
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
6
|
-
bb_pos: number;
|
|
7
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextDynamicSource;
|
|
8
|
-
static getRootAsDucTextDynamicSource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicSource): DucTextDynamicSource;
|
|
9
|
-
static getSizePrefixedRootAsDucTextDynamicSource(bb: flatbuffers.ByteBuffer, obj?: DucTextDynamicSource): DucTextDynamicSource;
|
|
10
|
-
textSourceType(): TEXT_FIELD_SOURCE_TYPE | null;
|
|
11
|
-
sourceType(): DucTextDynamicSourceData;
|
|
12
|
-
source<T extends flatbuffers.Table>(obj: any): any | null;
|
|
13
|
-
static startDucTextDynamicSource(builder: flatbuffers.Builder): void;
|
|
14
|
-
static addTextSourceType(builder: flatbuffers.Builder, textSourceType: TEXT_FIELD_SOURCE_TYPE): void;
|
|
15
|
-
static addSourceType(builder: flatbuffers.Builder, sourceType: DucTextDynamicSourceData): void;
|
|
16
|
-
static addSource(builder: flatbuffers.Builder, sourceOffset: flatbuffers.Offset): void;
|
|
17
|
-
static endDucTextDynamicSource(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
18
|
-
static createDucTextDynamicSource(builder: flatbuffers.Builder, textSourceType: TEXT_FIELD_SOURCE_TYPE | null, sourceType: DucTextDynamicSourceData, sourceOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
19
|
-
}
|
|
@@ -1,58 +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 { DucTextDynamicSourceData } from '../duc/duc-text-dynamic-source-data';
|
|
5
|
-
export class DucTextDynamicSource {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.bb = null;
|
|
8
|
-
this.bb_pos = 0;
|
|
9
|
-
}
|
|
10
|
-
__init(i, bb) {
|
|
11
|
-
this.bb_pos = i;
|
|
12
|
-
this.bb = bb;
|
|
13
|
-
return this;
|
|
14
|
-
}
|
|
15
|
-
static getRootAsDucTextDynamicSource(bb, obj) {
|
|
16
|
-
return (obj || new DucTextDynamicSource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
-
}
|
|
18
|
-
static getSizePrefixedRootAsDucTextDynamicSource(bb, obj) {
|
|
19
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
-
return (obj || new DucTextDynamicSource()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
textSourceType() {
|
|
23
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : null;
|
|
25
|
-
}
|
|
26
|
-
sourceType() {
|
|
27
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : DucTextDynamicSourceData.NONE;
|
|
29
|
-
}
|
|
30
|
-
source(obj) {
|
|
31
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
32
|
-
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
33
|
-
}
|
|
34
|
-
static startDucTextDynamicSource(builder) {
|
|
35
|
-
builder.startObject(3);
|
|
36
|
-
}
|
|
37
|
-
static addTextSourceType(builder, textSourceType) {
|
|
38
|
-
builder.addFieldInt8(0, textSourceType, null);
|
|
39
|
-
}
|
|
40
|
-
static addSourceType(builder, sourceType) {
|
|
41
|
-
builder.addFieldInt8(1, sourceType, DucTextDynamicSourceData.NONE);
|
|
42
|
-
}
|
|
43
|
-
static addSource(builder, sourceOffset) {
|
|
44
|
-
builder.addFieldOffset(2, sourceOffset, 0);
|
|
45
|
-
}
|
|
46
|
-
static endDucTextDynamicSource(builder) {
|
|
47
|
-
const offset = builder.endObject();
|
|
48
|
-
return offset;
|
|
49
|
-
}
|
|
50
|
-
static createDucTextDynamicSource(builder, textSourceType, sourceType, sourceOffset) {
|
|
51
|
-
DucTextDynamicSource.startDucTextDynamicSource(builder);
|
|
52
|
-
if (textSourceType !== null)
|
|
53
|
-
DucTextDynamicSource.addTextSourceType(builder, textSourceType);
|
|
54
|
-
DucTextDynamicSource.addSourceType(builder, sourceType);
|
|
55
|
-
DucTextDynamicSource.addSource(builder, sourceOffset);
|
|
56
|
-
return DucTextDynamicSource.endDucTextDynamicSource(builder);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
import { DucTextDynamicPart } from '../duc/duc-text-dynamic-part';
|
|
3
|
-
import { DucTextStyle } from '../duc/duc-text-style';
|
|
4
|
-
import { _DucElementBase } from '../duc/duc-element-base';
|
|
5
|
-
export declare class DucTextElement {
|
|
6
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
7
|
-
bb_pos: number;
|
|
8
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextElement;
|
|
9
|
-
static getRootAsDucTextElement(bb: flatbuffers.ByteBuffer, obj?: DucTextElement): DucTextElement;
|
|
10
|
-
static getSizePrefixedRootAsDucTextElement(bb: flatbuffers.ByteBuffer, obj?: DucTextElement): DucTextElement;
|
|
11
|
-
base(obj?: _DucElementBase): _DucElementBase | null;
|
|
12
|
-
style(obj?: DucTextStyle): DucTextStyle | null;
|
|
13
|
-
text(): string | null;
|
|
14
|
-
text(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
15
|
-
dynamic(index: number, obj?: DucTextDynamicPart): DucTextDynamicPart | null;
|
|
16
|
-
dynamicLength(): number;
|
|
17
|
-
autoResize(): boolean;
|
|
18
|
-
containerId(): string | null;
|
|
19
|
-
containerId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
20
|
-
originalText(): string | null;
|
|
21
|
-
originalText(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
22
|
-
static startDucTextElement(builder: flatbuffers.Builder): void;
|
|
23
|
-
static addBase(builder: flatbuffers.Builder, baseOffset: flatbuffers.Offset): void;
|
|
24
|
-
static addStyle(builder: flatbuffers.Builder, styleOffset: flatbuffers.Offset): void;
|
|
25
|
-
static addText(builder: flatbuffers.Builder, textOffset: flatbuffers.Offset): void;
|
|
26
|
-
static addDynamic(builder: flatbuffers.Builder, dynamicOffset: flatbuffers.Offset): void;
|
|
27
|
-
static createDynamicVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
|
|
28
|
-
static startDynamicVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
29
|
-
static addAutoResize(builder: flatbuffers.Builder, autoResize: boolean): void;
|
|
30
|
-
static addContainerId(builder: flatbuffers.Builder, containerIdOffset: flatbuffers.Offset): void;
|
|
31
|
-
static addOriginalText(builder: flatbuffers.Builder, originalTextOffset: flatbuffers.Offset): void;
|
|
32
|
-
static endDucTextElement(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
33
|
-
}
|
|
@@ -1,94 +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 { DucTextDynamicPart } from '../duc/duc-text-dynamic-part';
|
|
5
|
-
import { DucTextStyle } from '../duc/duc-text-style';
|
|
6
|
-
import { _DucElementBase } from '../duc/duc-element-base';
|
|
7
|
-
export class DucTextElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.bb = null;
|
|
10
|
-
this.bb_pos = 0;
|
|
11
|
-
}
|
|
12
|
-
__init(i, bb) {
|
|
13
|
-
this.bb_pos = i;
|
|
14
|
-
this.bb = bb;
|
|
15
|
-
return this;
|
|
16
|
-
}
|
|
17
|
-
static getRootAsDucTextElement(bb, obj) {
|
|
18
|
-
return (obj || new DucTextElement()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
19
|
-
}
|
|
20
|
-
static getSizePrefixedRootAsDucTextElement(bb, obj) {
|
|
21
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
22
|
-
return (obj || new DucTextElement()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
23
|
-
}
|
|
24
|
-
base(obj) {
|
|
25
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
26
|
-
return offset ? (obj || new _DucElementBase()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
27
|
-
}
|
|
28
|
-
style(obj) {
|
|
29
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
30
|
-
return offset ? (obj || new DucTextStyle()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
31
|
-
}
|
|
32
|
-
text(optionalEncoding) {
|
|
33
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
34
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
35
|
-
}
|
|
36
|
-
dynamic(index, obj) {
|
|
37
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
38
|
-
return offset ? (obj || new DucTextDynamicPart()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
|
|
39
|
-
}
|
|
40
|
-
dynamicLength() {
|
|
41
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
42
|
-
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
43
|
-
}
|
|
44
|
-
autoResize() {
|
|
45
|
-
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
46
|
-
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
47
|
-
}
|
|
48
|
-
containerId(optionalEncoding) {
|
|
49
|
-
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
50
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
51
|
-
}
|
|
52
|
-
originalText(optionalEncoding) {
|
|
53
|
-
const offset = this.bb.__offset(this.bb_pos, 16);
|
|
54
|
-
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
55
|
-
}
|
|
56
|
-
static startDucTextElement(builder) {
|
|
57
|
-
builder.startObject(7);
|
|
58
|
-
}
|
|
59
|
-
static addBase(builder, baseOffset) {
|
|
60
|
-
builder.addFieldOffset(0, baseOffset, 0);
|
|
61
|
-
}
|
|
62
|
-
static addStyle(builder, styleOffset) {
|
|
63
|
-
builder.addFieldOffset(1, styleOffset, 0);
|
|
64
|
-
}
|
|
65
|
-
static addText(builder, textOffset) {
|
|
66
|
-
builder.addFieldOffset(2, textOffset, 0);
|
|
67
|
-
}
|
|
68
|
-
static addDynamic(builder, dynamicOffset) {
|
|
69
|
-
builder.addFieldOffset(3, dynamicOffset, 0);
|
|
70
|
-
}
|
|
71
|
-
static createDynamicVector(builder, data) {
|
|
72
|
-
builder.startVector(4, data.length, 4);
|
|
73
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
74
|
-
builder.addOffset(data[i]);
|
|
75
|
-
}
|
|
76
|
-
return builder.endVector();
|
|
77
|
-
}
|
|
78
|
-
static startDynamicVector(builder, numElems) {
|
|
79
|
-
builder.startVector(4, numElems, 4);
|
|
80
|
-
}
|
|
81
|
-
static addAutoResize(builder, autoResize) {
|
|
82
|
-
builder.addFieldInt8(4, +autoResize, +false);
|
|
83
|
-
}
|
|
84
|
-
static addContainerId(builder, containerIdOffset) {
|
|
85
|
-
builder.addFieldOffset(5, containerIdOffset, 0);
|
|
86
|
-
}
|
|
87
|
-
static addOriginalText(builder, originalTextOffset) {
|
|
88
|
-
builder.addFieldOffset(6, originalTextOffset, 0);
|
|
89
|
-
}
|
|
90
|
-
static endDucTextElement(builder) {
|
|
91
|
-
const offset = builder.endObject();
|
|
92
|
-
return offset;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
import { LineSpacing } from '../duc/line-spacing';
|
|
3
|
-
import { TEXT_ALIGN } from '../duc/text-align';
|
|
4
|
-
import { VERTICAL_ALIGN } from '../duc/vertical-align';
|
|
5
|
-
export declare class DucTextStyle {
|
|
6
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
7
|
-
bb_pos: number;
|
|
8
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DucTextStyle;
|
|
9
|
-
static getRootAsDucTextStyle(bb: flatbuffers.ByteBuffer, obj?: DucTextStyle): DucTextStyle;
|
|
10
|
-
static getSizePrefixedRootAsDucTextStyle(bb: flatbuffers.ByteBuffer, obj?: DucTextStyle): DucTextStyle;
|
|
11
|
-
isLtr(): boolean;
|
|
12
|
-
fontFamily(): string | null;
|
|
13
|
-
fontFamily(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
14
|
-
bigFontFamily(): string | null;
|
|
15
|
-
bigFontFamily(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
16
|
-
textAlign(): TEXT_ALIGN | null;
|
|
17
|
-
verticalAlign(): VERTICAL_ALIGN | null;
|
|
18
|
-
lineHeight(): number;
|
|
19
|
-
lineSpacing(obj?: LineSpacing): LineSpacing | null;
|
|
20
|
-
obliqueAngle(): number;
|
|
21
|
-
fontSize(): number;
|
|
22
|
-
paperTextHeight(): number;
|
|
23
|
-
widthFactor(): number;
|
|
24
|
-
isUpsideDown(): boolean;
|
|
25
|
-
isBackwards(): boolean;
|
|
26
|
-
static startDucTextStyle(builder: flatbuffers.Builder): void;
|
|
27
|
-
static addIsLtr(builder: flatbuffers.Builder, isLtr: boolean): void;
|
|
28
|
-
static addFontFamily(builder: flatbuffers.Builder, fontFamilyOffset: flatbuffers.Offset): void;
|
|
29
|
-
static addBigFontFamily(builder: flatbuffers.Builder, bigFontFamilyOffset: flatbuffers.Offset): void;
|
|
30
|
-
static addTextAlign(builder: flatbuffers.Builder, textAlign: TEXT_ALIGN): void;
|
|
31
|
-
static addVerticalAlign(builder: flatbuffers.Builder, verticalAlign: VERTICAL_ALIGN): void;
|
|
32
|
-
static addLineHeight(builder: flatbuffers.Builder, lineHeight: number): void;
|
|
33
|
-
static addLineSpacing(builder: flatbuffers.Builder, lineSpacingOffset: flatbuffers.Offset): void;
|
|
34
|
-
static addObliqueAngle(builder: flatbuffers.Builder, obliqueAngle: number): void;
|
|
35
|
-
static addFontSize(builder: flatbuffers.Builder, fontSize: number): void;
|
|
36
|
-
static addPaperTextHeight(builder: flatbuffers.Builder, paperTextHeight: number): void;
|
|
37
|
-
static addWidthFactor(builder: flatbuffers.Builder, widthFactor: number): void;
|
|
38
|
-
static addIsUpsideDown(builder: flatbuffers.Builder, isUpsideDown: boolean): void;
|
|
39
|
-
static addIsBackwards(builder: flatbuffers.Builder, isBackwards: boolean): void;
|
|
40
|
-
static endDucTextStyle(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
41
|
-
}
|