@formicoidea/labre-framework-edgy 0.23.1 → 0.23.3
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/consts.d.ts +0 -1
- package/dist/consts.js +0 -1
- package/dist/descriptor.d.ts +4 -4
- package/dist/descriptor.js +3 -4
- package/dist/effects.d.ts +0 -1
- package/dist/effects.js +0 -1
- package/dist/element-renderer.d.ts +1 -2
- package/dist/element-renderer.js +0 -1
- package/dist/element-view.d.ts +0 -1
- package/dist/element-view.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/label-layout.d.ts +0 -1
- package/dist/label-layout.js +0 -1
- package/dist/node/consts.d.ts +0 -1
- package/dist/node/consts.js +0 -1
- package/dist/node/node-renderer.d.ts +1 -2
- package/dist/node/node-renderer.js +0 -1
- package/dist/node/node-view.d.ts +0 -1
- package/dist/node/node-view.js +0 -1
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/index.js +0 -1
- package/dist/toolbar/config.d.ts +0 -1
- package/dist/toolbar/config.js +24 -25
- package/dist/toolbar/edgy-menu.d.ts +1 -2
- package/dist/toolbar/edgy-menu.js +58 -59
- package/dist/toolbar/edgy-senior-button.d.ts +1 -2
- package/dist/toolbar/edgy-senior-button.js +53 -54
- package/dist/toolbar/icons.d.ts +0 -1
- package/dist/toolbar/icons.js +0 -1
- package/dist/toolbar/node-config.d.ts +0 -1
- package/dist/toolbar/node-config.js +9 -10
- package/dist/toolbar/senior-tool.d.ts +0 -1
- package/dist/toolbar/senior-tool.js +2 -3
- package/dist/view.d.ts +0 -1
- package/dist/view.js +0 -1
- package/package.json +2 -2
package/dist/consts.d.ts
CHANGED
package/dist/consts.js
CHANGED
package/dist/descriptor.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EdgyViewExtension } from './view.js';
|
|
2
|
-
|
|
2
|
+
/** Host wiring for the edgy framework. */
|
|
3
3
|
export declare const edgyFramework: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
readonly flag: "edgy";
|
|
5
|
+
readonly telemetry: "edgy";
|
|
6
|
+
readonly viewExtension: typeof EdgyViewExtension;
|
|
7
7
|
};
|
package/dist/descriptor.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EdgyViewExtension } from './view.js';
|
|
2
|
-
|
|
3
2
|
/** Host wiring for the edgy framework. */
|
|
4
3
|
export const edgyFramework = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
flag: 'edgy',
|
|
5
|
+
telemetry: 'edgy',
|
|
6
|
+
viewExtension: EdgyViewExtension,
|
|
8
7
|
};
|
package/dist/effects.d.ts
CHANGED
package/dist/effects.js
CHANGED
|
@@ -12,6 +12,5 @@ import type { EdgyFacetsElementModel } from '@formicoidea/labre-core/model';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const edgy: ElementRenderer<EdgyFacetsElementModel>;
|
|
14
14
|
export declare const EdgyFacetsRendererExtension: import("@formicoidea/labre-core/store").ExtensionType & {
|
|
15
|
-
identifier: import("@formicoidea/labre-core/global/di").ServiceIdentifier<ElementRenderer<EdgyFacetsElementModel>>;
|
|
15
|
+
identifier: import("@formicoidea/labre-core/_pkgs/global/di").ServiceIdentifier<ElementRenderer<EdgyFacetsElementModel>>;
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=element-renderer.d.ts.map
|
package/dist/element-renderer.js
CHANGED
package/dist/element-view.d.ts
CHANGED
|
@@ -16,4 +16,3 @@ export declare class EdgyView extends GfxElementModelView<EdgyFacetsElementModel
|
|
|
16
16
|
* true (toggled from the toolbar). Moving/selecting stays available throughout.
|
|
17
17
|
*/
|
|
18
18
|
export declare const EdgyInteraction: import("@formicoidea/labre-core/store").ExtensionType;
|
|
19
|
-
//# sourceMappingURL=element-view.d.ts.map
|
package/dist/element-view.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/label-layout.d.ts
CHANGED
|
@@ -43,4 +43,3 @@ export interface EdgyLabelHit {
|
|
|
43
43
|
export declare function getEdgyLabelHits(model: EdgyFacetsElementModel): EdgyLabelHit[];
|
|
44
44
|
/** First label whose (padded) box contains the reference-space point, or null. */
|
|
45
45
|
export declare function hitTestEdgyLabel(hits: EdgyLabelHit[], rx: number, ry: number): EdgyLabelHit | null;
|
|
46
|
-
//# sourceMappingURL=label-layout.d.ts.map
|
package/dist/label-layout.js
CHANGED
package/dist/node/consts.d.ts
CHANGED
package/dist/node/consts.js
CHANGED
|
@@ -46,4 +46,3 @@ export const PERSON_GLYPH_PATHS = [
|
|
|
46
46
|
'm16,19c-3.308,0-6-2.692-6-6v-4c0-3.308,2.692-6,6-6s6,2.692,6,6v4c0,3.308-2.692,6-6,6Zm0-14c-2.206,0-4,1.794-4,4v4c0,2.206,1.794,4,4,4s4-1.794,4-4v-4c0-2.206-1.794-4-4-4Z',
|
|
47
47
|
'm29,30H3v-3.5c0-3.308,2.692-6,6-6h14c3.308,0,6,2.692,6,6v3.5Zm-24-2h22v-1.5c0-2.206-1.794-4-4-4h-14c-2.206,0-4,1.794-4,4v1.5Z',
|
|
48
48
|
];
|
|
49
|
-
//# sourceMappingURL=consts.js.map
|
|
@@ -9,6 +9,5 @@ import { type EdgyNodeElementModel } from '@formicoidea/labre-core/model';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const edgyNode: ElementRenderer<EdgyNodeElementModel>;
|
|
11
11
|
export declare const EdgyNodeRendererExtension: import("@formicoidea/labre-core/store").ExtensionType & {
|
|
12
|
-
identifier: import("@formicoidea/labre-core/global/di").ServiceIdentifier<ElementRenderer<EdgyNodeElementModel>>;
|
|
12
|
+
identifier: import("@formicoidea/labre-core/_pkgs/global/di").ServiceIdentifier<ElementRenderer<EdgyNodeElementModel>>;
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=node-renderer.d.ts.map
|
package/dist/node/node-view.d.ts
CHANGED
package/dist/node/node-view.js
CHANGED
package/dist/templates/index.js
CHANGED
|
@@ -207,4 +207,3 @@ export const edgyTemplateCategory = {
|
|
|
207
207
|
tpl('Activity', `<svg ${ATTRS} fill="none"><path d="M20 24 H98 L116 41 H116 L98 58 H20 Z" stroke="#262626" stroke-width="2" stroke-linejoin="round"/></svg>`, single(enode('activity', 0, 0, 140, 80, { text: 'Activity' }))),
|
|
208
208
|
],
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=index.js.map
|
package/dist/toolbar/config.d.ts
CHANGED
package/dist/toolbar/config.js
CHANGED
|
@@ -3,32 +3,32 @@ import { EdgyFacetsElementModel } from '@formicoidea/labre-core/model';
|
|
|
3
3
|
import { ToolbarModuleExtension, } from '@formicoidea/labre-core/shared/services';
|
|
4
4
|
import { BlockFlavourIdentifier } from '@formicoidea/labre-core/std';
|
|
5
5
|
import { html } from 'lit';
|
|
6
|
-
const ResizeIcon = html `<svg
|
|
7
|
-
width="24"
|
|
8
|
-
height="24"
|
|
9
|
-
viewBox="0 0 24 24"
|
|
10
|
-
fill="none"
|
|
11
|
-
stroke="currentColor"
|
|
12
|
-
stroke-width="1.6"
|
|
13
|
-
stroke-linecap="round"
|
|
14
|
-
stroke-linejoin="round"
|
|
15
|
-
>
|
|
16
|
-
<path d="M9 5H5v4M15 19h4v-4" />
|
|
17
|
-
<path d="M5 5l6 6M19 19l-6-6" />
|
|
6
|
+
const ResizeIcon = html `<svg
|
|
7
|
+
width="24"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
fill="none"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
stroke-width="1.6"
|
|
13
|
+
stroke-linecap="round"
|
|
14
|
+
stroke-linejoin="round"
|
|
15
|
+
>
|
|
16
|
+
<path d="M9 5H5v4M15 19h4v-4" />
|
|
17
|
+
<path d="M5 5l6 6M19 19l-6-6" />
|
|
18
18
|
</svg>`;
|
|
19
19
|
/** Tag — show / hide the facet name labels. */
|
|
20
|
-
const LabelsIcon = html `<svg
|
|
21
|
-
width="24"
|
|
22
|
-
height="24"
|
|
23
|
-
viewBox="0 0 24 24"
|
|
24
|
-
fill="none"
|
|
25
|
-
stroke="currentColor"
|
|
26
|
-
stroke-width="1.6"
|
|
27
|
-
stroke-linecap="round"
|
|
28
|
-
stroke-linejoin="round"
|
|
29
|
-
>
|
|
30
|
-
<path d="M3 8.5l6-4.5 12 0 0 16-12 0-6-4.5z" />
|
|
31
|
-
<circle cx="8" cy="12" r="1.4" />
|
|
20
|
+
const LabelsIcon = html `<svg
|
|
21
|
+
width="24"
|
|
22
|
+
height="24"
|
|
23
|
+
viewBox="0 0 24 24"
|
|
24
|
+
fill="none"
|
|
25
|
+
stroke="currentColor"
|
|
26
|
+
stroke-width="1.6"
|
|
27
|
+
stroke-linecap="round"
|
|
28
|
+
stroke-linejoin="round"
|
|
29
|
+
>
|
|
30
|
+
<path d="M3 8.5l6-4.5 12 0 0 16-12 0-6-4.5z" />
|
|
31
|
+
<circle cx="8" cy="12" r="1.4" />
|
|
32
32
|
</svg>`;
|
|
33
33
|
/**
|
|
34
34
|
* Build a toolbar toggle that flips a boolean flag on every selected facets
|
|
@@ -68,4 +68,3 @@ export const edgyToolbarExtension = ToolbarModuleExtension({
|
|
|
68
68
|
id: BlockFlavourIdentifier('affine:surface:edgy'),
|
|
69
69
|
config: edgyToolbarConfig,
|
|
70
70
|
});
|
|
71
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
declare const EdgelessEdgyMenu_base: typeof LitElement & import("@formicoidea/labre-core/global/utils").Constructor<import("@formicoidea/labre-core/
|
|
3
|
+
declare const EdgelessEdgyMenu_base: typeof LitElement & import("@formicoidea/labre-core/_pkgs/global/utils").Constructor<import("@formicoidea/labre-core/_pkgs/affine-widget-edgeless-toolbar").EdgelessToolbarToolClass>;
|
|
4
4
|
/**
|
|
5
5
|
* The popover above the toolbar for the EDGY toolbox. Items create the facets
|
|
6
6
|
* diagram (the on-click Venn) and the four base-element prefab shapes — all
|
|
@@ -28,4 +28,3 @@ export declare class EdgelessEdgyMenu extends EdgelessEdgyMenu_base {
|
|
|
28
28
|
render(): import("lit-html").TemplateResult<1>;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=edgy-menu.d.ts.map
|
|
@@ -23,27 +23,27 @@ export class EdgelessEdgyMenu extends EdgelessToolbarToolMixin(LitElement) {
|
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.type = EmptyTool;
|
|
25
25
|
}
|
|
26
|
-
static { this.styles = css `
|
|
27
|
-
:host {
|
|
28
|
-
position: absolute;
|
|
29
|
-
display: flex;
|
|
30
|
-
z-index: -1;
|
|
31
|
-
}
|
|
32
|
-
.menu-content {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
}
|
|
37
|
-
.button-group-container {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
gap: 14px;
|
|
41
|
-
fill: var(--affine-icon-color);
|
|
42
|
-
}
|
|
43
|
-
.button-group-container svg {
|
|
44
|
-
width: 24px;
|
|
45
|
-
height: 24px;
|
|
46
|
-
}
|
|
26
|
+
static { this.styles = css `
|
|
27
|
+
:host {
|
|
28
|
+
position: absolute;
|
|
29
|
+
display: flex;
|
|
30
|
+
z-index: -1;
|
|
31
|
+
}
|
|
32
|
+
.menu-content {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
.button-group-container {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: 14px;
|
|
41
|
+
fill: var(--affine-icon-color);
|
|
42
|
+
}
|
|
43
|
+
.button-group-container svg {
|
|
44
|
+
width: 24px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
}
|
|
47
47
|
`; }
|
|
48
48
|
/** Create the Enterprise Design Facets diagram centred on the viewport. */
|
|
49
49
|
_createFacets() {
|
|
@@ -152,44 +152,43 @@ export class EdgelessEdgyMenu extends EdgelessToolbarToolMixin(LitElement) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return html `
|
|
156
|
-
<edgeless-slide-menu>
|
|
157
|
-
<div class="menu-content">
|
|
158
|
-
<div class="button-group-container">
|
|
159
|
-
<edgeless-tool-icon-button
|
|
160
|
-
.tooltip=${'Enterprise Design facets'}
|
|
161
|
-
@click=${this._createFacets}
|
|
162
|
-
>
|
|
163
|
-
${edgyFacetsIcon}
|
|
164
|
-
</edgeless-tool-icon-button>
|
|
165
|
-
<edgeless-tool-icon-button
|
|
166
|
-
.tooltip=${'People'}
|
|
167
|
-
@click=${this._createPeople}
|
|
168
|
-
>
|
|
169
|
-
${edgyPeopleIcon}
|
|
170
|
-
</edgeless-tool-icon-button>
|
|
171
|
-
<edgeless-tool-icon-button
|
|
172
|
-
.tooltip=${'Outcome'}
|
|
173
|
-
@click=${() => this._createBox('outcome')}
|
|
174
|
-
>
|
|
175
|
-
${edgyOutcomeIcon}
|
|
176
|
-
</edgeless-tool-icon-button>
|
|
177
|
-
<edgeless-tool-icon-button
|
|
178
|
-
.tooltip=${'Object'}
|
|
179
|
-
@click=${() => this._createBox('object')}
|
|
180
|
-
>
|
|
181
|
-
${edgyObjectIcon}
|
|
182
|
-
</edgeless-tool-icon-button>
|
|
183
|
-
<edgeless-tool-icon-button
|
|
184
|
-
.tooltip=${'Activity'}
|
|
185
|
-
@click=${() => this._createBox('activity')}
|
|
186
|
-
>
|
|
187
|
-
${edgyActivityIcon}
|
|
188
|
-
</edgeless-tool-icon-button>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
</edgeless-slide-menu>
|
|
155
|
+
return html `
|
|
156
|
+
<edgeless-slide-menu>
|
|
157
|
+
<div class="menu-content">
|
|
158
|
+
<div class="button-group-container">
|
|
159
|
+
<edgeless-tool-icon-button
|
|
160
|
+
.tooltip=${'Enterprise Design facets'}
|
|
161
|
+
@click=${this._createFacets}
|
|
162
|
+
>
|
|
163
|
+
${edgyFacetsIcon}
|
|
164
|
+
</edgeless-tool-icon-button>
|
|
165
|
+
<edgeless-tool-icon-button
|
|
166
|
+
.tooltip=${'People'}
|
|
167
|
+
@click=${this._createPeople}
|
|
168
|
+
>
|
|
169
|
+
${edgyPeopleIcon}
|
|
170
|
+
</edgeless-tool-icon-button>
|
|
171
|
+
<edgeless-tool-icon-button
|
|
172
|
+
.tooltip=${'Outcome'}
|
|
173
|
+
@click=${() => this._createBox('outcome')}
|
|
174
|
+
>
|
|
175
|
+
${edgyOutcomeIcon}
|
|
176
|
+
</edgeless-tool-icon-button>
|
|
177
|
+
<edgeless-tool-icon-button
|
|
178
|
+
.tooltip=${'Object'}
|
|
179
|
+
@click=${() => this._createBox('object')}
|
|
180
|
+
>
|
|
181
|
+
${edgyObjectIcon}
|
|
182
|
+
</edgeless-tool-icon-button>
|
|
183
|
+
<edgeless-tool-icon-button
|
|
184
|
+
.tooltip=${'Activity'}
|
|
185
|
+
@click=${() => this._createBox('activity')}
|
|
186
|
+
>
|
|
187
|
+
${edgyActivityIcon}
|
|
188
|
+
</edgeless-tool-icon-button>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</edgeless-slide-menu>
|
|
192
192
|
`;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
//# sourceMappingURL=edgy-menu.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
declare const EdgelessEdgySeniorButton_base: typeof LitElement & import("@formicoidea/labre-core/global/utils").Constructor<import("@formicoidea/labre-core/
|
|
3
|
+
declare const EdgelessEdgySeniorButton_base: typeof LitElement & import("@formicoidea/labre-core/_pkgs/global/utils").Constructor<import("@formicoidea/labre-core/_pkgs/affine-widget-edgeless-toolbar").EdgelessToolbarToolClass>;
|
|
4
4
|
/**
|
|
5
5
|
* Main toolbar button (colored facets glyph) that opens the EDGY toolbox
|
|
6
6
|
* sub-menu above the toolbar. Mirrors the Wardley senior button.
|
|
@@ -13,4 +13,3 @@ export declare class EdgelessEdgySeniorButton extends EdgelessEdgySeniorButton_b
|
|
|
13
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
16
|
-
//# sourceMappingURL=edgy-senior-button.d.ts.map
|
|
@@ -14,49 +14,49 @@ export class EdgelessEdgySeniorButton extends EdgelessToolbarToolMixin(SignalWat
|
|
|
14
14
|
this.enableActiveBackground = true;
|
|
15
15
|
this.type = EmptyTool;
|
|
16
16
|
}
|
|
17
|
-
static { this.styles = css `
|
|
18
|
-
:host,
|
|
19
|
-
.edgy-button {
|
|
20
|
-
display: block;
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
}
|
|
24
|
-
:host {
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
.edgy-root {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 64px;
|
|
30
|
-
position: relative;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: flex-end;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
}
|
|
37
|
-
.edgy-card {
|
|
38
|
-
--y: -4px;
|
|
39
|
-
--s: 1;
|
|
40
|
-
position: absolute;
|
|
41
|
-
bottom: 0;
|
|
42
|
-
width: 54px;
|
|
43
|
-
height: 54px;
|
|
44
|
-
transform: translateY(var(--y)) scale(var(--s));
|
|
45
|
-
translate: var(--active-x, 0) var(--active-y, 0);
|
|
46
|
-
rotate: var(--active-r, -2deg);
|
|
47
|
-
scale: var(--active-s, 1);
|
|
48
|
-
transition: transform 0.3s ease, translate 0.3s ease, rotate 0.3s ease,
|
|
49
|
-
scale 0.3s ease;
|
|
50
|
-
}
|
|
51
|
-
.edgy-card svg {
|
|
52
|
-
display: block;
|
|
53
|
-
width: 100%;
|
|
54
|
-
height: 100%;
|
|
55
|
-
}
|
|
56
|
-
.edgy-root:hover .edgy-card {
|
|
57
|
-
--y: -10px;
|
|
58
|
-
--s: 1.07;
|
|
59
|
-
}
|
|
17
|
+
static { this.styles = css `
|
|
18
|
+
:host,
|
|
19
|
+
.edgy-button {
|
|
20
|
+
display: block;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
:host {
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
.edgy-root {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 64px;
|
|
30
|
+
position: relative;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-end;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
.edgy-card {
|
|
38
|
+
--y: -4px;
|
|
39
|
+
--s: 1;
|
|
40
|
+
position: absolute;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
width: 54px;
|
|
43
|
+
height: 54px;
|
|
44
|
+
transform: translateY(var(--y)) scale(var(--s));
|
|
45
|
+
translate: var(--active-x, 0) var(--active-y, 0);
|
|
46
|
+
rotate: var(--active-r, -2deg);
|
|
47
|
+
scale: var(--active-s, 1);
|
|
48
|
+
transition: transform 0.3s ease, translate 0.3s ease, rotate 0.3s ease,
|
|
49
|
+
scale 0.3s ease;
|
|
50
|
+
}
|
|
51
|
+
.edgy-card svg {
|
|
52
|
+
display: block;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
}
|
|
56
|
+
.edgy-root:hover .edgy-card {
|
|
57
|
+
--y: -10px;
|
|
58
|
+
--s: 1.07;
|
|
59
|
+
}
|
|
60
60
|
`; }
|
|
61
61
|
_toggleMenu() {
|
|
62
62
|
if (this.popper) {
|
|
@@ -81,17 +81,16 @@ export class EdgelessEdgySeniorButton extends EdgelessToolbarToolMixin(SignalWat
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return html `<edgeless-toolbar-button
|
|
85
|
-
class="edgy-button"
|
|
86
|
-
.tooltip=${this.popper ? '' : 'EDGY'}
|
|
87
|
-
.tooltipOffset=${4}
|
|
88
|
-
.active=${!!this.popper}
|
|
89
|
-
@click=${this._toggleMenu}
|
|
90
|
-
>
|
|
91
|
-
<div class="edgy-root">
|
|
92
|
-
<div class="edgy-card">${edgyToolbarIcon}</div>
|
|
93
|
-
</div>
|
|
84
|
+
return html `<edgeless-toolbar-button
|
|
85
|
+
class="edgy-button"
|
|
86
|
+
.tooltip=${this.popper ? '' : 'EDGY'}
|
|
87
|
+
.tooltipOffset=${4}
|
|
88
|
+
.active=${!!this.popper}
|
|
89
|
+
@click=${this._toggleMenu}
|
|
90
|
+
>
|
|
91
|
+
<div class="edgy-root">
|
|
92
|
+
<div class="edgy-card">${edgyToolbarIcon}</div>
|
|
93
|
+
</div>
|
|
94
94
|
</edgeless-toolbar-button>`;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
//# sourceMappingURL=edgy-senior-button.js.map
|
package/dist/toolbar/icons.d.ts
CHANGED
|
@@ -10,4 +10,3 @@ export declare const edgyOutcomeIcon: import("lit-html").TemplateResult<2>;
|
|
|
10
10
|
export declare const edgyObjectIcon: import("lit-html").TemplateResult<2>;
|
|
11
11
|
/** Activity — right-pointing chevron. */
|
|
12
12
|
export declare const edgyActivityIcon: import("lit-html").TemplateResult<2>;
|
|
13
|
-
//# sourceMappingURL=icons.d.ts.map
|
package/dist/toolbar/icons.js
CHANGED
|
@@ -30,4 +30,3 @@ export const edgyObjectIcon = svg `<svg width="24" height="24" viewBox="0 0 24 2
|
|
|
30
30
|
export const edgyActivityIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31
31
|
<path d="M3.5 6.5 H15 L20.5 12 L15 17.5 H3.5 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
|
|
32
32
|
</svg>`;
|
|
33
|
-
//# sourceMappingURL=icons.js.map
|
|
@@ -120,12 +120,12 @@ const edgyColorAction = {
|
|
|
120
120
|
crud.updateElement(model.id, props);
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
return html `
|
|
124
|
-
<edgeless-shape-color-picker
|
|
125
|
-
@pickFillColor=${onPickFillColor}
|
|
126
|
-
@pickStrokeColor=${onPickStrokeColor}
|
|
127
|
-
@pickStrokeStyle=${onPickStrokeStyle}
|
|
128
|
-
.palettes=${EDGY_PALETTE_LIST}
|
|
123
|
+
return html `
|
|
124
|
+
<edgeless-shape-color-picker
|
|
125
|
+
@pickFillColor=${onPickFillColor}
|
|
126
|
+
@pickStrokeColor=${onPickStrokeColor}
|
|
127
|
+
@pickStrokeStyle=${onPickStrokeStyle}
|
|
128
|
+
.palettes=${EDGY_PALETTE_LIST}
|
|
129
129
|
.payload=${{
|
|
130
130
|
fillColor,
|
|
131
131
|
strokeColor,
|
|
@@ -135,9 +135,9 @@ const edgyColorAction = {
|
|
|
135
135
|
originalStrokeColor,
|
|
136
136
|
theme,
|
|
137
137
|
enableCustomColor,
|
|
138
|
-
}}
|
|
139
|
-
>
|
|
140
|
-
</edgeless-shape-color-picker>
|
|
138
|
+
}}
|
|
139
|
+
>
|
|
140
|
+
</edgeless-shape-color-picker>
|
|
141
141
|
`;
|
|
142
142
|
},
|
|
143
143
|
};
|
|
@@ -159,4 +159,3 @@ export const edgyNodeToolbarExtension = ToolbarModuleExtension({
|
|
|
159
159
|
id: BlockFlavourIdentifier('affine:surface:edgyNode'),
|
|
160
160
|
config: edgyNodeToolbarConfig,
|
|
161
161
|
});
|
|
162
|
-
//# sourceMappingURL=node-config.js.map
|
|
@@ -3,9 +3,8 @@ import { html } from 'lit';
|
|
|
3
3
|
export const edgySeniorTool = SeniorToolExtension('edgy', ({ block }) => {
|
|
4
4
|
return {
|
|
5
5
|
name: 'EDGY',
|
|
6
|
-
content: html `<edgeless-edgy-senior-button
|
|
7
|
-
.edgeless=${block}
|
|
6
|
+
content: html `<edgeless-edgy-senior-button
|
|
7
|
+
.edgeless=${block}
|
|
8
8
|
></edgeless-edgy-senior-button>`,
|
|
9
9
|
};
|
|
10
10
|
});
|
|
11
|
-
//# sourceMappingURL=senior-tool.js.map
|
package/dist/view.d.ts
CHANGED
package/dist/view.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-edgy",
|
|
3
3
|
"description": "Labre edgy framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.3",
|
|
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.23.
|
|
30
|
+
"@formicoidea/labre-core": "0.23.3",
|
|
31
31
|
"lit": "^3.2.0"
|
|
32
32
|
}
|
|
33
33
|
}
|