/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { ConnectionDefaultsBase, ConnectionOptionsBase } from '@progress/kendo-diagram-common'; import { TooltipOptions } from './TooltipTypes'; /** * Defines the configuration options for diagram connections. * Extends the base connection options and adds tooltip support. */ export interface ConnectionOptions extends Omit { /** * Configures the tooltip that displays when you hover over the connection. */ tooltip?: TooltipOptions; /** * Sets the text content displayed in the tooltip. */ tooltipText?: string; } /** * Defines the default configuration options for all connections in the `Diagram`. * These settings apply to connections unless overridden by individual connection options. */ export interface ConnectionDefaults extends Omit { /** * Configures the default tooltip settings for all connections. */ tooltip?: TooltipOptions; } /** * Defines the field mapping configuration for connections data binding. * Maps source object properties to `Diagram` connection properties. */ export interface ConnectionModelFields { /** * The field that contains the source shape identifier. */ from?: string; /** * The field that contains the target shape identifier. */ to?: string; /** * The field that contains the connection points. */ points?: string; /** * The field that contains the data item reference. */ dataItem?: string; /** * The field that contains the tooltip text. */ tooltipText?: string; }