BpmnRenderUtil.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /**
  2. * Checks if eventDefinition of the given element matches with semantic type.
  3. *
  4. * @param event
  5. * @param eventDefinitionType
  6. *
  7. * @return
  8. */
  9. export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
  10. /**
  11. * Check if element is a throw event.
  12. *
  13. * @param event
  14. *
  15. * @return
  16. */
  17. export function isThrowEvent(event: any): boolean;
  18. /**
  19. * Check if element is a throw event.
  20. *
  21. * @param element
  22. *
  23. * @return
  24. */
  25. export function isCollection(element: any): boolean;
  26. /**
  27. * @param element
  28. * @param defaultColor
  29. * @param overrideColor
  30. *
  31. * @return
  32. */
  33. export function getFillColor(element: any, defaultColor?: string, overrideColor?: string): string;
  34. /**
  35. * @param element
  36. * @param defaultColor
  37. * @param overrideColor
  38. *
  39. * @return
  40. */
  41. export function getStrokeColor(element: any, defaultColor?: string, overrideColor?: string): string;
  42. /**
  43. * @param element
  44. * @param defaultColor
  45. * @param defaultStrokeColor
  46. * @param overrideColor
  47. *
  48. * @return
  49. */
  50. export function getLabelColor(element: any, defaultColor?: string, defaultStrokeColor?: string, overrideColor?: string): string;
  51. /**
  52. * @param shape
  53. *
  54. * @return path
  55. */
  56. export function getCirclePath(shape: any): string;
  57. /**
  58. * @param shape
  59. * @param borderRadius
  60. *
  61. * @return path
  62. */
  63. export function getRoundRectPath(shape: any, borderRadius?: number): string;
  64. /**
  65. * @param shape
  66. *
  67. * @return path
  68. */
  69. export function getDiamondPath(shape: any): string;
  70. /**
  71. * @param shape
  72. *
  73. * @return path
  74. */
  75. export function getRectPath(shape: any): string;
  76. /**
  77. * Get width and height from element or overrides.
  78. *
  79. * @param bounds
  80. * @param overrides
  81. *
  82. * @returns
  83. */
  84. export function getBounds(bounds: Dimensions | Rect | ShapeLike, overrides?: any): Dimensions;
  85. /**
  86. * Get width from element or overrides.
  87. *
  88. * @param bounds
  89. * @param overrides
  90. *
  91. * @returns
  92. */
  93. export function getWidth(bounds: Dimensions | Rect | ShapeLike, overrides?: any): number;
  94. /**
  95. * Get height from element or overrides.
  96. *
  97. * @param bounds
  98. * @param overrides
  99. *
  100. * @returns
  101. */
  102. export function getHeight(bounds: Dimensions | Rect | ShapeLike, overrides?: any): number;
  103. export const black: string;
  104. export const white: string;
  105. export type ModdleElement = any;
  106. export type Element = any;
  107. export type ShapeLike = any;
  108. type Dimensions = import('diagram-js/lib/util/Types').Dimensions;
  109. type Rect = import('diagram-js/lib/util/Types').Rect;
  110. export { getDi, getBusinessObject as getSemantic } from "../util/ModelUtil";