@formicoidea/labre-framework-bpmn 0.29.1 → 0.31.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.
package/dist/effects.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EdgelessBpmnMenu } from './toolbar/bpmn-menu';
|
|
2
|
-
import { EdgelessBpmnSeniorButton } from './toolbar/bpmn-senior-button';
|
|
1
|
+
import { EdgelessBpmnMenu } from './toolbar/bpmn-menu.js';
|
|
2
|
+
import { EdgelessBpmnSeniorButton } from './toolbar/bpmn-senior-button.js';
|
|
3
3
|
export declare function effects(): void;
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
package/dist/effects.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EdgelessBpmnMenu } from './toolbar/bpmn-menu';
|
|
2
|
-
import { EdgelessBpmnSeniorButton } from './toolbar/bpmn-senior-button';
|
|
1
|
+
import { EdgelessBpmnMenu } from './toolbar/bpmn-menu.js';
|
|
2
|
+
import { EdgelessBpmnSeniorButton } from './toolbar/bpmn-senior-button.js';
|
|
3
3
|
export function effects() {
|
|
4
4
|
customElements.define('edgeless-bpmn-menu', EdgelessBpmnMenu);
|
|
5
5
|
customElements.define('edgeless-bpmn-senior-button', EdgelessBpmnSeniorButton);
|
package/dist/element-renderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRendererExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
|
-
import { POOL_BAND_FILL, POOL_BAND_WIDTH, POOL_FONT_FAMILY, POOL_FRAME_COLOR, POOL_FRAME_WIDTH, POOL_NAME_COLOR, POOL_NAME_FONT_SIZE, } from './consts';
|
|
2
|
+
import { POOL_BAND_FILL, POOL_BAND_WIDTH, POOL_FONT_FAMILY, POOL_FRAME_COLOR, POOL_FRAME_WIDTH, POOL_NAME_COLOR, POOL_NAME_FONT_SIZE, } from './consts.js';
|
|
3
3
|
/** Trace a rounded-rectangle path (no dependency on ctx.roundRect). */
|
|
4
4
|
function roundedRectPath(ctx, x, y, w, h, r) {
|
|
5
5
|
const rr = Math.min(r, w / 2, h / 2);
|
package/dist/templates/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeTemplateSnapshot, surfaceText, } from '@formicoidea/labre-core/gfx/template';
|
|
2
2
|
import { ConnectorMode, FontFamily, PointStyle, ShapeStyle, StrokeStyle, } from '@formicoidea/labre-core/model';
|
|
3
|
-
import { END_WIDTH, EVENT_END, EVENT_START, INNER_FONT_SIZE, NEUTRAL_STROKE, NODE_FILL, NODE_SIZE, NODE_STROKE_WIDTH, SEQUENCE_STROKE, SEQUENCE_WIDTH, START_WIDTH, TASK_RADIUS, } from '../consts';
|
|
3
|
+
import { END_WIDTH, EVENT_END, EVENT_START, INNER_FONT_SIZE, NEUTRAL_STROKE, NODE_FILL, NODE_SIZE, NODE_STROKE_WIDTH, SEQUENCE_STROKE, SEQUENCE_WIDTH, START_WIDTH, TASK_RADIUS, } from '../consts.js';
|
|
4
4
|
/** One BPMN flow-object node, as a surface-element JSON entry. */
|
|
5
5
|
function node(kind, x, y, text) {
|
|
6
6
|
const { w, h } = NODE_SIZE[kind];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DefaultTool } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
import { ConnectorTool } from '@formicoidea/labre-core/gfx/connector';
|
|
3
3
|
import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
4
|
-
import { ConnectorMode, FontFamily, PointStyle, ShapeStyle, StrokeStyle, } from '@formicoidea/labre-core/model';
|
|
4
|
+
import { ConnectorMode, FontFamily, PointStyle, ShapeStyle, StrokeStyle, TextFitMode, } from '@formicoidea/labre-core/model';
|
|
5
5
|
import { EditPropsStore, TelemetryProvider, } from '@formicoidea/labre-core/shared/services';
|
|
6
6
|
import { EdgelessToolbarToolMixin } from '@formicoidea/labre-core/widgets/edgeless-toolbar';
|
|
7
7
|
import { Bound } from '@formicoidea/labre-core/global/gfx';
|
|
8
8
|
import { css, html, LitElement } from 'lit';
|
|
9
|
-
import { EVENT_END, EVENT_START, END_WIDTH, INNER_FONT_SIZE, NEUTRAL_STROKE, NODE_FILL, NODE_LABEL, NODE_SIZE, NODE_STROKE_WIDTH, SEQUENCE_STROKE, SEQUENCE_WIDTH, START_WIDTH, TASK_RADIUS, } from '../consts';
|
|
10
|
-
import { bpmnEndIcon, bpmnGatewayIcon, bpmnPoolIcon, bpmnSequenceIcon, bpmnStartIcon, bpmnTaskIcon, } from './icons';
|
|
9
|
+
import { EVENT_END, EVENT_START, END_WIDTH, INNER_FONT_SIZE, NEUTRAL_STROKE, NODE_FILL, NODE_LABEL, NODE_SIZE, NODE_STROKE_WIDTH, SEQUENCE_STROKE, SEQUENCE_WIDTH, START_WIDTH, TASK_RADIUS, } from '../consts.js';
|
|
10
|
+
import { bpmnEndIcon, bpmnGatewayIcon, bpmnPoolIcon, bpmnSequenceIcon, bpmnStartIcon, bpmnTaskIcon, } from './icons.js';
|
|
11
11
|
/** Per-kind native shape + accent presets (style C). */
|
|
12
12
|
const NODE_PRESETS = {
|
|
13
13
|
startEvent: { shapeType: 'ellipse', stroke: EVENT_START, width: START_WIDTH },
|
|
@@ -75,6 +75,9 @@ export class EdgelessBpmnMenu extends EdgelessToolbarToolMixin(LitElement) {
|
|
|
75
75
|
fontFamily: FontFamily.Inter,
|
|
76
76
|
fontSize: INNER_FONT_SIZE,
|
|
77
77
|
textAlign: 'center',
|
|
78
|
+
// BPMN symbols have normative sizes: a long label overflows rather
|
|
79
|
+
// than deforming the node
|
|
80
|
+
textFitMode: TextFitMode.Overflow,
|
|
78
81
|
xywh: new Bound(cx - w / 2, cy - h / 2, w, h).serialize(),
|
|
79
82
|
});
|
|
80
83
|
this._track('FrameworkElementAdded', `node:${kind}`);
|
|
@@ -3,7 +3,7 @@ import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
|
3
3
|
import { EdgelessToolbarToolMixin } from '@formicoidea/labre-core/widgets/edgeless-toolbar';
|
|
4
4
|
import { SignalWatcher } from '@formicoidea/labre-core/global/lit';
|
|
5
5
|
import { css, html, LitElement } from 'lit';
|
|
6
|
-
import { bpmnToolbarIcon } from './icons';
|
|
6
|
+
import { bpmnToolbarIcon } from './icons.js';
|
|
7
7
|
/**
|
|
8
8
|
* Main toolbar button (colored BPMN glyph) that opens the BPMN toolbox sub-menu
|
|
9
9
|
* above the toolbar. Mirrors the EDGY / Wardley senior buttons.
|
|
@@ -27,6 +27,8 @@ export class EdgelessBpmnSeniorButton extends EdgelessToolbarToolMixin(SignalWat
|
|
|
27
27
|
position: relative;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
cursor: pointer;
|
|
30
|
+
/* no double-tap-zoom / 300ms tap delay on touch screens */
|
|
31
|
+
touch-action: manipulation;
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: flex-end;
|
|
32
34
|
justify-content: center;
|
|
@@ -50,7 +52,8 @@ export class EdgelessBpmnSeniorButton extends EdgelessToolbarToolMixin(SignalWat
|
|
|
50
52
|
width: 100%;
|
|
51
53
|
height: 100%;
|
|
52
54
|
}
|
|
53
|
-
.bpmn-root:hover .bpmn-card
|
|
55
|
+
.bpmn-root:hover .bpmn-card,
|
|
56
|
+
.bpmn-root:active .bpmn-card {
|
|
54
57
|
--y: -10px;
|
|
55
58
|
--s: 1.07;
|
|
56
59
|
}
|
package/dist/view.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ViewExtensionProvider, } from '@formicoidea/labre-core/ext-loader';
|
|
2
2
|
import { extendTemplateCategory } from '@formicoidea/labre-core/gfx/template';
|
|
3
|
-
import { effects } from './effects';
|
|
4
|
-
import { bpmnTemplateCategory } from './templates';
|
|
5
|
-
import { BpmnPoolRendererExtension } from './element-renderer';
|
|
6
|
-
import { BpmnPoolInteraction, BpmnPoolView } from './element-view';
|
|
7
|
-
import { BpmnNodeRendererExtension } from './node/node-renderer';
|
|
8
|
-
import { BpmnNodeView } from './node/node-view';
|
|
9
|
-
import { bpmnPoolToolbarExtension } from './toolbar/config';
|
|
10
|
-
import { bpmnSeniorTool } from './toolbar/senior-tool';
|
|
3
|
+
import { effects } from './effects.js';
|
|
4
|
+
import { bpmnTemplateCategory } from './templates/index.js';
|
|
5
|
+
import { BpmnPoolRendererExtension } from './element-renderer.js';
|
|
6
|
+
import { BpmnPoolInteraction, BpmnPoolView } from './element-view.js';
|
|
7
|
+
import { BpmnNodeRendererExtension } from './node/node-renderer.js';
|
|
8
|
+
import { BpmnNodeView } from './node/node-view.js';
|
|
9
|
+
import { bpmnPoolToolbarExtension } from './toolbar/config.js';
|
|
10
|
+
import { bpmnSeniorTool } from './toolbar/senior-tool.js';
|
|
11
11
|
export class BpmnViewExtension extends ViewExtensionProvider {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-bpmn",
|
|
3
3
|
"description": "Labre bpmn framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@formicoidea/labre-core": "0.
|
|
30
|
+
"@formicoidea/labre-core": "0.31.0",
|
|
31
31
|
"lit": "^3.2.0"
|
|
32
32
|
}
|
|
33
33
|
}
|