@formicoidea/labre-framework-wardley 3.3.0 → 3.5.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.
@@ -21,52 +21,52 @@ export class EdgelessWardleySeniorButton extends EdgelessToolbarToolMixin(Signal
21
21
  // native Note/Shape sub-menus.
22
22
  this.type = EmptyTool;
23
23
  }
24
- static { this.styles = css `
25
- :host,
26
- .wardley-button {
27
- display: block;
28
- width: 100%;
29
- height: 100%;
30
- }
31
- .wardley-root {
32
- width: 100%;
33
- height: 64px;
34
- position: relative;
35
- overflow: hidden;
36
- cursor: pointer;
37
- /* no double-tap-zoom / 300ms tap delay on touch screens */
38
- touch-action: manipulation;
39
- display: flex;
40
- align-items: flex-end;
41
- justify-content: center;
42
- }
43
- .wardley-card {
44
- --y: -4px;
45
- --s: 1;
46
- position: absolute;
47
- bottom: 0;
48
- width: 54px;
49
- height: 54px;
50
- transform: translateY(var(--y)) scale(var(--s)); /* base */
51
- translate: var(--active-x, 0) var(--active-y, 0); /* actif */
52
- rotate: var(--active-r, -2deg);
53
- scale: var(--active-s, 1);
54
- transition:
55
- transform 0.3s ease,
56
- translate 0.3s ease,
57
- rotate 0.3s ease,
58
- scale 0.3s ease;
59
- }
60
- .wardley-card svg {
61
- display: block;
62
- width: 100%;
63
- height: 100%;
64
- }
65
- .wardley-root:hover .wardley-card,
66
- .wardley-root:active .wardley-card {
67
- --y: -10px;
68
- --s: 1.07;
69
- }
24
+ static { this.styles = css `
25
+ :host,
26
+ .wardley-button {
27
+ display: block;
28
+ width: 100%;
29
+ height: 100%;
30
+ }
31
+ .wardley-root {
32
+ width: 100%;
33
+ height: 64px;
34
+ position: relative;
35
+ overflow: hidden;
36
+ cursor: pointer;
37
+ /* no double-tap-zoom / 300ms tap delay on touch screens */
38
+ touch-action: manipulation;
39
+ display: flex;
40
+ align-items: flex-end;
41
+ justify-content: center;
42
+ }
43
+ .wardley-card {
44
+ --y: -4px;
45
+ --s: 1;
46
+ position: absolute;
47
+ bottom: 0;
48
+ width: 54px;
49
+ height: 54px;
50
+ transform: translateY(var(--y)) scale(var(--s)); /* base */
51
+ translate: var(--active-x, 0) var(--active-y, 0); /* actif */
52
+ rotate: var(--active-r, -2deg);
53
+ scale: var(--active-s, 1);
54
+ transition:
55
+ transform 0.3s ease,
56
+ translate 0.3s ease,
57
+ rotate 0.3s ease,
58
+ scale 0.3s ease;
59
+ }
60
+ .wardley-card svg {
61
+ display: block;
62
+ width: 100%;
63
+ height: 100%;
64
+ }
65
+ .wardley-root:hover .wardley-card,
66
+ .wardley-root:active .wardley-card {
67
+ --y: -10px;
68
+ --s: 1.07;
69
+ }
70
70
  `; }
71
71
  _toggleMenu() {
72
72
  // Toggle on popper presence (not tool-active state): the menu stays open on
@@ -91,18 +91,18 @@ export class EdgelessWardleySeniorButton extends EdgelessToolbarToolMixin(Signal
91
91
  return armedArtefact(this.gfx)?.owner === 'wardley';
92
92
  }
93
93
  render() {
94
- return html `<edgeless-toolbar-button
95
- class="wardley-button"
94
+ return html `<edgeless-toolbar-button
95
+ class="wardley-button"
96
96
  .tooltip=${this.popper
97
97
  ? ''
98
- : translateKey(this.edgeless.std, 'com.labre.framework.wardley', 'Wardley map')}
99
- .tooltipOffset=${4}
100
- .active=${!!this.popper || this._armed}
101
- @click=${this._toggleMenu}
102
- >
103
- <div class="wardley-root">
104
- <div class="wardley-card">${wardleyToolbarIcon}</div>
105
- </div>
98
+ : translateKey(this.edgeless.std, 'com.labre.framework.wardley', 'Wardley map')}
99
+ .tooltipOffset=${4}
100
+ .active=${!!this.popper || this._armed}
101
+ @click=${this._toggleMenu}
102
+ >
103
+ <div class="wardley-root">
104
+ <div class="wardley-card">${wardleyToolbarIcon}</div>
105
+ </div>
106
106
  </edgeless-toolbar-button>`;
107
107
  }
108
108
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formicoidea/labre-framework-wardley",
3
3
  "description": "Labre wardley framework for @formicoidea/labre-core.",
4
- "version": "3.3.0",
4
+ "version": "3.5.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "author": "lajola",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@formicoidea/labre-core": "3.3.0",
38
+ "@formicoidea/labre-core": "3.5.0",
39
39
  "lit": "^3.2.0"
40
40
  }
41
41
  }