Skip to content

Unexpected behavior of scenarios in combination with imported files #2449

@anthonyvdotbe

Description

@anthonyvdotbe

Consider the following 2 files:

test.d2

x -> y

scenarios: {
  production: {
    x.tooltip: foo
  }
}

test-whole.d2

a -> b

...@test

c -> x

scenarios: {
  production: {
    c.tooltip: bar
  }
}

Expected: a folder test-whole, containing index.svg and production.svg, where the only difference between the 2 is that production.svg has tooltips for x and c.

Actual: production.svg misses a -> b and c -> x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions