Class App

Represents the main application class. The App class is responsible for managing the application's lifecycle, initializing various managers and components, and providing access to important functionalities and data. It acts as a central hub for interacting with the application and its entities.

Constructors

Properties

Accessors

Methods

Constructors

Properties

__mountedId: string = ''
assetManager: AssetManager
callbackScenario: any = ''
launchAnchoringTestApp: ((nameTest: string, app: App) => Promise<undefined | number[] | {
    source: null | {
        dimensions: {
            height: number;
            width: number;
        };
        position: {
            x: number;
            y: number;
        };
    };
    target: null | {
        dimensions: {
            height: number;
            width: number;
        };
        position: {
            x: number;
            y: number;
        };
    };
}>) = launchAnchoringTest
launchDrawTestApp: ((nameTest: string, app: App) =>
    | undefined
    | Shape<ShapeConfig>
    | Group
    | RegularPolygon) = launchDrawTest
launchGeneralTestApp: ((nameTest: string, app: App) => any) = launchGeneralTest
launchTextTestApp: ((nameTest: string, app: App) =>
    | undefined
    | string
    | number
    | boolean
    | string[]
    | {
        language: any;
        text: any;
    }
    | {
        linesNumber: number;
        width: number;
    }) = launchTextTest
mockAPI: Nullable<default> = null
onAnimationFrameObservable: Observable<unknown> = ...

Observable that notifies subscribers when an update loop is triggered.

onContextMenuChangedObservable: Observable<Nullable<ContextMenuProps[]>> = ...

Observable that notifies subscribers when the context menu changes (open/close).

onContextMenuSearchResultsChangeObservable: Observable<OnContextMenuSearchResultsChangeObservableProps> = ...

Observable that notifies subscribers when the context menu search results change.

onCounterpartsAction: Observable<UserAction<keyof ActionTypeToPayloadMap>> = ...

Observable that notifies subscribers about counterparts actions.

Use onUserAction instead.

onDeletionObservable: Observable<SpecIds> = ...

Observable that notifies subscribers when an entity is deleted.

onEditorModeChangedObservable: Observable<boolean> = ...

Observable that notifies subscribers when the editor mode is enabled

onEntityDebugDetailsBoxChangedObservable: Observable<Nullable<EntityDebugDetailsBoxProps>> = ...

Observable that notifies subscribers when the entity debug details box changes.

onEntityReadyObservable: Observable<unknown> = ...

Observable that notifies subscribers when all entities are ready and displayed.

onIconsObservable: Observable<boolean[]> = ...

Observable that notifies subscribers about icon changes. This is used for testing purposes.

onLabelEditedObservable: Observable<EditedLabel> = ...

Observable that notifies subscribers when a label is edited (after the user validates the edition).

onLabelUIEditObservable: Observable<Nullable<LabelEditParams>> = ...

Observable that notifies subscribers when the label UI edit is opened/closed.

onLevelOfDetailChangedObservable: Observable<DetailLevel> = ...

Observable that notifies subscribers when the zoom level id changes.

onMessageFlowAddedObservable: Observable<MessageFlowAdded> = ...
onPlaneAddedObservable: Observable<EntityAdded> = ...

Represents the selected entity.

onRequestObservable: Observable<SpecIds> = ...

Observable that notifies subscribers when the request button is clicked on a task detailed view.

onSelectionObservable: Observable<SpecIds> = ...

Observable that notifies subscribers when an entity is selected/deselected. If the entity is deselected, the ids will be empty strings.

onSubscriptionObservable: Observable<SpecIds> = ...

Observable that notifies subscribers when the subscription button is clicked on a task detailed view.

onToolbarChangedObservable: Observable<boolean> = ...

Observable that notifies subscribers when the toolbar changes.

onTooltipChangedObservable: Observable<TooltipEditParams> = ...

Observable that notifies subscribers when the tooltip is opened/closed.

onUserAction: Observable<UserAction<keyof ActionTypeToPayloadMap>> = ...

Observable that notifies subscribers when a user action occurs. This includes actions such as context menu interaction, counterparts clicks, etc.

onZoomChangedObservable: Observable<number> = ...

Observable that notifies subscribers when the zoom level changes.

selectedEntity: Nullable<Entity<Spec>> = null
stagePositionChangedObservable: Observable<Vector2d> = ...

Observable that notifies subscribers when the stage position changes.

testHelpers: {
    specCompare: ((entity: Entity<Spec>, spec: any, index: number) => boolean);
} = ...

Accessors

  • get Version(): string
  • Internal

    Current version of the application.

    Automatically updated by the build process.

    Returns string

Methods

  • Internal

    Adds an annotation to the entity.

    Parameters

    • entityId: string

      The ID of the entity.

    • Optionalannotation: {
          attributes: undefined | {
              key: string;
              values: {
                  lcid: number;
                  value: unknown;
              }[];
          }[];
          id: undefined | string;
          properties:
              | {
                  evType: undefined | string;
                  type:
                      | EV_START
                      | EV_START_NON_INTERRUPTING
                      | EV_INTERMEDIATE_NON_INTERRUPTING
                      | EV_END
                      | EV_INTERMEDIATE;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  columnSpan: number;
                  rowSpan: number;
                  type: POOL;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  columnSpan: number;
                  isEmpty: undefined | boolean;
                  rowSpan: number;
                  type: LANE;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  type: CONDITION;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  type: RULE_OR | RULE_XOR | RULE_AND;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  decorations: undefined | {
                      key: string;
                      value: number;
                  }[];
                  detailContent: undefined | string;
                  kpis: undefined | {
                      status: string;
                  };
                  processMarker: undefined | string;
                  requestEnabled: undefined | boolean;
                  source: undefined | string;
                  status: undefined | {
                      action: undefined | string;
                      color: undefined | string;
                      name: undefined | string;
                      percentage: undefined | number;
                  };
                  subscriptionEnabled: undefined | boolean;
                  taskMarker: undefined | string;
                  taskType: undefined | string;
                  type:
                      | TASK
                      | FUNC
                      | MAIN_PROCESS_IF
                      | MAIN_PROCESS
                      | SCENARIO_IF
                      | SCENARIO
                      | SUB_PROCESS_IF
                      | SUB_PROCESS
                      | TRANSACTION
                      | CALL_ACTIVITY
                      | IF_PLACEHOLDER
                      | EXTERNAL_TASK
                      | SUB_SUB_CATEGORY;
                  version: undefined | string;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  anchors: number[];
                  isDrawing: undefined | boolean;
                  kind: EDGE;
                  message: undefined | {
                      text: undefined | string;
                      xOffset: number;
                      yOffset: number;
                  };
                  messageVisibleKind: undefined | string;
                  points: number[];
                  status: undefined | {
                      color: string;
                  };
                  type: string;
              }
              | {
                  columnSpan: number;
                  rotation: number;
                  rowSpan: number;
                  text: string;
                  type: LABEL;
              } & {
                  column: undefined | number;
                  height: number;
                  kind: "shape" | "plane";
                  laneId: undefined | string;
                  poolId: undefined | string;
                  row: undefined | number;
                  type: string;
                  width: number;
                  x: number;
                  y: number;
              }
              | {
                  type: string;
                  typeDisplayName: string;
              };
      }

      The annotation to add.

      • attributes: undefined | {
            key: string;
            values: {
                lcid: number;
                value: unknown;
            }[];
        }[]
      • id: undefined | string
      • properties:
            | {
                evType: undefined | string;
                type:
                    | EV_START
                    | EV_START_NON_INTERRUPTING
                    | EV_INTERMEDIATE_NON_INTERRUPTING
                    | EV_END
                    | EV_INTERMEDIATE;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                columnSpan: number;
                rowSpan: number;
                type: POOL;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                columnSpan: number;
                isEmpty: undefined | boolean;
                rowSpan: number;
                type: LANE;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                type: CONDITION;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                type: RULE_OR | RULE_XOR | RULE_AND;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                decorations: undefined | {
                    key: string;
                    value: number;
                }[];
                detailContent: undefined | string;
                kpis: undefined | {
                    status: string;
                };
                processMarker: undefined | string;
                requestEnabled: undefined | boolean;
                source: undefined | string;
                status: undefined | {
                    action: undefined | string;
                    color: undefined | string;
                    name: undefined | string;
                    percentage: undefined | number;
                };
                subscriptionEnabled: undefined | boolean;
                taskMarker: undefined | string;
                taskType: undefined | string;
                type:
                    | TASK
                    | FUNC
                    | MAIN_PROCESS_IF
                    | MAIN_PROCESS
                    | SCENARIO_IF
                    | SCENARIO
                    | SUB_PROCESS_IF
                    | SUB_PROCESS
                    | TRANSACTION
                    | CALL_ACTIVITY
                    | IF_PLACEHOLDER
                    | EXTERNAL_TASK
                    | SUB_SUB_CATEGORY;
                version: undefined | string;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                anchors: number[];
                isDrawing: undefined | boolean;
                kind: EDGE;
                message: undefined | {
                    text: undefined | string;
                    xOffset: number;
                    yOffset: number;
                };
                messageVisibleKind: undefined | string;
                points: number[];
                status: undefined | {
                    color: string;
                };
                type: string;
            }
            | {
                columnSpan: number;
                rotation: number;
                rowSpan: number;
                text: string;
                type: LABEL;
            } & {
                column: undefined | number;
                height: number;
                kind: "shape" | "plane";
                laneId: undefined | string;
                poolId: undefined | string;
                row: undefined | number;
                type: string;
                width: number;
                x: number;
                y: number;
            }
            | {
                type: string;
                typeDisplayName: string;
            }

    Returns void

  • Parameters

    • relatedElement: any

    Returns void

  • Adds a new annotation to the entity.

    Parameters

    • entityId: string

    Returns void

  • Adds a KPI to the task entity and keep existing ones.

    Parameters

    Returns void

  • Deletes an annotation from the entity.

    Parameters

    • entityId: string

      The ID of the entity.

    • annotationId: string

      The ID of the annotation to delete.

    Returns void

  • Disables the entities with the specified IDs.

    Parameters

    • entityIds: string[]

      An array of entity IDs to disable.

    Returns void

  • Internal

    Disposes the app and cleans up any resources.

    Returns void

  • This is an alias for setKpi.

    Parameters

    Returns void

  • Enables the entities with the specified IDs.

    Parameters

    • entityIds: string[]

      An array of entity IDs.

    Returns void

  • Internal

    Retrieves the canvas element.

    Returns HTMLDivElement

    The canvas element.

  • Internal

    Retrieves the configuration (vertical or horizontal).

    Returns "horizontal" | "vertical"

    The configuration.

  • Retrieves the counterparts data (the current spec loaded).

    Returns null | {
        counterparts: {};
    }

  • Internal

    Retrieves the data (the current spec loaded).

    Returns null | {
        configuration: {
            primary: undefined | number;
            secondary: undefined | number;
            vertical: boolean;
        }[];
        elements: {
            attachments: undefined | {
                title: string;
                type: string;
                typeDisplayName: string | {
                    values: {
                        lcid: ...;
                        value: ...;
                    }[];
                };
                url: string;
            }[];
            attributeDisplays: undefined | {
                anchor: undefined | string;
                height: number;
                horizontalAlignment: string;
                key: string;
                rotation: number;
                verticalAlignment: string;
                width: number;
                xOffset: number;
                yOffset: number;
            }[];
            attributes: undefined | {
                key: string;
                values: {
                    lcid: number;
                    value: unknown;
                }[];
            }[];
            containerId: undefined | string;
            id: undefined | string;
            properties:
                | {
                    evType: undefined | string;
                    type:
                        | EV_START
                        | EV_START_NON_INTERRUPTING
                        | EV_INTERMEDIATE_NON_INTERRUPTING
                        | EV_END
                        | EV_INTERMEDIATE;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    columnSpan: number;
                    rowSpan: number;
                    type: POOL;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    columnSpan: number;
                    isEmpty: undefined | boolean;
                    rowSpan: number;
                    type: LANE;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    type: CONDITION;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    type: RULE_OR | RULE_XOR | RULE_AND;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    decorations: undefined | {
                        key: string;
                        value: number;
                    }[];
                    detailContent: undefined | string;
                    kpis: undefined | {
                        status: string;
                    };
                    processMarker: undefined | string;
                    requestEnabled: undefined | boolean;
                    source: undefined | string;
                    status: undefined | {
                        action: undefined | string;
                        color: undefined | string;
                        name: undefined | string;
                        percentage: undefined | number;
                    };
                    subscriptionEnabled: undefined | boolean;
                    taskMarker: undefined | string;
                    taskType: undefined | string;
                    type:
                        | TASK
                        | FUNC
                        | MAIN_PROCESS_IF
                        | MAIN_PROCESS
                        | SCENARIO_IF
                        | SCENARIO
                        | SUB_PROCESS_IF
                        | SUB_PROCESS
                        | TRANSACTION
                        | CALL_ACTIVITY
                        | IF_PLACEHOLDER
                        | EXTERNAL_TASK
                        | SUB_SUB_CATEGORY;
                    version: undefined | string;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    anchors: number[];
                    isDrawing: undefined | boolean;
                    kind: EDGE;
                    message: undefined | {
                        text: undefined | string;
                        xOffset: number;
                        yOffset: number;
                    };
                    messageVisibleKind: undefined | string;
                    points: number[];
                    status: undefined | {
                        color: string;
                    };
                    type: string;
                }
                | {
                    columnSpan: number;
                    rotation: number;
                    rowSpan: number;
                    text: string;
                    type: LABEL;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                };
            related: undefined | {
                ids: string[];
                key: string;
                shortKey: undefined | string;
            }[];
            shapeId: undefined | string;
            source: undefined | {
                id: undefined | string;
                port: string;
                portOffset: undefined | number;
                portRatio: undefined | number;
                shapeId: undefined | string;
            };
            target: undefined | {
                id: undefined | string;
                port: string;
                portOffset: undefined | number;
                portRatio: undefined | number;
                shapeId: undefined | string;
            };
            versionId: undefined | string;
        }[];
        relatedElements: undefined | {
            attributes: undefined | {
                key: string;
                values: {
                    lcid: number;
                    value: unknown;
                }[];
            }[];
            id: undefined | string;
            properties:
                | {
                    evType: undefined | string;
                    type:
                        | EV_START
                        | EV_START_NON_INTERRUPTING
                        | EV_INTERMEDIATE_NON_INTERRUPTING
                        | EV_END
                        | EV_INTERMEDIATE;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    columnSpan: number;
                    rowSpan: number;
                    type: POOL;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    columnSpan: number;
                    isEmpty: undefined | boolean;
                    rowSpan: number;
                    type: LANE;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    type: CONDITION;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    type: RULE_OR | RULE_XOR | RULE_AND;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    decorations: undefined | {
                        key: ...;
                        value: ...;
                    }[];
                    detailContent: undefined | string;
                    kpis: undefined | {
                        status: string;
                    };
                    processMarker: undefined | string;
                    requestEnabled: undefined | boolean;
                    source: undefined | string;
                    status: undefined | {
                        action: (...) | (...);
                        color: (...) | (...);
                        name: (...) | (...);
                        percentage: (...) | (...);
                    };
                    subscriptionEnabled: undefined | boolean;
                    taskMarker: undefined | string;
                    taskType: undefined | string;
                    type:
                        | TASK
                        | FUNC
                        | MAIN_PROCESS_IF
                        | MAIN_PROCESS
                        | SCENARIO_IF
                        | SCENARIO
                        | SUB_PROCESS_IF
                        | SUB_PROCESS
                        | TRANSACTION
                        | CALL_ACTIVITY
                        | IF_PLACEHOLDER
                        | EXTERNAL_TASK
                        | SUB_SUB_CATEGORY;
                    version: undefined | string;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    anchors: number[];
                    isDrawing: undefined | boolean;
                    kind: EDGE;
                    message: undefined | {
                        text: undefined | string;
                        xOffset: number;
                        yOffset: number;
                    };
                    messageVisibleKind: undefined | string;
                    points: number[];
                    status: undefined | {
                        color: string;
                    };
                    type: string;
                }
                | {
                    columnSpan: number;
                    rotation: number;
                    rowSpan: number;
                    text: string;
                    type: LABEL;
                } & {
                    column: undefined | number;
                    height: number;
                    kind: "shape" | "plane";
                    laneId: undefined | string;
                    poolId: undefined | string;
                    row: undefined | number;
                    type: string;
                    width: number;
                    x: number;
                    y: number;
                }
                | {
                    type: string;
                    typeDisplayName: string;
                };
        }[];
    }

    The data.

  • Is the editor mode enabled.

    Returns boolean

    Editor mode status.

  • Internal

    Initializes the stage position so it is centered on the main pool

    Returns void

  • Loads a counterparts spec. Will be dynamically validated to make sure it's a valid spec. This is the same as loadCounterpartsJson but with a plain object instead of a JSON string.

    Parameters

    • obj: any

      The object to load.

    Returns void

  • Loads a counterparts JSON spec. Will be dynamically validated to make sure it's a valid spec.

    Parameters

    • json: string

      The JSON string to load.

    Returns void

  • Internal

    Loads the debug KPI JSON data, that is hardcoded.

    Returns void

  • Asynchronously loads a JSON spec. Will be dynamically validated to make sure it's a valid spec.

    Parameters

    • json: string

      The JSON string to load.

    • languageConfig: boolean = true

      A boolean indicating whether to load the language configuration from inside the JSON.

    Returns Promise<void>

    A promise that resolves when the JSON is loaded.

  • Asynchronously loads a KPI JSON spec. Will be dynamically validated to make sure it's a valid spec.

    Parameters

    • json: string

      The JSON string to load.

    Returns Promise<void>

    A promise that resolves when the JSON is loaded.

  • Loads a KPI spec. Will be dynamically validated to make sure it's a valid spec. This is the same as loadKPIJson but with a plain object instead of a JSON string.

    Parameters

    • obj: any

      The object to load.

    Returns void

  • Loads a messageFlow JSON spec.

    Parameters

    • json: string

      The JSON string to load.

    Returns void

  • Apply the messageFlow JSON spec to the configuration.

    Parameters

    • obj: any

    Returns void

  • Loads a spec. Will be dynamically validated to make sure it's a valid spec. This is the same as loadJson but with a plain object instead of a JSON string.

    Parameters

    • obj: any

      The object to load.

    • languageConfig: boolean = true

      A boolean indicating whether to load the language configuration from inside the JSON.

    Returns Promise<void>

  • Loads the test counterparts JSON data, that is hardcoded.

    Parameters

    • json: any

    Returns void

  • Internal

    Loads the test JSON debug data from local storage.

    Returns void

  • Internal

    Loads the test KPI JSON data, that is hardcoded.

    Parameters

    • debugKpiJson: any

    Returns void

  • Internal

    Loads the test messageFlow JSON data.

    Parameters

    • debugMessageFlowJson: any

    Returns void

  • Removes a KPI from the task entity with the specified ID.

    Parameters

    • id: string

      The ID of the entity.

    Returns void

  • Removes KPIs from all task entities.

    Returns void

  • Selects an entity based on its ID.

    Parameters

    • entityId: string

      The ID of the entity to be selected.

    Returns void

  • Sets the centering mode.

    Parameters

    • value: boolean

      The va lue indicating whether centering is enabled or not.

    Returns void

  • Internal

    Parameters

    • configuration: "horizontal" | "vertical"

    Returns void

  • Sets the search results for the context menu. Used as a response to the search bar input.

    Parameters

    Returns void

  • Sets the KPI for a given task entity and replaces them all.

    Parameters

    Returns void

  • Sets the languages for the application. Will not reload the application.

    Parameters

    Returns void

  • Sets the primary language for the application. Will reload the application

    Parameters

    • language: number

      The language to set as the primary language.

    Returns void

  • Enables or disables scrolling.

    Parameters

    • enabled: boolean

      A boolean value indicating whether scrolling should be enabled or disabled.

    Returns void

  • Sets the secondary language for the application. Will reload the application

    Parameters

    • language: number

      The language code for the secondary language.

    Returns void

  • Internal

    Starts the app rendering loop.

    Parameters

    • canvasId: string

    Returns void

  • Focus a given entity and start the label edition (display the edition textarea)

    Parameters

    • shapeId: string

    Returns void

  • Exports the current state of the application as an SVG.

    Returns void

  • Enable or disable planes focus

    When disabled, planes won't be focusable and won't be highlighted when hovered, clicking on a plane label won't display its related context menu

    You can use the VITE_PLANES_SELECTION_ENABLED env variable as well

    Parameters

    • focusable: boolean = !Config.PLANES_SELECTION_ENABLED

    Returns void

  • Toggle the toolbar visibility.

    Parameters

    • enable: boolean = !Config.ENABLE_TOOLBAR

    Returns void

  • Same method as updateJson but with a plain object instead of a JSON string.

    Parameters

    • obj: any

      The object to be updated.

    Returns Promise<void>

    void

  • Update all the counterparts, or a single entity counterparts. Counterparts can be provided as a string or an object.

    this.updateCounterparts(counterparts, false) // Patch the counterparts of the provided entities this.updateCounterparts(counterparts, true) // Update all the counterparts

    Parameters

    • counterparts: any

      The counterparts to update.

    • diff: boolean = false

      A boolean indicating whether to update all the counterparts or just the provided ones.

    Returns void

  • Updates the JSON object with the provided data. All the entities that are present in the JSON will be updated. All the entities that are not present in the JSON will be removed.

    Parameters

    • json: any

      The JSON string to be parsed and updated.

    Returns Promise<void>

    void