ducjs 2.3.0 → 3.0.0
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 +2 -2
- package/dist/enums.d.ts +135 -0
- package/dist/enums.js +155 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +8 -4
- package/dist/lazy-files.d.ts +44 -0
- package/dist/lazy-files.js +129 -0
- package/dist/parse.d.ts +21 -55
- package/dist/parse.js +58 -1445
- 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 +117 -127
- package/dist/restore/restoreElements.d.ts +1 -1
- package/dist/restore/restoreElements.js +37 -494
- package/dist/serialize.d.ts +11 -4
- package/dist/serialize.js +58 -2545
- package/dist/technical/index.d.ts +0 -1
- package/dist/technical/index.js +0 -1
- package/dist/technical/scopes.d.ts +1 -1
- package/dist/technical/scopes.js +1 -1
- package/dist/transform.d.ts +12 -0
- package/dist/transform.js +442 -0
- package/dist/types/elements/index.d.ts +120 -693
- package/dist/types/elements/typeChecks.d.ts +6 -3
- package/dist/types/elements/typeChecks.js +9 -8
- package/dist/types/geometryTypes.d.ts +1 -1
- package/dist/types/index.d.ts +38 -305
- package/dist/utils/constants.d.ts +21 -100
- package/dist/utils/constants.js +29 -212
- package/dist/utils/elements/freedrawElement.d.ts +6 -0
- package/dist/utils/elements/freedrawElement.js +28 -11
- 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 +32 -52
- package/dist/utils/elements/textElement.d.ts +3 -3
- package/dist/utils/elements/textElement.js +44 -17
- 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 +5 -71
- 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 +2 -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 -22
- package/dist/flatbuffers/duc/document-grid-config.js +0 -73
- 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
package/dist/flatbuffers/duc.js
DELETED
|
@@ -1,236 +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
|
-
export { ANGULAR_UNITS_FORMAT } from './duc/angular-units-format';
|
|
4
|
-
export { AXIS } from './duc/axis';
|
|
5
|
-
export { AlternateUnits } from './duc/alternate-units';
|
|
6
|
-
export { AngularUnitSystem } from './duc/angular-unit-system';
|
|
7
|
-
export { BEZIER_MIRRORING } from './duc/bezier-mirroring';
|
|
8
|
-
export { BLENDING } from './duc/blending';
|
|
9
|
-
export { BLOCK_ATTACHMENT } from './duc/block-attachment';
|
|
10
|
-
export { BOOLEAN_OPERATION } from './duc/boolean-operation';
|
|
11
|
-
export { BoundElement } from './duc/bound-element';
|
|
12
|
-
export { COLUMN_TYPE } from './duc/column-type';
|
|
13
|
-
export { Checkpoint } from './duc/checkpoint';
|
|
14
|
-
export { ColumnLayout } from './duc/column-layout';
|
|
15
|
-
export { CustomHatchPattern } from './duc/custom-hatch-pattern';
|
|
16
|
-
export { DATUM_BRACKET_STYLE } from './duc/datum-bracket-style';
|
|
17
|
-
export { DATUM_TARGET_TYPE } from './duc/datum-target-type';
|
|
18
|
-
export { DECIMAL_SEPARATOR } from './duc/decimal-separator';
|
|
19
|
-
export { DIMENSION_FIT_RULE } from './duc/dimension-fit-rule';
|
|
20
|
-
export { DIMENSION_TEXT_PLACEMENT } from './duc/dimension-text-placement';
|
|
21
|
-
export { DIMENSION_TYPE } from './duc/dimension-type';
|
|
22
|
-
export { DIMENSION_UNITS_FORMAT } from './duc/dimension-units-format';
|
|
23
|
-
export { DOCUMENT_GRID_ALIGN_ITEMS } from './duc/document-grid-align-items';
|
|
24
|
-
export { DatumReference } from './duc/datum-reference';
|
|
25
|
-
export { Delta } from './duc/delta';
|
|
26
|
-
export { DictionaryEntry } from './duc/dictionary-entry';
|
|
27
|
-
export { DimensionBaselineData } from './duc/dimension-baseline-data';
|
|
28
|
-
export { DimensionBindings } from './duc/dimension-bindings';
|
|
29
|
-
export { DimensionContinueData } from './duc/dimension-continue-data';
|
|
30
|
-
export { DimensionDefinitionPoints } from './duc/dimension-definition-points';
|
|
31
|
-
export { DimensionExtLineStyle } from './duc/dimension-ext-line-style';
|
|
32
|
-
export { DimensionFitStyle } from './duc/dimension-fit-style';
|
|
33
|
-
export { DimensionLineStyle } from './duc/dimension-line-style';
|
|
34
|
-
export { DimensionSymbolStyle } from './duc/dimension-symbol-style';
|
|
35
|
-
export { DimensionToleranceStyle } from './duc/dimension-tolerance-style';
|
|
36
|
-
export { DimensionValidationRules } from './duc/dimension-validation-rules';
|
|
37
|
-
export { DocumentGridConfig } from './duc/document-grid-config';
|
|
38
|
-
export { DucArrowElement } from './duc/duc-arrow-element';
|
|
39
|
-
export { DucBlock } from './duc/duc-block';
|
|
40
|
-
export { DucBlockAttributeDefinition } from './duc/duc-block-attribute-definition';
|
|
41
|
-
export { DucBlockAttributeDefinitionEntry } from './duc/duc-block-attribute-definition-entry';
|
|
42
|
-
export { DucBlockCollection } from './duc/duc-block-collection';
|
|
43
|
-
export { DucBlockCollectionEntry } from './duc/duc-block-collection-entry';
|
|
44
|
-
export { DucBlockDuplicationArray } from './duc/duc-block-duplication-array';
|
|
45
|
-
export { DucBlockInstance } from './duc/duc-block-instance';
|
|
46
|
-
export { DucBlockInstanceElement } from './duc/duc-block-instance-element';
|
|
47
|
-
export { DucBlockMetadata } from './duc/duc-block-metadata';
|
|
48
|
-
export { DucCommonStyle } from './duc/duc-common-style';
|
|
49
|
-
export { DucDimensionElement } from './duc/duc-dimension-element';
|
|
50
|
-
export { DucDimensionStyle } from './duc/duc-dimension-style';
|
|
51
|
-
export { DucDocElement } from './duc/duc-doc-element';
|
|
52
|
-
export { DucDocStyle } from './duc/duc-doc-style';
|
|
53
|
-
export { DucEllipseElement } from './duc/duc-ellipse-element';
|
|
54
|
-
export { DucEmbeddableElement } from './duc/duc-embeddable-element';
|
|
55
|
-
export { DucExternalFileData } from './duc/duc-external-file-data';
|
|
56
|
-
export { DucExternalFileEntry } from './duc/duc-external-file-entry';
|
|
57
|
-
export { DucFeatureControlFrameElement } from './duc/duc-feature-control-frame-element';
|
|
58
|
-
export { DucFeatureControlFrameStyle } from './duc/duc-feature-control-frame-style';
|
|
59
|
-
export { DucFrameElement } from './duc/duc-frame-element';
|
|
60
|
-
export { DucFreeDrawElement } from './duc/duc-free-draw-element';
|
|
61
|
-
export { DucFreeDrawEnds } from './duc/duc-free-draw-ends';
|
|
62
|
-
export { DucGlobalState } from './duc/duc-global-state';
|
|
63
|
-
export { DucGroup } from './duc/duc-group';
|
|
64
|
-
export { DucHatchStyle } from './duc/duc-hatch-style';
|
|
65
|
-
export { DucHead } from './duc/duc-head';
|
|
66
|
-
export { DucImageElement } from './duc/duc-image-element';
|
|
67
|
-
export { DucImageFilter } from './duc/duc-image-filter';
|
|
68
|
-
export { DucLayer } from './duc/duc-layer';
|
|
69
|
-
export { DucLayerOverrides } from './duc/duc-layer-overrides';
|
|
70
|
-
export { DucLeaderElement } from './duc/duc-leader-element';
|
|
71
|
-
export { DucLeaderStyle } from './duc/duc-leader-style';
|
|
72
|
-
export { DucLine } from './duc/duc-line';
|
|
73
|
-
export { DucLineReference } from './duc/duc-line-reference';
|
|
74
|
-
export { DucLinearElement } from './duc/duc-linear-element';
|
|
75
|
-
export { DucLocalState } from './duc/duc-local-state';
|
|
76
|
-
export { DucMermaidElement } from './duc/duc-mermaid-element';
|
|
77
|
-
export { DucModelElement } from './duc/duc-model-element';
|
|
78
|
-
export { DucParametricElement } from './duc/duc-parametric-element';
|
|
79
|
-
export { DucPath } from './duc/duc-path';
|
|
80
|
-
export { DucPdfElement } from './duc/duc-pdf-element';
|
|
81
|
-
export { DucPlotElement } from './duc/duc-plot-element';
|
|
82
|
-
export { DucPlotStyle } from './duc/duc-plot-style';
|
|
83
|
-
export { DucPoint } from './duc/duc-point';
|
|
84
|
-
export { DucPointBinding } from './duc/duc-point-binding';
|
|
85
|
-
export { DucPolygonElement } from './duc/duc-polygon-element';
|
|
86
|
-
export { DucRectangleElement } from './duc/duc-rectangle-element';
|
|
87
|
-
export { DucRegion } from './duc/duc-region';
|
|
88
|
-
export { DucStackLikeStyles } from './duc/duc-stack-like-styles';
|
|
89
|
-
export { DucTableAutoSize } from './duc/duc-table-auto-size';
|
|
90
|
-
export { DucTableCell } from './duc/duc-table-cell';
|
|
91
|
-
export { DucTableCellEntry } from './duc/duc-table-cell-entry';
|
|
92
|
-
export { DucTableCellSpan } from './duc/duc-table-cell-span';
|
|
93
|
-
export { DucTableCellStyle } from './duc/duc-table-cell-style';
|
|
94
|
-
export { DucTableColumn } from './duc/duc-table-column';
|
|
95
|
-
export { DucTableColumnEntry } from './duc/duc-table-column-entry';
|
|
96
|
-
export { DucTableElement } from './duc/duc-table-element';
|
|
97
|
-
export { DucTableRow } from './duc/duc-table-row';
|
|
98
|
-
export { DucTableRowEntry } from './duc/duc-table-row-entry';
|
|
99
|
-
export { DucTableStyle } from './duc/duc-table-style';
|
|
100
|
-
export { DucTextDynamicDictionarySource } from './duc/duc-text-dynamic-dictionary-source';
|
|
101
|
-
export { DucTextDynamicElementSource } from './duc/duc-text-dynamic-element-source';
|
|
102
|
-
export { DucTextDynamicPart } from './duc/duc-text-dynamic-part';
|
|
103
|
-
export { DucTextDynamicSource } from './duc/duc-text-dynamic-source';
|
|
104
|
-
export { DucTextDynamicSourceData } from './duc/duc-text-dynamic-source-data';
|
|
105
|
-
export { DucTextElement } from './duc/duc-text-element';
|
|
106
|
-
export { DucTextStyle } from './duc/duc-text-style';
|
|
107
|
-
export { DucUcs } from './duc/duc-ucs';
|
|
108
|
-
export { DucView } from './duc/duc-view';
|
|
109
|
-
export { DucViewportElement } from './duc/duc-viewport-element';
|
|
110
|
-
export { DucViewportStyle } from './duc/duc-viewport-style';
|
|
111
|
-
export { DucXRayElement } from './duc/duc-xray-element';
|
|
112
|
-
export { DucXRayStyle } from './duc/duc-xray-style';
|
|
113
|
-
export { DynamicSnapSettings } from './duc/dynamic-snap-settings';
|
|
114
|
-
export { ELEMENT_CONTENT_PREFERENCE } from './duc/element-content-preference';
|
|
115
|
-
export { Element } from './duc/element';
|
|
116
|
-
export { ElementBackground } from './duc/element-background';
|
|
117
|
-
export { ElementContentBase } from './duc/element-content-base';
|
|
118
|
-
export { ElementStroke } from './duc/element-stroke';
|
|
119
|
-
export { ElementWrapper } from './duc/element-wrapper';
|
|
120
|
-
export { ExportedDataState } from './duc/exported-data-state';
|
|
121
|
-
export { FCFBetweenModifier } from './duc/fcfbetween-modifier';
|
|
122
|
-
export { FCFDatumDefinition } from './duc/fcfdatum-definition';
|
|
123
|
-
export { FCFDatumStyle } from './duc/fcfdatum-style';
|
|
124
|
-
export { FCFFrameModifiers } from './duc/fcfframe-modifiers';
|
|
125
|
-
export { FCFLayoutStyle } from './duc/fcflayout-style';
|
|
126
|
-
export { FCFProjectedZoneModifier } from './duc/fcfprojected-zone-modifier';
|
|
127
|
-
export { FCFSegmentRow } from './duc/fcfsegment-row';
|
|
128
|
-
export { FCFSymbolStyle } from './duc/fcfsymbol-style';
|
|
129
|
-
export { FEATURE_MODIFIER } from './duc/feature-modifier';
|
|
130
|
-
export { FeatureControlFrameSegment } from './duc/feature-control-frame-segment';
|
|
131
|
-
export { GDT_SYMBOL } from './duc/gdt-symbol';
|
|
132
|
-
export { GRID_DISPLAY_TYPE } from './duc/grid-display-type';
|
|
133
|
-
export { GRID_TYPE } from './duc/grid-type';
|
|
134
|
-
export { GeometricPoint } from './duc/geometric-point';
|
|
135
|
-
export { GridSettings } from './duc/grid-settings';
|
|
136
|
-
export { GridStyle } from './duc/grid-style';
|
|
137
|
-
export { HANDLE_TYPE } from './duc/handle-type';
|
|
138
|
-
export { HATCH_STYLE } from './duc/hatch-style';
|
|
139
|
-
export { HatchPatternLine } from './duc/hatch-pattern-line';
|
|
140
|
-
export { IMAGE_STATUS } from './duc/image-status';
|
|
141
|
-
export { IdentifiedCommonStyle } from './duc/identified-common-style';
|
|
142
|
-
export { IdentifiedDimensionStyle } from './duc/identified-dimension-style';
|
|
143
|
-
export { IdentifiedDocStyle } from './duc/identified-doc-style';
|
|
144
|
-
export { IdentifiedFCFStyle } from './duc/identified-fcfstyle';
|
|
145
|
-
export { IdentifiedGridSettings } from './duc/identified-grid-settings';
|
|
146
|
-
export { IdentifiedHatchStyle } from './duc/identified-hatch-style';
|
|
147
|
-
export { IdentifiedLeaderStyle } from './duc/identified-leader-style';
|
|
148
|
-
export { IdentifiedSnapSettings } from './duc/identified-snap-settings';
|
|
149
|
-
export { IdentifiedStackLikeStyle } from './duc/identified-stack-like-style';
|
|
150
|
-
export { IdentifiedTableStyle } from './duc/identified-table-style';
|
|
151
|
-
export { IdentifiedTextStyle } from './duc/identified-text-style';
|
|
152
|
-
export { IdentifiedUcs } from './duc/identified-ucs';
|
|
153
|
-
export { IdentifiedView } from './duc/identified-view';
|
|
154
|
-
export { IdentifiedViewportStyle } from './duc/identified-viewport-style';
|
|
155
|
-
export { IdentifiedXRayStyle } from './duc/identified-xray-style';
|
|
156
|
-
export { Identifier } from './duc/identifier';
|
|
157
|
-
export { ImageCrop } from './duc/image-crop';
|
|
158
|
-
export { IsometricGridSettings } from './duc/isometric-grid-settings';
|
|
159
|
-
export { JSONPatchOperation } from './duc/jsonpatch-operation';
|
|
160
|
-
export { LEADER_CONTENT_TYPE } from './duc/leader-content-type';
|
|
161
|
-
export { LINE_HEAD } from './duc/line-head';
|
|
162
|
-
export { LINE_SPACING_TYPE } from './duc/line-spacing-type';
|
|
163
|
-
export { LayerSnapFilters } from './duc/layer-snap-filters';
|
|
164
|
-
export { LayerValidationRules } from './duc/layer-validation-rules';
|
|
165
|
-
export { LeaderBlockContent } from './duc/leader-block-content';
|
|
166
|
-
export { LeaderContent } from './duc/leader-content';
|
|
167
|
-
export { LeaderContentData } from './duc/leader-content-data';
|
|
168
|
-
export { LeaderTextBlockContent } from './duc/leader-text-block-content';
|
|
169
|
-
export { LineSpacing } from './duc/line-spacing';
|
|
170
|
-
export { LinearUnitSystem } from './duc/linear-unit-system';
|
|
171
|
-
export { MARK_ELLIPSE_CENTER } from './duc/mark-ellipse-center';
|
|
172
|
-
export { MATERIAL_CONDITION } from './duc/material-condition';
|
|
173
|
-
export { Margins } from './duc/margins';
|
|
174
|
-
export { OBJECT_SNAP_MODE } from './duc/object-snap-mode';
|
|
175
|
-
export { PARAMETRIC_SOURCE_TYPE } from './duc/parametric-source-type';
|
|
176
|
-
export { PRUNING_LEVEL } from './duc/pruning-level';
|
|
177
|
-
export { ParagraphFormatting } from './duc/paragraph-formatting';
|
|
178
|
-
export { ParametricSource } from './duc/parametric-source';
|
|
179
|
-
export { PlotLayout } from './duc/plot-layout';
|
|
180
|
-
export { PointBindingPoint } from './duc/point-binding-point';
|
|
181
|
-
export { PolarGridSettings } from './duc/polar-grid-settings';
|
|
182
|
-
export { PolarTrackingSettings } from './duc/polar-tracking-settings';
|
|
183
|
-
export { PrimaryUnits } from './duc/primary-units';
|
|
184
|
-
export { SNAP_MARKER_SHAPE } from './duc/snap-marker-shape';
|
|
185
|
-
export { SNAP_MODE } from './duc/snap-mode';
|
|
186
|
-
export { SNAP_OVERRIDE_BEHAVIOR } from './duc/snap-override-behavior';
|
|
187
|
-
export { STACKED_TEXT_ALIGN } from './duc/stacked-text-align';
|
|
188
|
-
export { STROKE_CAP } from './duc/stroke-cap';
|
|
189
|
-
export { STROKE_JOIN } from './duc/stroke-join';
|
|
190
|
-
export { STROKE_PLACEMENT } from './duc/stroke-placement';
|
|
191
|
-
export { STROKE_PREFERENCE } from './duc/stroke-preference';
|
|
192
|
-
export { STROKE_SIDE_PREFERENCE } from './duc/stroke-side-preference';
|
|
193
|
-
export { STROKE_WIDTH } from './duc/stroke-width';
|
|
194
|
-
export { SnapMarkerSettings } from './duc/snap-marker-settings';
|
|
195
|
-
export { SnapMarkerStyle } from './duc/snap-marker-style';
|
|
196
|
-
export { SnapMarkerStyleEntry } from './duc/snap-marker-style-entry';
|
|
197
|
-
export { SnapOverride } from './duc/snap-override';
|
|
198
|
-
export { SnapSettings } from './duc/snap-settings';
|
|
199
|
-
export { StackFormat } from './duc/stack-format';
|
|
200
|
-
export { StackFormatProperties } from './duc/stack-format-properties';
|
|
201
|
-
export { Standard } from './duc/standard';
|
|
202
|
-
export { StandardOverrides } from './duc/standard-overrides';
|
|
203
|
-
export { StandardStyles } from './duc/standard-styles';
|
|
204
|
-
export { StandardUnits } from './duc/standard-units';
|
|
205
|
-
export { StandardValidation } from './duc/standard-validation';
|
|
206
|
-
export { StandardViewSettings } from './duc/standard-view-settings';
|
|
207
|
-
export { StringValueEntry } from './duc/string-value-entry';
|
|
208
|
-
export { StrokeSides } from './duc/stroke-sides';
|
|
209
|
-
export { StrokeStyle } from './duc/stroke-style';
|
|
210
|
-
export { TABLE_CELL_ALIGNMENT } from './duc/table-cell-alignment';
|
|
211
|
-
export { TABLE_FLOW_DIRECTION } from './duc/table-flow-direction';
|
|
212
|
-
export { TEXT_ALIGN } from './duc/text-align';
|
|
213
|
-
export { TEXT_FIELD_SOURCE_PROPERTY } from './duc/text-field-source-property';
|
|
214
|
-
export { TEXT_FIELD_SOURCE_TYPE } from './duc/text-field-source-type';
|
|
215
|
-
export { TEXT_FLOW_DIRECTION } from './duc/text-flow-direction';
|
|
216
|
-
export { TOLERANCE_DISPLAY } from './duc/tolerance-display';
|
|
217
|
-
export { TOLERANCE_TYPE } from './duc/tolerance-type';
|
|
218
|
-
export { TOLERANCE_ZONE_TYPE } from './duc/tolerance-zone-type';
|
|
219
|
-
export { TextColumn } from './duc/text-column';
|
|
220
|
-
export { TilingProperties } from './duc/tiling-properties';
|
|
221
|
-
export { ToleranceClause } from './duc/tolerance-clause';
|
|
222
|
-
export { TrackingLineStyle } from './duc/tracking-line-style';
|
|
223
|
-
export { UNIT_SYSTEM } from './duc/unit-system';
|
|
224
|
-
export { UnitPrecision } from './duc/unit-precision';
|
|
225
|
-
export { VERTICAL_ALIGN } from './duc/vertical-align';
|
|
226
|
-
export { VIEWPORT_SHADE_PLOT } from './duc/viewport-shade-plot';
|
|
227
|
-
export { VersionBase } from './duc/version-base';
|
|
228
|
-
export { VersionGraph } from './duc/version-graph';
|
|
229
|
-
export { VersionGraphMetadata } from './duc/version-graph-metadata';
|
|
230
|
-
export { YOUTUBE_STATES } from './duc/youtube-states';
|
|
231
|
-
export { _DucElementBase } from './duc/duc-element-base';
|
|
232
|
-
export { _DucElementStylesBase } from './duc/duc-element-styles-base';
|
|
233
|
-
export { _DucLinearElementBase } from './duc/duc-linear-element-base';
|
|
234
|
-
export { _DucStackBase } from './duc/duc-stack-base';
|
|
235
|
-
export { _DucStackElementBase } from './duc/duc-stack-element-base';
|
|
236
|
-
export { _UnitSystemBase } from './duc/unit-system-base';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Standard } from "../technical/standards";
|
|
2
|
-
import { Scope } from "../types";
|
|
3
|
-
export declare const restoreStandards: (standards: any, currentScope?: Scope) => Standard[];
|
|
4
|
-
/**
|
|
5
|
-
* Checks if a given id is present in the standards array.
|
|
6
|
-
* @returns true if found, false otherwise.
|
|
7
|
-
*/
|
|
8
|
-
export declare const isStandardIdPresent: (id: string, standards: Standard[]) => boolean;
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { ANGULAR_UNITS_FORMAT, DECIMAL_SEPARATOR, DIMENSION_UNITS_FORMAT, GRID_DISPLAY_TYPE, GRID_TYPE, UNIT_SYSTEM, } from "../flatbuffers/duc";
|
|
2
|
-
import { isValidBoolean, isValidEnumValue, isValidRadianValue, isValidString, restorePrecisionValue } from "./restoreDataState";
|
|
3
|
-
import { NEUTRAL_SCOPE, ScaleFactors } from "../technical";
|
|
4
|
-
import { PREDEFINED_STANDARDS } from "../technical/standards";
|
|
5
|
-
export const restoreStandards = (standards,
|
|
6
|
-
// Pass current scope to resolve precision values if needed
|
|
7
|
-
currentScope = NEUTRAL_SCOPE) => {
|
|
8
|
-
if (!Array.isArray(standards) || standards.length === 0) {
|
|
9
|
-
// If no standards are provided, return a default set.
|
|
10
|
-
return DEFAULT_STANDARDS;
|
|
11
|
-
}
|
|
12
|
-
const restoredStandards = [];
|
|
13
|
-
const restoredIds = new Set();
|
|
14
|
-
for (const s of standards) {
|
|
15
|
-
if (!s || typeof s !== 'object')
|
|
16
|
-
continue;
|
|
17
|
-
const identifier = restoreIdentifier(s);
|
|
18
|
-
if (!identifier || restoredIds.has(identifier.id)) {
|
|
19
|
-
continue; // Skip if no valid ID or if ID is a duplicate
|
|
20
|
-
}
|
|
21
|
-
restoredStandards.push(Object.assign(Object.assign({}, identifier), { version: isValidString(s.version, "1.0.0"), readonly: isValidBoolean(s.readonly, false), overrides: restoreStandardOverrides(s.overrides, currentScope), styles: restoreStandardStyles(s.styles, currentScope), viewSettings: restoreStandardViewSettings(s.viewSettings, currentScope), units: restoreStandardUnits(s.units, currentScope), validation: restoreStandardValidation(s.validation, currentScope) }));
|
|
22
|
-
restoredIds.add(identifier.id);
|
|
23
|
-
}
|
|
24
|
-
// Ensure the default standard is always present if it was missed
|
|
25
|
-
if (!restoredIds.has(PREDEFINED_STANDARDS.DUC)) {
|
|
26
|
-
restoredStandards.unshift(getDefaultStandard());
|
|
27
|
-
}
|
|
28
|
-
return restoredStandards;
|
|
29
|
-
};
|
|
30
|
-
// This would typically be defined in a central place with other default objects
|
|
31
|
-
const getDefaultStandard = () => ({
|
|
32
|
-
id: PREDEFINED_STANDARDS.DUC,
|
|
33
|
-
name: "DUC",
|
|
34
|
-
version: "1.0.0",
|
|
35
|
-
readonly: true,
|
|
36
|
-
overrides: null,
|
|
37
|
-
styles: null,
|
|
38
|
-
viewSettings: null,
|
|
39
|
-
units: null,
|
|
40
|
-
validation: null,
|
|
41
|
-
});
|
|
42
|
-
const DEFAULT_STANDARDS = [
|
|
43
|
-
getDefaultStandard(),
|
|
44
|
-
// Potentially add other predefined standards here if they should always be present
|
|
45
|
-
];
|
|
46
|
-
/**
|
|
47
|
-
* Checks if a given id is present in the standards array.
|
|
48
|
-
* @returns true if found, false otherwise.
|
|
49
|
-
*/
|
|
50
|
-
export const isStandardIdPresent = (id, standards) => {
|
|
51
|
-
if (!Array.isArray(standards) || typeof id !== "string")
|
|
52
|
-
return false;
|
|
53
|
-
return standards.some(s => typeof s.id === "string" && s.id === id);
|
|
54
|
-
};
|
|
55
|
-
// --- Helper Functions for Restoration ---
|
|
56
|
-
const restoreIdentifier = (ident) => {
|
|
57
|
-
if (!ident || typeof ident !== 'object' || !isValidString(ident.id)) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
id: ident.id,
|
|
62
|
-
name: isValidString(ident.name, ident.id),
|
|
63
|
-
description: isValidString(ident.description) || undefined,
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
const restoreStandardUnits = (units, currentScope) => {
|
|
67
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
68
|
-
if (!units || typeof units !== 'object')
|
|
69
|
-
return null;
|
|
70
|
-
const primary = units.primaryUnits;
|
|
71
|
-
const alternate = units.alternateUnits;
|
|
72
|
-
if (!primary || !alternate)
|
|
73
|
-
return null;
|
|
74
|
-
return {
|
|
75
|
-
primaryUnits: {
|
|
76
|
-
linear: {
|
|
77
|
-
format: isValidEnumValue((_a = primary.linear) === null || _a === void 0 ? void 0 : _a.format, DIMENSION_UNITS_FORMAT, DIMENSION_UNITS_FORMAT.DECIMAL),
|
|
78
|
-
system: isValidEnumValue((_b = primary.linear) === null || _b === void 0 ? void 0 : _b.system, UNIT_SYSTEM, UNIT_SYSTEM.METRIC),
|
|
79
|
-
precision: (_d = (_c = primary.linear) === null || _c === void 0 ? void 0 : _c.precision) !== null && _d !== void 0 ? _d : 2,
|
|
80
|
-
suppressLeadingZeros: isValidBoolean((_e = primary.linear) === null || _e === void 0 ? void 0 : _e.suppressLeadingZeros, false),
|
|
81
|
-
suppressTrailingZeros: isValidBoolean((_f = primary.linear) === null || _f === void 0 ? void 0 : _f.suppressTrailingZeros, false),
|
|
82
|
-
decimalSeparator: isValidEnumValue((_g = primary.linear) === null || _g === void 0 ? void 0 : _g.decimalSeparator, DECIMAL_SEPARATOR, DECIMAL_SEPARATOR.DOT),
|
|
83
|
-
suppressZeroFeet: isValidBoolean((_h = primary.linear) === null || _h === void 0 ? void 0 : _h.suppressZeroFeet, false),
|
|
84
|
-
suppressZeroInches: isValidBoolean((_j = primary.linear) === null || _j === void 0 ? void 0 : _j.suppressZeroInches, false),
|
|
85
|
-
},
|
|
86
|
-
angular: {
|
|
87
|
-
format: isValidEnumValue((_k = primary.angular) === null || _k === void 0 ? void 0 : _k.format, ANGULAR_UNITS_FORMAT, ANGULAR_UNITS_FORMAT.DECIMAL_DEGREES),
|
|
88
|
-
system: isValidEnumValue((_l = primary.angular) === null || _l === void 0 ? void 0 : _l.system, UNIT_SYSTEM, UNIT_SYSTEM.METRIC),
|
|
89
|
-
precision: (_o = (_m = primary.angular) === null || _m === void 0 ? void 0 : _m.precision) !== null && _o !== void 0 ? _o : 2,
|
|
90
|
-
suppressLeadingZeros: isValidBoolean((_p = primary.angular) === null || _p === void 0 ? void 0 : _p.suppressLeadingZeros, false),
|
|
91
|
-
suppressTrailingZeros: isValidBoolean((_q = primary.angular) === null || _q === void 0 ? void 0 : _q.suppressTrailingZeros, false),
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
alternateUnits: {
|
|
95
|
-
format: isValidEnumValue(alternate === null || alternate === void 0 ? void 0 : alternate.format, DIMENSION_UNITS_FORMAT, DIMENSION_UNITS_FORMAT.DECIMAL),
|
|
96
|
-
system: isValidEnumValue(alternate === null || alternate === void 0 ? void 0 : alternate.system, UNIT_SYSTEM, UNIT_SYSTEM.METRIC),
|
|
97
|
-
precision: (_r = alternate === null || alternate === void 0 ? void 0 : alternate.precision) !== null && _r !== void 0 ? _r : 2,
|
|
98
|
-
suppressLeadingZeros: isValidBoolean(alternate === null || alternate === void 0 ? void 0 : alternate.suppressLeadingZeros, false),
|
|
99
|
-
suppressTrailingZeros: isValidBoolean(alternate === null || alternate === void 0 ? void 0 : alternate.suppressTrailingZeros, false),
|
|
100
|
-
isVisible: isValidBoolean(alternate === null || alternate === void 0 ? void 0 : alternate.isVisible, false),
|
|
101
|
-
multiplier: typeof (alternate === null || alternate === void 0 ? void 0 : alternate.multiplier) === 'number' ? alternate.multiplier : 1,
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
const restoreStandardOverrides = (overrides, currentScope) => {
|
|
106
|
-
if (!overrides || typeof overrides !== 'object')
|
|
107
|
-
return null;
|
|
108
|
-
return {
|
|
109
|
-
mainScope: isValidEnumValue(overrides.mainScope, ScaleFactors, undefined),
|
|
110
|
-
elementsStrokeWidthOverride: overrides.elementsStrokeWidthOverride ? restorePrecisionValue(overrides.elementsStrokeWidthOverride, NEUTRAL_SCOPE, currentScope) : undefined,
|
|
111
|
-
commonStyleId: isValidString(overrides.commonStyleId) || undefined,
|
|
112
|
-
stackLikeStyleId: isValidString(overrides.stackLikeStyleId) || undefined,
|
|
113
|
-
textStyleId: isValidString(overrides.textStyleId) || undefined,
|
|
114
|
-
dimensionStyleId: isValidString(overrides.dimensionStyleId) || undefined,
|
|
115
|
-
leaderStyleId: isValidString(overrides.leaderStyleId) || undefined,
|
|
116
|
-
featureControlFrameStyleId: isValidString(overrides.featureControlFrameStyleId) || undefined,
|
|
117
|
-
tableStyleId: isValidString(overrides.tableStyleId) || undefined,
|
|
118
|
-
docStyleId: isValidString(overrides.docStyleId) || undefined,
|
|
119
|
-
viewportStyleId: isValidString(overrides.viewportStyleId) || undefined,
|
|
120
|
-
plotStyleId: isValidString(overrides.plotStyleId) || undefined,
|
|
121
|
-
hatchStyleId: isValidString(overrides.hatchStyleId) || undefined,
|
|
122
|
-
activeGridSettingsId: Array.isArray(overrides.activeGridSettingsId) ? overrides.activeGridSettingsId.map(String) : undefined,
|
|
123
|
-
activeSnapSettingsId: isValidString(overrides.activeSnapSettingsId) || undefined,
|
|
124
|
-
dashLineOverride: isValidString(overrides.dashLineOverride) || undefined,
|
|
125
|
-
unitPrecision: overrides.unitPrecision ? {
|
|
126
|
-
linear: typeof overrides.unitPrecision.linear === 'number' ? overrides.unitPrecision.linear : undefined,
|
|
127
|
-
angular: typeof overrides.unitPrecision.angular === 'number' ? overrides.unitPrecision.angular : undefined,
|
|
128
|
-
area: typeof overrides.unitPrecision.area === 'number' ? overrides.unitPrecision.area : undefined,
|
|
129
|
-
volume: typeof overrides.unitPrecision.volume === 'number' ? overrides.unitPrecision.volume : undefined,
|
|
130
|
-
} : undefined,
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
const restoreStandardStyles = (styles, currentScope) => {
|
|
134
|
-
if (!styles || typeof styles !== 'object')
|
|
135
|
-
return null;
|
|
136
|
-
// This is a simplified restoration. A full implementation would deeply restore each style object.
|
|
137
|
-
return {
|
|
138
|
-
commonStyles: styles.commonStyles || [],
|
|
139
|
-
stackLikeStyles: styles.stackLikeStyles || [],
|
|
140
|
-
textStyles: styles.textStyles || [],
|
|
141
|
-
dimensionStyles: styles.dimensionStyles || [],
|
|
142
|
-
leaderStyles: styles.leaderStyles || [],
|
|
143
|
-
featureControlFrameStyles: styles.featureControlFrameStyles || [],
|
|
144
|
-
tableStyles: styles.tableStyles || [],
|
|
145
|
-
docStyles: styles.docStyles || [],
|
|
146
|
-
viewportStyles: styles.viewportStyles || [],
|
|
147
|
-
hatchStyles: styles.hatchStyles || [],
|
|
148
|
-
xrayStyles: styles.xrayStyles || [],
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
const restoreGridSettings = (settings, currentScope) => {
|
|
152
|
-
if (!settings || typeof settings !== 'object')
|
|
153
|
-
return null;
|
|
154
|
-
const defaultGridStyle = { color: '#000000', opacity: 0.2, dashPattern: [] };
|
|
155
|
-
return {
|
|
156
|
-
type: isValidEnumValue(settings.type, GRID_TYPE, GRID_TYPE.RECTANGULAR),
|
|
157
|
-
readonly: isValidBoolean(settings.readonly, false),
|
|
158
|
-
displayType: isValidEnumValue(settings.displayType, GRID_DISPLAY_TYPE, GRID_DISPLAY_TYPE.LINES),
|
|
159
|
-
isAdaptive: isValidBoolean(settings.isAdaptive, true),
|
|
160
|
-
xSpacing: restorePrecisionValue(settings.xSpacing, NEUTRAL_SCOPE, currentScope, 100),
|
|
161
|
-
ySpacing: restorePrecisionValue(settings.ySpacing, NEUTRAL_SCOPE, currentScope, 100),
|
|
162
|
-
subdivisions: typeof settings.subdivisions === 'number' ? settings.subdivisions : 10,
|
|
163
|
-
origin: settings.origin || { x: 0, y: 0 },
|
|
164
|
-
rotation: isValidRadianValue(settings.rotation, 0),
|
|
165
|
-
followUCS: isValidBoolean(settings.followUCS, false),
|
|
166
|
-
majorStyle: settings.majorStyle || defaultGridStyle,
|
|
167
|
-
minorStyle: settings.minorStyle || defaultGridStyle,
|
|
168
|
-
showMinor: isValidBoolean(settings.showMinor, true),
|
|
169
|
-
minZoom: typeof settings.minZoom === 'number' ? settings.minZoom : 0.1,
|
|
170
|
-
maxZoom: typeof settings.maxZoom === 'number' ? settings.maxZoom : 100,
|
|
171
|
-
autoHide: isValidBoolean(settings.autoHide, true),
|
|
172
|
-
polarSettings: settings.polarSettings,
|
|
173
|
-
isometricSettings: settings.isometricSettings,
|
|
174
|
-
enableSnapping: isValidBoolean(settings.enableSnapping, true),
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
const restoreStandardViewSettings = (viewSettings, currentScope) => {
|
|
178
|
-
if (!viewSettings || typeof viewSettings !== 'object')
|
|
179
|
-
return null;
|
|
180
|
-
const restoredViews = (Array.isArray(viewSettings.views) ? viewSettings.views : [])
|
|
181
|
-
.map((v) => {
|
|
182
|
-
const identifier = restoreIdentifier(v);
|
|
183
|
-
// ... deep restore of DucView ...
|
|
184
|
-
return identifier ? Object.assign(Object.assign({}, identifier), v) : null; // simplified for now
|
|
185
|
-
}).filter(Boolean);
|
|
186
|
-
const restoredUcs = (Array.isArray(viewSettings.ucs) ? viewSettings.ucs : [])
|
|
187
|
-
.map((u) => {
|
|
188
|
-
const identifier = restoreIdentifier(u);
|
|
189
|
-
// ... deep restore of DucUcs ...
|
|
190
|
-
return identifier ? Object.assign(Object.assign({}, identifier), u) : null; // simplified for now
|
|
191
|
-
}).filter(Boolean);
|
|
192
|
-
const restoredGrids = (Array.isArray(viewSettings.gridSettings) ? viewSettings.gridSettings : [])
|
|
193
|
-
.map((g) => {
|
|
194
|
-
const identifier = restoreIdentifier(g);
|
|
195
|
-
const settings = restoreGridSettings(g, currentScope);
|
|
196
|
-
return (identifier && settings) ? Object.assign(Object.assign({}, identifier), settings) : null;
|
|
197
|
-
}).filter(Boolean);
|
|
198
|
-
const restoredSnaps = (Array.isArray(viewSettings.snapSettings) ? viewSettings.snapSettings : [])
|
|
199
|
-
.map((s) => {
|
|
200
|
-
const identifier = restoreIdentifier(s);
|
|
201
|
-
// ... deep restore of SnapSettings ...
|
|
202
|
-
return identifier ? Object.assign(Object.assign({}, identifier), s) : null; // simplified for now
|
|
203
|
-
}).filter(Boolean);
|
|
204
|
-
return {
|
|
205
|
-
views: restoredViews,
|
|
206
|
-
ucs: restoredUcs,
|
|
207
|
-
gridSettings: restoredGrids,
|
|
208
|
-
snapSettings: restoredSnaps,
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
const restoreStandardValidation = (validation, currentScope) => {
|
|
212
|
-
if (!validation || typeof validation !== 'object')
|
|
213
|
-
return null;
|
|
214
|
-
return {
|
|
215
|
-
dimensionRules: validation.dimensionRules ? {
|
|
216
|
-
minTextHeight: validation.dimensionRules.minTextHeight ? restorePrecisionValue(validation.dimensionRules.minTextHeight, NEUTRAL_SCOPE, currentScope) : undefined,
|
|
217
|
-
maxTextHeight: validation.dimensionRules.maxTextHeight ? restorePrecisionValue(validation.dimensionRules.maxTextHeight, NEUTRAL_SCOPE, currentScope) : undefined,
|
|
218
|
-
allowedPrecisions: Array.isArray(validation.dimensionRules.allowedPrecisions) ? validation.dimensionRules.allowedPrecisions.map(Number) : undefined,
|
|
219
|
-
} : undefined,
|
|
220
|
-
layerRules: validation.layerRules ? {
|
|
221
|
-
prohibitedLayerNames: Array.isArray(validation.layerRules.prohibitedLayerNames) ? validation.layerRules.prohibitedLayerNames.map(String) : undefined,
|
|
222
|
-
} : undefined,
|
|
223
|
-
};
|
|
224
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { ANGULAR_UNITS_FORMAT, DECIMAL_SEPARATOR, DIMENSION_UNITS_FORMAT } from "../flatbuffers/duc";
|
|
2
|
-
import { UnitSystem } from "./scopes";
|
|
3
|
-
import { DucCommonStyle, DucDimensionStyle, DucDocStyle, DucFeatureControlFrameStyle, DucHatchStyle, DucLeaderStyle, DucStackLikeStyles, DucTableStyle, DucTextStyle, DucUcs, DucView, DucViewportStyle, DucXRayStyle, GridSettings, Identifier, PrecisionValue, Scope, SnapSettings, StrokeStyle } from "../types";
|
|
4
|
-
import { ValueOf } from "../types/utility-types";
|
|
5
|
-
export declare const PREDEFINED_STANDARDS: {
|
|
6
|
-
readonly DUC: "duc";
|
|
7
|
-
readonly ISO_25300: "iso-25300-2013";
|
|
8
|
-
readonly ANSI_Y14_5: "ansi-y14.5-2018";
|
|
9
|
-
readonly DIN_406: "din-406-2017";
|
|
10
|
-
readonly JIS_B0001: "jis-b0001-2019";
|
|
11
|
-
readonly BS_8888: "bs-8888-2020";
|
|
12
|
-
readonly ABNT: "abnt";
|
|
13
|
-
readonly GB: "gb";
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* The Standard for the given technical design
|
|
17
|
-
* https://en.wikipedia.org/wiki/List_of_technical_standard_organizations
|
|
18
|
-
*/
|
|
19
|
-
export type Standard = Identifier & {
|
|
20
|
-
/** Version of the standard */
|
|
21
|
-
version: string;
|
|
22
|
-
/** Whether this is a built-in standard (read-only) */
|
|
23
|
-
readonly: boolean;
|
|
24
|
-
/** Overrides for all elements projected to this standard */
|
|
25
|
-
overrides: StandardOverrides | null;
|
|
26
|
-
/** Styles */
|
|
27
|
-
styles: StandardStyles | null;
|
|
28
|
-
/** Views and canvas interaction settings */
|
|
29
|
-
viewSettings: StandardViewSettings | null;
|
|
30
|
-
/** Units */
|
|
31
|
-
units: StandardUnits | null;
|
|
32
|
-
/** Validation rules */
|
|
33
|
-
validation: StandardValidation | null;
|
|
34
|
-
};
|
|
35
|
-
export type DimensionUnitsFormat = ValueOf<typeof DIMENSION_UNITS_FORMAT>;
|
|
36
|
-
export type AngularUnitsFormat = ValueOf<typeof ANGULAR_UNITS_FORMAT>;
|
|
37
|
-
export type DecimalSeparator = ValueOf<typeof DECIMAL_SEPARATOR>;
|
|
38
|
-
export type _UnitSystemBase<T extends AngularUnitsFormat | DimensionUnitsFormat> = {
|
|
39
|
-
/** Unit format */
|
|
40
|
-
format: T;
|
|
41
|
-
/** Unit system */
|
|
42
|
-
system: UnitSystem;
|
|
43
|
-
/** Precision (decimal places) */
|
|
44
|
-
precision: number;
|
|
45
|
-
/** Suppress leading zeros */
|
|
46
|
-
suppressLeadingZeros: boolean;
|
|
47
|
-
/** Suppress trailing zeros */
|
|
48
|
-
suppressTrailingZeros: boolean;
|
|
49
|
-
};
|
|
50
|
-
export type StandardUnits = {
|
|
51
|
-
primaryUnits: {
|
|
52
|
-
/** Linear units */
|
|
53
|
-
linear: _UnitSystemBase<DimensionUnitsFormat> & {
|
|
54
|
-
/** Decimal separator character */
|
|
55
|
-
decimalSeparator: DecimalSeparator;
|
|
56
|
-
/** Suppress zero feet */
|
|
57
|
-
suppressZeroFeet: boolean;
|
|
58
|
-
/** Suppress zero inches */
|
|
59
|
-
suppressZeroInches: boolean;
|
|
60
|
-
};
|
|
61
|
-
/** Angular units */
|
|
62
|
-
angular: _UnitSystemBase<AngularUnitsFormat>;
|
|
63
|
-
};
|
|
64
|
-
alternateUnits: _UnitSystemBase<DimensionUnitsFormat> & {
|
|
65
|
-
/** Whether to display alternate units */
|
|
66
|
-
isVisible: boolean;
|
|
67
|
-
/** Multiplier for alternate units */
|
|
68
|
-
multiplier: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export type StandardOverrides = {
|
|
72
|
-
mainScope?: Scope;
|
|
73
|
-
elementsStrokeWidthOverride?: PrecisionValue;
|
|
74
|
-
commonStyleId?: Identifier["id"];
|
|
75
|
-
stackLikeStyleId?: Identifier["id"];
|
|
76
|
-
textStyleId?: Identifier["id"];
|
|
77
|
-
dimensionStyleId?: Identifier["id"];
|
|
78
|
-
leaderStyleId?: Identifier["id"];
|
|
79
|
-
featureControlFrameStyleId?: Identifier["id"];
|
|
80
|
-
tableStyleId?: Identifier["id"];
|
|
81
|
-
docStyleId?: Identifier["id"];
|
|
82
|
-
viewportStyleId?: Identifier["id"];
|
|
83
|
-
plotStyleId?: Identifier["id"];
|
|
84
|
-
hatchStyleId?: Identifier["id"];
|
|
85
|
-
activeGridSettingsId?: Identifier["id"][];
|
|
86
|
-
activeSnapSettingsId?: Identifier["id"];
|
|
87
|
-
dashLineOverride?: StrokeStyle["dashLineOverride"];
|
|
88
|
-
/** Default precision for various dimension types */
|
|
89
|
-
unitPrecision?: {
|
|
90
|
-
linear?: number;
|
|
91
|
-
angular?: number;
|
|
92
|
-
area?: number;
|
|
93
|
-
volume?: number;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
export type StandardStyles = {
|
|
97
|
-
commonStyles: Array<Identifier & DucCommonStyle>;
|
|
98
|
-
stackLikeStyles: Array<Identifier & DucStackLikeStyles>;
|
|
99
|
-
textStyles: Array<Identifier & DucTextStyle>;
|
|
100
|
-
dimensionStyles: Array<Identifier & DucDimensionStyle>;
|
|
101
|
-
leaderStyles: Array<Identifier & DucLeaderStyle>;
|
|
102
|
-
featureControlFrameStyles: Array<Identifier & DucFeatureControlFrameStyle>;
|
|
103
|
-
tableStyles: Array<Identifier & DucTableStyle>;
|
|
104
|
-
docStyles: Array<Identifier & DucDocStyle>;
|
|
105
|
-
viewportStyles: Array<Identifier & DucViewportStyle>;
|
|
106
|
-
hatchStyles: Array<Identifier & DucHatchStyle>;
|
|
107
|
-
xrayStyles: Array<Identifier & DucXRayStyle>;
|
|
108
|
-
};
|
|
109
|
-
export type StandardViewSettings = {
|
|
110
|
-
views: Array<Identifier & DucView>;
|
|
111
|
-
ucs: Array<Identifier & DucUcs>;
|
|
112
|
-
gridSettings: Array<Identifier & GridSettings>;
|
|
113
|
-
snapSettings: Array<Identifier & SnapSettings>;
|
|
114
|
-
};
|
|
115
|
-
export type StandardValidation = {
|
|
116
|
-
dimensionRules?: {
|
|
117
|
-
minTextHeight?: PrecisionValue;
|
|
118
|
-
maxTextHeight?: PrecisionValue;
|
|
119
|
-
allowedPrecisions?: number[];
|
|
120
|
-
};
|
|
121
|
-
layerRules?: {
|
|
122
|
-
prohibitedLayerNames?: string[];
|
|
123
|
-
};
|
|
124
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const PREDEFINED_STANDARDS = {
|
|
2
|
-
DUC: "duc", // DUC (default)
|
|
3
|
-
ISO_25300: "iso-25300-2013", // International Organization for Standardization
|
|
4
|
-
ANSI_Y14_5: "ansi-y14.5-2018", // American National Standards Institute
|
|
5
|
-
DIN_406: "din-406-2017", // German Institute for Standardization
|
|
6
|
-
JIS_B0001: "jis-b0001-2019", // Japanese Industrial Standards
|
|
7
|
-
BS_8888: "bs-8888-2020", // British Standards Institution
|
|
8
|
-
ABNT: "abnt", // Brazilian Association of Technical Standards
|
|
9
|
-
GB: "gb", // Chinese National Standards
|
|
10
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AnnotationScale, ViewportScale } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* Utility functions to convert between the two scales
|
|
4
|
-
*/
|
|
5
|
-
export declare const viewportToAnnotationScale: (viewportScale: ViewportScale) => AnnotationScale;
|
|
6
|
-
export declare const annotationToViewportScale: (annotationScale: AnnotationScale) => ViewportScale;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility functions to convert between the two scales
|
|
3
|
-
*/
|
|
4
|
-
export const viewportToAnnotationScale = (viewportScale) => {
|
|
5
|
-
return (1 / viewportScale);
|
|
6
|
-
};
|
|
7
|
-
export const annotationToViewportScale = (annotationScale) => {
|
|
8
|
-
return (1 / annotationScale);
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GridSettings, Scope } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* Factory functions for common grid types
|
|
4
|
-
*/
|
|
5
|
-
export declare const createRectangularGrid: (spacing: number, name: string, scope: Scope) => GridSettings;
|
|
6
|
-
export declare const createIsometricGrid: (spacing: number, name: string, scope: Scope) => GridSettings;
|
|
7
|
-
export declare const createPolarGrid: (radialSpacing: number, divisions: number, name: string, scope: Scope) => GridSettings;
|