@formicoidea/labre-framework-bpmn 0.29.0 → 0.30.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
@@ -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}`);
|
|
@@ -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/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.30.1",
|
|
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.30.1",
|
|
31
31
|
"lit": "^3.2.0"
|
|
32
32
|
}
|
|
33
33
|
}
|