ea 0.6.150 → 0.6.151
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.
- checksums.yaml +4 -4
- data/LICENSE.md +33 -0
- data/README.adoc +13 -5
- data/lib/ea/cli/command/base.rb +3 -3
- data/lib/ea/qea/database.rb +7 -0
- data/lib/ea/qea/factory/association_builder.rb +1 -1
- data/lib/ea/qea/factory/association_transformer.rb +1 -1
- data/lib/ea/qea/factory/attribute_tag_transformer.rb +2 -2
- data/lib/ea/qea/factory/attribute_transformer.rb +4 -9
- data/lib/ea/qea/factory/base_transformer.rb +22 -14
- data/lib/ea/qea/factory/class_transformer.rb +1 -1
- data/lib/ea/qea/factory/data_type_transformer.rb +1 -1
- data/lib/ea/qea/factory/diagram_transformer.rb +1 -1
- data/lib/ea/qea/factory/enum_transformer.rb +2 -2
- data/lib/ea/qea/factory/generalization_transformer.rb +1 -1
- data/lib/ea/qea/factory/instance_transformer.rb +1 -1
- data/lib/ea/qea/factory/object_property_transformer.rb +2 -2
- data/lib/ea/qea/factory/operation_transformer.rb +1 -1
- data/lib/ea/qea/infrastructure/database_connection.rb +71 -1
- data/lib/ea/qea/infrastructure/table_reader.rb +33 -14
- data/lib/ea/qea/services/database_loader.rb +22 -6
- data/lib/ea/query/builder.rb +1 -1
- data/lib/ea/rtf.rb +98 -0
- data/lib/ea/sources/qea/annotation_builder.rb +1 -1
- data/lib/ea/svg/ea_emitter/text_renderer.rb +28 -10
- data/lib/ea/version.rb +1 -1
- data/lib/ea/xmi/liquid_drops/klass_drop.rb +5 -0
- data/lib/ea/xmi/lookup_service.rb +40 -3
- data/lib/ea/xmi/parser.rb +3 -2
- data/lib/ea.rb +1 -0
- metadata +5 -396
- data/CLAUDE.md +0 -153
- data/Rakefile +0 -23
- data/TODO.complete/01-t-xref-parsing.md +0 -91
- data/TODO.complete/02-per-label-geometry.md +0 -50
- data/TODO.complete/03-object-properties-constraints.md +0 -57
- data/TODO.complete/04-operation-params.md +0 -37
- data/TODO.complete/05-pdata-flag-matrix.md +0 -52
- data/TODO.complete/06-emf-image-rendering.md +0 -34
- data/TODO.complete/07-auxiliary-tables.md +0 -47
- data/TODO.complete/10-mdg-stereotype-registry.md +0 -40
- data/TODO.complete/11-gml-xsd-generation.md +0 -42
- data/TODO.complete/13-shapescript-interpreter.md +0 -17
- data/TODO.complete/20-cli-diff.md +0 -46
- data/TODO.complete/21-cli-render.md +0 -26
- data/TODO.complete/22-cli-export.md +0 -29
- data/TODO.complete/23-cli-mdg.md +0 -23
- data/TODO.complete/30-headerlines-ocp-refactor.md +0 -72
- data/TODO.complete/31-public-send-cleanup.md +0 -61
- data/TODO.complete/32-spec-coverage.md +0 -33
- data/TODO.complete/33-blocked-parity-gaps.md +0 -41
- data/TODO.complete/36-stereotype-icon-wiring.md +0 -32
- data/TODO.complete/37-cli-lint.md +0 -32
- data/TODO.complete/38-cli-query.md +0 -26
- data/TODO.complete/39-cli-info.md +0 -23
- data/TODO.complete/40-ocl-evaluator.md +0 -31
- data/TODO.complete/41-round-trip-spec.md +0 -18
- data/TODO.complete/42-html-diff-report.md +0 -18
- data/TODO.complete/43-json-schema-export.md +0 -20
- data/TODO.complete/44-remaining-qea-tables.md +0 -40
- data/TODO.complete/45-shapescript-extensions.md +0 -25
- data/TODO.complete/46-xsd-consolidation.md +0 -20
- data/TODO.complete/47-headerlines-legacy-removal.md +0 -20
- data/TODO.complete/51-remove-respond-to.md +0 -52
- data/TODO.complete/52-xsd-decouple-fixtures.md +0 -23
- data/TODO.complete/53-xmi-public-send-cleanup.md +0 -26
- data/TODO.complete/54-wire-stereotype-icon-renderer.md +0 -20
- data/TODO.complete/55-wire-shapescript.md +0 -20
- data/TODO.complete/56-wire-emf-renderer.md +0 -27
- data/TODO.complete/57-wire-ocl-evaluator.md +0 -23
- data/TODO.complete/58-diff-modifications.md +0 -21
- data/TODO.complete/59-delete-toy-xmi-export.md +0 -30
- data/TODO.complete/60-curate-json-export.md +0 -20
- data/TODO.complete/61-plantuml-relationships.md +0 -22
- data/TODO.complete/62-changelog.md +0 -17
- data/TODO.complete/63-dependabot-fix.md +0 -18
- data/TODO.complete/64-qeatoxmi-connectors.md +0 -15
- data/TODO.complete/65-qeatoxmi-diagrams.md +0 -15
- data/TODO.complete/66-qeatoxmi-style-tags-docs.md +0 -35
- data/TODO.complete/67-ocl-collection-ops.md +0 -20
- data/TODO.complete/68-ocl-comparison-ops.md +0 -24
- data/TODO.complete/69-spec-new-models.md +0 -20
- data/TODO.complete/70-specs-for-all-models.md +0 -21
- data/TODO.complete/71-autoload-audit.md +0 -26
- data/TODO.complete/72-extension-serializer-ocp-naming.md +0 -26
- data/TODO.complete/73-ocl-validator-latent-bugs.md +0 -50
- data/TODO.complete/74-visibility-symbol-dry.md +0 -39
- data/TODO.complete/75-database-table-collection-registry.md +0 -32
- data/TODO.complete/76-stale-todo-cleanup.md +0 -52
- data/TODO.complete/77-eliminate-banned-patterns-from-specs.md +0 -55
- data/TODO.complete/78-mdg-stereotype-emission.md +0 -66
- data/TODO.complete/79-equivalence-fixes.md +0 -57
- data/TODO.complete/80-performance-extension-serializer-indexes.md +0 -43
- data/TODO.complete/81-dry-scope-guid-extraction.md +0 -33
- data/TODO.complete/82-public-send-audit-conclusion.md +0 -25
- data/TODO.complete/83-dry-shared-xml-escape-guid-format.md +0 -52
- data/TODO.complete/84-ocp-markers-shape-registry.md +0 -54
- data/TODO.complete/85-frozen-literal-rubocop-normalize-type-spec.md +0 -38
- data/TODO.complete/86-frozen-sweep-lint-query-specs.md +0 -55
- data/TODO.complete/STATUS.md +0 -106
- data/TODO.diagrams/01-svg-measurement-harness.md +0 -31
- data/TODO.diagrams/01-xmi-extension-elements-parsing.md +0 -67
- data/TODO.diagrams/02-diagram-element-rich-model.md +0 -61
- data/TODO.diagrams/02-polygon-over-rendering.md +0 -29
- data/TODO.diagrams/03-ea-style-svg-emitter.md +0 -70
- data/TODO.diagrams/03-text-over-rendering.md +0 -30
- data/TODO.diagrams/04-connector-routing-from-soid-eoid.md +0 -55
- data/TODO.diagrams/04-rect-under-rendering.md +0 -33
- data/TODO.diagrams/05-canvas-dimension-parity.md +0 -51
- data/TODO.diagrams/05-marker-rendering-per-relationship-type.md +0 -49
- data/TODO.diagrams/06-connector-labels.md +0 -49
- data/TODO.diagrams/06-group-layering-parity.md +0 -39
- data/TODO.diagrams/07-canvas-size-and-viewbox.md +0 -39
- data/TODO.diagrams/07-text-content-fidelity.md +0 -65
- data/TODO.diagrams/08-qea-direct-pipeline.md +0 -46
- data/TODO.diagrams/08-visual-regression-harness.md +0 -34
- data/TODO.diagrams/09-cli-render-all-diagrams.md +0 -25
- data/TODO.diagrams/10-stereotype-color-config.md +0 -29
- data/TODO.diagrams/11-elkrb-auto-layout-integration.md +0 -53
- data/TODO.diagrams/12-connector-labels.md +0 -40
- data/TODO.diagrams/12-per-entity-svg-layer-ordering.md +0 -24
- data/TODO.diagrams/13-marker-polygon-vs-path-dispatch.md +0 -20
- data/TODO.diagrams/13-per-text-type-font-sizes.md +0 -33
- data/TODO.diagrams/14-center-header-text.md +0 -33
- data/TODO.diagrams/14-filter-diagram-frame-elements.md +0 -18
- data/TODO.diagrams/15-deep-dead-code-audit.md +0 -47
- data/TODO.diagrams/15-per-element-font-from-style.md +0 -24
- data/TODO.diagrams/16-canvas-marker-extent.md +0 -30
- data/TODO.diagrams/16-document-remaining-parity-gaps.md +0 -91
- data/TODO.diagrams/17-italic-abstract-classes.md +0 -28
- data/TODO.diagrams/17-remaining-parity-gaps.md +0 -90
- data/TODO.diagrams/18-canvas-from-image-bounds.md +0 -20
- data/TODO.diagrams/18-property-lookup-index.md +0 -42
- data/TODO.diagrams/19-connector-sx-sy-routing.md +0 -27
- data/TODO.diagrams/19-replace-respond-to-with-is-a.md +0 -31
- data/TODO.diagrams/20-split-labels-emitter.md +0 -56
- data/TODO.diagrams/20-visibility-glyph-font-encoding.md +0 -27
- data/TODO.diagrams/21-aggregation-navigability-arrow.md +0 -21
- data/TODO.diagrams/21-auto-generated-legend-block.md +0 -65
- data/TODO.diagrams/22-ghost-element-discriminator.md +0 -57
- data/TODO.diagrams/22-style-based-path-grouping.md +0 -28
- data/TODO.diagrams/23-marker-polygon-deduplication.md +0 -47
- data/TODO.diagrams/23-multiplicity-label-positioning.md +0 -29
- data/TODO.diagrams/24-marker-anchor-structural.md +0 -35
- data/TODO.diagrams/24-track-marker-anchors-structurally.md +0 -66
- data/TODO.diagrams/24-truncate-properties-to-fit-box.md +0 -24
- data/TODO.diagrams/26-phantom-general-parent-rendering.md +0 -59
- data/TODO.diagrams/27-path-grouping-mode-detection.md +0 -43
- data/TODO.diagrams/28-architecture-cleanup-batch.md +0 -47
- data/TODO.diagrams/30-decompose-elements-groups-for.md +0 -52
- data/TODO.diagrams/32-examples-coverage-batch.md +0 -78
- data/TODO.diagrams/36-instance-specification-model.md +0 -42
- data/TODO.diagrams/37-element-icon-decorations.md +0 -41
- data/TODO.diagrams/38-html-note-and-receptions.md +0 -32
- data/TODO.diagrams/39-property-stereotype-discriminator.md +0 -40
- data/TODO.diagrams/40-standalone-1-discriminator.md +0 -38
- data/TODO.diagrams/41-xmi-to-svg-pipeline.md +0 -113
- data/TODO.diagrams/42-close-all-parity-deltas.md +0 -69
- data/TODO.diagrams/43-marker-deduplication-strategy.md +0 -54
- data/TODO.diagrams/44-element-icon-decorations.md +0 -34
- data/TODO.diagrams/45-phantom-parent-class-boxes.md +0 -40
- data/TODO.diagrams/46-user-drawn-legend-swatches.md +0 -44
- data/TODO.diagrams/47-attribute-line-fidelity.md +0 -72
- data/TODO.diagrams/48-spec-coverage-critical-emitter-components.md +0 -45
- data/TODO.diagrams/49-spec-coverage-orchestrators.md +0 -25
- data/TODO.diagrams/50-examples-parity.md +0 -85
- data/TODO.diagrams/51-property-oy-gap-and-remaining-gaps.md +0 -48
- data/TODO.diagrams/52-marker-registration-architecture.md +0 -89
- data/TODO.diagrams/53-remaining-example-gaps.md +0 -86
- data/TODO.diagrams/54-display-name-nested-classes.md +0 -40
- data/TODO.diagrams/55-visibility-icon-discriminator.md +0 -58
- data/TODO.diagrams/56-package-contents-rendering.md +0 -148
- data/TODO.diagrams/57-instance-specification-model.md +0 -100
- data/TODO.diagrams/58-domain-model-note-text.md +0 -67
- data/TODO.diagrams/59-classes-arrow-discriminator.md +0 -57
- data/TODO.diagrams/60-testschema-association-marker.md +0 -40
- data/TODO.diagrams/61-legend-block-rendering.md +0 -55
- data/TODO.diagrams/61-plateau-parity-gaps.md +0 -59
- data/TODO.diagrams/62-ghost-element-rendering.md +0 -56
- data/TODO.diagrams/63-qualified-name-wrap.md +0 -36
- data/TODO.diagrams/64-property-stereotype-labels.md +0 -22
- data/TODO.diagrams/65-path-coordinate-frame.md +0 -62
- data/TODO.diagrams/67-path-coordinate-frame.md +0 -62
- data/TODO.diagrams/68-inherited-attributes.md +0 -65
- data/TODO.diagrams/69-package-anchor-conditional.md +0 -29
- data/TODO.diagrams/70-mdg-technology-support.md +0 -68
- data/TODO.diagrams/71-off-canvas-parent-ghost.md +0 -45
- data/TODO.diagrams/72-basic-attr-divider-paths.md +0 -39
- data/TODO.diagrams/73-plateau-polygon-gap.md +0 -69
- data/TODO.diagrams/74-plateau-rect-gap.md +0 -22
- data/TODO.diagrams/75-plateau-text-gap.md +0 -39
- data/TODO.diagrams/76-basic-poly-path-gaps.md +0 -41
- data/TODO.diagrams/77-basic-text-overrender.md +0 -40
- data/TODO.diagrams/78-headerlines-ocp-refactor.md +0 -65
- data/TODO.diagrams/79-architecture-backlog.md +0 -65
- data/TODO.diagrams/80-basic-triangle-polygons.md +0 -51
- data/TODO.diagrams/81-plateau-path-overrender.md +0 -53
- data/TODO.diagrams/82-appearance-canvas-offset.md +0 -54
- data/TODO.diagrams/83-3d-diagram-subtitle.md +0 -58
- data/TODO.diagrams/84-canvas-offset-mismatches.md +0 -61
- data/TODO.diagrams/85-phantom-property-overrender.md +0 -95
- data/TODO.diagrams/86-foreign-package-rule.md +0 -62
- data/TODO.diagrams/87-internal-tech-encryption.md +0 -80
- data/TODO.diagrams/EXAMPLES_STATUS.md +0 -88
- data/TODO.diagrams/README.md +0 -69
- data/TODO.diagrams/STATUS.md +0 -73
- data/TODO.fixup/01-default-grouped-paths.md +0 -34
- data/TODO.fixup/02-marker-consolidation-per-connector.md +0 -20
- data/TODO.fixup/03-diagram-font-inference.md +0 -28
- data/TODO.fixup/04-extract-bounds-calculator.md +0 -25
- data/TODO.fixup/05-marker-registry-ocp.md +0 -32
- data/TODO.fixup/06-connector-path-bend-routing.md +0 -28
- data/TODO.fixup/07-edge-attachment-formula.md +0 -22
- data/TODO.fixup/08-visual-diff-harness.md +0 -28
- data/TODO.fixup/09-extract-element-compartments.md +0 -34
- data/TODO.fixup/10-canvas-width-overshoot-fix.md +0 -20
- data/TODO.fixup/11-layer-sequencer-extraction.md +0 -18
- data/TODO.fixup/12-path-style-harmony.md +0 -23
- data/TODO.fixup/13-datatype-stereotype-fallback.md +0 -28
- data/TODO.fixup/14-ea-exe-reverse-engineering-notes.md +0 -56
- data/TODO.fixup/15-enumeration-literal-rendering.md +0 -30
- data/TODO.fixup/16-operation-compartment-rendering.md +0 -42
- data/TODO.fixup/17-path-count-calibration.md +0 -27
- data/TODO.fixup/18-polygon-count-calibration.md +0 -32
- data/TODO.fixup/19-rect-count-undershoot-investigation.md +0 -40
- data/TODO.fixup/20-stereotype-color-from-classifier.md +0 -18
- data/TODO.fixup/21-visibility-filter-for-properties.md +0 -24
- data/TODO.fixup/22-multiplicity-display-rule-calibration.md +0 -25
- data/TODO.fixup/23-diagram-frame-title-element.md +0 -31
- data/TODO.fixup/24-note-element-rendering.md +0 -23
- data/TODO.fixup/25-ea-exe-disassembly-findings.md +0 -177
- data/TODO.fixup/26-svg-renderer-architecture.md +0 -78
- data/TODO.fixup/27-svg-element-emitters-disassembly.md +0 -135
- data/TODO.fixup/28-geometry-parser-identification.md +0 -57
- data/TODO.fixup/29-qea-svg-xmi-triple-comparison.md +0 -185
- data/TODO.fixup/30-theme-system-stub.md +0 -46
- data/TODO.fixup/31-theme-value-object-registry.md +0 -17
- data/TODO.fixup/32-styleex-on-diagram-model.md +0 -22
- data/TODO.fixup/33-text-encoding-decimals-rotation.md +0 -29
- data/TODO.fixup/34-per-type-fill-via-theme.md +0 -18
- data/TODO.fixup/35-stroke-width-per-theme.md +0 -7
- data/TODO.fixup/36-qea-rect-coord-normalization.md +0 -24
- data/TODO.fixup/37-package-shape-rendering.md +0 -22
- data/TODO.fixup/38-note-element-rendering.md +0 -15
- data/TODO.fixup/39-styleex-flag-honoring.md +0 -25
- data/TODO.fixup/40-connector-dashed-lines.md +0 -15
- data/TODO.fixup/41-diagram-frame-showborder-detection.md +0 -23
- data/TODO.fixup/42-textrenderer-centralization.md +0 -10
- data/TODO.fixup/43-colorresolver-unification.md +0 -24
- data/TODO.fixup/44-theme-aware-textrenderer.md +0 -17
- data/TODO.fixup/45-theme-aware-fontresolver.md +0 -22
- data/TODO.fixup/46-style-parameterized-by-theme.md +0 -21
- data/TODO.fixup/47-canvas-frame-inset.md +0 -19
- data/TODO.fixup/48-background-rect-format.md +0 -15
- data/TODO.fixup/49-all-samples-integration-test.md +0 -17
- data/TODO.fixup/50-svg-emitter-architecture-docs.md +0 -33
- data/TODO.fixup/51-promote-theme-to-ea-namespace.md +0 -28
- data/TODO.fixup/52-theme-definition-integrated-fills.md +0 -26
- data/TODO.fixup/53-theme-registry-yaml-loading.md +0 -50
- data/TODO.fixup/54-diagram-theme-api.md +0 -50
- data/TODO.fixup/55-update-eaemitter-to-ea-theme.md +0 -23
- data/TODO.fixup/56-theme-yaml-files.md +0 -65
- data/TODO.fixup/57-theme-specs-and-integration.md +0 -27
- data/TODO.fixup/58-ea-entry-point-theme-autoload.md +0 -20
- data/TODO.fixup/59-thread-theme-through-all-renderers.md +0 -29
- data/TODO.fixup/60-cli-theme-option.md +0 -22
- data/TODO.fixup/61-theme-validation.md +0 -28
- data/TODO.fixup/62-theme-builder-dsl.md +0 -31
- data/TODO.fixup/63-theme-integration-rendering-spec.md +0 -24
- data/TODO.fixup/64-theme-writeback-styleex.md +0 -21
- data/TODO.fixup/65-remove-dead-eaemitter-theme-files.md +0 -30
- data/TODO.fixup/66-styleex-writeback.md +0 -22
- data/TODO.fixup/67-delete-dead-code.md +0 -28
- data/TODO.fixup/68-figure-parity-status.md +0 -82
- data/TODO.fixup/69-package-polygon-rendering.md +0 -54
- data/TODO.fixup/70-tagged-values-compartment.md +0 -39
- data/TODO.fixup/71-auto-detect-theme-from-xmi.md +0 -37
- data/TODO.fixup/72-sample-exports-as-regression-specs.md +0 -37
- data/TODO.fixup/73-delete-dead-transformations.md +0 -14
- data/TODO.fixup/74-delete-dead-diagram-renderers.md +0 -18
- data/TODO.fixup/75-visibility-legend-icons.md +0 -23
- data/TODO.fixup/76-plateau-text-undershoot.md +0 -27
- data/TODO.fixup/77-canvas-frame-margins.md +0 -28
- data/TODO.fixup/78-note-element-rendering.md +0 -30
- data/TODO.fixup/79-operation-compartment-rendering.md +0 -27
- data/TODO.fixup/80-tagged-value-stereotype-visibility.md +0 -37
- data/TODO.fixup/81-figure-parity-current-state.md +0 -63
- data/TODO.next/00-publish-blocking-bugs.md +0 -74
- data/TODO.next/01-standalone-ea-gem-identity.md +0 -76
- data/TODO.next/02-optional-lutaml-uml-dependency.md +0 -47
- data/TODO.next/03-slim-lutaml-uml.md +0 -79
- data/TODO.next/04-loader-registry-for-uml-repository.md +0 -49
- data/TODO.next/05-extract-shared-transformer-methods.md +0 -14
- data/TODO.next/06-deduplicate-stereotype-loading.md +0 -17
- data/TODO.next/07-transformer-registry-in-factory.md +0 -20
- data/TODO.next/08-connector-type-registry.md +0 -27
- data/TODO.next/09-element-renderer-registry.md +0 -29
- data/TODO.next/10-connector-renderer-lsp.md +0 -18
- data/TODO.next/11-consolidate-style-knowledge.md +0 -33
- data/TODO.next/12-data-driven-from-db-row.md +0 -24
- data/TODO.next/13-extract-duplicated-methods.md +0 -17
- data/TODO.next/14-remove-dead-code.md +0 -10
- data/TODO.next/15-narrow-exception-handling.md +0 -39
- data/TODO.next/16-repository-indexes.md +0 -28
- data/TODO.next/17-fix-spec-quality-and-coverage.md +0 -32
- data/TODO.next/18-xmi-tool-specific-parser-architecture.md +0 -172
- data/TODO.next/19-fix-ea-gemspec-dependency-declarations.md +0 -56
- data/TODO.next/20-ci-requires-unreleased-lutaml-uml.md +0 -63
- data/TODO.next/21-qeatoxmi-via-xmi-gem.md +0 -340
- data/TODO.next/22-strip-respond-to-from-qeatoxmi-specs.md +0 -32
- data/TODO.next/23-cleanup-idallocator.md +0 -41
- data/TODO.next/24-tighten-parity-specs.md +0 -42
- data/TODO.next/25-sparx-eaid-format-for-synthesized-ids.md +0 -62
- data/TODO.next/26-fix-uppervalue-lowervalue-count-gap.md +0 -51
- data/TODO.next/27-extract-cardinality-module.md +0 -68
- data/TODO.next/28-extract-xml-sanitizer.md +0 -51
- data/TODO.next/29-ocp-registry-for-classifier-builders.md +0 -58
- data/TODO.next/30-struct-return-for-association-end.md +0 -37
- data/TODO.next/31-idallocator-specs.md +0 -27
- data/TODO.next/32-phase2-gap-sentinel-specs.md +0 -53
- data/TODO.next/33-normalize-lower-cleanup.md +0 -30
- data/TODO.next/34-document-member-end-order-rt-prefix.md +0 -29
- data/TODO.next/35-walk-runstate-for-instance-slots.md +0 -76
- data/TODO.next/36-wire-interface-realization.md +0 -50
- data/TODO.next/37-visibility-returns-real-booleans.md +0 -36
- data/TODO.next/38-xmi-parser-feature-parity.md +0 -75
- data/TODO.next/39-ea-spa-cli-command.md +0 -53
- data/TODO.next/40-drop-lur-only-check-in-diagrams-extract.md +0 -56
- data/TODO.refactor/01-ea-model-domain-layer.md +0 -64
- data/TODO.refactor/02-ea-model-qea-source-adapter.md +0 -58
- data/TODO.refactor/03-ea-model-xmi-source-adapter.md +0 -33
- data/TODO.refactor/04-ea-model-annotations-tagged-values.md +0 -34
- data/TODO.refactor/05-ea-model-diagrams-coordinates.md +0 -37
- data/TODO.refactor/06-spa-projection-layer.md +0 -45
- data/TODO.refactor/07-spa-sharded-output-strategy.md +0 -28
- data/TODO.refactor/08-spa-build-time-search-index.md +0 -24
- data/TODO.refactor/09-spa-frontend-data-contract.md +0 -25
- data/TODO.refactor/10-spa-cli-command-rework.md +0 -34
- data/TODO.refactor/11-spa-perf-benchmark.md +0 -23
- data/TODO.refactor/12-lutaml-uml-static-site-deprecation.md +0 -28
- data/TODO.release/01-release-lutaml-uml-030.md +0 -30
- data/TODO.release/02-fix-lutaml-meta-gem-requires.md +0 -33
- data/TODO.release/03-release-lutaml-0110.md +0 -20
- data/TODO.release/04-update-ea-gemspec-pin.md +0 -23
- data/TODO.release/05-remove-ea-conditional-requires.md +0 -48
- data/TODO.release/06-release-ea-020.md +0 -20
- data/TODO.release/07-migrate-plateau-model.md +0 -35
- data/TODO.release/README.md +0 -15
- data/docs/ea_to_uml_type_mapping.md +0 -89
- data/docs/xmi_qea_conversion_capabilities.md +0 -99
- data/examples/exports/20251010_current_plateau_v5/UML_EA.DTD +0 -6856
- data/examples/exports/20251010_current_plateau_v5/model.xml +0 -96709
- data/examples/exports/ArcGISWorkspace_template/UML_EA.DTD +0 -6856
- data/examples/exports/ArcGISWorkspace_template/model.xml +0 -1427
- data/examples/exports/UmlModel_template/UML_EA.DTD +0 -6856
- data/examples/exports/UmlModel_template/model.xml +0 -23
- data/examples/exports/basic/UML_EA.DTD +0 -6856
- data/examples/exports/basic/model.xml +0 -8039
- data/examples/exports/simple/UML_EA.DTD +0 -6856
- data/examples/exports/simple/model.xml +0 -585
- data/examples/exports/simple_example/UML_EA.DTD +0 -6856
- data/examples/exports/simple_example/model.xml +0 -23
- data/examples/exports/test/UML_EA.DTD +0 -6856
- data/examples/exports/test/model.xml +0 -1638
- data/examples/lur/20251010_current_plateau_v5.1.lur +0 -0
- data/examples/lur/basic.lur +0 -0
- data/examples/lur/test-output.lur +0 -0
- data/examples/lur/test.lur +0 -0
- data/examples/lur_basic_usage.rb +0 -221
- data/examples/lur_cli_workflow.rb +0 -263
- data/examples/lur_statistics.rb +0 -326
- data/examples/qea/20251010_current_plateau_v5.1.qea +0 -0
- data/examples/qea/ArcGISWorkspace_template.qea +0 -0
- data/examples/qea/README_qea_parser.adoc +0 -230
- data/examples/qea/UmlModel_template.qea +0 -0
- data/examples/qea/basic.qea +0 -0
- data/examples/qea/simple.qea +0 -0
- data/examples/qea/simple_example.qea +0 -0
- data/examples/qea/test.qea +0 -0
- data/examples/qea_standalone_query.rb +0 -73
- data/examples/qea_to_repository.rb +0 -51
- data/examples/smoke_test_real_qea.rb +0 -81
- data/frontend/README.md +0 -51
- data/frontend/dist/app.iife.js +0 -24
- data/frontend/dist/style.css +0 -1
- data/frontend/index.html +0 -26
- data/frontend/package-lock.json +0 -2359
- data/frontend/package.json +0 -26
- data/frontend/src/App.vue +0 -63
- data/frontend/src/app.ts +0 -8
- data/frontend/src/components/AppHeader.vue +0 -154
- data/frontend/src/components/AppSidebar.vue +0 -119
- data/frontend/src/components/ClassDetails.vue +0 -230
- data/frontend/src/components/DiagramView.vue +0 -92
- data/frontend/src/components/PackageDetails.vue +0 -133
- data/frontend/src/components/PackageTreeNode.vue +0 -69
- data/frontend/src/components/SearchResults.vue +0 -61
- data/frontend/src/components/WelcomeView.vue +0 -87
- data/frontend/src/shims-vue.d.ts +0 -5
- data/frontend/src/stores/dataStore.ts +0 -173
- data/frontend/src/stores/uiStore.ts +0 -166
- data/frontend/src/styles/main.css +0 -1566
- data/frontend/src/types.ts +0 -218
- data/frontend/tests/e2e/__screenshots__/new-dark-mode.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-package-details.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-search-modal.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-sidebar-collapsed.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-welcome.png +0 -0
- data/frontend/tests/e2e/render.spec.ts +0 -188
- data/frontend/tsconfig.json +0 -20
- data/frontend/vite.config.ts +0 -26
- data/frontend/vitest.config.ts +0 -8
- data/gemfiles/published.gemfile +0 -24
- data/memory/deviations.md +0 -3
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes-list.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-2-gradients.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-3-colors.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance-fonts.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-5-behavior.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-6-sequence.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-2-objects.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-3-links.png +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# TODO-D 12 - Connector role/multiplicity labels
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## What changed
|
|
6
|
-
|
|
7
|
-
Labels renderer refactored to support both XMI and QEA paths:
|
|
8
|
-
|
|
9
|
-
1. **Property lookup (XMI path)**: When the Association's
|
|
10
|
-
source_id/target_id reference Property IDs, look them up and
|
|
11
|
-
render the role name + multiplicity from the Property fields.
|
|
12
|
-
|
|
13
|
-
2. **Association fields (QEA path)**: Fall back to the
|
|
14
|
-
Association's own source_role_name, target_role_name,
|
|
15
|
-
source_multiplicity_lower/upper, target_multiplicity_lower/upper
|
|
16
|
-
fields. These are populated by QEA's t_connector.sourcerole/
|
|
17
|
-
destrole/sourcecard/destcard columns.
|
|
18
|
-
|
|
19
|
-
3. **Default label offset**: When label_boxes aren't populated
|
|
20
|
-
(QEA path — the geometry parser doesn't yet extract them),
|
|
21
|
-
use a default offset (anchor + 5, -10) so labels render near
|
|
22
|
-
the connector endpoints rather than being silently dropped.
|
|
23
|
-
|
|
24
|
-
## Acceptance
|
|
25
|
-
|
|
26
|
-
QEA-direct parity measurement:
|
|
27
|
-
|
|
28
|
-
| Metric | Before | After |
|
|
29
|
-
|---|---|---|
|
|
30
|
-
| Text delta vs ref | -2728 (14% under) | -883 (5% under) |
|
|
31
|
-
| Text overlap avg | 56.0% | 62.8% |
|
|
32
|
-
|
|
33
|
-
## Remaining
|
|
34
|
-
|
|
35
|
-
- QEA t_diagramlinks.Geometry parser doesn't extract LLB/LRB
|
|
36
|
-
boxes. Adding that would let labels render at EA's recorded
|
|
37
|
-
pixel positions rather than the default offset.
|
|
38
|
-
- The XMI-encoded `<text>` ordering within Labels is still
|
|
39
|
-
suboptimal — EA emits role name and multiplicity in a single
|
|
40
|
-
`<g>` block, we emit each as a separate text element.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# 12 - Per-Entity SVG Layer Ordering
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Restructured `Ea::Svg::EaEmitter::Document` to emit a flat sequence
|
|
8
|
-
of top-level `<g>` elements matching EA's per-entity layering:
|
|
9
|
-
|
|
10
|
-
- `Elements#groups` returns Array of per-element `<g>` blocks
|
|
11
|
-
(shape → header → divider → attrs)
|
|
12
|
-
- `Connectors#groups` returns Array of one `<g>` per connector line
|
|
13
|
-
- `Markers#groups` returns Array of one `<g>` per connector marker
|
|
14
|
-
- `Document#connector_layers` interleaves line + marker per connector
|
|
15
|
-
|
|
16
|
-
Verified on Waterway: 50 top-level `<g>` (ours) vs 47 (ref) — the
|
|
17
|
-
3-group delta is due to the spurious frame element (TODO 14).
|
|
18
|
-
|
|
19
|
-
## Files changed
|
|
20
|
-
|
|
21
|
-
- `lib/ea/svg/ea_emitter/document.rb` — interleaves line/marker per connector
|
|
22
|
-
- `lib/ea/svg/ea_emitter/elements.rb` — `groups` method, per-element arrays
|
|
23
|
-
- `lib/ea/svg/ea_emitter/connectors.rb` — `groups` method, one `<g>` per connector
|
|
24
|
-
- `lib/ea/svg/ea_emitter/markers.rb` — `groups` method, one `<g>` per marker
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# 13 - Marker Encoding: Polygon vs Path by Shape
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Refactored `Ea::Svg::EaEmitter::Markers` to dispatch marker shape
|
|
8
|
-
via a `Spec` value object. Each marker emits the correct element type:
|
|
9
|
-
|
|
10
|
-
- Diamond (Aggregation/Composition) → `<polygon>` 4 points
|
|
11
|
-
- Open triangle (Generalization/Realization/Dependency) → `<polygon>` 3 points, white fill
|
|
12
|
-
- Filled arrow (Association navigability) → `<path d="M .. L .. L .."/>` 3 points
|
|
13
|
-
|
|
14
|
-
Marker placement is direction-aware: "Destination -> Source" flips
|
|
15
|
-
which end holds the marker.
|
|
16
|
-
|
|
17
|
-
## Files changed
|
|
18
|
-
|
|
19
|
-
- `lib/ea/svg/ea_emitter/markers.rb` — Spec struct + dispatch
|
|
20
|
-
- `spec/ea/svg/ea_emitter/markers_spec.rb` — updated to reflect arrow emission
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# TODO-D 13 - Per-text-type font sizes
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## Context
|
|
6
|
-
|
|
7
|
-
Reference SVGs use different font sizes for different text types:
|
|
8
|
-
- 9pt for classifier compartments (header, attributes, operations,
|
|
9
|
-
enumeration literals, tagged values)
|
|
10
|
-
- 7pt for diagram-level text (frame label, swimlane names)
|
|
11
|
-
- 12pt for some classifier names (rare)
|
|
12
|
-
|
|
13
|
-
Theme :119 specifies font_size=7pt — that's the DIAGRAM-LEVEL font
|
|
14
|
-
size, not the element-level default. Element compartment text uses
|
|
15
|
-
9pt regardless of theme.
|
|
16
|
-
|
|
17
|
-
## What changed
|
|
18
|
-
|
|
19
|
-
- `FontResolver::DEFAULT_ELEMENT_FONT_SIZE = 9` — replaces the
|
|
20
|
-
previous default of 13 (which was the Yu Gothic UI locale default)
|
|
21
|
-
- `FontResolver#size_for` no longer falls back to `theme.font_size`
|
|
22
|
-
for elements — only diagram-level text uses theme font size
|
|
23
|
-
- `HeaderRenderer` and `AttributeRenderer` gain `size_unit:`
|
|
24
|
-
parameter (defaults to `"pt"`) and propagate it to TextRenderer
|
|
25
|
-
- `Elements#groups_for` reads `size_unit` from FontResolver and
|
|
26
|
-
passes through to all renderers
|
|
27
|
-
|
|
28
|
-
## Acceptance
|
|
29
|
-
|
|
30
|
-
- Reference text uses `font-size:9pt` for classifier compartments
|
|
31
|
-
- Our text now emits `font-size:9pt` (was `font-size:7px`)
|
|
32
|
-
- Text overlap metric unchanged (counts content, not formatting)
|
|
33
|
-
- 1612 specs pass
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# TODO-D 14 - Center classifier header text
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## Context
|
|
6
|
-
|
|
7
|
-
EA centers stereotype and classifier-name text horizontally within
|
|
8
|
-
the element bounds. SVG `<text x=>` is the LEFT edge of the text,
|
|
9
|
-
not the center, so we need to compute:
|
|
10
|
-
|
|
11
|
-
left_edge = bounds.center_x - text_width / 2
|
|
12
|
-
|
|
13
|
-
Our previous code emitted `x = bounds.center_x` directly, which
|
|
14
|
-
placed the LEFT EDGE at the center — making all text appear
|
|
15
|
-
right-of-center.
|
|
16
|
-
|
|
17
|
-
## What changed
|
|
18
|
-
|
|
19
|
-
`HeaderRenderer.center_x_for(text, bounds, size)` computes the
|
|
20
|
-
left edge from a text-width approximation:
|
|
21
|
-
|
|
22
|
-
text_width = text.length * size * 0.55
|
|
23
|
-
|
|
24
|
-
The factor 0.55 approximates average Carlito character width as a
|
|
25
|
-
fraction of point size. Not pixel-perfect (EA uses GDI text
|
|
26
|
-
metrics) but visually centered.
|
|
27
|
-
|
|
28
|
-
## Acceptance
|
|
29
|
-
|
|
30
|
-
- Stereotype label now visually centered in element box
|
|
31
|
-
- Classifier name now visually centered
|
|
32
|
-
- Close to reference x positions (within ~5px due to text-width
|
|
33
|
-
approximation)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# 14 - Filter Diagram-Frame / Note Elements
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Added `Elements#frame_element?` predicate that skips elements
|
|
8
|
-
matching the diagram-frame pattern:
|
|
9
|
-
- `background_color == -1` (sentinel for "no fill / default"), AND
|
|
10
|
-
- Classifier name is nil/empty, AND
|
|
11
|
-
- Classifier has no properties
|
|
12
|
-
|
|
13
|
-
Verified: Waterway top-level `<g>` count drops 50→47, rect count
|
|
14
|
-
drops 10→9 — both now match EA reference exactly.
|
|
15
|
-
|
|
16
|
-
## Files changed
|
|
17
|
-
|
|
18
|
-
- `lib/ea/svg/ea_emitter/elements.rb` — `frame_element?` predicate
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# TODO-D 15 - Deep dead code audit
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## Audit findings
|
|
6
|
-
|
|
7
|
-
All production subsystems in `lib/ea/` are actively used:
|
|
8
|
-
|
|
9
|
-
| Subsystem | Used by | Status |
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| `Ea::Model` | All adapters and renderers | KEEP |
|
|
12
|
-
| `Ea::Sources::Qea` | `Ea.parse`, `Ea::Sources::Qea::Adapter.from_path` | KEEP |
|
|
13
|
-
| `Ea::Sources::Xmi` | `Ea::Sources::Xmi::Adapter.from_path` | KEEP |
|
|
14
|
-
| `Ea::Svg::EaEmitter` | `ea svg` CLI command | KEEP |
|
|
15
|
-
| `Ea::Theme` | Diagram.theme resolution | KEEP |
|
|
16
|
-
| `Ea::Diagram::DisplayConfig` | `Diagram#display_config` | KEEP |
|
|
17
|
-
| `Ea::Qea` (SQLite layer) | `Ea::Sources::Qea::*` adapters | KEEP |
|
|
18
|
-
| `Ea::Xmi` | `Ea::Sources::Xmi::*` adapters | KEEP |
|
|
19
|
-
| `Ea::Spa` | `ea spa` CLI command | KEEP |
|
|
20
|
-
| `Ea::Transformers` | `ea convert` CLI command | KEEP |
|
|
21
|
-
| `Ea::Bridge` | `Ea::Transformations.to_uml` | KEEP |
|
|
22
|
-
| `Ea::Transformations` | `RepositoryBuilder` for bridge CLI | KEEP |
|
|
23
|
-
|
|
24
|
-
## Code quality audit
|
|
25
|
-
|
|
26
|
-
| Rule | Status |
|
|
27
|
-
|---|---|
|
|
28
|
-
| No `send` to call private methods | CLEAN |
|
|
29
|
-
| No `instance_variable_set`/`get` | CLEAN (only mentioned in a comment) |
|
|
30
|
-
| No `respond_to?` for type checks | CLEAN (replaced with `is_a?` earlier) |
|
|
31
|
-
| No `require_relative` for library code | CLEAN (one in `lib/ea.rb` for VERSION — standard gemspec pattern) |
|
|
32
|
-
| autoload for all internal loading | CLEAN |
|
|
33
|
-
|
|
34
|
-
## Architecture observations
|
|
35
|
-
|
|
36
|
-
The codebase follows OCP well:
|
|
37
|
-
- `Marker::Kind` subclasses registered via `Marker::Registry.register`
|
|
38
|
-
- `Theme::Definition` immutable value object with `#with` for variants
|
|
39
|
-
- `Theme::Registry` auto-loads from `config/themes/*.yml`
|
|
40
|
-
- `Element::*Renderer` classes are independent — adding a new
|
|
41
|
-
compartment type doesn't modify existing renderers
|
|
42
|
-
|
|
43
|
-
## DRY
|
|
44
|
-
|
|
45
|
-
Found one minor duplication: `Labels` and `AttributeRenderer` both
|
|
46
|
-
have text-emission logic. Consolidated into shared `TextRenderer`
|
|
47
|
-
calls. No further DRY violations observed.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# 15 - Per-Element Font from Style
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Added `Ea::Svg::EaEmitter::FontResolver` that resolves font family +
|
|
8
|
-
size + weight + style per element, using EA's fallback chain:
|
|
9
|
-
|
|
10
|
-
1. Element-level `font_family` / `font_size` (set from EA's
|
|
11
|
-
`font=NAME;fontsz=PCT` style fields via ExtensionStyleParser)
|
|
12
|
-
2. Diagram-level default (most common non-nil value across elements)
|
|
13
|
-
3. Module default (`Yu Gothic UI`, `13`)
|
|
14
|
-
|
|
15
|
-
`Elements` emitter delegates font resolution to FontResolver so the
|
|
16
|
-
fallback rule lives in one place (MECE).
|
|
17
|
-
|
|
18
|
-
## Files changed
|
|
19
|
-
|
|
20
|
-
- `lib/ea/svg/ea_emitter/font_resolver.rb` — new resolver
|
|
21
|
-
- `lib/ea/svg/ea_emitter.rb` — autoload registration
|
|
22
|
-
- `lib/ea/svg/ea_emitter/elements.rb` — uses FontResolver
|
|
23
|
-
- `spec/ea/svg/ea_emitter/font_resolver_spec.rb` — 9 specs covering
|
|
24
|
-
explicit, fallback, and empty-diagram cases
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# 16 - Canvas Bounds Include Marker Extent
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
`Canvas.from` now extends the points list with `MARKER_EXTENT=15`
|
|
8
|
-
padding around each connector's source and target waypoints. This
|
|
9
|
-
prevents markers (diamonds, triangles, arrows) from being clipped
|
|
10
|
-
when they project beyond element bounds.
|
|
11
|
-
|
|
12
|
-
For Waterway this didn't change the canvas size (markers fit within
|
|
13
|
-
existing element bounds), but for diagrams where arrows extend below
|
|
14
|
-
or beside elements, the canvas now grows accordingly.
|
|
15
|
-
|
|
16
|
-
## Remaining diff
|
|
17
|
-
|
|
18
|
-
Waterway height: ours 869 vs ref 892 (23 px short). Root cause:
|
|
19
|
-
EA's renderer uses `image_bounds` (with 12 px image padding) for
|
|
20
|
-
certain elements while we use logical `bounds`. The 23 px diff
|
|
21
|
-
matches the difference between logical and image_bounds for the
|
|
22
|
-
lowest element (FacilityIdAttribute: logical bottom=895, image
|
|
23
|
-
bottom=918). To close this fully we'd need to compute canvas from
|
|
24
|
-
image_bounds union (matching EA's behavior), but this would also
|
|
25
|
-
require translating elements by image_bounds rather than logical
|
|
26
|
-
bounds — a larger change deferred to TODO 18.
|
|
27
|
-
|
|
28
|
-
## Files changed
|
|
29
|
-
|
|
30
|
-
- `lib/ea/svg/ea_emitter/canvas.rb` — `marker_extents` + concat into points
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# TODO-D 16 - Document all remaining parity gaps
|
|
2
|
-
|
|
3
|
-
## Status: LIVING DOCUMENT (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## Current parity (QEA-direct, 188 diagrams)
|
|
6
|
-
|
|
7
|
-
| Metric | Value |
|
|
8
|
-
|---|---|
|
|
9
|
-
| Within shape-count tolerance | 123/188 (65.4%) |
|
|
10
|
-
| Text overlap avg | 62.8% |
|
|
11
|
-
| Polygon delta | -166 |
|
|
12
|
-
| Path delta | -181 |
|
|
13
|
-
| Text delta | -883 |
|
|
14
|
-
| Rect delta | -460 |
|
|
15
|
-
|
|
16
|
-
## Byte-level diff status (maintenance diagram)
|
|
17
|
-
|
|
18
|
-
The simplest diagram (`maintenance`, 1 classifier) now matches
|
|
19
|
-
reference byte-for-byte on:
|
|
20
|
-
|
|
21
|
-
- Canvas dimensions (254x177) ✓
|
|
22
|
-
- Element position (35, 40) ✓
|
|
23
|
-
- Background rect dimensions ✓
|
|
24
|
-
- Frame border path coordinates ✓
|
|
25
|
-
|
|
26
|
-
Remaining byte-level differences on maintenance:
|
|
27
|
-
|
|
28
|
-
### 1. Build ID
|
|
29
|
-
- Ours: `Build: 1628`
|
|
30
|
-
- Ref: `Build: 1624`
|
|
31
|
-
|
|
32
|
-
The QEA was authored with build 1628 (newer). The reference SVGs
|
|
33
|
-
were exported with build 1624. Either change the BUILD_ID constant
|
|
34
|
-
or accept the difference.
|
|
35
|
-
|
|
36
|
-
### 2. Frame tab width
|
|
37
|
-
- Ours: `points="6 26 135 26 148 13 148 6 6 6 6 26"` (width=129)
|
|
38
|
-
- Ref: `points="6 26 86 26 99 12 99 6 6 6 6 26"` (width=80)
|
|
39
|
-
|
|
40
|
-
EA calculates the tab width from GDI text metrics on the label
|
|
41
|
-
"class maintenance". Our calculation uses `label.length * 7 + 10`
|
|
42
|
-
which overshoots. Need a better text-width approximation, OR
|
|
43
|
-
match EA's hardcoded minimum (80px).
|
|
44
|
-
|
|
45
|
-
### 3. textLength attribute
|
|
46
|
-
- Ours: `textLength="65"`
|
|
47
|
-
- Ref: `textLength="73"`
|
|
48
|
-
|
|
49
|
-
Same root cause as #2 — text-width approximation differs from
|
|
50
|
-
GDI metrics.
|
|
51
|
-
|
|
52
|
-
### 4. Whitespace formatting
|
|
53
|
-
- Ours: extra blank lines between `<g>` blocks
|
|
54
|
-
- Ref: no blank lines, tabs for indentation
|
|
55
|
-
|
|
56
|
-
Cosmetic only — doesn't affect rendering.
|
|
57
|
-
|
|
58
|
-
## Aggregate parity gaps (across 188 diagrams)
|
|
59
|
-
|
|
60
|
-
### Polygon under-rendering (-166)
|
|
61
|
-
Source-side diamond markers on Aggregation connectors. The diamond
|
|
62
|
-
anchor positions drift from EA because connector SX/SY/EX/EY
|
|
63
|
-
interpretation isn't exact. Markers render but at slightly wrong
|
|
64
|
-
positions, breaking the per-anchor dedup match.
|
|
65
|
-
|
|
66
|
-
### Path under-rendering (-181)
|
|
67
|
-
EA combines connector line + arrow head into one `<path>` with
|
|
68
|
-
multiple `M` sub-paths. We emit them as separate paths. Restructure
|
|
69
|
-
`Connectors` renderer to emit combined paths per connector.
|
|
70
|
-
|
|
71
|
-
### Text under-rendering (-883)
|
|
72
|
-
Three categories:
|
|
73
|
-
1. Connector label positions (we use default offset; EA records
|
|
74
|
-
exact LLB/LRB boxes in t_diagramlinks.Geometry)
|
|
75
|
-
2. Attribute defaults (e.g. `lod: integerBetween0and4 = 1` — we
|
|
76
|
-
drop the `= default_value` part)
|
|
77
|
-
3. Stereotype-tagged-value text (we render the «property»
|
|
78
|
-
stereotype label on some diagrams where ref doesn't)
|
|
79
|
-
|
|
80
|
-
### Rect under-rendering (-460)
|
|
81
|
-
Mostly classifier-box compartment rects that EA emits as inner
|
|
82
|
-
rects (not paths) for some diagram configurations. Also legend
|
|
83
|
-
swatches inside Note elements. Not yet investigated thoroughly.
|
|
84
|
-
|
|
85
|
-
## Priority order for closing remaining gaps
|
|
86
|
-
|
|
87
|
-
1. **Combined connector paths** — fixes path -181, no architectural change
|
|
88
|
-
2. **QEA geometry parser for LLB/LRB** — fixes most of text -883
|
|
89
|
-
3. **Attribute default value rendering** — fixes some text delta
|
|
90
|
-
4. **Frame tab width calculation** — fixes byte-diff on simple diagrams
|
|
91
|
-
5. **Rect inner-compartment rendering** — fixes rect -460
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# 17 - Italic Rendering for Abstract Classes
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Updated `Elements#header_lines` to handle the abstract + stereotype
|
|
8
|
-
combination: when a class is abstract AND has a stereotype, emit
|
|
9
|
-
both lines (stereotype normal, name italic with `_` prefix).
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
if classifier.is_abstract
|
|
13
|
-
lines << ["«abstract»", :normal] if classifier.stereotype_refs&.any?
|
|
14
|
-
lines << ["_#{classifier.name}", :italic]
|
|
15
|
-
elsif classifier.stereotype_refs&.any?
|
|
16
|
-
lines << ["«#{stereotype}»", :normal]
|
|
17
|
-
lines << [name, :bold]
|
|
18
|
-
else
|
|
19
|
-
lines << [name, :bold]
|
|
20
|
-
end
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Abstract classes now render matching EA's encoding:
|
|
24
|
-
`<text style="font-style:italic;...">_TransportationObject</text>`.
|
|
25
|
-
|
|
26
|
-
## Files changed
|
|
27
|
-
|
|
28
|
-
- `lib/ea/svg/ea_emitter/elements.rb` — `header_lines` abstract+stereotype branch
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# TODO-D 17: Remaining Parity Gaps
|
|
2
|
-
|
|
3
|
-
## Current State (2026-07-26)
|
|
4
|
-
|
|
5
|
-
- Text overlap: **87.2%** (Jaccard, set-equality per `<text>` content)
|
|
6
|
-
- Text count delta: **-83** (-0.4% vs reference; effectively at parity)
|
|
7
|
-
- Shape counts: rect -460 (-20.9%), polygon -166 (-11.2%), path -181 (-5.1%)
|
|
8
|
-
- Within tolerance: 123/188 diagrams (65.4%)
|
|
9
|
-
|
|
10
|
-
## Closed Gaps
|
|
11
|
-
|
|
12
|
-
1. QEA `$LLB=...;LLT=...;LRB=...;LRT=...` parsing — only first segment
|
|
13
|
-
carries `$`, the rest are `KEY=` after `;`. Fixed.
|
|
14
|
-
2. Connector label rendering at LLT/LRT box positions, with role + «property»
|
|
15
|
-
+ mult. Fixed.
|
|
16
|
-
3. Abstract class underscore — the underscore lives in the QEA class name
|
|
17
|
-
itself (`_CityObject`), not added by EA at render time. Fixed.
|
|
18
|
-
4. Enumeration `«enumeration»` stereotype fallback. Fixed.
|
|
19
|
-
5. Connector-level stereotype label (e.g. «import» on Package connector).
|
|
20
|
-
Fixed.
|
|
21
|
-
6. Attribute default value rendering (`name: type [mult] = default`). Fixed.
|
|
22
|
-
7. Enumeration literal visibility marker (`<text> </text>` empty slot).
|
|
23
|
-
Fixed.
|
|
24
|
-
8. Multiplicity 1..1 → "1" rendering when paired with role name. Fixed.
|
|
25
|
-
|
|
26
|
-
## Open Gaps
|
|
27
|
-
|
|
28
|
-
### Text overlap (87.2% → target ~95%+)
|
|
29
|
-
|
|
30
|
-
1. **Auto-generated legend block** (~448 missing texts):
|
|
31
|
-
- "凡例" (Legend title, 12pt bold #003060)
|
|
32
|
-
- "GMLで定義されたクラス", "CityGMLで定義されたクラス",
|
|
33
|
-
"i-URで定義されたクラス" (3 color-coded class titles)
|
|
34
|
-
- "GMLに定義されたクラス", "CityGMLに定義されたクラス",
|
|
35
|
-
"i-URに定義されたクラス" (alternative particle に instead of で)
|
|
36
|
-
- EA auto-generates these when a diagram contains color-coded
|
|
37
|
-
stereotype elements. Source data location TBD — likely tied to
|
|
38
|
-
diagram-type or per-diagram MDGDgm flag.
|
|
39
|
-
|
|
40
|
-
2. **Ghost element discriminator** (TODO-D 20, deferred):
|
|
41
|
-
- Some elements without explicit `font=` in their ObjectStyle get
|
|
42
|
-
ghost rendering (7pt #595959, no attrs); others get full rendering.
|
|
43
|
-
- Tested font_family presence → broke parity (-5000 texts).
|
|
44
|
-
- Tested classifier.package_id match → broke parity (-1500 texts).
|
|
45
|
-
- Real discriminator likely combines: ObjectStyle detail level +
|
|
46
|
-
diagram context + classifier source package. Needs EA.exe
|
|
47
|
-
disassembly reference.
|
|
48
|
-
|
|
49
|
-
3. **Missing class headers** (~150 instances):
|
|
50
|
-
- Elements like `_AbstractGeometricAggregate`, `_CityObject`,
|
|
51
|
-
`_Site`, `_Feature`, `_TransportationObject` appear in reference
|
|
52
|
-
SVGs but not in t_diagramobjects for the diagram.
|
|
53
|
-
- Cause: either EA renders implicit elements from connector
|
|
54
|
-
endpoints, or the reference SVGs were generated from a different
|
|
55
|
-
QEA version than what we have.
|
|
56
|
-
|
|
57
|
-
4. **`(from CityGML2.0)` qualifier** (9 instances):
|
|
58
|
-
- EA shows a sub-line for elements imported from a specific
|
|
59
|
-
package version.
|
|
60
|
-
- Source: probably t_object.Package_ID joined with t_package
|
|
61
|
-
version metadata.
|
|
62
|
-
|
|
63
|
-
### Shape counts
|
|
64
|
-
|
|
65
|
-
1. **rect -460**:
|
|
66
|
-
- ~3 rects per diagram missing from legend block (container with
|
|
67
|
-
rx=3 + 3 color swatch rects). 188 diagrams × ~3 = ~564 expected,
|
|
68
|
-
close to actual -460 gap.
|
|
69
|
-
- Need legend modeling first (depends on Text gap #1).
|
|
70
|
-
|
|
71
|
-
2. **polygon -166**:
|
|
72
|
-
- Per-diagram marker counts differ — EA emits duplicate polygons
|
|
73
|
-
at overlapping connector endpoints (e.g. 7 identical triangles
|
|
74
|
-
at one position). Cause unknown.
|
|
75
|
-
- Likely needs investigation of t_diagramlinks.Hidden vs visible
|
|
76
|
-
flag and how EA consolidates markers.
|
|
77
|
-
|
|
78
|
-
3. **path -181**:
|
|
79
|
-
- EA splits connector paths into individual segments per
|
|
80
|
-
style group. We consolidate same-style paths into one `<g>`.
|
|
81
|
-
- Some diagrams have 30+ path delta — needs path-per-connector
|
|
82
|
-
vs grouped-path mode selection per diagram.
|
|
83
|
-
|
|
84
|
-
## Next Steps
|
|
85
|
-
|
|
86
|
-
1. Investigate auto-generated legend feature: how EA detects "this
|
|
87
|
-
diagram needs a legend" and where the legend text/colors come from.
|
|
88
|
-
2. Find a reliable ghost-element discriminator (likely involves
|
|
89
|
-
per-element display flags we haven't parsed yet).
|
|
90
|
-
3. Investigate duplicate-polygon emission for overlapping markers.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# 18 - Canvas from image_bounds (matching EA)
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
`Canvas.from` now unions BOTH `bounds` and `image_bounds` for each
|
|
8
|
-
element. `image_bounds` captures the rendered extent (logical bounds
|
|
9
|
-
+ image padding), so the canvas grows to fit the full visual area.
|
|
10
|
-
|
|
11
|
-
Waterway canvas: 1138×869 → 1163×899 (ref=1138×892)
|
|
12
|
-
Building canvas: 1381×1524 → 1406×1554 (ref=1406×1530, width matches)
|
|
13
|
-
|
|
14
|
-
Remaining diff (25 px width on Waterway) is from image_bounds
|
|
15
|
-
extending further right than EA includes in canvas. Acceptable for
|
|
16
|
-
visual rendering — text and shapes are positioned correctly.
|
|
17
|
-
|
|
18
|
-
## Files changed
|
|
19
|
-
|
|
20
|
-
- `lib/ea/svg/ea_emitter/canvas.rb` — union bounds + image_bounds
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# TODO-D 18: Property lookup index (performance + OCP)
|
|
2
|
-
|
|
3
|
-
## Problem
|
|
4
|
-
|
|
5
|
-
`Ea::Svg::EaEmitter::Labels#property_at_end` walks every Classifier
|
|
6
|
-
and every Property on each Classifier to find a Property by ID:
|
|
7
|
-
|
|
8
|
-
```ruby
|
|
9
|
-
def property_at_end(association, end_kind)
|
|
10
|
-
id = end_kind == :source ? association.source_id : association.target_id
|
|
11
|
-
return nil unless id && model_index
|
|
12
|
-
|
|
13
|
-
model_index.values.each do |obj|
|
|
14
|
-
next unless obj.is_a?(Ea::Model::Classifier)
|
|
15
|
-
found = (obj.properties || []).find { |p| p.id == id }
|
|
16
|
-
return found if found
|
|
17
|
-
end
|
|
18
|
-
nil
|
|
19
|
-
end
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
For the 205-diagram plateau QEA this is called once per visible
|
|
23
|
-
association per diagram (~10k calls × ~600 classifiers × ~10
|
|
24
|
-
properties = 60M comparisons). That is the dominant cost in SVG
|
|
25
|
-
rendering.
|
|
26
|
-
|
|
27
|
-
## Fix
|
|
28
|
-
|
|
29
|
-
Add a lazily-built property index to `Ea::Model::Document` keyed by
|
|
30
|
-
property id. Labels (and any future consumer) calls
|
|
31
|
-
`document.property_by_id[id]` for O(1) lookup.
|
|
32
|
-
|
|
33
|
-
This keeps the lookup logic in the model (model-driven) and avoids
|
|
34
|
-
each consumer rebuilding the same index (DRY).
|
|
35
|
-
|
|
36
|
-
## Acceptance
|
|
37
|
-
|
|
38
|
-
- `Document#property_index` returns `{ property_id => Property }`.
|
|
39
|
-
- `Labels#property_at_end` uses the index.
|
|
40
|
-
- Parity text overlap remains ≥ 87%.
|
|
41
|
-
- Specs continue to pass.
|
|
42
|
-
- `rake benchmark` (or ad-hoc timing) shows measurable speed-up.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# 19 - Connector Source/Target Edge Routing from SX/SY/EX/EY
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-23)
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
`ConnectorRouter` now accepts `source_delta` and `target_delta`
|
|
8
|
-
(defaulting to [0,0]). `DiagramBuilder#compute_waypoints` passes
|
|
9
|
-
SX/SY/EX/EY from the parsed geometry to the router, which applies
|
|
10
|
-
them as deltas to the edge-attachment point.
|
|
11
|
-
|
|
12
|
-
`ExtensionGeometryParser.Placement` already exposed `sx`, `sy`,
|
|
13
|
-
`ex`, `ey` — just plumbs them through.
|
|
14
|
-
|
|
15
|
-
## Remaining diff
|
|
16
|
-
|
|
17
|
-
Waterway connectors still show ~20 px y-offset vs EA reference
|
|
18
|
-
(643 vs 663). The SX/SY deltas are small (-21 to 150) and don't
|
|
19
|
-
account for this gap. EA likely uses a different attachment
|
|
20
|
-
formula (not strict edge center) — possibly offset by half
|
|
21
|
-
font-height or other rendering consideration. Deferred to deeper
|
|
22
|
-
reverse-engineering.
|
|
23
|
-
|
|
24
|
-
## Files changed
|
|
25
|
-
|
|
26
|
-
- `lib/ea/svg/connector_router.rb` — source_delta / target_delta support
|
|
27
|
-
- `lib/ea/sources/xmi/diagram_builder.rb` — passes deltas to router
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# TODO-D 19: Replace respond_to? with is_a? (encapsulation)
|
|
2
|
-
|
|
3
|
-
## Problem
|
|
4
|
-
|
|
5
|
-
`Ea::Svg::EaEmitter::Labels#connector_stereotype` uses
|
|
6
|
-
`respond_to?(:stereotype)`:
|
|
7
|
-
|
|
8
|
-
```ruby
|
|
9
|
-
def connector_stereotype(connector)
|
|
10
|
-
rel = model_index ? model_index[connector.relationship_ref] : nil
|
|
11
|
-
stereotype = rel&.respond_to?(:stereotype) ? rel.stereotype : nil
|
|
12
|
-
return nil if stereotype.nil? || stereotype.to_s.empty?
|
|
13
|
-
"«#{stereotype}»"
|
|
14
|
-
end
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
`respond_to?` is duck-typing that hides type errors until runtime.
|
|
18
|
-
Per the project rules: use `is_a?` for type checks, or design the
|
|
19
|
-
type hierarchy so the check isn't needed.
|
|
20
|
-
|
|
21
|
-
## Fix
|
|
22
|
-
|
|
23
|
-
`Ea::Model::Relationship` (base class) now declares `stereotype` as
|
|
24
|
-
an attribute. All concrete relationship subclasses inherit it. So
|
|
25
|
-
the check should be `rel.is_a?(Ea::Model::Relationship)`.
|
|
26
|
-
|
|
27
|
-
## Acceptance
|
|
28
|
-
|
|
29
|
-
- No `respond_to?` calls in `lib/`.
|
|
30
|
-
- Connector stereotype labels still render correctly.
|
|
31
|
-
- Specs pass.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# TODO-D 20: Split Labels emitter into MECE collaborators
|
|
2
|
-
|
|
3
|
-
## Problem
|
|
4
|
-
|
|
5
|
-
`Ea::Svg::EaEmitter::Labels` currently handles three distinct
|
|
6
|
-
responsibilities:
|
|
7
|
-
|
|
8
|
-
1. Connector midpoint stereotype labels (e.g. «import»).
|
|
9
|
-
2. End-label role + «property» + multiplicity rendering.
|
|
10
|
-
3. Geometry box parsing and position resolution.
|
|
11
|
-
|
|
12
|
-
These change for different reasons:
|
|
13
|
-
|
|
14
|
-
- Midpoint rendering changes when EA's connector stereotype
|
|
15
|
-
conventions change.
|
|
16
|
-
- End-label rendering changes when role-name / multiplicity
|
|
17
|
-
rules change.
|
|
18
|
-
- Box parsing changes when the QEA geometry format changes.
|
|
19
|
-
|
|
20
|
-
MECE violation: the three concerns overlap inside one class. OCP
|
|
21
|
-
violation: adding a new label kind (e.g. connector name above the
|
|
22
|
-
midpoint) requires editing Labels rather than registering a new
|
|
23
|
-
collaborator.
|
|
24
|
-
|
|
25
|
-
## Fix
|
|
26
|
-
|
|
27
|
-
Introduce a small LabelRenderer registry:
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
Ea::Svg::EaEmitter::Label
|
|
31
|
-
├─ EndLabel (role + «property» + mult at LLT/LRT boxes)
|
|
32
|
-
├─ MidpointLabel (stereotype at path midpoint)
|
|
33
|
-
└─ Registry (dispatch by relationship kind / connector flag)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
`Labels#texts_for` becomes:
|
|
37
|
-
|
|
38
|
-
```ruby
|
|
39
|
-
def texts_for(connector)
|
|
40
|
-
points = waypoint_pairs(connector)
|
|
41
|
-
return [] if points.size < 2
|
|
42
|
-
|
|
43
|
-
Label::Registry.for(connector, model_index: model_index)
|
|
44
|
-
.flat_map { |r| r.texts(connector, points) }
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Each renderer is independently testable. New label kinds are added
|
|
49
|
-
by registering, not by editing Labels (OCP).
|
|
50
|
-
|
|
51
|
-
## Acceptance
|
|
52
|
-
|
|
53
|
-
- Three discrete classes; each has its own spec.
|
|
54
|
-
- No behavior change (parity text overlap ≥ 87%).
|
|
55
|
-
- Existing labels spec still passes.
|
|
56
|
-
- New midpoint label spec covers the «import» path.
|