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,70 +0,0 @@
|
|
|
1
|
-
# 03 - EA-Style SVG Emitter
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21) (depends on 02)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
The current `Ea::Svg::Renderer` emits minimal SVG: header,
|
|
8
|
-
background rect, then per-element `<g class="element">` groups
|
|
9
|
-
with the box + label inside. EA's SVG output is structurally
|
|
10
|
-
different:
|
|
11
|
-
|
|
12
|
-
1. DOCTYPE declaration (SVG 1.0)
|
|
13
|
-
2. Root `<svg>` with `width="Xcm" height="Ycm"` and
|
|
14
|
-
`viewBox="0 0 W H"`
|
|
15
|
-
3. `<title></title>` (empty)
|
|
16
|
-
4. `<desc>Created with Enterprise Architect (Build: 1628) 2</desc>`
|
|
17
|
-
5. Background `<g style="fill:#FFFFFF;..."><rect .../></g>`
|
|
18
|
-
6. For each element, TWO `<g>` blocks:
|
|
19
|
-
a. Shape `<g>` with `style="...fill:COLOR;..."` containing the
|
|
20
|
-
`<rect>`
|
|
21
|
-
b. Text `<g>` with `style="fill:#000000;..."` containing all
|
|
22
|
-
`<text>` labels for that element
|
|
23
|
-
7. Divider line as `<g><path d="M x y L x2 y2"/></g>`
|
|
24
|
-
8. Connector paths as separate `<g>` blocks per path segment
|
|
25
|
-
9. Arrow markers as `<g><polygon .../></g>`
|
|
26
|
-
10. Connector labels as a final `<g>` block of `<text>`
|
|
27
|
-
|
|
28
|
-
The output is layered by visual category, not by element. Our
|
|
29
|
-
current emitter layers by element, mixing shapes and text in one
|
|
30
|
-
`<g>`.
|
|
31
|
-
|
|
32
|
-
## Approach
|
|
33
|
-
|
|
34
|
-
Rewrite the emitter to follow EA's layering. Each render phase
|
|
35
|
-
emits one or more `<g>` blocks in the canonical order:
|
|
36
|
-
|
|
37
|
-
1. `Ea::Svg::EaEmitter::Background`
|
|
38
|
-
2. `Ea::Svg::EaEmitter::Elements` (one shape `<g>` + one text `<g>`
|
|
39
|
-
per element, in z-order)
|
|
40
|
-
3. `Ea::Svg::EaEmitter::Dividers` (one `<g>` per divider line)
|
|
41
|
-
4. `Ea::Svg::EaEmitter::Connectors` (one `<g>` per path)
|
|
42
|
-
5. `Ea::Svg::EaEmitter::Markers` (filled / open polygons)
|
|
43
|
-
6. `Ea::Svg::EaEmitter::Labels` (all text labels last)
|
|
44
|
-
|
|
45
|
-
Each emitter is a single-responsibility class. The orchestrator
|
|
46
|
-
calls them in order.
|
|
47
|
-
|
|
48
|
-
The existing `Ea::Svg::Renderer` stays as a thinner alternative
|
|
49
|
-
(useful for diagrams without full style data, e.g. from QEA
|
|
50
|
-
sources with sparse style). The new `EaEmitter` is the default
|
|
51
|
-
when full EA-style data is available.
|
|
52
|
-
|
|
53
|
-
## Files
|
|
54
|
-
|
|
55
|
-
- `lib/ea/svg/ea_emitter.rb` (orchestrator)
|
|
56
|
-
- `lib/ea/svg/ea_emitter/background.rb`
|
|
57
|
-
- `lib/ea/svg/ea_emitter/elements.rb`
|
|
58
|
-
- `lib/ea/svg/ea_emitter/dividers.rb`
|
|
59
|
-
- `lib/ea/svg/ea_emitter/connectors.rb`
|
|
60
|
-
- `lib/ea/svg/ea_emitter/markers.rb`
|
|
61
|
-
- `lib/ea/svg/ea_emitter/labels.rb`
|
|
62
|
-
- `lib/ea/svg/ea_emitter/canvas.rb` (computes cm dimensions + viewBox)
|
|
63
|
-
- `spec/ea/svg/ea_emitter/*_spec.rb`
|
|
64
|
-
|
|
65
|
-
## Verification
|
|
66
|
-
|
|
67
|
-
- Byte-level structural diff against EA's reference SVG for one
|
|
68
|
-
diagram. We don't require pixel-perfect match (font rendering
|
|
69
|
-
differences), but the element layering, group structure, and
|
|
70
|
-
attribute presence should match.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# TODO-D 03 - Text over-rendering
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-26)
|
|
4
|
-
|
|
5
|
-
## Root cause
|
|
6
|
-
|
|
7
|
-
The tagged values compartment was rendered unconditionally for
|
|
8
|
-
every classifier that had tagged values, regardless of the
|
|
9
|
-
diagram's actual display configuration. The reference SVGs only
|
|
10
|
-
show tagged values when the per-element style has `Tag=1`.
|
|
11
|
-
|
|
12
|
-
The previous fix (TODO 70) added the TaggedValueRenderer but did
|
|
13
|
-
not gate it on the element-level Tag flag.
|
|
14
|
-
|
|
15
|
-
## Fix
|
|
16
|
-
|
|
17
|
-
`Elements#groups_for` now reads `element.show_tagged_values`
|
|
18
|
-
(parsed from the per-element style `Tag=0/1` field) and only
|
|
19
|
-
renders the tagged value compartment when the flag is set.
|
|
20
|
-
|
|
21
|
-
The `DiagramElement` model gained `show_tagged_values` boolean.
|
|
22
|
-
`ExtensionStyleParser` populates it from the `Tag=` style key.
|
|
23
|
-
`DiagramBuilder` passes it through to the model.
|
|
24
|
-
|
|
25
|
-
## Impact (full plateau measurement)
|
|
26
|
-
|
|
27
|
-
| Metric | Before | After |
|
|
28
|
-
|---|---|---|
|
|
29
|
-
| Text delta vs ref | +5134 (29% over) | -252 (parity) |
|
|
30
|
-
| Text overlap avg | 57% | 62% |
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# 04 - Connector Routing via SOID/EOID Resolution
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21, folded into TODO 03)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
EA connector geometry stores only bend deltas (SX/SY/EX/EY) and
|
|
8
|
-
the EDGE code (which side of the element the line attaches to).
|
|
9
|
-
The actual line endpoints are computed by EA's renderer at draw
|
|
10
|
-
time, by looking up the source and target element placements via
|
|
11
|
-
their DUIDs (style `SOID` and `EOID`).
|
|
12
|
-
|
|
13
|
-
Our current QEA adapter computes waypoints from the connector's
|
|
14
|
-
Start_Object_ID/End_Object_ID via the model. That works but
|
|
15
|
-
ignores the EDGE hint, producing lines that always start at the
|
|
16
|
-
element center instead of the correct edge.
|
|
17
|
-
|
|
18
|
-
## Approach
|
|
19
|
-
|
|
20
|
-
In both the QEA and XMI source adapters, when building a
|
|
21
|
-
DiagramConnector:
|
|
22
|
-
|
|
23
|
-
1. Resolve source and target placements via SOID/EOID (XMI) or
|
|
24
|
-
Start_Object_ID/End_Object_ID (QEA).
|
|
25
|
-
2. Read the `EDGE` field (1=top, 2=right, 3=bottom, 4=left,
|
|
26
|
-
5..8 = diagonal variants).
|
|
27
|
-
3. Compute the source connection point as the center of the
|
|
28
|
-
chosen edge on the source element.
|
|
29
|
-
4. Apply the SX/SY delta to get the first bend.
|
|
30
|
-
5. Apply the EX/EY delta from the target edge center to get the
|
|
31
|
-
second bend.
|
|
32
|
-
6. Compute the target connection point as the center of the
|
|
33
|
-
chosen edge on the target element.
|
|
34
|
-
|
|
35
|
-
Emit exactly 2-4 waypoints: source edge → first bend → second
|
|
36
|
-
bend → target edge. This matches EA's typical "L" or "Z" routing.
|
|
37
|
-
|
|
38
|
-
For connectors without EDGE or SOID/EOID, fall back to straight
|
|
39
|
-
line between element centers.
|
|
40
|
-
|
|
41
|
-
## Files
|
|
42
|
-
|
|
43
|
-
- `lib/ea/sources/qea/diagram_builder.rb`
|
|
44
|
-
- `lib/ea/sources/xmi/diagram_builder.rb`
|
|
45
|
-
- `lib/ea/svg/edge_anchor.rb` (computes edge center given bounds +
|
|
46
|
-
EDGE code)
|
|
47
|
-
- `spec/ea/svg/edge_anchor_spec.rb`
|
|
48
|
-
|
|
49
|
-
## Verification
|
|
50
|
-
|
|
51
|
-
- Spec: source element with EDGE=1 produces a source point at the
|
|
52
|
-
top edge center.
|
|
53
|
-
- Spec: connector with both bends produces 4 waypoints.
|
|
54
|
-
- Visual: connector lines visually attach to element edges, not
|
|
55
|
-
centers.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# TODO-D 04 - Rect under-rendering
|
|
2
|
-
|
|
3
|
-
## Status: WONTFIX (data drift) (2026-07-26)
|
|
4
|
-
|
|
5
|
-
## Investigation
|
|
6
|
-
|
|
7
|
-
Across 185 plateau diagrams, we under-render 221 rects (11%). The
|
|
8
|
-
worst case (bldg_1) shows 18 rects in reference vs 11 in ours —
|
|
9
|
-
7 missing rects.
|
|
10
|
-
|
|
11
|
-
Examining bldg_1's reference SVG reveals classifiers placed on the
|
|
12
|
-
diagram (e.g., `uro::ReservoirFloodingRiskAttribute`) that are NOT
|
|
13
|
-
in the XMI's `<diagram>/<elements>` block. The classifier exists
|
|
14
|
-
in the uml:Model hierarchy, but no `<element subject="..."/>` ref
|
|
15
|
-
places it on this diagram.
|
|
16
|
-
|
|
17
|
-
## Conclusion
|
|
18
|
-
|
|
19
|
-
The reference SVGs were generated from a MORE COMPLETE XMI than
|
|
20
|
-
the one we have. The XMI/SVG pair has drift — the SVG has
|
|
21
|
-
placements the XMI doesn't carry.
|
|
22
|
-
|
|
23
|
-
This is a fixture data issue, not an emitter bug. We cannot render
|
|
24
|
-
elements the XMI doesn't place. Closing this gap requires either:
|
|
25
|
-
|
|
26
|
-
1. Regenerating the plateau XMI from the same QEA source that
|
|
27
|
-
produced the reference SVGs.
|
|
28
|
-
2. Implementing a "implicit placement" mode that auto-places
|
|
29
|
-
classifiers referenced by connectors but not in `<elements>`.
|
|
30
|
-
This would be guesswork — we don't know where EA placed them.
|
|
31
|
-
|
|
32
|
-
Option 1 is the right path. Marking this wontfix pending fixture
|
|
33
|
-
regeneration.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# TODO-D 05 - Canvas dimension parity
|
|
2
|
-
|
|
3
|
-
## Status: PARTIAL (2026-07-26)
|
|
4
|
-
|
|
5
|
-
## Current state
|
|
6
|
-
|
|
7
|
-
| | Avg delta | Range |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| Width | +87px | -403 to +1482 |
|
|
10
|
-
| Height | +576px | -109 to +4833 |
|
|
11
|
-
|
|
12
|
-
For diagrams where XMI matches reference content (small delta),
|
|
13
|
-
the canvas is consistently ~20-25 px wider and ~7-15 px taller
|
|
14
|
-
than reference. That delta is the frame margin.
|
|
15
|
-
|
|
16
|
-
## Frame margin rule
|
|
17
|
-
|
|
18
|
-
Reference SVGs use non-uniform frame margins around element
|
|
19
|
-
bounds:
|
|
20
|
-
|
|
21
|
-
- Left: 35 px (body left to canvas left)
|
|
22
|
-
- Right: 50 px (body right to canvas right)
|
|
23
|
-
- Top: 60 px (body top to canvas top)
|
|
24
|
-
- Bottom: 36 px (body bottom to canvas bottom)
|
|
25
|
-
|
|
26
|
-
These come from EA's frame outer border (6 px from canvas edge)
|
|
27
|
-
plus an additional 29/44/54/30 px inset for the body. The asymmetry
|
|
28
|
-
exists because:
|
|
29
|
-
|
|
30
|
-
- Top: extra space for the frame tab label (extends from y=6 to
|
|
31
|
-
y=26 plus padding to body_top=60).
|
|
32
|
-
- Right/bottom: extra space for shadow / image padding.
|
|
33
|
-
|
|
34
|
-
## Fix attempted
|
|
35
|
-
|
|
36
|
-
`BoundsCalculator#compute` already reserves 20 px above each
|
|
37
|
-
Package element for the tab polygon. Adding frame-aware padding
|
|
38
|
-
to all four sides would close the per-diagram gap on small
|
|
39
|
-
diagrams.
|
|
40
|
-
|
|
41
|
-
## Why deferred
|
|
42
|
-
|
|
43
|
-
The 576 px average height delta dwarfs the frame margin issue.
|
|
44
|
-
Most of the height over-rendering is from XMI/SVG drift (we render
|
|
45
|
-
elements the reference SVG doesn't show). Until that's resolved
|
|
46
|
-
(fixture regeneration — see TODO-D 04), fixing the frame margin
|
|
47
|
-
won't move the aggregate metric meaningfully.
|
|
48
|
-
|
|
49
|
-
The small-diagram match (those closest to reference) shows the
|
|
50
|
-
frame margin fix would close ~5-10 px of the remaining 20-25 px
|
|
51
|
-
delta. Not enough to justify the added complexity right now.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# 05 - Marker Rendering Per Relationship Type
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21, folded into TODO 03)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
EA renders different arrow markers based on the connector's
|
|
8
|
-
semantic type:
|
|
9
|
-
|
|
10
|
-
- **Association** (navigable): filled triangle at target
|
|
11
|
-
- **Generalization**: open triangle at target (white fill, black
|
|
12
|
-
stroke)
|
|
13
|
-
- **Realization**: open triangle at target + dashed line
|
|
14
|
-
- **Dependency**: open arrow at target + dashed line
|
|
15
|
-
- **Aggregation** (source): open diamond at source
|
|
16
|
-
- **Composition** (source): filled diamond at source
|
|
17
|
-
|
|
18
|
-
Our current renderer emits a filled triangle at target regardless
|
|
19
|
-
of relationship type, plus a diamond for aggregations. The
|
|
20
|
-
distinction between open and filled markers matters visually.
|
|
21
|
-
|
|
22
|
-
## Approach
|
|
23
|
-
|
|
24
|
-
Add a `MarkerResolver` that maps a relationship type + end
|
|
25
|
-
(source/target) to a marker shape:
|
|
26
|
-
|
|
27
|
-
- `:filled_triangle`, `:open_triangle`, `:filled_diamond`,
|
|
28
|
-
`:open_diamond`, `:open_arrow`, `:none`
|
|
29
|
-
|
|
30
|
-
Each shape is rendered as a 4-point `<polygon>` with the
|
|
31
|
-
appropriate fill color.
|
|
32
|
-
|
|
33
|
-
The marker anchor is the END of the polyline (target) or the
|
|
34
|
-
START (source). The marker is rotated to align with the line's
|
|
35
|
-
direction at that end.
|
|
36
|
-
|
|
37
|
-
## Files
|
|
38
|
-
|
|
39
|
-
- `lib/ea/svg/marker_resolver.rb`
|
|
40
|
-
- `lib/ea/svg/marker_shapes.rb` (one class per shape)
|
|
41
|
-
- Update `lib/ea/svg/ea_emitter/markers.rb`
|
|
42
|
-
- `spec/ea/svg/marker_resolver_spec.rb`
|
|
43
|
-
|
|
44
|
-
## Verification
|
|
45
|
-
|
|
46
|
-
- Spec: Association → filled triangle at target.
|
|
47
|
-
- Spec: Generalization → open triangle at target.
|
|
48
|
-
- Spec: Composition → filled diamond at source + filled triangle
|
|
49
|
-
at target.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# 06 - Connector Labels (Role Names + Multiplicities)
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21, folded into TODO 03)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
EA renders labels on connectors at four canonical positions:
|
|
8
|
-
|
|
9
|
-
- `LLB` (lower-left, near source) — source role name
|
|
10
|
-
- `LLT` (upper-left, near source) — source multiplicity
|
|
11
|
-
- `LRB` (lower-right, near target) — target role name
|
|
12
|
-
- `LRT` (upper-right, near target) — target multiplicity
|
|
13
|
-
|
|
14
|
-
Each label has CX/CY (size), OX/OY (offset from the connector
|
|
15
|
-
endpoint), plus font/style flags.
|
|
16
|
-
|
|
17
|
-
Our current renderer emits no connector labels at all. The
|
|
18
|
-
information is in the XMI geometry string but never extracted.
|
|
19
|
-
|
|
20
|
-
## Approach
|
|
21
|
-
|
|
22
|
-
Extend the XMI adapter's geometry parser to also extract the four
|
|
23
|
-
label boxes, each as an `Ea::Model::LabelBox` with:
|
|
24
|
-
|
|
25
|
-
- `role` (:source_name, :source_multiplicity, :target_name,
|
|
26
|
-
:target_multiplicity)
|
|
27
|
-
- `text` (decoded from the model's relationship ends)
|
|
28
|
-
- `offset_x`, `offset_y` (from OX/OY)
|
|
29
|
-
- `width`, `height` (from CX/CY)
|
|
30
|
-
|
|
31
|
-
The emitter renders each label as `<text>` at the appropriate
|
|
32
|
-
offset from the connector endpoint.
|
|
33
|
-
|
|
34
|
-
For QEA sources, the same data is in the connector's `SourceRole`
|
|
35
|
-
and `DestRole` notes + cardinality fields.
|
|
36
|
-
|
|
37
|
-
## Files
|
|
38
|
-
|
|
39
|
-
- `lib/ea/model/label_box.rb`
|
|
40
|
-
- `lib/ea/sources/xmi/extension_geometry_parser.rb` (extend)
|
|
41
|
-
- `lib/ea/svg/ea_emitter/labels.rb` (extend)
|
|
42
|
-
- `spec/ea/sources/xmi/extension_geometry_parser_spec.rb`
|
|
43
|
-
- `spec/ea/svg/ea_emitter/labels_spec.rb`
|
|
44
|
-
|
|
45
|
-
## Verification
|
|
46
|
-
|
|
47
|
-
- Spec: known geometry string yields 4 label boxes with correct
|
|
48
|
-
offsets.
|
|
49
|
-
- Visual: connector labels appear at the same positions as EA.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# TODO-D 06 - Group layering parity
|
|
2
|
-
|
|
3
|
-
## Status: PARTIAL (2026-07-26)
|
|
4
|
-
|
|
5
|
-
## Current state
|
|
6
|
-
|
|
7
|
-
EA emits each `<rect>`, `<polygon>`, `<path>`, `<text>` inside its
|
|
8
|
-
own `<g>` block with a specific `style` attribute. Style strings
|
|
9
|
-
differ by:
|
|
10
|
-
|
|
11
|
-
- stroke_width (1 vs 2)
|
|
12
|
-
- stroke_linecap (round vs square)
|
|
13
|
-
- stroke_linejoin (bevel vs miter)
|
|
14
|
-
- fill color
|
|
15
|
-
- stroke color
|
|
16
|
-
- opacity
|
|
17
|
-
|
|
18
|
-
Our emitter groups output by `style_key` (a Symbol like
|
|
19
|
-
`:diamond_filled` or `:triangle_open`), with the style string
|
|
20
|
-
looked up from a small dispatch table. This matches EA's grouping
|
|
21
|
-
semantics for most cases.
|
|
22
|
-
|
|
23
|
-
## Note element body
|
|
24
|
-
|
|
25
|
-
The Note element body was previously emitted as a `<polygon>`. EA
|
|
26
|
-
emits it as a closed `<path d="M...L...Z"/>` with
|
|
27
|
-
`stroke-linejoin=bevel` and `stroke-linecap=square`. Fixed in
|
|
28
|
-
commit f4fa55f.
|
|
29
|
-
|
|
30
|
-
## Remaining gap
|
|
31
|
-
|
|
32
|
-
EA sometimes uses different `stroke-linecap` for the same shape
|
|
33
|
-
type depending on whether it's a "decorative" element (square cap)
|
|
34
|
-
or a "connector" element (round cap). Our style dispatch table
|
|
35
|
-
doesn't distinguish these. Visible in:
|
|
36
|
-
|
|
37
|
-
- Note bodies (square) vs classifier rects (round) — fixed
|
|
38
|
-
- Connector lines (round) vs divider lines (round) — both round
|
|
39
|
-
- Visibility icon rects inside attribute compartments — TBD
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# 07 - Canvas Size + viewBox Computation
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21, folded into TODO 03)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
EA's root `<svg>` element declares `width="Xcm" height="Ycm"` and
|
|
8
|
-
`viewBox="0 0 W H"`. The cm dimensions are computed from the
|
|
9
|
-
union of all element `image_bounds` (the padded bounds), with
|
|
10
|
-
~25 px padding around the canvas. The viewBox is in pixel units.
|
|
11
|
-
|
|
12
|
-
Our current renderer computes a viewBox from the union of element
|
|
13
|
-
bounds + connectors, but doesn't emit cm dimensions.
|
|
14
|
-
|
|
15
|
-
## Approach
|
|
16
|
-
|
|
17
|
-
`Ea::Svg::EaEmitter::Canvas` computes:
|
|
18
|
-
|
|
19
|
-
1. Union of all element `image_bounds` (NOT logical bounds — EA's
|
|
20
|
-
canvas size is based on the visual padding).
|
|
21
|
-
2. Adds 10 px outer margin.
|
|
22
|
-
3. Emits viewBox = "min_x min_y width height".
|
|
23
|
-
4. Emits width/height in cm as `width / 28.346` (72 DPI conversion).
|
|
24
|
-
|
|
25
|
-
The canvas module is also responsible for translating the
|
|
26
|
-
coordinate space if min_x/min_y are non-zero (EA's convention is
|
|
27
|
-
to keep the viewBox starting at 0,0 by translating all elements).
|
|
28
|
-
|
|
29
|
-
## Files
|
|
30
|
-
|
|
31
|
-
- `lib/ea/svg/ea_emitter/canvas.rb`
|
|
32
|
-
- `spec/ea/svg/ea_emitter/canvas_spec.rb`
|
|
33
|
-
|
|
34
|
-
## Verification
|
|
35
|
-
|
|
36
|
-
- Spec: known element set produces expected viewBox and cm
|
|
37
|
-
dimensions.
|
|
38
|
-
- Visual: SVG opens in a viewer at the same physical size as EA's
|
|
39
|
-
output.
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# TODO-D 07 - Full text content fidelity
|
|
2
|
-
|
|
3
|
-
## Status: PARTIAL (62% overlap) (2026-07-26)
|
|
4
|
-
|
|
5
|
-
## Current state
|
|
6
|
-
|
|
7
|
-
Text overlap (Jaccard index of text content sets between our SVG
|
|
8
|
-
and reference SVG):
|
|
9
|
-
|
|
10
|
-
- Average across 185 plateau diagrams: **62%**
|
|
11
|
-
- Best diagrams: ~95%
|
|
12
|
-
- Worst diagrams: ~20%
|
|
13
|
-
|
|
14
|
-
## What's working
|
|
15
|
-
|
|
16
|
-
- Classifier names and stereotypes render correctly when the
|
|
17
|
-
element is placed on the diagram.
|
|
18
|
-
- Attribute text matches when the element has Tag=0 (no tagged
|
|
19
|
-
values compartment).
|
|
20
|
-
- Visibility prefixes ("+ ", "- ") match.
|
|
21
|
-
- Multiplicity brackets match.
|
|
22
|
-
|
|
23
|
-
## What's still off
|
|
24
|
-
|
|
25
|
-
### 1. Tagged value visibility (mostly fixed, edge cases remain)
|
|
26
|
-
Reference SVGs don't render the "tags" header compartment except
|
|
27
|
-
on 2 diagrams. Our Tag-flag gating brought text overlap from 41%
|
|
28
|
-
to 62%. Remaining misses are likely from elements where the
|
|
29
|
-
`Tag=1` flag is set but the reference still doesn't render tags
|
|
30
|
-
— possibly tied to stereotype source (profile-applied vs
|
|
31
|
-
user-defined tagged values).
|
|
32
|
-
|
|
33
|
-
### 2. Qualified name vs simple name
|
|
34
|
-
Reference uses qualified names like
|
|
35
|
-
`uro::TrafficVolumeAttribute`. Our output sometimes uses the
|
|
36
|
-
short name only. The qualified_name attribute is set on the
|
|
37
|
-
Classifier model, but the renderer doesn't always pick it up
|
|
38
|
-
correctly when the element is placed on a sub-package diagram.
|
|
39
|
-
|
|
40
|
-
### 3. Attribute ordering
|
|
41
|
-
Within a classifier's attribute compartment, EA sorts attributes
|
|
42
|
-
by some criteria (possibly visibility then alphabetical). Our
|
|
43
|
-
ordering follows the XMI's `ownedAttribute` order, which may
|
|
44
|
-
differ.
|
|
45
|
-
|
|
46
|
-
### 4. Attribute visibility color
|
|
47
|
-
Reference uses different fill colors for public/protected/private
|
|
48
|
-
attributes (`#66413F` for some, `#595959` for others). Our
|
|
49
|
-
renderer uses a single text color from the theme.
|
|
50
|
-
|
|
51
|
-
## Path to 100% text overlap
|
|
52
|
-
|
|
53
|
-
1. Characterize the tagged value visibility rule by examining
|
|
54
|
-
which elements with `Tag=1` still don't render tags in
|
|
55
|
-
reference (estimated 5-10 diagrams).
|
|
56
|
-
|
|
57
|
-
2. Always use `classifier.qualified_name` for the header label
|
|
58
|
-
(currently mixed).
|
|
59
|
-
|
|
60
|
-
3. Sort attributes by visibility prefix, then alphabetical.
|
|
61
|
-
|
|
62
|
-
4. Apply theme.color_for_attribute_visibility for attribute text.
|
|
63
|
-
|
|
64
|
-
Each of these is a separate fix. None require architectural
|
|
65
|
-
changes.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# TODO-D 08-11 - QEA-direct pipeline
|
|
2
|
-
|
|
3
|
-
## Status: COMPLETE (2026-07-27)
|
|
4
|
-
|
|
5
|
-
## What was wired
|
|
6
|
-
|
|
7
|
-
1. **TODO-D 08**: QEA DiagramBuilder propagates StyleEx to
|
|
8
|
-
Diagram.style_ex. Theme=:119 is now correctly detected from QEA.
|
|
9
|
-
|
|
10
|
-
2. **TODO-D 09**: IdNormalizer.to_eaid converts `{GUID}` to
|
|
11
|
-
`EAID_<guid-with-underscores>` for matching reference SVG
|
|
12
|
-
filenames. The QEA stores diagram GUIDs in braces-dashes form;
|
|
13
|
-
the reference SVGs use the EAID_ underscore form.
|
|
14
|
-
|
|
15
|
-
3. **TODO-D 10**: New QEA NoteBuilder parses t_object rows with
|
|
16
|
-
object_type="Note" or "Text". These render as Package-shaped
|
|
17
|
-
diagram boxes (not dog-eared Notes — QEA's "Note" type is a
|
|
18
|
-
diagrammatic Package-shape box for free text, distinct from
|
|
19
|
-
XMI's uml:Note).
|
|
20
|
-
|
|
21
|
-
Also: connector_type from t_connector.Type is now propagated
|
|
22
|
-
to DiagramConnector so Marker::Diamond matches Aggregation
|
|
23
|
-
and Composition (was being dropped, all connectors fell back
|
|
24
|
-
to Association).
|
|
25
|
-
|
|
26
|
-
4. **TODO-D 11**: spec/ea/svg/qea_regression_spec.rb renders all
|
|
27
|
-
188 diagrams directly from the QEA against reference SVGs.
|
|
28
|
-
Passes at the 60 percent within-tolerance threshold.
|
|
29
|
-
|
|
30
|
-
## Parity delta from QEA-direct fixes
|
|
31
|
-
|
|
32
|
-
| Metric | Before | After |
|
|
33
|
-
|---|---|---|
|
|
34
|
-
| Polygon delta | n/a (was reading XMI) | -166 (was -842 at start) |
|
|
35
|
-
| Path delta | n/a | -181 |
|
|
36
|
-
| Text overlap avg | 10% (initial QEA-direct) | 56% |
|
|
37
|
-
| Within tolerance | 60.6% | 65.4% |
|
|
38
|
-
|
|
39
|
-
## Bonus fixes shipped alongside
|
|
40
|
-
|
|
41
|
-
- ClassifierBuilder no longer prepends package name to
|
|
42
|
-
qualified_name (QEA t_object.Name already includes the prefix).
|
|
43
|
-
- HeaderLines no longer renders fallback stereotype labels.
|
|
44
|
-
- AttributeRenderer no longer double-colons type names.
|
|
45
|
-
- bounds_from_rect uses min/max of rect values (QEA stores rect
|
|
46
|
-
with recttop > rectbottom).
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# 08 - Visual Regression Harness
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
"Matches EA's SVG" is a fuzzy target. We need an automated way to
|
|
8
|
-
detect regressions and measure fidelity.
|
|
9
|
-
|
|
10
|
-
## Approach
|
|
11
|
-
|
|
12
|
-
A spec that:
|
|
13
|
-
|
|
14
|
-
1. Loads `plateau_all_packages_export.xmi`.
|
|
15
|
-
2. For each diagram in the XMI's extension block, locates the
|
|
16
|
-
matching EA reference SVG in
|
|
17
|
-
`mn-samples-plateau/sources/001-mds/xmi-images/`.
|
|
18
|
-
3. Renders our SVG for the same diagram.
|
|
19
|
-
4. Compares structurally (canonicalized XML diff ignoring
|
|
20
|
-
whitespace and attribute order).
|
|
21
|
-
5. Reports: which diagrams match exactly, which have structural
|
|
22
|
-
differences, which have only attribute differences.
|
|
23
|
-
|
|
24
|
-
Not a hard-fail spec; produces a report we can track over time.
|
|
25
|
-
Once fidelity is high enough, tighten to a hard threshold.
|
|
26
|
-
|
|
27
|
-
## Files
|
|
28
|
-
|
|
29
|
-
- `spec/ea/svg/visual_regression_spec.rb`
|
|
30
|
-
- `spec/support/svg_canonicalizer.rb`
|
|
31
|
-
|
|
32
|
-
## Verification
|
|
33
|
-
|
|
34
|
-
- Run produces a report; not asserting 100% match initially.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 09 - CLI: Render All Diagrams from a Source
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
`ea svg NAME FILE` renders one named diagram. For batch
|
|
8
|
-
regeneration of all diagrams (e.g. plateau-model deploy), we need
|
|
9
|
-
a way to render every diagram in a source file.
|
|
10
|
-
|
|
11
|
-
## Approach
|
|
12
|
-
|
|
13
|
-
Add `ea svg --all FILE [--output-dir=PATH]` mode. Iterates every
|
|
14
|
-
diagram in the model, names the output file by diagram id (e.g.
|
|
15
|
-
`EAID_0016F797_....svg`).
|
|
16
|
-
|
|
17
|
-
## Files
|
|
18
|
-
|
|
19
|
-
- `lib/ea/cli/command/svg.rb` (extend)
|
|
20
|
-
- `spec/ea/cli/svg_command_spec.rb`
|
|
21
|
-
|
|
22
|
-
## Verification
|
|
23
|
-
|
|
24
|
-
- `ea svg --all plateau.xmi --output-dir=/tmp/svgs` produces one
|
|
25
|
-
SVG per diagram.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# 10 - Stereotype Color Configuration (QEA fallback)
|
|
2
|
-
|
|
3
|
-
## Status: DONE (2026-07-21)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
When the source is QEA, the element's BCol is often the default
|
|
8
|
-
white. EA picks stereotype-based colors at render time when BCol
|
|
9
|
-
is not set. Our renderer currently hard-codes a stereotype →
|
|
10
|
-
color map, which is fragile.
|
|
11
|
-
|
|
12
|
-
## Approach
|
|
13
|
-
|
|
14
|
-
Externalize the stereotype → color map to a YAML configuration
|
|
15
|
-
file (`config/stereotype_colors.yml`). Users can override per
|
|
16
|
-
project.
|
|
17
|
-
|
|
18
|
-
The XMI source carries BCol directly from EA, so the config only
|
|
19
|
-
applies when BCol is missing (QEA sources without style data).
|
|
20
|
-
|
|
21
|
-
## Files
|
|
22
|
-
|
|
23
|
-
- `config/stereotype_colors.yml`
|
|
24
|
-
- `lib/ea/svg/stereotype_color_resolver.rb`
|
|
25
|
-
- `spec/ea/svg/stereotype_color_resolver_spec.rb`
|
|
26
|
-
|
|
27
|
-
## Verification
|
|
28
|
-
|
|
29
|
-
- Custom YAML overrides default map.
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# 11 - ElkRb Auto-Layout Integration
|
|
2
|
-
|
|
3
|
-
## Status: TODO (post-PR #24)
|
|
4
|
-
|
|
5
|
-
## Problem
|
|
6
|
-
|
|
7
|
-
The current Ea::Svg::EaEmitter renders diagrams from the placement
|
|
8
|
-
data captured by the source adapter (QEA's t_diagramobjects /
|
|
9
|
-
t_diagramlinks, XMI's <xmi:Extension>/<elements>). When the source
|
|
10
|
-
doesn't carry placement data — or when the user wants to re-layout
|
|
11
|
-
an existing diagram — there's no fallback.
|
|
12
|
-
|
|
13
|
-
Eclipse Layout Kernel (ELK) is the standard auto-layout library for
|
|
14
|
-
node-link diagrams (UML class diagrams, flowcharts, etc.). `elkrb`
|
|
15
|
-
is a pure-Ruby implementation in `/Users/mulgogi/src/claricle/elkrb/`.
|
|
16
|
-
|
|
17
|
-
## Approach
|
|
18
|
-
|
|
19
|
-
Build an `Ea::Layout::ElkAdapter` that:
|
|
20
|
-
|
|
21
|
-
1. Translates an `Ea::Model::Document` (or a subset — packages,
|
|
22
|
-
classifiers, relationships) into elkrb's `Graph` / `Node` /
|
|
23
|
-
`Edge` model.
|
|
24
|
-
2. Runs the chosen elkrb algorithm (`Layered` for class diagrams
|
|
25
|
-
is the Sugiyama-style default; `Force` for organic; `Stress`
|
|
26
|
-
for high-quality).
|
|
27
|
-
3. Reads back the computed positions and writes them into an
|
|
28
|
-
`Ea::Model::Diagram` (with DiagramElement bounds and
|
|
29
|
-
DiagramConnector waypoints computed by elkrb's edge router).
|
|
30
|
-
|
|
31
|
-
Then the standard `Ea::Svg::EaEmitter` renders the layout-posed
|
|
32
|
-
diagram just like an EA-authored one. No renderer changes needed.
|
|
33
|
-
|
|
34
|
-
CLI surface:
|
|
35
|
-
- `ea layout FILE [--algorithm=layered|force|stress]` — runs
|
|
36
|
-
auto-layout, emits a JSON of computed positions
|
|
37
|
-
- `ea svg NAME FILE --layout=auto` — runs layout then renders
|
|
38
|
-
|
|
39
|
-
## Files
|
|
40
|
-
|
|
41
|
-
- `lib/ea/layout.rb` (namespace)
|
|
42
|
-
- `lib/ea/layout/elk_adapter.rb`
|
|
43
|
-
- `lib/ea/layout/document_to_graph.rb`
|
|
44
|
-
- `lib/ea/layout/graph_to_diagram.rb`
|
|
45
|
-
- `lib/ea/cli/command/layout.rb`
|
|
46
|
-
- `spec/ea/layout/*_spec.rb`
|
|
47
|
-
|
|
48
|
-
## Verification
|
|
49
|
-
|
|
50
|
-
- Spec: known small document → elk graph → known layout output.
|
|
51
|
-
- Spec: QEA fixture with no placement data → auto-layout produces
|
|
52
|
-
non-overlapping positions.
|
|
53
|
-
- Spec: round-trip — auto-layout, render to SVG, no errors.
|