| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /**
- * Checks if eventDefinition of the given element matches with semantic type.
- *
- * @param event
- * @param eventDefinitionType
- *
- * @return
- */
- export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
- /**
- * Check if element is a throw event.
- *
- * @param event
- *
- * @return
- */
- export function isThrowEvent(event: any): boolean;
- /**
- * Check if element is a throw event.
- *
- * @param element
- *
- * @return
- */
- export function isCollection(element: any): boolean;
- /**
- * @param element
- * @param defaultColor
- * @param overrideColor
- *
- * @return
- */
- export function getFillColor(element: any, defaultColor?: string, overrideColor?: string): string;
- /**
- * @param element
- * @param defaultColor
- * @param overrideColor
- *
- * @return
- */
- export function getStrokeColor(element: any, defaultColor?: string, overrideColor?: string): string;
- /**
- * @param element
- * @param defaultColor
- * @param defaultStrokeColor
- * @param overrideColor
- *
- * @return
- */
- export function getLabelColor(element: any, defaultColor?: string, defaultStrokeColor?: string, overrideColor?: string): string;
- /**
- * @param shape
- *
- * @return path
- */
- export function getCirclePath(shape: any): string;
- /**
- * @param shape
- * @param borderRadius
- *
- * @return path
- */
- export function getRoundRectPath(shape: any, borderRadius?: number): string;
- /**
- * @param shape
- *
- * @return path
- */
- export function getDiamondPath(shape: any): string;
- /**
- * @param shape
- *
- * @return path
- */
- export function getRectPath(shape: any): string;
- /**
- * Get width and height from element or overrides.
- *
- * @param bounds
- * @param overrides
- *
- * @returns
- */
- export function getBounds(bounds: Dimensions | Rect | ShapeLike, overrides?: any): Dimensions;
- /**
- * Get width from element or overrides.
- *
- * @param bounds
- * @param overrides
- *
- * @returns
- */
- export function getWidth(bounds: Dimensions | Rect | ShapeLike, overrides?: any): number;
- /**
- * Get height from element or overrides.
- *
- * @param bounds
- * @param overrides
- *
- * @returns
- */
- export function getHeight(bounds: Dimensions | Rect | ShapeLike, overrides?: any): number;
- export const black: string;
- export const white: string;
- export type ModdleElement = any;
- export type Element = any;
- export type ShapeLike = any;
- type Dimensions = import('diagram-js/lib/util/Types').Dimensions;
- type Rect = import('diagram-js/lib/util/Types').Rect;
- export { getDi, getBusinessObject as getSemantic } from "../util/ModelUtil";
|