Comparing version 15.2.2 to 16.0.0
@@ -13,2 +13,3 @@ import inherits from 'inherits-browser'; | ||
isExpanded, | ||
isHorizontal, | ||
isEventSubProcess | ||
@@ -1067,6 +1068,8 @@ } from '../util/DiUtil'; | ||
function renderLaneLabel(parentGfx, text, element, attrs = {}) { | ||
var isHorizontalLane = isHorizontal(element); | ||
var textBox = renderLabel(parentGfx, text, { | ||
box: { | ||
height: 30, | ||
width: getHeight(element, attrs), | ||
width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs), | ||
}, | ||
@@ -1079,5 +1082,6 @@ align: 'center-middle', | ||
var top = -1 * getHeight(element, attrs); | ||
transform(textBox, 0, -top, 270); | ||
if (isHorizontalLane) { | ||
var top = -1 * getHeight(element, attrs); | ||
transform(textBox, 0, -top, 270); | ||
} | ||
} | ||
@@ -1800,2 +1804,3 @@ | ||
var expandedParticipant = isExpanded(element); | ||
var horizontalParticipant = isHorizontal(element); | ||
@@ -1806,3 +1811,3 @@ var semantic = getSemantic(element), | ||
if (expandedParticipant) { | ||
drawLine(parentGfx, [ | ||
var waypoints = horizontalParticipant ? [ | ||
{ | ||
@@ -1816,3 +1821,14 @@ x: 30, | ||
} | ||
], { | ||
] : [ | ||
{ | ||
x: 0, | ||
y: 30 | ||
}, | ||
{ | ||
x: getWidth(element, attrs), | ||
y: 30 | ||
} | ||
]; | ||
drawLine(parentGfx, waypoints, { | ||
stroke: getStrokeColor(element, defaultStrokeColor, attrs.stroke), | ||
@@ -1824,4 +1840,11 @@ strokeWidth: PARTICIPANT_STROKE_WIDTH | ||
} else { | ||
renderLabel(parentGfx, name, { | ||
box: getBounds(element, attrs), | ||
var bounds = getBounds(element, attrs); | ||
if (!horizontalParticipant) { | ||
bounds.height = getWidth(element, attrs); | ||
bounds.width = getHeight(element, attrs); | ||
} | ||
var textBox = renderLabel(parentGfx, name, { | ||
box: bounds, | ||
align: 'center-middle', | ||
@@ -1832,2 +1855,7 @@ style: { | ||
}); | ||
if (!horizontalParticipant) { | ||
var top = -1 * getHeight(element, attrs); | ||
transform(textBox, 0, -top, 270); | ||
} | ||
} | ||
@@ -1834,0 +1862,0 @@ |
@@ -232,3 +232,3 @@ import { | ||
* @param {string} className | ||
* @param {string} [title] | ||
* @param {string} title | ||
* @param {Object} [options] | ||
@@ -240,7 +240,2 @@ * | ||
if (typeof title !== 'string') { | ||
options = title; | ||
title = translate('Append {type}', { type: type.replace(/^bpmn:/, '') }); | ||
} | ||
function appendStart(event, element) { | ||
@@ -311,3 +306,3 @@ | ||
className: 'bpmn-icon-lane-insert-above', | ||
title: translate('Add Lane above'), | ||
title: translate('Add lane above'), | ||
action: { | ||
@@ -328,3 +323,3 @@ click: function(event, element) { | ||
className: 'bpmn-icon-lane-divide-two', | ||
title: translate('Divide into two Lanes'), | ||
title: translate('Divide into two lanes'), | ||
action: { | ||
@@ -342,3 +337,3 @@ click: splitLaneHandler(2) | ||
className: 'bpmn-icon-lane-divide-three', | ||
title: translate('Divide into three Lanes'), | ||
title: translate('Divide into three lanes'), | ||
action: { | ||
@@ -356,3 +351,3 @@ click: splitLaneHandler(3) | ||
className: 'bpmn-icon-lane-insert-below', | ||
title: translate('Add Lane below'), | ||
title: translate('Add lane below'), | ||
action: { | ||
@@ -376,3 +371,3 @@ click: function(event, element) { | ||
'bpmn-icon-receive-task', | ||
translate('Append ReceiveTask') | ||
translate('Append receive task') | ||
), | ||
@@ -382,3 +377,3 @@ 'append.message-intermediate-event': appendAction( | ||
'bpmn-icon-intermediate-event-catch-message', | ||
translate('Append MessageIntermediateCatchEvent'), | ||
translate('Append message intermediate catch event'), | ||
{ eventDefinitionType: 'bpmn:MessageEventDefinition' } | ||
@@ -389,3 +384,3 @@ ), | ||
'bpmn-icon-intermediate-event-catch-timer', | ||
translate('Append TimerIntermediateCatchEvent'), | ||
translate('Append timer intermediate catch event'), | ||
{ eventDefinitionType: 'bpmn:TimerEventDefinition' } | ||
@@ -396,3 +391,3 @@ ), | ||
'bpmn-icon-intermediate-event-catch-condition', | ||
translate('Append ConditionIntermediateCatchEvent'), | ||
translate('Append conditional intermediate catch event'), | ||
{ eventDefinitionType: 'bpmn:ConditionalEventDefinition' } | ||
@@ -403,3 +398,3 @@ ), | ||
'bpmn-icon-intermediate-event-catch-signal', | ||
translate('Append SignalIntermediateCatchEvent'), | ||
translate('Append signal intermediate catch event'), | ||
{ eventDefinitionType: 'bpmn:SignalEventDefinition' } | ||
@@ -434,3 +429,3 @@ ) | ||
'bpmn-icon-end-event-none', | ||
translate('Append EndEvent') | ||
translate('Append end event') | ||
), | ||
@@ -440,3 +435,3 @@ 'append.gateway': appendAction( | ||
'bpmn-icon-gateway-none', | ||
translate('Append Gateway') | ||
translate('Append gateway') | ||
), | ||
@@ -446,3 +441,3 @@ 'append.append-task': appendAction( | ||
'bpmn-icon-task', | ||
translate('Append Task') | ||
translate('Append task') | ||
), | ||
@@ -452,3 +447,3 @@ 'append.intermediate-event': appendAction( | ||
'bpmn-icon-intermediate-event-none', | ||
translate('Append Intermediate/Boundary Event') | ||
translate('Append intermediate/boundary event') | ||
) | ||
@@ -490,3 +485,3 @@ }); | ||
'bpmn-icon-text-annotation', | ||
translate('Append TextAnnotation') | ||
translate('Append text annotation') | ||
) | ||
@@ -508,3 +503,3 @@ }); | ||
'bpmn-icon-text-annotation', | ||
translate('Append TextAnnotation') | ||
translate('Append text annotation') | ||
), | ||
@@ -519,4 +514,4 @@ | ||
? '' | ||
: 'Sequence/MessageFlow or ') + | ||
'Association' | ||
: 'sequence/message flow or ') + | ||
'association' | ||
), | ||
@@ -536,3 +531,3 @@ action: { | ||
className: 'bpmn-icon-connection-multi', | ||
title: translate('Connect using Association'), | ||
title: translate('Connect using association'), | ||
action: { | ||
@@ -551,3 +546,3 @@ click: startConnect, | ||
className: 'bpmn-icon-connection-multi', | ||
title: translate('Connect using DataInputAssociation'), | ||
title: translate('Connect using data input association'), | ||
action: { | ||
@@ -566,3 +561,3 @@ click: startConnect, | ||
'bpmn-icon-text-annotation', | ||
translate('Append TextAnnotation') | ||
translate('Append text annotation') | ||
) | ||
@@ -569,0 +564,0 @@ }); |
@@ -14,5 +14,9 @@ import { | ||
import { isAny } from '../modeling/util/ModelingUtil'; | ||
import { isExpanded } from '../../util/DiUtil'; | ||
import { | ||
isExpanded, | ||
isHorizontal | ||
} from '../../util/DiUtil'; | ||
import { | ||
getExternalLabelMid, | ||
@@ -281,4 +285,5 @@ isLabelExternal, | ||
if (is(element, 'bpmn:Lane') || isExpandedPool(element)) { | ||
var isHorizontalLane = isHorizontal(element); | ||
assign(bounds, { | ||
var laneBounds = isHorizontalLane ? { | ||
width: bbox.height, | ||
@@ -288,4 +293,37 @@ height: 30 * zoom, | ||
y: mid.y - (30 * zoom) / 2 | ||
} : { | ||
width: bbox.width, | ||
height: 30 * zoom | ||
}; | ||
assign(bounds, laneBounds); | ||
assign(style, { | ||
fontSize: defaultFontSize + 'px', | ||
lineHeight: defaultLineHeight, | ||
paddingTop: (7 * zoom) + 'px', | ||
paddingBottom: (7 * zoom) + 'px', | ||
paddingLeft: (5 * zoom) + 'px', | ||
paddingRight: (5 * zoom) + 'px', | ||
transform: isHorizontalLane ? 'rotate(-90deg)' : null | ||
}); | ||
} | ||
// internal labels for collapsed participants | ||
if (isCollapsedPool(element)) { | ||
var isHorizontalPool = isHorizontal(element); | ||
var poolBounds = isHorizontalPool ? { | ||
width: bbox.width, | ||
height: bbox.height | ||
} : { | ||
width: bbox.height, | ||
height: bbox.width, | ||
x: mid.x - bbox.height / 2, | ||
y: mid.y - bbox.width / 2 | ||
}; | ||
assign(bounds, poolBounds); | ||
assign(style, { | ||
@@ -298,3 +336,3 @@ fontSize: defaultFontSize + 'px', | ||
paddingRight: (5 * zoom) + 'px', | ||
transform: 'rotate(-90deg)' | ||
transform: isHorizontalPool ? null : 'rotate(-90deg)' | ||
}); | ||
@@ -304,6 +342,5 @@ } | ||
// internal labels for tasks and collapsed call activities, | ||
// sub processes and participants | ||
// internal labels for tasks and collapsed call activities | ||
// and sub processes | ||
if (isAny(element, [ 'bpmn:Task', 'bpmn:CallActivity' ]) || | ||
isCollapsedPool(element) || | ||
isCollapsedSubProcess(element)) { | ||
@@ -310,0 +347,0 @@ |
@@ -38,6 +38,11 @@ import inherits from 'inherits-browser'; | ||
if (isAny(bo, elementTypesToUpdate) && !di.get('isHorizontal')) { | ||
if (isAny(bo, elementTypesToUpdate)) { | ||
var isHorizontal = di.get('isHorizontal'); | ||
if (isHorizontal === undefined) { | ||
isHorizontal = true; | ||
} | ||
// set attribute directly to avoid modeling#updateProperty side effects | ||
di.set('isHorizontal', true); | ||
di.set('isHorizontal', isHorizontal); | ||
} | ||
@@ -44,0 +49,0 @@ }); |
@@ -87,8 +87,6 @@ import { | ||
var shortType = type.replace(/^bpmn:/, ''); | ||
return { | ||
group: group, | ||
className: className, | ||
title: title || translate('Create {type}', { type: shortType }), | ||
title: title, | ||
action: { | ||
@@ -131,3 +129,3 @@ dragstart: createListener, | ||
className: 'bpmn-icon-hand-tool', | ||
title: translate('Activate the hand tool'), | ||
title: translate('Activate hand tool'), | ||
action: { | ||
@@ -142,3 +140,3 @@ click: function(event) { | ||
className: 'bpmn-icon-lasso-tool', | ||
title: translate('Activate the lasso tool'), | ||
title: translate('Activate lasso tool'), | ||
action: { | ||
@@ -153,3 +151,3 @@ click: function(event) { | ||
className: 'bpmn-icon-space-tool', | ||
title: translate('Activate the create/remove space tool'), | ||
title: translate('Activate create/remove space tool'), | ||
action: { | ||
@@ -164,3 +162,3 @@ click: function(event) { | ||
className: 'bpmn-icon-connection-multi', | ||
title: translate('Activate the global connect tool'), | ||
title: translate('Activate global connect tool'), | ||
action: { | ||
@@ -178,27 +176,27 @@ click: function(event) { | ||
'bpmn:StartEvent', 'event', 'bpmn-icon-start-event-none', | ||
translate('Create StartEvent') | ||
translate('Create start event') | ||
), | ||
'create.intermediate-event': createAction( | ||
'bpmn:IntermediateThrowEvent', 'event', 'bpmn-icon-intermediate-event-none', | ||
translate('Create Intermediate/Boundary Event') | ||
translate('Create intermediate/boundary event') | ||
), | ||
'create.end-event': createAction( | ||
'bpmn:EndEvent', 'event', 'bpmn-icon-end-event-none', | ||
translate('Create EndEvent') | ||
translate('Create end event') | ||
), | ||
'create.exclusive-gateway': createAction( | ||
'bpmn:ExclusiveGateway', 'gateway', 'bpmn-icon-gateway-none', | ||
translate('Create Gateway') | ||
translate('Create gateway') | ||
), | ||
'create.task': createAction( | ||
'bpmn:Task', 'activity', 'bpmn-icon-task', | ||
translate('Create Task') | ||
translate('Create task') | ||
), | ||
'create.data-object': createAction( | ||
'bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', | ||
translate('Create DataObjectReference') | ||
translate('Create data object reference') | ||
), | ||
'create.data-store': createAction( | ||
'bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', | ||
translate('Create DataStoreReference') | ||
translate('Create data store reference') | ||
), | ||
@@ -208,3 +206,3 @@ 'create.subprocess-expanded': { | ||
className: 'bpmn-icon-subprocess-expanded', | ||
title: translate('Create expanded SubProcess'), | ||
title: translate('Create expanded sub-process'), | ||
action: { | ||
@@ -218,3 +216,3 @@ dragstart: createSubprocess, | ||
className: 'bpmn-icon-participant', | ||
title: translate('Create Pool/Participant'), | ||
title: translate('Create pool/participant'), | ||
action: { | ||
@@ -227,3 +225,3 @@ dragstart: createParticipant, | ||
'bpmn:Group', 'artifact', 'bpmn-icon-group', | ||
translate('Create Group') | ||
translate('Create group') | ||
), | ||
@@ -230,0 +228,0 @@ }); |
@@ -271,3 +271,3 @@ import { | ||
filteredReplaceOptions = filter(filteredReplaceOptions, function(replaceOption) { | ||
return replaceOption.label !== 'Sub Process (collapsed)'; | ||
return replaceOption.label !== 'Sub-process (collapsed)'; | ||
}); | ||
@@ -515,3 +515,3 @@ } | ||
className: 'bpmn-icon-parallel-mi-marker', | ||
title: translate('Parallel Multi Instance'), | ||
title: translate('Parallel multi-instance'), | ||
active: isParallel, | ||
@@ -526,3 +526,3 @@ action: toggleLoopEntry, | ||
className: 'bpmn-icon-sequential-mi-marker', | ||
title: translate('Sequential Multi Instance'), | ||
title: translate('Sequential multi-instance'), | ||
active: isSequential, | ||
@@ -615,3 +615,3 @@ action: toggleLoopEntry, | ||
className: 'bpmn-icon-parallel-mi-marker', | ||
title: translate('Participant Multiplicity'), | ||
title: translate('Participant multiplicity'), | ||
active: !!participantMultiplicity, | ||
@@ -675,3 +675,3 @@ action: toggleParticipantMultiplicity, | ||
imageHtml: icon, | ||
title: translate('Toggle Non-Interrupting'), | ||
title: translate('Toggle non-interrupting'), | ||
active: isNonInterrupting, | ||
@@ -678,0 +678,0 @@ action: function() { |
@@ -25,3 +25,3 @@ /** | ||
{ | ||
label: 'Start Event', | ||
label: 'Start event', | ||
actionName: 'replace-with-none-start', | ||
@@ -34,3 +34,3 @@ className: 'bpmn-icon-start-event-none', | ||
{ | ||
label: 'Intermediate Throw Event', | ||
label: 'Intermediate throw event', | ||
actionName: 'replace-with-none-intermediate-throwing', | ||
@@ -43,3 +43,3 @@ className: 'bpmn-icon-intermediate-event-none', | ||
{ | ||
label: 'End Event', | ||
label: 'End event', | ||
actionName: 'replace-with-none-end', | ||
@@ -52,3 +52,3 @@ className: 'bpmn-icon-end-event-none', | ||
{ | ||
label: 'Message Start Event', | ||
label: 'Message start event', | ||
actionName: 'replace-with-message-start', | ||
@@ -62,3 +62,3 @@ className: 'bpmn-icon-start-event-message', | ||
{ | ||
label: 'Timer Start Event', | ||
label: 'Timer start event', | ||
actionName: 'replace-with-timer-start', | ||
@@ -72,3 +72,3 @@ className: 'bpmn-icon-start-event-timer', | ||
{ | ||
label: 'Conditional Start Event', | ||
label: 'Conditional start event', | ||
actionName: 'replace-with-conditional-start', | ||
@@ -82,3 +82,3 @@ className: 'bpmn-icon-start-event-condition', | ||
{ | ||
label: 'Signal Start Event', | ||
label: 'Signal start event', | ||
actionName: 'replace-with-signal-start', | ||
@@ -98,3 +98,3 @@ className: 'bpmn-icon-start-event-signal', | ||
{ | ||
label: 'Start Event', | ||
label: 'Start event', | ||
actionName: 'replace-with-none-start', | ||
@@ -107,3 +107,3 @@ className: 'bpmn-icon-start-event-none', | ||
{ | ||
label: 'Intermediate Throw Event', | ||
label: 'Intermediate throw event', | ||
actionName: 'replace-with-none-intermediate-throwing', | ||
@@ -116,3 +116,3 @@ className: 'bpmn-icon-intermediate-event-none', | ||
{ | ||
label: 'End Event', | ||
label: 'End event', | ||
actionName: 'replace-with-none-end', | ||
@@ -131,3 +131,3 @@ className: 'bpmn-icon-end-event-none', | ||
{ | ||
label: 'Start Event', | ||
label: 'Start event', | ||
actionName: 'replace-with-none-start', | ||
@@ -140,3 +140,3 @@ className: 'bpmn-icon-start-event-none', | ||
{ | ||
label: 'Intermediate Throw Event', | ||
label: 'Intermediate throw event', | ||
actionName: 'replace-with-none-intermediate-throw', | ||
@@ -149,3 +149,3 @@ className: 'bpmn-icon-intermediate-event-none', | ||
{ | ||
label: 'End Event', | ||
label: 'End event', | ||
actionName: 'replace-with-none-end', | ||
@@ -158,3 +158,3 @@ className: 'bpmn-icon-end-event-none', | ||
{ | ||
label: 'Message Intermediate Catch Event', | ||
label: 'Message intermediate catch event', | ||
actionName: 'replace-with-message-intermediate-catch', | ||
@@ -168,3 +168,3 @@ className: 'bpmn-icon-intermediate-event-catch-message', | ||
{ | ||
label: 'Message Intermediate Throw Event', | ||
label: 'Message intermediate throw event', | ||
actionName: 'replace-with-message-intermediate-throw', | ||
@@ -178,3 +178,3 @@ className: 'bpmn-icon-intermediate-event-throw-message', | ||
{ | ||
label: 'Timer Intermediate Catch Event', | ||
label: 'Timer intermediate catch event', | ||
actionName: 'replace-with-timer-intermediate-catch', | ||
@@ -188,3 +188,3 @@ className: 'bpmn-icon-intermediate-event-catch-timer', | ||
{ | ||
label: 'Escalation Intermediate Throw Event', | ||
label: 'Escalation intermediate throw event', | ||
actionName: 'replace-with-escalation-intermediate-throw', | ||
@@ -198,3 +198,3 @@ className: 'bpmn-icon-intermediate-event-throw-escalation', | ||
{ | ||
label: 'Conditional Intermediate Catch Event', | ||
label: 'Conditional intermediate catch event', | ||
actionName: 'replace-with-conditional-intermediate-catch', | ||
@@ -208,3 +208,3 @@ className: 'bpmn-icon-intermediate-event-catch-condition', | ||
{ | ||
label: 'Link Intermediate Catch Event', | ||
label: 'Link intermediate catch event', | ||
actionName: 'replace-with-link-intermediate-catch', | ||
@@ -221,3 +221,3 @@ className: 'bpmn-icon-intermediate-event-catch-link', | ||
{ | ||
label: 'Link Intermediate Throw Event', | ||
label: 'Link intermediate throw event', | ||
actionName: 'replace-with-link-intermediate-throw', | ||
@@ -234,3 +234,3 @@ className: 'bpmn-icon-intermediate-event-throw-link', | ||
{ | ||
label: 'Compensation Intermediate Throw Event', | ||
label: 'Compensation intermediate throw event', | ||
actionName: 'replace-with-compensation-intermediate-throw', | ||
@@ -244,3 +244,3 @@ className: 'bpmn-icon-intermediate-event-throw-compensation', | ||
{ | ||
label: 'Signal Intermediate Catch Event', | ||
label: 'Signal intermediate catch event', | ||
actionName: 'replace-with-signal-intermediate-catch', | ||
@@ -254,3 +254,3 @@ className: 'bpmn-icon-intermediate-event-catch-signal', | ||
{ | ||
label: 'Signal Intermediate Throw Event', | ||
label: 'Signal intermediate throw event', | ||
actionName: 'replace-with-signal-intermediate-throw', | ||
@@ -270,3 +270,3 @@ className: 'bpmn-icon-intermediate-event-throw-signal', | ||
{ | ||
label: 'Start Event', | ||
label: 'Start event', | ||
actionName: 'replace-with-none-start', | ||
@@ -279,3 +279,3 @@ className: 'bpmn-icon-start-event-none', | ||
{ | ||
label: 'Intermediate Throw Event', | ||
label: 'Intermediate throw event', | ||
actionName: 'replace-with-none-intermediate-throw', | ||
@@ -288,3 +288,3 @@ className: 'bpmn-icon-intermediate-event-none', | ||
{ | ||
label: 'End Event', | ||
label: 'End event', | ||
actionName: 'replace-with-none-end', | ||
@@ -297,3 +297,3 @@ className: 'bpmn-icon-end-event-none', | ||
{ | ||
label: 'Message End Event', | ||
label: 'Message end event', | ||
actionName: 'replace-with-message-end', | ||
@@ -307,3 +307,3 @@ className: 'bpmn-icon-end-event-message', | ||
{ | ||
label: 'Escalation End Event', | ||
label: 'Escalation end event', | ||
actionName: 'replace-with-escalation-end', | ||
@@ -317,3 +317,3 @@ className: 'bpmn-icon-end-event-escalation', | ||
{ | ||
label: 'Error End Event', | ||
label: 'Error end event', | ||
actionName: 'replace-with-error-end', | ||
@@ -327,3 +327,3 @@ className: 'bpmn-icon-end-event-error', | ||
{ | ||
label: 'Cancel End Event', | ||
label: 'Cancel end event', | ||
actionName: 'replace-with-cancel-end', | ||
@@ -337,3 +337,3 @@ className: 'bpmn-icon-end-event-cancel', | ||
{ | ||
label: 'Compensation End Event', | ||
label: 'Compensation end event', | ||
actionName: 'replace-with-compensation-end', | ||
@@ -347,3 +347,3 @@ className: 'bpmn-icon-end-event-compensation', | ||
{ | ||
label: 'Signal End Event', | ||
label: 'Signal end event', | ||
actionName: 'replace-with-signal-end', | ||
@@ -357,3 +357,3 @@ className: 'bpmn-icon-end-event-signal', | ||
{ | ||
label: 'Terminate End Event', | ||
label: 'Terminate end event', | ||
actionName: 'replace-with-terminate-end', | ||
@@ -373,3 +373,3 @@ className: 'bpmn-icon-end-event-terminate', | ||
{ | ||
label: 'Exclusive Gateway', | ||
label: 'Exclusive gateway', | ||
actionName: 'replace-with-exclusive-gateway', | ||
@@ -382,3 +382,3 @@ className: 'bpmn-icon-gateway-xor', | ||
{ | ||
label: 'Parallel Gateway', | ||
label: 'Parallel gateway', | ||
actionName: 'replace-with-parallel-gateway', | ||
@@ -391,3 +391,3 @@ className: 'bpmn-icon-gateway-parallel', | ||
{ | ||
label: 'Inclusive Gateway', | ||
label: 'Inclusive gateway', | ||
actionName: 'replace-with-inclusive-gateway', | ||
@@ -400,3 +400,3 @@ className: 'bpmn-icon-gateway-or', | ||
{ | ||
label: 'Complex Gateway', | ||
label: 'Complex gateway', | ||
actionName: 'replace-with-complex-gateway', | ||
@@ -409,3 +409,3 @@ className: 'bpmn-icon-gateway-complex', | ||
{ | ||
label: 'Event based Gateway', | ||
label: 'Event-based gateway', | ||
actionName: 'replace-with-event-based-gateway', | ||
@@ -459,3 +459,3 @@ className: 'bpmn-icon-gateway-eventbased', | ||
{ | ||
label: 'Event Sub Process', | ||
label: 'Event sub-process', | ||
actionName: 'replace-with-event-subprocess', | ||
@@ -470,3 +470,3 @@ className: 'bpmn-icon-event-subprocess-expanded', | ||
{ | ||
label: 'Sub Process (collapsed)', | ||
label: 'Sub-process (collapsed)', | ||
actionName: 'replace-with-collapsed-subprocess', | ||
@@ -495,3 +495,3 @@ className: 'bpmn-icon-subprocess-collapsed', | ||
{ | ||
label: 'Sub Process', | ||
label: 'Sub-process', | ||
actionName: 'replace-with-subprocess', | ||
@@ -505,3 +505,3 @@ className: 'bpmn-icon-subprocess-expanded', | ||
{ | ||
label: 'Event Sub Process', | ||
label: 'Event sub-process', | ||
actionName: 'replace-with-event-subprocess', | ||
@@ -535,3 +535,3 @@ className: 'bpmn-icon-event-subprocess-expanded', | ||
{ | ||
label: 'User Task', | ||
label: 'User task', | ||
actionName: 'replace-with-user-task', | ||
@@ -544,3 +544,3 @@ className: 'bpmn-icon-user', | ||
{ | ||
label: 'Service Task', | ||
label: 'Service task', | ||
actionName: 'replace-with-service-task', | ||
@@ -553,3 +553,3 @@ className: 'bpmn-icon-service', | ||
{ | ||
label: 'Send Task', | ||
label: 'Send task', | ||
actionName: 'replace-with-send-task', | ||
@@ -562,3 +562,3 @@ className: 'bpmn-icon-send', | ||
{ | ||
label: 'Receive Task', | ||
label: 'Receive task', | ||
actionName: 'replace-with-receive-task', | ||
@@ -571,3 +571,3 @@ className: 'bpmn-icon-receive', | ||
{ | ||
label: 'Manual Task', | ||
label: 'Manual task', | ||
actionName: 'replace-with-manual-task', | ||
@@ -580,3 +580,3 @@ className: 'bpmn-icon-manual', | ||
{ | ||
label: 'Business Rule Task', | ||
label: 'Business rule task', | ||
actionName: 'replace-with-rule-task', | ||
@@ -589,3 +589,3 @@ className: 'bpmn-icon-business-rule', | ||
{ | ||
label: 'Script Task', | ||
label: 'Script task', | ||
actionName: 'replace-with-script-task', | ||
@@ -598,3 +598,3 @@ className: 'bpmn-icon-script', | ||
{ | ||
label: 'Call Activity', | ||
label: 'Call activity', | ||
actionName: 'replace-with-call-activity', | ||
@@ -607,3 +607,3 @@ className: 'bpmn-icon-call-activity', | ||
{ | ||
label: 'Sub Process (collapsed)', | ||
label: 'Sub-process (collapsed)', | ||
actionName: 'replace-with-collapsed-subprocess', | ||
@@ -617,3 +617,3 @@ className: 'bpmn-icon-subprocess-collapsed', | ||
{ | ||
label: 'Sub Process (expanded)', | ||
label: 'Sub-process (expanded)', | ||
actionName: 'replace-with-expanded-subprocess', | ||
@@ -633,3 +633,3 @@ className: 'bpmn-icon-subprocess-expanded', | ||
{ | ||
label: 'Data Store Reference', | ||
label: 'Data store reference', | ||
actionName: 'replace-with-data-store-reference', | ||
@@ -648,3 +648,3 @@ className: 'bpmn-icon-data-store', | ||
{ | ||
label: 'Data Object Reference', | ||
label: 'Data object reference', | ||
actionName: 'replace-with-data-object-reference', | ||
@@ -663,3 +663,3 @@ className: 'bpmn-icon-data-object', | ||
{ | ||
label: 'Message Boundary Event', | ||
label: 'Message boundary event', | ||
actionName: 'replace-with-message-boundary', | ||
@@ -674,3 +674,3 @@ className: 'bpmn-icon-intermediate-event-catch-message', | ||
{ | ||
label: 'Timer Boundary Event', | ||
label: 'Timer boundary event', | ||
actionName: 'replace-with-timer-boundary', | ||
@@ -685,3 +685,3 @@ className: 'bpmn-icon-intermediate-event-catch-timer', | ||
{ | ||
label: 'Escalation Boundary Event', | ||
label: 'Escalation boundary event', | ||
actionName: 'replace-with-escalation-boundary', | ||
@@ -696,3 +696,3 @@ className: 'bpmn-icon-intermediate-event-catch-escalation', | ||
{ | ||
label: 'Conditional Boundary Event', | ||
label: 'Conditional boundary event', | ||
actionName: 'replace-with-conditional-boundary', | ||
@@ -707,3 +707,3 @@ className: 'bpmn-icon-intermediate-event-catch-condition', | ||
{ | ||
label: 'Error Boundary Event', | ||
label: 'Error boundary event', | ||
actionName: 'replace-with-error-boundary', | ||
@@ -718,3 +718,3 @@ className: 'bpmn-icon-intermediate-event-catch-error', | ||
{ | ||
label: 'Cancel Boundary Event', | ||
label: 'Cancel boundary event', | ||
actionName: 'replace-with-cancel-boundary', | ||
@@ -729,3 +729,3 @@ className: 'bpmn-icon-intermediate-event-catch-cancel', | ||
{ | ||
label: 'Signal Boundary Event', | ||
label: 'Signal boundary event', | ||
actionName: 'replace-with-signal-boundary', | ||
@@ -740,3 +740,3 @@ className: 'bpmn-icon-intermediate-event-catch-signal', | ||
{ | ||
label: 'Compensation Boundary Event', | ||
label: 'Compensation boundary event', | ||
actionName: 'replace-with-compensation-boundary', | ||
@@ -751,3 +751,3 @@ className: 'bpmn-icon-intermediate-event-catch-compensation', | ||
{ | ||
label: 'Message Boundary Event (non-interrupting)', | ||
label: 'Message boundary event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-message-boundary', | ||
@@ -762,3 +762,3 @@ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message', | ||
{ | ||
label: 'Timer Boundary Event (non-interrupting)', | ||
label: 'Timer boundary event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-timer-boundary', | ||
@@ -773,3 +773,3 @@ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer', | ||
{ | ||
label: 'Escalation Boundary Event (non-interrupting)', | ||
label: 'Escalation boundary event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-escalation-boundary', | ||
@@ -784,3 +784,3 @@ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation', | ||
{ | ||
label: 'Conditional Boundary Event (non-interrupting)', | ||
label: 'Conditional boundary event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-conditional-boundary', | ||
@@ -795,3 +795,3 @@ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition', | ||
{ | ||
label: 'Signal Boundary Event (non-interrupting)', | ||
label: 'Signal boundary event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-signal-boundary', | ||
@@ -812,3 +812,3 @@ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal', | ||
{ | ||
label: 'Message Start Event', | ||
label: 'Message start event', | ||
actionName: 'replace-with-message-start', | ||
@@ -823,3 +823,3 @@ className: 'bpmn-icon-start-event-message', | ||
{ | ||
label: 'Timer Start Event', | ||
label: 'Timer start event', | ||
actionName: 'replace-with-timer-start', | ||
@@ -834,3 +834,3 @@ className: 'bpmn-icon-start-event-timer', | ||
{ | ||
label: 'Conditional Start Event', | ||
label: 'Conditional start event', | ||
actionName: 'replace-with-conditional-start', | ||
@@ -845,3 +845,3 @@ className: 'bpmn-icon-start-event-condition', | ||
{ | ||
label: 'Signal Start Event', | ||
label: 'Signal start event', | ||
actionName: 'replace-with-signal-start', | ||
@@ -856,3 +856,3 @@ className: 'bpmn-icon-start-event-signal', | ||
{ | ||
label: 'Error Start Event', | ||
label: 'Error start event', | ||
actionName: 'replace-with-error-start', | ||
@@ -867,3 +867,3 @@ className: 'bpmn-icon-start-event-error', | ||
{ | ||
label: 'Escalation Start Event', | ||
label: 'Escalation start event', | ||
actionName: 'replace-with-escalation-start', | ||
@@ -878,3 +878,3 @@ className: 'bpmn-icon-start-event-escalation', | ||
{ | ||
label: 'Compensation Start Event', | ||
label: 'Compensation start event', | ||
actionName: 'replace-with-compensation-start', | ||
@@ -889,3 +889,3 @@ className: 'bpmn-icon-start-event-compensation', | ||
{ | ||
label: 'Message Start Event (non-interrupting)', | ||
label: 'Message start event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-message-start', | ||
@@ -900,3 +900,3 @@ className: 'bpmn-icon-start-event-non-interrupting-message', | ||
{ | ||
label: 'Timer Start Event (non-interrupting)', | ||
label: 'Timer start event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-timer-start', | ||
@@ -911,3 +911,3 @@ className: 'bpmn-icon-start-event-non-interrupting-timer', | ||
{ | ||
label: 'Conditional Start Event (non-interrupting)', | ||
label: 'Conditional start event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-conditional-start', | ||
@@ -922,3 +922,3 @@ className: 'bpmn-icon-start-event-non-interrupting-condition', | ||
{ | ||
label: 'Signal Start Event (non-interrupting)', | ||
label: 'Signal start event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-signal-start', | ||
@@ -933,3 +933,3 @@ className: 'bpmn-icon-start-event-non-interrupting-signal', | ||
{ | ||
label: 'Escalation Start Event (non-interrupting)', | ||
label: 'Escalation start event (non-interrupting)', | ||
actionName: 'replace-with-non-interrupting-escalation-start', | ||
@@ -950,3 +950,3 @@ className: 'bpmn-icon-start-event-non-interrupting-escalation', | ||
{ | ||
label: 'Sequence Flow', | ||
label: 'Sequence flow', | ||
actionName: 'replace-with-sequence-flow', | ||
@@ -956,3 +956,3 @@ className: 'bpmn-icon-connection' | ||
{ | ||
label: 'Default Flow', | ||
label: 'Default flow', | ||
actionName: 'replace-with-default-flow', | ||
@@ -962,3 +962,3 @@ className: 'bpmn-icon-default-flow' | ||
{ | ||
label: 'Conditional Flow', | ||
label: 'Conditional flow', | ||
actionName: 'replace-with-conditional-flow', | ||
@@ -974,3 +974,3 @@ className: 'bpmn-icon-conditional-flow' | ||
{ | ||
label: 'Expanded Pool', | ||
label: 'Expanded pool/participant', | ||
actionName: 'replace-with-expanded-pool', | ||
@@ -985,3 +985,3 @@ className: 'bpmn-icon-participant', | ||
label: function(element) { | ||
var label = 'Empty Pool'; | ||
var label = 'Empty pool/participant'; | ||
@@ -988,0 +988,0 @@ if (element.children && element.children.length) { |
@@ -14,2 +14,9 @@ /** | ||
*/ | ||
export function isHorizontal(element: Element): boolean; | ||
/** | ||
* @param element | ||
* | ||
* @return | ||
*/ | ||
export function isInterrupting(element: Element): boolean; | ||
@@ -16,0 +23,0 @@ |
@@ -50,2 +50,22 @@ import { | ||
*/ | ||
export function isHorizontal(element) { | ||
if (!is(element, 'bpmn:Participant') && !is(element, 'bpmn:Lane')) { | ||
return undefined; | ||
} | ||
var isHorizontal = getDi(element).isHorizontal; | ||
if (isHorizontal === undefined) { | ||
return true; | ||
} | ||
return isHorizontal; | ||
} | ||
/** | ||
* @param {Element} element | ||
* | ||
* @return {boolean} | ||
*/ | ||
export function isInterrupting(element) { | ||
@@ -52,0 +72,0 @@ return element && getBusinessObject(element).isInterrupting !== false; |
{ | ||
"name": "bpmn-js", | ||
"version": "15.2.2", | ||
"version": "16.0.0", | ||
"description": "A bpmn 2.0 toolkit and web modeler", | ||
@@ -102,3 +102,3 @@ "main": "index.js", | ||
"puppeteer": "^21.3.8", | ||
"remark-cli": "^11.0.0", | ||
"remark-cli": "^12.0.0", | ||
"remark-preset-bpmn-io": "^0.2.1", | ||
@@ -115,3 +115,3 @@ "rollup": "^3.19.1", | ||
"bpmn-moddle": "^8.0.1", | ||
"diagram-js": "^12.8.1", | ||
"diagram-js": "^13.0.0", | ||
"diagram-js-direct-editing": "^2.0.0", | ||
@@ -118,0 +118,0 @@ "ids": "^1.0.5", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4957628
125927
+ Addeddiagram-js@13.4.0(transitive)
+ Addeddidi@10.2.2(transitive)
+ Addedobject-refs@0.4.0(transitive)
+ Addedpath-intersection@3.1.0(transitive)
- Removeddiagram-js@12.8.1(transitive)
- Removeddidi@9.0.2(transitive)
- Removedpath-intersection@2.2.1(transitive)
Updateddiagram-js@^13.0.0