bpmn-visualization
Version:
A TypeScript library for visualizing process execution data on BPMN diagrams
79 lines (78 loc) • 3.32 kB
TypeScript
/**
* Copyright 2020 Bonitasoft S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { GlobalTaskKind, MessageVisibleKind, ShapeBpmnSubProcessKind } from '../../../model/bpmn/internal';
import { ShapeBpmnEventDefinitionKind } from '../../../model/bpmn/internal';
/**
* Store all rendering defaults used by `bpmn-visualization`.
*
* **WARN**: You may use it to customize the BPMN Theme as suggested in the examples. But be aware that the way the default BPMN theme can be modified is subject to change.
*
* @category BPMN Theme
* @experimental
*/
export declare enum StyleDefault {
STROKE_WIDTH_THIN = 2,
STROKE_WIDTH_THICK = 5,
SHAPE_ACTIVITY_BOTTOM_MARGIN = 7,
SHAPE_ACTIVITY_TOP_MARGIN = 7,
SHAPE_ACTIVITY_LEFT_MARGIN = 7,
SHAPE_ACTIVITY_FROM_CENTER_MARGIN = 7,
SHAPE_ACTIVITY_MARKER_ICON_MARGIN = 5,
SHAPE_ACTIVITY_MARKER_ICON_SIZE = 20,
POOL_LABEL_SIZE = 30,
POOL_LABEL_FILL_COLOR = "none",
LANE_LABEL_SIZE = 30,
LANE_LABEL_FILL_COLOR = "none",
TEXT_ANNOTATION_BORDER_LENGTH = 10,
TEXT_ANNOTATION_FILL_COLOR = "none",
GROUP_FILL_COLOR = "none",
DEFAULT_FILL_COLOR = "White",
DEFAULT_STROKE_COLOR = "Black",
DEFAULT_FONT_FAMILY = "Arial, Helvetica, sans-serif",
DEFAULT_FONT_SIZE = 11,
DEFAULT_FONT_COLOR = "Black",
DEFAULT_MARGIN = 0,
SHAPE_ARC_SIZE = 20,
DEFAULT_OVERLAY_FILL_COLOR = "White",
DEFAULT_OVERLAY_FILL_OPACITY = 100,
DEFAULT_OVERLAY_STROKE_COLOR = "Black",
DEFAULT_OVERLAY_STROKE_WIDTH = 1,
DEFAULT_OVERLAY_FONT_SIZE = 11,
DEFAULT_OVERLAY_FONT_COLOR = "Black",
SEQUENCE_FLOW_CONDITIONAL_FROM_ACTIVITY_MARKER_FILL_COLOR = "White",
MESSAGE_FLOW_MARKER_START_FILL_COLOR = "White",
MESSAGE_FLOW_MARKER_END_FILL_COLOR = "White"
}
/**
* **WARN**: You may use it to customize the BPMN Theme as suggested in the examples. But be aware that the way the default BPMN theme can be modified is subject to change.
*
* @category BPMN Theme
* @experimental
*/
export declare class StyleUtils {
static getFillColor(style: any): string;
static getStrokeColor(style: any): string;
static getStrokeWidth(style: any): number;
static getMargin(style: any): number;
static getBpmnEventDefinitionKind(style: any): ShapeBpmnEventDefinitionKind;
static getBpmnSubProcessKind(style: any): ShapeBpmnSubProcessKind;
static getBpmnIsInterrupting(style: any): string;
static getBpmnMarkers(style: any): string;
static getBpmnIsInstantiating(style: any): boolean;
static getBpmnIsInitiating(style: any): MessageVisibleKind;
static getBpmnIsParallelEventBasedGateway(style: any): boolean;
static getBpmnGlobalTaskKind(style: any): GlobalTaskKind;
}