camunda-bpmn-js 3.1.2 → 3.2.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.
@@ -1,4 +1,6 @@
1
1
  .bio-properties-panel {
2
+ --color-grey-225-10-50: hsl(225, 10%, 50%);
3
+
2
4
  --select-template-background-color: var(--color-blue-205-100-50);
3
5
  --select-template-hover-background-color: var(--color-blue-205-100-45);
4
6
  --select-template-fill-color: var(--color-white);
@@ -8,6 +10,9 @@
8
10
  --unknown-template-hover-background-color: var(--color-red-360-100-40);
9
11
 
10
12
  --select-template-information-text-color: var(--color-grey-225-10-55);
13
+
14
+ --deprecated-template-hover-background-color: var(--color-grey-225-10-50);
15
+ --deprecated-template-background-color: var(--color-grey-225-10-55);
11
16
  }
12
17
 
13
18
  .bio-properties-panel-header-template-icon {
@@ -62,6 +67,17 @@
62
67
  color: var(--text-error-color);
63
68
  }
64
69
 
70
+ .bio-properties-panel-deprecated-template-button .bio-properties-panel-group-header-button {
71
+ background-color: var(--deprecated-template-background-color);
72
+ color: var(--select-template-label-color);
73
+ fill: var(--select-template-fill-color);
74
+ }
75
+
76
+ .bio-properties-panel-deprecated-template-button:hover .bio-properties-panel-group-header-button:hover {
77
+ background-color: var(--deprecated-template-hover-background-color);
78
+ }
79
+
80
+
65
81
  .bio-properties-panel-template-not-found .bio-properties-panel-group-header-button {
66
82
  background-color: var(--unknown-template-background-color);
67
83
  color: var(--select-template-label-color);
@@ -78,6 +94,7 @@
78
94
  }
79
95
 
80
96
  .bio-properties-panel-template-not-found-text,
81
- .bio-properties-panel-template-update-available-text {
97
+ .bio-properties-panel-template-update-available-text,
98
+ .bio-properties-panel-deprecated-template-text {
82
99
  width: 216px;
83
100
  }
@@ -5291,9 +5291,9 @@
5291
5291
 
5292
5292
  const viewport = this._viewport = createGroup(svg, 'viewport');
5293
5293
 
5294
- // debounce canvas.viewbox.changed events
5295
- // for smoother diagram interaction
5296
- if (config.deferUpdate !== false) {
5294
+ // debounce canvas.viewbox.changed events when deferUpdate is set
5295
+ // to help with potential performance issues
5296
+ if (config.deferUpdate) {
5297
5297
  this._viewboxChanged = debounce(bind$2(this._viewboxChanged, this), 300);
5298
5298
  }
5299
5299
 
@@ -6317,6 +6317,11 @@
6317
6317
  this.setRootElement(rootElement);
6318
6318
  }
6319
6319
 
6320
+ // element is rootElement, do not change viewport
6321
+ if (rootElement === element) {
6322
+ return;
6323
+ }
6324
+
6320
6325
  if (!padding) {
6321
6326
  padding = {};
6322
6327
  }