@visuallyjs/bpmn 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The HTML tag defining a BPMN icon
3
+ * @type {string}
4
+ */
5
+ export declare const TAG_BPMN_ICON = "vjs-bpmn-icon";
6
+ declare const icons: ({
7
+ id: string;
8
+ viewBox: {
9
+ x: number;
10
+ y: number;
11
+ width: number;
12
+ height: number;
13
+ };
14
+ atts: {
15
+ fill: string;
16
+ stroke: string;
17
+ "stroke-width": number;
18
+ "stroke-linecap": string;
19
+ "stroke-linejoin": string;
20
+ };
21
+ shapes: {
22
+ tag: string;
23
+ atts: {
24
+ d: string;
25
+ };
26
+ }[];
27
+ } | {
28
+ id: string;
29
+ viewBox: {
30
+ x: number;
31
+ y: number;
32
+ width: number;
33
+ height: number;
34
+ };
35
+ atts: {
36
+ stroke: string;
37
+ fill: string;
38
+ "stroke-width": number;
39
+ "stroke-linecap": string;
40
+ "stroke-linejoin": string;
41
+ };
42
+ shapes: ({
43
+ tag: string;
44
+ atts: {
45
+ x: number;
46
+ y: number;
47
+ width: number;
48
+ height: number;
49
+ d?: undefined;
50
+ };
51
+ } | {
52
+ tag: string;
53
+ atts: {
54
+ d: string;
55
+ x?: undefined;
56
+ y?: undefined;
57
+ width?: undefined;
58
+ height?: undefined;
59
+ };
60
+ })[];
61
+ } | import("@visuallyjs/browser-ui").IconDefinition)[];
62
+ export default icons;
63
+ /**
64
+ * Registers the `vjs-bpmn-icon` tag as a web component on the browser window. You should invoke this if you want to use the BPMN icons outside of the diagram canvas in your app.
65
+ */
66
+ export declare function registerBPMNIconTag(): void;
@@ -0,0 +1,13 @@
1
+ import { ShapeSet } from "@visuallyjs/browser-ui";
2
+ /**
3
+ * Shape library for BPMN2 shapes. Contains:
4
+ *
5
+ * - START_EVENT
6
+ * - END_EVENT
7
+ * - INTERMEDIATE_EVENT
8
+ * - GATEWAY
9
+ * - TASK
10
+ * - GROUP
11
+ */
12
+ declare const BPMN2_SHAPES: ShapeSet;
13
+ export { BPMN2_SHAPES };
@@ -0,0 +1,82 @@
1
+ export declare const LANE = "lane";
2
+ export declare const POOL = "pool";
3
+ export declare const TASK = "task";
4
+ export declare const USERTASK = "userTask";
5
+ export declare const TASK_SEND = "send";
6
+ export declare const TASK_RECEIVE = "receive";
7
+ export declare const TASK_BUSINESS_RULE = "businessRule";
8
+ export declare const TASK_SCRIPT = "script";
9
+ export declare const TASK_SERVICE = "service";
10
+ export declare const TASK_USER = "user";
11
+ export declare const TASK_TYPES: string[];
12
+ export declare const GROUP = "group";
13
+ export declare const TRANSACTION = "transaction";
14
+ export declare const GATEWAY = "gateway";
15
+ export declare const EXCLUSIVE_GATEWAY = "exclusive";
16
+ export declare const PARALLEL_GATEWAY = "parallel";
17
+ export declare const INCLUSIVE_GATEWAY = "inclusive";
18
+ export declare const GATEWAY_TYPES: string[];
19
+ export declare const DATAOBJECT = "dataObject";
20
+ export declare const DATASTORE = "dataStoreReference";
21
+ export declare const CALL_ACTIVITY = "call-activity";
22
+ export declare const SUBPROCESS = "subprocess";
23
+ export declare const START_EVENT = "start-event";
24
+ export declare const MESSAGE_START_EVENT = "message-start";
25
+ export declare const TIMER_START_EVENT = "timer-start";
26
+ export declare const CONDITIONAL_START_EVENT = "conditional-start";
27
+ export declare const SIGNAL_START_EVENT = "signal-start";
28
+ export declare const START_EVENT_TYPES: string[];
29
+ export declare const END_EVENT = "end-event";
30
+ export declare const MESSAGE_END_EVENT = "message-end";
31
+ export declare const ESCALATION_END_EVENT = "escalation-end";
32
+ export declare const ERROR_END_EVENT = "error-end";
33
+ export declare const COMPENSATION_END_EVENT = "compensation-end";
34
+ export declare const SIGNAL_END_EVENT = "signal-end";
35
+ export declare const TERMINATE_END_EVENT = "terminate-end";
36
+ export declare const END_EVENT_TYPES: string[];
37
+ /**
38
+ * Intermediate event and sub types
39
+ */
40
+ export declare const INTERMEDIATE_EVENT = "intermediate-event";
41
+ export declare const MESSAGE_CATCH_EVENT = "message-catch";
42
+ export declare const MESSAGE_THROW_EVENT = "message-throw";
43
+ export declare const TIMER_CATCH_EVENT = "timer-catch";
44
+ export declare const ESCALATION_THROW_EVENT = "escalation-throw";
45
+ export declare const CONDITIONAL_CATCH_EVENT = "conditional-catch";
46
+ export declare const LINK_THROW_EVENT = "link-throw";
47
+ export declare const LINK_CATCH_EVENT = "link-catch";
48
+ export declare const COMPENSATION_THROW_EVENT = "compensation-throw";
49
+ export declare const SIGNAL_CATCH_EVENT = "signal-catch";
50
+ export declare const SIGNAL_THROW_EVENT = "signal-throw";
51
+ export declare const INTERMEDIATE_EVENT_TYPES: string[];
52
+ export declare const EVENT_TYPES: string[];
53
+ export declare const FLOW_TYPES: string[];
54
+ export declare const LOOP_MARKER = "loop";
55
+ export declare const COMPENSATION_MARKER = "compensation";
56
+ export declare const PARALLEL_MARKER = "parallel";
57
+ export declare const SEQUENTIAL_MARKER = "sequential";
58
+ export declare const MARKER_TYPES: string[];
59
+ /**
60
+ * The default size of the header in a pool.
61
+ */
62
+ export declare const DEFAULT_POOL_HEADER_SIZE = 30;
63
+ /**
64
+ * The default size of the header in a lane.
65
+ */
66
+ export declare const DEFAULT_LANE_HEADER_SIZE = 30;
67
+ /**
68
+ * The default width of a pool.
69
+ */
70
+ export declare const DEFAULT_POOL_WIDTH = 600;
71
+ /**
72
+ * The default height of a pool.
73
+ */
74
+ export declare const DEFAULT_POOL_HEIGHT = 400;
75
+ /**
76
+ * The default width of a lane
77
+ */
78
+ export declare const DEFAULT_LANE_WIDTH: number;
79
+ /**
80
+ * The default height of a lane
81
+ */
82
+ export declare const DEFAULT_LANE_HEIGHT = 200;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Defines the `sequence` flow type in BPMN
3
+ */
4
+ export declare const BPMN_FLOW_TYPE_SEQUENCE = "sequence";
5
+ /**
6
+ * Defines the `message` flow type in BPMN
7
+ */
8
+ export declare const BPMN_FLOW_TYPE_MESSAGE = "message";
9
+ /**
10
+ * Gets edge mappings for BPMN flow types.
11
+ * @param arrowWidth Width to use for arrow heads; defaults to 15.
12
+ * @param arrowLength Length to use for arrow heads; defaults to 10.
13
+ * @param dotRadius Radius to use for the source marker of the 'message' flow; defaults to 6.
14
+ */
15
+ export declare function getBPMNFlowTypes(arrowWidth?: number, arrowLength?: number, dotRadius?: number): {
16
+ property: string;
17
+ mappings: {
18
+ sequence: {
19
+ targetMarker: {
20
+ type: string;
21
+ options: {
22
+ location: number;
23
+ width: number;
24
+ length: number;
25
+ };
26
+ };
27
+ };
28
+ message: {
29
+ dashArray: string;
30
+ targetMarker: {
31
+ type: string;
32
+ options: {
33
+ width: number;
34
+ length: number;
35
+ hollow: boolean;
36
+ };
37
+ };
38
+ sourceMarker: {
39
+ type: string;
40
+ options: {
41
+ radius: number;
42
+ hollow: boolean;
43
+ };
44
+ };
45
+ };
46
+ };
47
+ }[];
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from './icons';
2
+ export * from './definitions';
3
+ export * from './bpmn2-icons';
4
+ export * from './bpmn2-shapes';
5
+ export * from './flow-types';
@@ -0,0 +1,49 @@
1
+ var M=Object.defineProperty,ye=Object.defineProperties,Be=Object.getOwnPropertyDescriptor,ve=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var ee=(i,o,r)=>o in i?M(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,O=(i,o)=>{for(var r in o||(o={}))oe.call(o,r)&&ee(i,r,o[r]);if(te)for(var r of te(o))He.call(o,r)&&ee(i,r,o[r]);return i},C=(i,o)=>ye(i,ve(o));var be=(i,o)=>{for(var r in o)M(i,r,{get:o[r],enumerable:!0})},De=(i,o,r,Jt)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of Ve(o))!oe.call(i,p)&&p!==r&&M(i,p,{get:()=>o[p],enumerable:!(Jt=Be(o,p))||Jt.enumerable});return i};var ke=i=>De(M({},"__esModule",{value:!0}),i);var Xe={};be(Xe,{BPMN2_SHAPES:()=>we,BPMN_FLOW_TYPE_MESSAGE:()=>Re,BPMN_FLOW_TYPE_SEQUENCE:()=>ue,CALL_ACTIVITY:()=>A,COMPENSATION_END_EVENT:()=>G,COMPENSATION_MARKER:()=>me,COMPENSATION_THROW_EVENT:()=>J,CONDITIONAL_CATCH_EVENT:()=>q,CONDITIONAL_START_EVENT:()=>H,DATAOBJECT:()=>zt,DATASTORE:()=>Wt,DEFAULT_LANE_HEADER_SIZE:()=>m,DEFAULT_LANE_HEIGHT:()=>Yt,DEFAULT_LANE_WIDTH:()=>Zt,DEFAULT_POOL_HEADER_SIZE:()=>E,DEFAULT_POOL_HEIGHT:()=>Kt,DEFAULT_POOL_WIDTH:()=>ot,END_EVENT:()=>D,END_EVENT_TYPES:()=>We,ERROR_END_EVENT:()=>F,ESCALATION_END_EVENT:()=>U,ESCALATION_THROW_EVENT:()=>$,EVENT_TYPES:()=>Ze,EXCLUSIVE_GATEWAY:()=>de,FLOW_TYPES:()=>Ye,GATEWAY:()=>y,GATEWAY_TYPES:()=>je,GROUP:()=>jt,ICON_BPMN_BUSINESS_RULE:()=>mt,ICON_BPMN_COMPENSATION:()=>lt,ICON_BPMN_CONDITIONAL:()=>ct,ICON_BPMN_ERROR:()=>It,ICON_BPMN_ESCALATION_THROW:()=>At,ICON_BPMN_EXCLUSIVE:()=>Ot,ICON_BPMN_INCLUSIVE:()=>Ct,ICON_BPMN_LINK:()=>at,ICON_BPMN_LINK_FILLED:()=>pt,ICON_BPMN_LINK_OUTLINE:()=>ht,ICON_BPMN_LOOP:()=>xt,ICON_BPMN_MESSAGE:()=>dt,ICON_BPMN_PARALLEL:()=>h,ICON_BPMN_PLUS:()=>ft,ICON_BPMN_RECEIVE:()=>gt,ICON_BPMN_SCRIPT:()=>Lt,ICON_BPMN_SEND:()=>St,ICON_BPMN_SEQUENTIAL:()=>_t,ICON_BPMN_SERVICE:()=>Mt,ICON_BPMN_TERMINATE:()=>Tt,ICON_BPMN_TIMER:()=>Nt,ICON_BPMN_USER:()=>Pt,ICON_ENVELOPE_FILLED:()=>st,ICON_ENVELOPE_OUTLINE:()=>Et,INCLUSIVE_GATEWAY:()=>Ae,INTERMEDIATE_EVENT:()=>W,INTERMEDIATE_EVENT_TYPES:()=>Ke,LANE:()=>Ft,LINK_CATCH_EVENT:()=>X,LINK_THROW_EVENT:()=>Q,LOOP_MARKER:()=>Ie,MARKER_TYPES:()=>$e,MESSAGE_CATCH_EVENT:()=>K,MESSAGE_END_EVENT:()=>k,MESSAGE_START_EVENT:()=>v,MESSAGE_THROW_EVENT:()=>Z,PARALLEL_GATEWAY:()=>xe,PARALLEL_MARKER:()=>Le,POOL:()=>Gt,SEQUENTIAL_MARKER:()=>ge,SIGNAL_CATCH_EVENT:()=>tt,SIGNAL_END_EVENT:()=>j,SIGNAL_START_EVENT:()=>b,SIGNAL_THROW_EVENT:()=>et,START_EVENT:()=>B,START_EVENT_TYPES:()=>ze,SUBPROCESS:()=>I,TAG_BPMN_ICON:()=>Pe,TASK:()=>R,TASK_BUSINESS_RULE:()=>le,TASK_RECEIVE:()=>ce,TASK_SCRIPT:()=>Ne,TASK_SEND:()=>he,TASK_SERVICE:()=>_e,TASK_TYPES:()=>Ge,TASK_USER:()=>Te,TERMINATE_END_EVENT:()=>z,TIMER_CATCH_EVENT:()=>Y,TIMER_START_EVENT:()=>V,TRANSACTION:()=>s,USERTASK:()=>Fe,bpmnErrorIcon:()=>P,bpmnEscalationIcon:()=>d,bpmnLoopIcon:()=>vt,bpmnMessageIcon:()=>Ht,bpmnParallelIcon:()=>bt,bpmnPlusIcon:()=>n,bpmnScriptIcon:()=>kt,bpmnSequentialIcon:()=>Ut,bpmnTerminateIcon:()=>it,bpmnTimerIcon:()=>g,bpmnUserIcon:()=>Qt,businessRuleIcon:()=>wt,compensationIcon:()=>l,conditionalIcon:()=>N,defaultAtts:()=>e,defaultViewBox:()=>Ue,envelopeFilledIcon:()=>_,envelopeOutlineIcon:()=>T,getBPMNFlowTypes:()=>Qe,link:()=>w,linkFilled:()=>x,linkOutline:()=>f,registerBPMNIconTag:()=>qe,signalCatch:()=>L,signalThrow:()=>a});module.exports=ke(Xe);var Ue={x:0,y:0,width:100,height:100},e=()=>({stroke:"currentColor",fill:"none","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}),st="envelope-filled",Et="envelope-outline",at="link",pt="link-filled",ht="link-outline",ct="conditional",lt="compensation",Nt="timer",_t="sequential",Tt="terminate",h="parallel",dt="message",xt="loop",At="escalation-throw",It="error",mt="businessRule",Lt="script",gt="receive",St="send",Mt="service",Ot="exclusive",Ct="inclusive",Pt="user",ft="plus";var c=require("@visuallyjs/browser-ui"),wt={id:mt,viewBox:{x:0,y:0,width:32,height:22},atts:e(),shapes:[{tag:c.ELEMENT_RECT,atts:{x:2,y:2,width:28,height:20,rx:3}},{tag:c.ELEMENT_RECT,atts:{x:2,y:2,width:28,height:6,rx:3,fill:"currentColor"}},{tag:c.ELEMENT_PATH,atts:{d:"M 12 5 L 12 22 M 2 15 L 30 15",stroke:"currentColor","stroke-width":1.5}}]};var ie=require("@visuallyjs/browser-ui"),l={id:lt,viewBox:{x:0,y:0,width:32,height:32},atts:C(O({},e()),{fill:"currentColor"}),shapes:[{tag:ie.ELEMENT_PATH,atts:{d:"M 2 16 L 16 6 L 16 26 Z M16 16 L 30 6 L 30 26 Z"}}]};var re=require("@visuallyjs/browser-ui"),N={id:ct,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:re.ELEMENT_PATH,atts:{d:"M 6 4 L 26 4 L 26 28 L 6 28 Z M 10 10 L 22 10 M 10 16 L 22 16 M 10 22 L 22 22"}}]};var ut=require("@visuallyjs/browser-ui"),_={id:st,viewBox:{x:0,y:0,width:32,height:22},atts:{fill:"currentColor",stroke:"#FFFFFF","stroke-width":2},shapes:[{tag:ut.ELEMENT_PATH,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:ut.ELEMENT_PATH,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};var Rt=require("@visuallyjs/browser-ui"),T={id:Et,viewBox:{x:0,y:0,width:32,height:22},atts:e(),shapes:[{tag:Rt.ELEMENT_PATH,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:Rt.ELEMENT_PATH,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};var ne=require("@visuallyjs/browser-ui"),P={id:It,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:ne.ELEMENT_PATH,atts:{d:"M 20 4 L 10 18 L 16 18 L 12 28 L 22 14 L 16 14 Z",fill:"currentColor"}}]};var se=require("@visuallyjs/browser-ui"),d={id:At,viewBox:{x:0,y:0,width:32,height:32},atts:C(O({},e()),{fill:"currentColor"}),shapes:[{tag:se.ELEMENT_PATH,atts:{d:"M 16 4 L 28 26 L 16 18 L 4 26 Z"}}]};var Bt=require("@visuallyjs/browser-ui"),yt=i=>({id:i,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:Bt.ELEMENT_PATH,atts:{d:"M 18 6 L 28 16 L 18 26"}},{tag:Bt.ELEMENT_PATH,atts:{d:"M 4 13 L 24 13 L 28 16 L 24 19 L 4 19 L 4 13"}}]}),x=yt(pt);x.shapes[1].atts.fill="currentColor";var f=yt(ht),w=yt(at);var Ee=require("@visuallyjs/browser-ui"),vt={id:xt,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:Ee.ELEMENT_PATH,atts:{d:"M16 5 a11 11 0 1 1 -11 11 M 5 14 L 1 18 M 5 14 L 9 18"}}]};var Vt=require("@visuallyjs/browser-ui"),Ht={id:dt,viewBox:{x:0,y:0,width:32,height:22},atts:e(),shapes:[{tag:Vt.ELEMENT_PATH,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:Vt.ELEMENT_PATH,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};var ae=require("@visuallyjs/browser-ui"),bt={id:h,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:ae.ELEMENT_PATH,atts:{d:"M 5 2 V 28 M 16 2 V 28 M 27 2 V 28"}}]};var u=require("@visuallyjs/browser-ui"),n={id:ft,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:u.ELEMENT_RECT,atts:{x:8,y:8,width:16,height:16}},{tag:u.ELEMENT_PATH,atts:{d:"M 16 11 v 10 M 11 16 h 10"}}]};var Dt=require("@visuallyjs/browser-ui"),kt={id:Lt,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:Dt.ELEMENT_PATH,atts:{d:"M 4 4 C 0 16, 4 16, 4 30 L 30 30 C 30 16, 26 16 30 4 L 4 4 Z"}},{tag:Dt.ELEMENT_PATH,atts:{d:"M 8 10 L 24 10 M 8 16 L 24 16 M 8 22 L 24 22"}}]};var pe=require("@visuallyjs/browser-ui"),Ut={id:_t,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:pe.ELEMENT_PATH,atts:{d:"M 2 5 H 28 M 2 16 H 28 M 2 27 H 28"}}]};var Ft="lane",Gt="pool",R="task",Fe="userTask",he="send",ce="receive",le="businessRule",Ne="script",_e="service",Te="user",Ge=[he,ce,le,Ne,_e,Te],jt="group",s="transaction",y="gateway",de="exclusive",xe="parallel",Ae="inclusive",je=[de,xe,Ae],zt="dataObject",Wt="dataStoreReference",A="call-activity",I="subprocess",B="start-event",v="message-start",V="timer-start",H="conditional-start",b="signal-start",ze=[v,V,H,b],D="end-event",k="message-end",U="escalation-end",F="error-end",G="compensation-end",j="signal-end",z="terminate-end",We=[k,U,F,G,j,z],W="intermediate-event",K="message-catch",Z="message-throw",Y="timer-catch",$="escalation-throw",q="conditional-catch",Q="link-throw",X="link-catch",J="compensation-throw",tt="signal-catch",et="signal-throw",Ke=[K,Z,Y,$,q,Q,X,J,tt,et],Ze=[B,W,D],Ye=[R,s,y],Ie="loop",me="compensation",Le="parallel",ge="sequential",$e=[Ie,ge,Le,me],E=30,m=30,ot=600,Kt=400,Zt=ot-E,Yt=200;var Me=require("@visuallyjs/browser-ui"),Se=()=>({viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:Me.ELEMENT_PATH,atts:{d:"M 16 4 L 28 26 L 4 26 Z"}}]}),L=Object.assign({},Se(),{id:tt}),a=Object.assign({},Se(),{id:et});a.atts.fill="currentColor";var Oe=require("@visuallyjs/browser-ui"),it={id:Tt,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:Oe.ELEMENT_PATH,atts:{d:"M 16 6 A 10 10 0 1 1 16 26 A 10 10 0 1 1 16 6 Z",fill:"currentColor"}}]};var $t=require("@visuallyjs/browser-ui"),g={id:Nt,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:$t.ELEMENT_PATH,atts:{d:"M 16 2 A 14 14 0 1 0 16 30 A 14 14 0 1 0 16 2 Z"}},{tag:$t.ELEMENT_PATH,atts:{d:"M 16 16 L 16 8 M 16 16 L 23 20"}}]};var qt=require("@visuallyjs/browser-ui"),Qt={id:Pt,viewBox:{x:0,y:0,width:32,height:32},atts:e(),shapes:[{tag:qt.ELEMENT_PATH,atts:{d:"M 16 14 A 5 5 0 1 0 16 4 A 5 5 0 0 0 16 14 Z"}},{tag:qt.ELEMENT_PATH,atts:{d:"M 6 28 v -2 a 10 10 0 0 1 20 0 v 2"}}]};var t=require("@visuallyjs/browser-ui"),xi={stroke:"currentColor",fill:"none"},Pe="vjs-bpmn-icon",Ce=[Ht,bt,Ut,vt,l,(0,t.cloneIcon)(T,gt),(0,t.cloneIcon)(_,St),g,d,N,w,P,it,L,a,wt,kt,Qt,n,(0,t.cloneIcon)(t.ICON_GEAR,Mt),(0,t.cloneIcon)(t.ICON_CROSS,Ot),(0,t.cloneIcon)(t.ICON_PLUS,h),(0,t.cloneIcon)(t.ICON_CIRCLE,Ct),(0,t.cloneIcon)(_,Z),(0,t.cloneIcon)(T,K),(0,t.cloneIcon)(g,Y),(0,t.cloneIcon)(d,$),(0,t.cloneIcon)(N,q),(0,t.cloneIcon)(x,Q),(0,t.cloneIcon)(f,X),(0,t.cloneIcon)(l,J),(0,t.cloneIcon)(T,v),(0,t.cloneIcon)(g,V),(0,t.cloneIcon)(N,H),(0,t.cloneIcon)(L,b),(0,t.cloneIcon)(_,k),(0,t.cloneIcon)(d,U),(0,t.cloneIcon)(P,F),(0,t.cloneIcon)(l,G),(0,t.cloneIcon)(a,j),(0,t.cloneIcon)(it,z),(0,t.cloneIcon)(n,I),(0,t.cloneIcon)(n,s),(0,t.cloneIcon)(n,A)],fe=Ce,Xt=class extends t.IconElement{findIcon(o){return Ce.find(r=>r.id===o)}};function qe(){customElements.define(Pe,Xt)}var rt={width:40,height:40},nt={width:80,height:60},we={id:"bpmn2",name:"BPMN2",shapes:[{type:B,label:"Start Event",group:"Events",template:`<g>
2
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" data-vjs-perimeter="true"/>
3
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
4
+ </g>`,initialSize:rt},{type:D,label:"End Event",group:"Events",template:`<g>
5
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" stroke-width="{{outlineWidth*3}}" data-vjs-perimeter="true"/>
6
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
7
+ </g>`,initialSize:rt},{type:W,label:"Intermediate Event",group:"Events",template:`<g>
8
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" data-vjs-perimeter="true"/>
9
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width * 17 / 40}}"/>
10
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
11
+ </g>`,initialSize:rt},{type:y,label:"Exclusive Gateway",group:"Gateways",template:`<g>
12
+ <polygon points="{{width/2}},0 {{width}},{{height/2}} {{width/2}},{{height}} 0,{{height/2}}" stroke-linecap="round" stroke-linejoin="round"/>
13
+ <vjs-include-icon key="gatewayType" x="0.5" y="0.5" size="0.4" origin="center"/>
14
+ </g>`,payload:{gatewayType:"exclusive"},initialSize:rt,labelPosition:"bottom"},{type:R,label:"Task",group:"Tasks",template:`<g>
15
+ <rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" data-vjs-perimeter="true"/>
16
+ <vjs-include-icon key="taskType" x="0.05" y="0.05" size="0.25"/>
17
+ <vjs-include-icons key="markers" x="0.5" y="0.75" size="0.15" origin="center"/>
18
+ </g>`,payload:{taskType:"",label:"Task"},initialSize:nt},{type:s,label:"Transaction",template:`<g>
19
+ <rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" data-vjs-perimeter="true"/>
20
+ <rect x="{{width * 2 / 40}}" y="{{width * 2 / 40}}" width="{{width * 36 / 40}}" height="{{height * 34 / 40}}" rx="5"/>
21
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
22
+ </g>`,initialSize:nt},{type:A,label:"Call Activity",template:`<g><rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" stroke-width="{{outlineWidth*2}}" data-vjs-perimeter="true"/>
23
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
24
+ </g>`,initialSize:nt},{type:I,label:"Subprocess",template:`<g><rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" stroke-width="{{outlineWidth}}" data-vjs-perimeter="true"/>
25
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
26
+ </g>`,initialSize:nt},{type:jt,label:"Group",template:`<g>
27
+ <rect width="{{width}}" height="{{height}}" stroke-width="1.5px" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="10,6,0,6" rx="15" ry="15" fill="none" data-vjs-perimeter="true"/>
28
+ <rect width="{{width}}" height="{{height}}" stroke-width="5px" stroke="transparent" rx="15" ry="15" fill="none"/>
29
+ </g>`,initialSize:{width:150,height:150}},{type:zt,label:"Data Object",template:`
30
+ <g>
31
+ <path d="M {{width/6}} {{height/6}} L {{width*7/12}} {{height/6}} L {{width*5/6}} {{height*2/6}} L {{width*5/6}} {{height*5/6}} L {{width/6}} {{height*5/6}} Z" stroke-linejoin="round" data-fill/>
32
+ <path d="M {{width*7/12}} {{height/6}} L {{width*7/12}} {{height*2/6}} L {{width*5/6}} {{height*2/6}}" fill="none"/>
33
+ </g>`,initialSize:{width:40,height:60}},{type:Wt,label:"Datastore",template:`
34
+ <g>
35
+ <path d="M 0 {{height-(height/5)}} A {{width/2}} {{height/5}} 0 0 0 {{width}} {{height-(height/5)}} L {{width}} {{height/5}} A {{width/2}} {{height/5}} 0 0 0 0 {{(height/5)}} Z" data-fill/>
36
+ <path d="M {{width}} {{height/5}} A {{width/2}} {{height/5}} 0 0 1 0 {{height/5}}" fill="none"/>
37
+ <path d="M {{width}} {{height/ 3}} A {{width/2}} {{height/ 5}} 0 0 1 0 {{height/ 3}}" fill="none"/>
38
+ </g>
39
+ `},{type:Gt,label:"Pool",objectType:"Group",template:`<g>
40
+ <rect width="{{width}}" height="{{height}}" data-vjs-perimeter="true"/>
41
+ <g data-vjs-group-content="true" transform="translate({{headerSize || ${E}}}, 0)"></g>
42
+ <rect width="{{headerSize || ${E}}}" height="{{height}}" fill="{{headerFill}}"/>
43
+ <text dominant-baseline="central" text-anchor="middle" x="-{{height/2}}" y="{{headerSize / 2 || ${E/2}}}" transform="rotate(270)" fill="{{headerColor || '#000000'}}" stroke="none">{{title}}</text>
44
+ </g>`,initialSize:{width:ot,height:Kt},payload:{title:"Pool",headerFill:"#FFFFFF",headerColor:"#000000"}},{type:Ft,label:"Lane",objectType:"Group",template:`<g>
45
+ <rect width="{{width}}" height="{{height}}" stroke-width="1.5px" data-vjs-resizable="true" data-vjs-perimeter="true"/>
46
+ <g data-vjs-group-content="true" transform="translate({{headerSize || ${m}}}, 0)"></g>
47
+ <rect width="{{headerSize || ${m}}}" height="{{height}}" fill="{{headerFill}}"/>
48
+ <text dominant-baseline="central" text-anchor="middle" x="-{{height/2}}" y="{{headerSize / 2 || ${m/2}}}" transform="rotate(270)" fill="{{headerColor || '#000000'}}" stroke="none">{{title}}</text>
49
+ </g>`,initialSize:{width:Zt,height:Yt},payload:{title:"Lane",headerFill:"#FFFFFF",headerColor:"#000000"}}],icons:fe};var S=require("@visuallyjs/browser-ui"),ue="sequence",Re="message";function Qe(i=15,o=10,r=6){return[{property:"type",mappings:{[ue]:{targetMarker:{type:S.PlainArrowOverlay.type,options:{location:1,width:i,length:o}}},[Re]:{dashArray:"3",targetMarker:{type:S.PlainArrowOverlay.type,options:{width:i,length:o,hollow:!0}},sourceMarker:{type:S.DotOverlay.type,options:{radius:r,hollow:!0}}}}}]}
@@ -0,0 +1,49 @@
1
+ var ee=Object.defineProperty,oe=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var rt=(i,o,r)=>o in i?ee(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,p=(i,o)=>{for(var r in o||(o={}))re.call(o,r)&&rt(i,r,o[r]);if(it)for(var r of it(o))ne.call(o,r)&&rt(i,r,o[r]);return i},h=(i,o)=>oe(i,ie(o));var Ge={x:0,y:0,width:100,height:100},t=()=>({stroke:"currentColor",fill:"none","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}),nt="envelope-filled",st="envelope-outline",Et="link",at="link-filled",pt="link-outline",ht="conditional",ct="compensation",lt="timer",Nt="sequential",_t="terminate",c="parallel",Tt="message",dt="loop",xt="escalation-throw",At="error",It="businessRule",mt="script",Lt="receive",gt="send",St="service",Mt="exclusive",Ot="inclusive",Ct="user",Pt="plus";import{ELEMENT_PATH as se,ELEMENT_RECT as ft}from"@visuallyjs/browser-ui";var wt={id:It,viewBox:{x:0,y:0,width:32,height:22},atts:t(),shapes:[{tag:ft,atts:{x:2,y:2,width:28,height:20,rx:3}},{tag:ft,atts:{x:2,y:2,width:28,height:6,rx:3,fill:"currentColor"}},{tag:se,atts:{d:"M 12 5 L 12 22 M 2 15 L 30 15",stroke:"currentColor","stroke-width":1.5}}]};import{ELEMENT_PATH as Ee}from"@visuallyjs/browser-ui";var l={id:ct,viewBox:{x:0,y:0,width:32,height:32},atts:h(p({},t()),{fill:"currentColor"}),shapes:[{tag:Ee,atts:{d:"M 2 16 L 16 6 L 16 26 Z M16 16 L 30 6 L 30 26 Z"}}]};import{ELEMENT_PATH as ae}from"@visuallyjs/browser-ui";var N={id:ht,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:ae,atts:{d:"M 6 4 L 26 4 L 26 28 L 6 28 Z M 10 10 L 22 10 M 10 16 L 22 16 M 10 22 L 22 22"}}]};import{ELEMENT_PATH as ut}from"@visuallyjs/browser-ui";var _={id:nt,viewBox:{x:0,y:0,width:32,height:22},atts:{fill:"currentColor",stroke:"#FFFFFF","stroke-width":2},shapes:[{tag:ut,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:ut,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};import{ELEMENT_PATH as Rt}from"@visuallyjs/browser-ui";var T={id:st,viewBox:{x:0,y:0,width:32,height:22},atts:t(),shapes:[{tag:Rt,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:Rt,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};import{ELEMENT_PATH as pe}from"@visuallyjs/browser-ui";var O={id:At,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:pe,atts:{d:"M 20 4 L 10 18 L 16 18 L 12 28 L 22 14 L 16 14 Z",fill:"currentColor"}}]};import{ELEMENT_PATH as he}from"@visuallyjs/browser-ui";var d={id:xt,viewBox:{x:0,y:0,width:32,height:32},atts:h(p({},t()),{fill:"currentColor"}),shapes:[{tag:he,atts:{d:"M 16 4 L 28 26 L 16 18 L 4 26 Z"}}]};import{ELEMENT_PATH as yt}from"@visuallyjs/browser-ui";var C=i=>({id:i,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:yt,atts:{d:"M 18 6 L 28 16 L 18 26"}},{tag:yt,atts:{d:"M 4 13 L 24 13 L 28 16 L 24 19 L 4 19 L 4 13"}}]}),x=C(at);x.shapes[1].atts.fill="currentColor";var P=C(pt),f=C(Et);import{ELEMENT_PATH as ce}from"@visuallyjs/browser-ui";var Bt={id:dt,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:ce,atts:{d:"M16 5 a11 11 0 1 1 -11 11 M 5 14 L 1 18 M 5 14 L 9 18"}}]};import{ELEMENT_PATH as vt}from"@visuallyjs/browser-ui";var Vt={id:Tt,viewBox:{x:0,y:0,width:32,height:22},atts:t(),shapes:[{tag:vt,atts:{d:"M 2 2 L 30 2 L 30 20 L 2 20 Z"}},{tag:vt,atts:{d:"M 2 2 L 16 11 L 30 2"}}]};import{ELEMENT_PATH as le}from"@visuallyjs/browser-ui";var Ht={id:c,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:le,atts:{d:"M 5 2 V 28 M 16 2 V 28 M 27 2 V 28"}}]};import{ELEMENT_PATH as Ne,ELEMENT_RECT as _e}from"@visuallyjs/browser-ui";var n={id:Pt,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:_e,atts:{x:8,y:8,width:16,height:16}},{tag:Ne,atts:{d:"M 16 11 v 10 M 11 16 h 10"}}]};import{ELEMENT_PATH as bt}from"@visuallyjs/browser-ui";var Dt={id:mt,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:bt,atts:{d:"M 4 4 C 0 16, 4 16, 4 30 L 30 30 C 30 16, 26 16 30 4 L 4 4 Z"}},{tag:bt,atts:{d:"M 8 10 L 24 10 M 8 16 L 24 16 M 8 22 L 24 22"}}]};import{ELEMENT_PATH as Te}from"@visuallyjs/browser-ui";var kt={id:Nt,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:Te,atts:{d:"M 2 5 H 28 M 2 16 H 28 M 2 27 H 28"}}]};var Ut="lane",Ft="pool",w="task",Ho="userTask",de="send",xe="receive",Ae="businessRule",Ie="script",me="service",Le="user",bo=[de,xe,Ae,Ie,me,Le],Gt="group",s="transaction",u="gateway",ge="exclusive",Se="parallel",Me="inclusive",Do=[ge,Se,Me],jt="dataObject",zt="dataStoreReference",A="call-activity",I="subprocess",R="start-event",y="message-start",B="timer-start",v="conditional-start",V="signal-start",ko=[y,B,v,V],H="end-event",b="message-end",D="escalation-end",k="error-end",U="compensation-end",F="signal-end",G="terminate-end",Uo=[b,D,k,U,F,G],j="intermediate-event",z="message-catch",W="message-throw",K="timer-catch",Z="escalation-throw",Y="conditional-catch",$="link-throw",q="link-catch",Q="compensation-throw",X="signal-catch",J="signal-throw",Fo=[z,W,K,Z,Y,$,q,Q,X,J],Go=[R,j,H],jo=[w,s,u],Oe="loop",Ce="compensation",Pe="parallel",fe="sequential",zo=[Oe,fe,Pe,Ce],E=30,m=30,tt=600,Wt=400,Kt=tt-E,Zt=200;import{ELEMENT_PATH as we}from"@visuallyjs/browser-ui";var Yt=()=>({viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:we,atts:{d:"M 16 4 L 28 26 L 4 26 Z"}}]}),L=Object.assign({},Yt(),{id:X}),a=Object.assign({},Yt(),{id:J});a.atts.fill="currentColor";import{ELEMENT_PATH as ue}from"@visuallyjs/browser-ui";var et={id:_t,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:ue,atts:{d:"M 16 6 A 10 10 0 1 1 16 26 A 10 10 0 1 1 16 6 Z",fill:"currentColor"}}]};import{ELEMENT_PATH as $t}from"@visuallyjs/browser-ui";var g={id:lt,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:$t,atts:{d:"M 16 2 A 14 14 0 1 0 16 30 A 14 14 0 1 0 16 2 Z"}},{tag:$t,atts:{d:"M 16 16 L 16 8 M 16 16 L 23 20"}}]};import{ELEMENT_PATH as qt}from"@visuallyjs/browser-ui";var Qt={id:Ct,viewBox:{x:0,y:0,width:32,height:32},atts:t(),shapes:[{tag:qt,atts:{d:"M 16 14 A 5 5 0 1 0 16 4 A 5 5 0 0 0 16 14 Z"}},{tag:qt,atts:{d:"M 6 28 v -2 a 10 10 0 0 1 20 0 v 2"}}]};import{ICON_CROSS as Re,cloneIcon as e,ICON_PLUS as ye,ICON_CIRCLE as Be,ICON_GEAR as ve,IconElement as Ve}from"@visuallyjs/browser-ui";var vi={stroke:"currentColor",fill:"none"},He="vjs-bpmn-icon",Xt=[Vt,Ht,kt,Bt,l,e(T,Lt),e(_,gt),g,d,N,f,O,et,L,a,wt,Dt,Qt,n,e(ve,St),e(Re,Mt),e(ye,c),e(Be,Ot),e(_,W),e(T,z),e(g,K),e(d,Z),e(N,Y),e(x,$),e(P,q),e(l,Q),e(T,y),e(g,B),e(N,v),e(L,V),e(_,b),e(d,D),e(O,k),e(l,U),e(a,F),e(et,G),e(n,I),e(n,s),e(n,A)],Jt=Xt,ot=class extends Ve{findIcon(o){return Xt.find(r=>r.id===o)}};function Vi(){customElements.define(He,ot)}var S={width:40,height:40},M={width:80,height:60},be={id:"bpmn2",name:"BPMN2",shapes:[{type:R,label:"Start Event",group:"Events",template:`<g>
2
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" data-vjs-perimeter="true"/>
3
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
4
+ </g>`,initialSize:S},{type:H,label:"End Event",group:"Events",template:`<g>
5
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" stroke-width="{{outlineWidth*3}}" data-vjs-perimeter="true"/>
6
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
7
+ </g>`,initialSize:S},{type:j,label:"Intermediate Event",group:"Events",template:`<g>
8
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width/2}}" data-vjs-perimeter="true"/>
9
+ <circle cx="{{width/2}}" cy="{{height/2}}" r="{{width * 17 / 40}}"/>
10
+ <vjs-include-icon key="eventType" x="0.5" y="0.5" size="0.6" origin="center"/>
11
+ </g>`,initialSize:S},{type:u,label:"Exclusive Gateway",group:"Gateways",template:`<g>
12
+ <polygon points="{{width/2}},0 {{width}},{{height/2}} {{width/2}},{{height}} 0,{{height/2}}" stroke-linecap="round" stroke-linejoin="round"/>
13
+ <vjs-include-icon key="gatewayType" x="0.5" y="0.5" size="0.4" origin="center"/>
14
+ </g>`,payload:{gatewayType:"exclusive"},initialSize:S,labelPosition:"bottom"},{type:w,label:"Task",group:"Tasks",template:`<g>
15
+ <rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" data-vjs-perimeter="true"/>
16
+ <vjs-include-icon key="taskType" x="0.05" y="0.05" size="0.25"/>
17
+ <vjs-include-icons key="markers" x="0.5" y="0.75" size="0.15" origin="center"/>
18
+ </g>`,payload:{taskType:"",label:"Task"},initialSize:M},{type:s,label:"Transaction",template:`<g>
19
+ <rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" data-vjs-perimeter="true"/>
20
+ <rect x="{{width * 2 / 40}}" y="{{width * 2 / 40}}" width="{{width * 36 / 40}}" height="{{height * 34 / 40}}" rx="5"/>
21
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
22
+ </g>`,initialSize:M},{type:A,label:"Call Activity",template:`<g><rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" stroke-width="{{outlineWidth*2}}" data-vjs-perimeter="true"/>
23
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
24
+ </g>`,initialSize:M},{type:I,label:"Subprocess",template:`<g><rect x="0" y="0" width="{{width}}" height="{{height}}" rx="5" stroke-width="{{outlineWidth}}" data-vjs-perimeter="true"/>
25
+ <vjs-bpmn-icon icon-id="plus" x="0.5" y="0.85" size="0.25" origin="center"/>
26
+ </g>`,initialSize:M},{type:Gt,label:"Group",template:`<g>
27
+ <rect width="{{width}}" height="{{height}}" stroke-width="1.5px" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="10,6,0,6" rx="15" ry="15" fill="none" data-vjs-perimeter="true"/>
28
+ <rect width="{{width}}" height="{{height}}" stroke-width="5px" stroke="transparent" rx="15" ry="15" fill="none"/>
29
+ </g>`,initialSize:{width:150,height:150}},{type:jt,label:"Data Object",template:`
30
+ <g>
31
+ <path d="M {{width/6}} {{height/6}} L {{width*7/12}} {{height/6}} L {{width*5/6}} {{height*2/6}} L {{width*5/6}} {{height*5/6}} L {{width/6}} {{height*5/6}} Z" stroke-linejoin="round" data-fill/>
32
+ <path d="M {{width*7/12}} {{height/6}} L {{width*7/12}} {{height*2/6}} L {{width*5/6}} {{height*2/6}}" fill="none"/>
33
+ </g>`,initialSize:{width:40,height:60}},{type:zt,label:"Datastore",template:`
34
+ <g>
35
+ <path d="M 0 {{height-(height/5)}} A {{width/2}} {{height/5}} 0 0 0 {{width}} {{height-(height/5)}} L {{width}} {{height/5}} A {{width/2}} {{height/5}} 0 0 0 0 {{(height/5)}} Z" data-fill/>
36
+ <path d="M {{width}} {{height/5}} A {{width/2}} {{height/5}} 0 0 1 0 {{height/5}}" fill="none"/>
37
+ <path d="M {{width}} {{height/ 3}} A {{width/2}} {{height/ 5}} 0 0 1 0 {{height/ 3}}" fill="none"/>
38
+ </g>
39
+ `},{type:Ft,label:"Pool",objectType:"Group",template:`<g>
40
+ <rect width="{{width}}" height="{{height}}" data-vjs-perimeter="true"/>
41
+ <g data-vjs-group-content="true" transform="translate({{headerSize || ${E}}}, 0)"></g>
42
+ <rect width="{{headerSize || ${E}}}" height="{{height}}" fill="{{headerFill}}"/>
43
+ <text dominant-baseline="central" text-anchor="middle" x="-{{height/2}}" y="{{headerSize / 2 || ${E/2}}}" transform="rotate(270)" fill="{{headerColor || '#000000'}}" stroke="none">{{title}}</text>
44
+ </g>`,initialSize:{width:tt,height:Wt},payload:{title:"Pool",headerFill:"#FFFFFF",headerColor:"#000000"}},{type:Ut,label:"Lane",objectType:"Group",template:`<g>
45
+ <rect width="{{width}}" height="{{height}}" stroke-width="1.5px" data-vjs-resizable="true" data-vjs-perimeter="true"/>
46
+ <g data-vjs-group-content="true" transform="translate({{headerSize || ${m}}}, 0)"></g>
47
+ <rect width="{{headerSize || ${m}}}" height="{{height}}" fill="{{headerFill}}"/>
48
+ <text dominant-baseline="central" text-anchor="middle" x="-{{height/2}}" y="{{headerSize / 2 || ${m/2}}}" transform="rotate(270)" fill="{{headerColor || '#000000'}}" stroke="none">{{title}}</text>
49
+ </g>`,initialSize:{width:Kt,height:Zt},payload:{title:"Lane",headerFill:"#FFFFFF",headerColor:"#000000"}}],icons:Jt};import{DotOverlay as De,PlainArrowOverlay as te}from"@visuallyjs/browser-ui";var ke="sequence",Ue="message";function ji(i=15,o=10,r=6){return[{property:"type",mappings:{[ke]:{targetMarker:{type:te.type,options:{location:1,width:i,length:o}}},[Ue]:{dashArray:"3",targetMarker:{type:te.type,options:{width:i,length:o,hollow:!0}},sourceMarker:{type:De.type,options:{radius:r,hollow:!0}}}}}]}export{be as BPMN2_SHAPES,Ue as BPMN_FLOW_TYPE_MESSAGE,ke as BPMN_FLOW_TYPE_SEQUENCE,A as CALL_ACTIVITY,U as COMPENSATION_END_EVENT,Ce as COMPENSATION_MARKER,Q as COMPENSATION_THROW_EVENT,Y as CONDITIONAL_CATCH_EVENT,v as CONDITIONAL_START_EVENT,jt as DATAOBJECT,zt as DATASTORE,m as DEFAULT_LANE_HEADER_SIZE,Zt as DEFAULT_LANE_HEIGHT,Kt as DEFAULT_LANE_WIDTH,E as DEFAULT_POOL_HEADER_SIZE,Wt as DEFAULT_POOL_HEIGHT,tt as DEFAULT_POOL_WIDTH,H as END_EVENT,Uo as END_EVENT_TYPES,k as ERROR_END_EVENT,D as ESCALATION_END_EVENT,Z as ESCALATION_THROW_EVENT,Go as EVENT_TYPES,ge as EXCLUSIVE_GATEWAY,jo as FLOW_TYPES,u as GATEWAY,Do as GATEWAY_TYPES,Gt as GROUP,It as ICON_BPMN_BUSINESS_RULE,ct as ICON_BPMN_COMPENSATION,ht as ICON_BPMN_CONDITIONAL,At as ICON_BPMN_ERROR,xt as ICON_BPMN_ESCALATION_THROW,Mt as ICON_BPMN_EXCLUSIVE,Ot as ICON_BPMN_INCLUSIVE,Et as ICON_BPMN_LINK,at as ICON_BPMN_LINK_FILLED,pt as ICON_BPMN_LINK_OUTLINE,dt as ICON_BPMN_LOOP,Tt as ICON_BPMN_MESSAGE,c as ICON_BPMN_PARALLEL,Pt as ICON_BPMN_PLUS,Lt as ICON_BPMN_RECEIVE,mt as ICON_BPMN_SCRIPT,gt as ICON_BPMN_SEND,Nt as ICON_BPMN_SEQUENTIAL,St as ICON_BPMN_SERVICE,_t as ICON_BPMN_TERMINATE,lt as ICON_BPMN_TIMER,Ct as ICON_BPMN_USER,nt as ICON_ENVELOPE_FILLED,st as ICON_ENVELOPE_OUTLINE,Me as INCLUSIVE_GATEWAY,j as INTERMEDIATE_EVENT,Fo as INTERMEDIATE_EVENT_TYPES,Ut as LANE,q as LINK_CATCH_EVENT,$ as LINK_THROW_EVENT,Oe as LOOP_MARKER,zo as MARKER_TYPES,z as MESSAGE_CATCH_EVENT,b as MESSAGE_END_EVENT,y as MESSAGE_START_EVENT,W as MESSAGE_THROW_EVENT,Se as PARALLEL_GATEWAY,Pe as PARALLEL_MARKER,Ft as POOL,fe as SEQUENTIAL_MARKER,X as SIGNAL_CATCH_EVENT,F as SIGNAL_END_EVENT,V as SIGNAL_START_EVENT,J as SIGNAL_THROW_EVENT,R as START_EVENT,ko as START_EVENT_TYPES,I as SUBPROCESS,He as TAG_BPMN_ICON,w as TASK,Ae as TASK_BUSINESS_RULE,xe as TASK_RECEIVE,Ie as TASK_SCRIPT,de as TASK_SEND,me as TASK_SERVICE,bo as TASK_TYPES,Le as TASK_USER,G as TERMINATE_END_EVENT,K as TIMER_CATCH_EVENT,B as TIMER_START_EVENT,s as TRANSACTION,Ho as USERTASK,O as bpmnErrorIcon,d as bpmnEscalationIcon,Bt as bpmnLoopIcon,Vt as bpmnMessageIcon,Ht as bpmnParallelIcon,n as bpmnPlusIcon,Dt as bpmnScriptIcon,kt as bpmnSequentialIcon,et as bpmnTerminateIcon,g as bpmnTimerIcon,Qt as bpmnUserIcon,wt as businessRuleIcon,l as compensationIcon,N as conditionalIcon,t as defaultAtts,Ge as defaultViewBox,_ as envelopeFilledIcon,T as envelopeOutlineIcon,ji as getBPMNFlowTypes,f as link,x as linkFilled,P as linkOutline,Vi as registerBPMNIconTag,L as signalCatch,a as signalThrow};
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@visuallyjs/bpmn",
3
+ "version": "1.0.0",
4
+ "description": "VisuallyJs BPMN for Browser UI renderer, containing icons, shapes and flow definitions.",
5
+ "module": "js/visuallyjs.bpmn.es.js",
6
+ "main": "js/visuallyjs.bpmn.cjs.js",
7
+ "types": "index.d.ts",
8
+ "files": [
9
+ "js/visuallyjs.bpmn.es.js",
10
+ "js/visuallyjs.bpmn.cjs.js",
11
+ "**/*.d.ts"
12
+ ],
13
+ "author": "VisuallyJs <hello@visuallyjs.com> (https://visuallyjs.com)",
14
+ "license": "Commercial",
15
+ "dependencies": {
16
+ "@visuallyjs/browser-ui": "1.0.0"
17
+ }
18
+ }