bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
124 lines (110 loc) • 2.55 kB
TypeScript
/**
* Checks if eventDefinition of the given element matches with semantic type.
*
* @param event
* @param eventDefinitionType
*
* @return
*/
export function isTypedEvent(event: ModdleElement, eventDefinitionType: string): boolean;
/**
* Check if element is a throw event.
*
* @param event
*
* @return
*/
export function isThrowEvent(event: ModdleElement): boolean;
/**
* Check if element is a throw event.
*
* @param element
*
* @return
*/
export function isCollection(element: ModdleElement): boolean;
/**
* @param element
* @param defaultColor
* @param overrideColor
*
* @return
*/
export function getFillColor(element: Element, defaultColor?: string, overrideColor?: string): string;
/**
* @param element
* @param defaultColor
* @param overrideColor
*
* @return
*/
export function getStrokeColor(element: Element, defaultColor?: string, overrideColor?: string): string;
/**
* @param element
* @param defaultColor
* @param defaultStrokeColor
* @param overrideColor
*
* @return
*/
export function getLabelColor(element: Element, defaultColor?: string, defaultStrokeColor?: string, overrideColor?: string): string;
/**
* @param shape
*
* @return path
*/
export function getCirclePath(shape: ShapeLike): string;
/**
* @param shape
* @param borderRadius
*
* @return path
*/
export function getRoundRectPath(shape: ShapeLike, borderRadius?: number): string;
/**
* @param shape
*
* @return path
*/
export function getDiamondPath(shape: ShapeLike): string;
/**
* @param shape
*
* @return path
*/
export function getRectPath(shape: ShapeLike): 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";