@eclipse-glsp/client 0.10.0-next.e5fcffe.169 → 1.0.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/css/decoration.css +5 -1
- package/css/glsp-sprotty.css +39 -0
- package/css/tool-palette.css +2 -2
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +10 -9
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +2 -3
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +11 -12
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +14 -7
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +31 -41
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/source-uri-aware.d.ts +2 -17
- package/lib/base/source-uri-aware.d.ts.map +1 -1
- package/lib/base/source-uri-aware.js +4 -6
- package/lib/base/source-uri-aware.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +36 -6
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +54 -39
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +20 -5
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +19 -8
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts +5 -7
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +7 -14
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
- package/lib/features/hover/hover.d.ts +1 -2
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +2 -15
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +2 -2
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +6 -5
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/{layout-commands.d.ts → layout-elements-action.d.ts} +75 -57
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -0
- package/lib/features/layout/{layout-commands.js → layout-elements-action.js} +153 -197
- package/lib/features/layout/layout-elements-action.js.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
- package/lib/features/layout/{layout-commands.spec.js → layout-elements-action.spec.js} +63 -56
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
- package/lib/features/mouse-tool/mouse-tool.d.ts +0 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +9 -5
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +3 -1
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +62 -0
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts +12 -3
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +31 -45
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +1 -1
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/source-model-watcher/di.config.d.ts +4 -0
- package/lib/features/{model-source-watcher → source-model-watcher}/di.config.d.ts.map +1 -1
- package/lib/features/{model-source-watcher → source-model-watcher}/di.config.js +4 -4
- package/lib/features/{model-source-watcher → source-model-watcher}/di.config.js.map +1 -1
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.d.ts → source-model-watcher/source-model-changed-action-handler.d.ts} +9 -9
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.d.ts.map → source-model-watcher/source-model-changed-action-handler.d.ts.map} +1 -1
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.js → source-model-watcher/source-model-changed-action-handler.js} +19 -19
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.js.map → source-model-watcher/source-model-changed-action-handler.js.map} +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +3 -2
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +13 -6
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +9 -2
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +14 -3
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts +26 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +1 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js +29 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -0
- package/lib/features/validation/di.config.d.ts +0 -15
- package/lib/features/validation/di.config.d.ts.map +1 -1
- package/lib/features/validation/di.config.js +6 -4
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +11 -5
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +25 -5
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +11 -17
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +32 -61
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/validate.d.ts +8 -19
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +29 -55
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -15
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +1 -1
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +3 -3
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +1 -1
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +4 -20
- package/lib/utils/layout-utils.d.ts.map +1 -1
- package/lib/utils/layout-utils.js +1 -1
- package/lib/utils/layout-utils.js.map +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +3 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +30 -0
- package/lib/views/glsp-projection-view.d.ts.map +1 -0
- package/lib/views/glsp-projection-view.js +142 -0
- package/lib/views/glsp-projection-view.js.map +1 -0
- package/lib/views/index.d.ts +1 -0
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +1 -0
- package/lib/views/index.js.map +1 -1
- package/package.json +4 -4
- package/src/base/container-modules.ts +6 -5
- package/src/base/editor-context-service.ts +15 -7
- package/src/base/model/update-model-command.ts +48 -34
- package/src/base/source-uri-aware.ts +5 -4
- package/src/features/change-bounds/movement-restrictor.ts +73 -43
- package/src/features/change-bounds/snap.ts +15 -12
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +19 -25
- package/src/features/hover/hover.ts +2 -24
- package/src/features/layout/di.config.ts +12 -6
- package/src/features/layout/{layout-commands.spec.ts → layout-elements-action.spec.ts} +56 -48
- package/src/features/layout/{layout-commands.ts → layout-elements-action.ts} +195 -207
- package/src/features/mouse-tool/mouse-tool.ts +8 -6
- package/src/features/select/select-mouse-listener.ts +81 -1
- package/src/features/select/selection-service.spec.ts +1 -1
- package/src/features/select/selection-service.ts +37 -50
- package/src/features/{model-source-watcher → source-model-watcher}/di.config.ts +5 -5
- package/src/features/{model-source-watcher/model-source-changed-action-handler.ts → source-model-watcher/source-model-changed-action-handler.ts} +12 -12
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +1 -1
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +14 -6
- package/src/features/tools/di.config.ts +13 -2
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +33 -0
- package/src/features/validation/di.config.ts +10 -7
- package/src/features/validation/issue-marker.ts +34 -12
- package/src/features/validation/marker-navigator.ts +29 -66
- package/src/features/validation/validate.ts +36 -71
- package/src/index.ts +8 -7
- package/src/lib/model.ts +1 -1
- package/src/model-source/glsp-diagram-server.ts +1 -1
- package/src/utils/layout-utils.ts +7 -27
- package/src/views/base-view-module.ts +5 -1
- package/src/views/glsp-projection-view.tsx +166 -0
- package/src/views/index.ts +2 -0
- package/lib/features/layout/layout-commands.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.js.map +0 -1
- package/lib/features/layout/layout-commands.spec.d.ts +0 -3
- package/lib/features/layout/layout-commands.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.spec.js.map +0 -1
- package/lib/features/model-source-watcher/di.config.d.ts +0 -4
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, ElementAndBounds } from '@eclipse-glsp/protocol';
|
|
17
|
-
import {
|
|
18
|
-
import { WriteableElementAndBounds, WriteableElementMove } from '../../utils/layout-utils';
|
|
16
|
+
import { Action, ElementAndBounds, Writable } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { ElementMove, IActionDispatcher, IActionHandler, ICommand, SModelElement } from 'sprotty';
|
|
19
18
|
import { BoundsAwareModelElement } from '../../utils/smodel-util';
|
|
20
19
|
import { IMovementRestrictor } from '../change-bounds/movement-restrictor';
|
|
21
20
|
import { SelectionService } from '../select/selection-service';
|
|
@@ -27,7 +26,13 @@ export declare enum ResizeDimension {
|
|
|
27
26
|
Height = 1,
|
|
28
27
|
Width_And_Height = 2
|
|
29
28
|
}
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* A function that computes a single number from a set of given numbers
|
|
31
|
+
* i.e. it reduces the given numbers to one single number.
|
|
32
|
+
* Mainly used by the {@link ResizeElementsCommand} to reduce the given dimensions to a target dimension value.
|
|
33
|
+
*/
|
|
34
|
+
export declare type ReduceFunction = (...values: number[]) => number;
|
|
35
|
+
export declare namespace ReduceFunction {
|
|
31
36
|
/**
|
|
32
37
|
* Returns the minimal value of the given numbers.
|
|
33
38
|
* @param values Numbers to be evaluated.
|
|
@@ -58,12 +63,14 @@ export declare namespace Reduce {
|
|
|
58
63
|
*/
|
|
59
64
|
function last(...values: number[]): number;
|
|
60
65
|
/**
|
|
61
|
-
* Returns the reduce function that corresponds to the given {@link
|
|
66
|
+
* Returns the reduce function that corresponds to the given {@link ReduceFunctionType}.
|
|
62
67
|
* @param type The reduce function kind.
|
|
63
68
|
* @returns The corresponding reduce function.
|
|
64
69
|
*/
|
|
70
|
+
function get(type: ReduceFunctionType): ReduceFunction;
|
|
65
71
|
}
|
|
66
|
-
|
|
72
|
+
/** Union type of all {@link ReduceFunction} keys. */
|
|
73
|
+
export declare type ReduceFunctionType = Exclude<keyof typeof ReduceFunction, 'get'>;
|
|
67
74
|
export interface ResizeElementsAction extends Action {
|
|
68
75
|
kind: typeof ResizeElementsAction.KIND;
|
|
69
76
|
/**
|
|
@@ -75,9 +82,9 @@ export interface ResizeElementsAction extends Action {
|
|
|
75
82
|
*/
|
|
76
83
|
dimension: ResizeDimension;
|
|
77
84
|
/**
|
|
78
|
-
*
|
|
85
|
+
* Type of the {@link ReduceFunction} that should be used to reduce the dimension to a target dimension value
|
|
79
86
|
*/
|
|
80
|
-
|
|
87
|
+
reduceFunction: ReduceFunctionType;
|
|
81
88
|
}
|
|
82
89
|
export declare namespace ResizeElementsAction {
|
|
83
90
|
const KIND = "resizeElementAction";
|
|
@@ -85,9 +92,30 @@ export declare namespace ResizeElementsAction {
|
|
|
85
92
|
function create(options: {
|
|
86
93
|
elementIds?: string[];
|
|
87
94
|
dimension?: ResizeDimension;
|
|
88
|
-
|
|
95
|
+
reduceFunction: ReduceFunctionType;
|
|
89
96
|
}): ResizeElementsAction;
|
|
90
97
|
}
|
|
98
|
+
export declare abstract class LayoutElementsActionHandler implements IActionHandler {
|
|
99
|
+
protected actionDispatcher: IActionDispatcher;
|
|
100
|
+
protected selectionService: SelectionService;
|
|
101
|
+
protected movementRestrictor?: IMovementRestrictor;
|
|
102
|
+
abstract handle(action: Action): void | Action | ICommand;
|
|
103
|
+
getSelectedElements(selection: {
|
|
104
|
+
elementIds: string[];
|
|
105
|
+
}): BoundsAwareModelElement[];
|
|
106
|
+
protected abstract isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
107
|
+
dispatchAction(action: Action): void;
|
|
108
|
+
dispatchActions(actions: Action[]): void;
|
|
109
|
+
}
|
|
110
|
+
export declare class ResizeElementsActionHandler extends LayoutElementsActionHandler {
|
|
111
|
+
handle(action: ResizeElementsAction): void;
|
|
112
|
+
resizeWidth(elements: BoundsAwareModelElement[], reduceFn: ReduceFunction): void;
|
|
113
|
+
resizeHeight(elements: BoundsAwareModelElement[], reduceFn: ReduceFunction): void;
|
|
114
|
+
resizeWidthAndHeight(elements: BoundsAwareModelElement[], reduceFn: ReduceFunction): void;
|
|
115
|
+
dispatchResizeActions(elements: BoundsAwareModelElement[], change: (element: BoundsAwareModelElement, bounds: Writable<ElementAndBounds>) => void): void;
|
|
116
|
+
createElementAndBounds(element: BoundsAwareModelElement, change: (_element: BoundsAwareModelElement, _bounds: Writable<ElementAndBounds>) => void): Writable<ElementAndBounds> | undefined;
|
|
117
|
+
protected isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
118
|
+
}
|
|
91
119
|
export declare enum Alignment {
|
|
92
120
|
Left = 0,
|
|
93
121
|
Center = 1,
|
|
@@ -96,12 +124,39 @@ export declare enum Alignment {
|
|
|
96
124
|
Middle = 4,
|
|
97
125
|
Bottom = 5
|
|
98
126
|
}
|
|
99
|
-
|
|
127
|
+
/**
|
|
128
|
+
* A function that retrieves a specific (sub)-selection of elements from a given set of elements.
|
|
129
|
+
* Mainly used by the {@link AlignElementsActionHandler}.
|
|
130
|
+
*/
|
|
131
|
+
export declare type SelectFunction = (elements: BoundsAwareModelElement[]) => BoundsAwareModelElement[];
|
|
132
|
+
export declare namespace SelectFunction {
|
|
133
|
+
/**
|
|
134
|
+
* Select all elements from the given set of elements.
|
|
135
|
+
* @param elements The set of elements.
|
|
136
|
+
* @returns All elements.
|
|
137
|
+
*/
|
|
100
138
|
function all(elements: BoundsAwareModelElement[]): BoundsAwareModelElement[];
|
|
139
|
+
/**
|
|
140
|
+
* Select the first element from a given set of elements.
|
|
141
|
+
* @param elements The elements.
|
|
142
|
+
* @returns An array containing the first element of the given elements.
|
|
143
|
+
*/
|
|
101
144
|
function first(elements: BoundsAwareModelElement[]): BoundsAwareModelElement[];
|
|
145
|
+
/**
|
|
146
|
+
* Select the last element from a given set of elements.
|
|
147
|
+
* @param elements The elements.
|
|
148
|
+
* @returns An array containing the last element of the given elements.
|
|
149
|
+
*/
|
|
102
150
|
function last(elements: BoundsAwareModelElement[]): BoundsAwareModelElement[];
|
|
151
|
+
/**
|
|
152
|
+
* Returns the select function that corresponds to the given {@link SelectFunctionType}.
|
|
153
|
+
* @param type The select function type.
|
|
154
|
+
* @returns The corresponding select function.
|
|
155
|
+
*/
|
|
156
|
+
function get(kind: SelectFunctionType): SelectFunction;
|
|
103
157
|
}
|
|
104
|
-
|
|
158
|
+
/** Union type of all {@link SelectFunction} keys. */
|
|
159
|
+
export declare type SelectFunctionType = Exclude<keyof typeof SelectFunction, 'get'>;
|
|
105
160
|
export interface AlignElementsAction extends Action {
|
|
106
161
|
kind: typeof AlignElementsAction.KIND;
|
|
107
162
|
/**
|
|
@@ -113,10 +168,10 @@ export interface AlignElementsAction extends Action {
|
|
|
113
168
|
*/
|
|
114
169
|
alignment: Alignment;
|
|
115
170
|
/**
|
|
116
|
-
* Function to selected elements that are considered during alignment calculation
|
|
171
|
+
* Function to selected elements that are considered during alignment calculation.
|
|
117
172
|
* The default value is {@link Select.all}.
|
|
118
173
|
*/
|
|
119
|
-
|
|
174
|
+
selectFunction: SelectFunctionType;
|
|
120
175
|
}
|
|
121
176
|
export declare namespace AlignElementsAction {
|
|
122
177
|
const KIND = "alignElements";
|
|
@@ -124,57 +179,20 @@ export declare namespace AlignElementsAction {
|
|
|
124
179
|
function create(options?: {
|
|
125
180
|
elementIds?: string[];
|
|
126
181
|
alignment?: Alignment;
|
|
127
|
-
selectionFunction?:
|
|
182
|
+
selectionFunction?: SelectFunctionType;
|
|
128
183
|
}): AlignElementsAction;
|
|
129
184
|
}
|
|
130
|
-
declare
|
|
131
|
-
|
|
132
|
-
protected actionDispatcher: IActionDispatcher;
|
|
133
|
-
protected selectionService: SelectionService;
|
|
134
|
-
readonly movementRestrictor?: IMovementRestrictor | undefined;
|
|
135
|
-
constructor(action: ResizeElementsAction | AlignElementsAction, actionDispatcher: IActionDispatcher, selectionService: SelectionService, movementRestrictor?: IMovementRestrictor | undefined);
|
|
136
|
-
getActionElements(context: CommandExecutionContext): BoundsAwareModelElement[];
|
|
137
|
-
protected abstract isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
138
|
-
dispatchAction(action: Action): void;
|
|
139
|
-
dispatchActions(actions: Action[]): void;
|
|
140
|
-
}
|
|
141
|
-
export declare class ResizeElementsCommand extends LayoutElementsCommand {
|
|
142
|
-
protected action: ResizeElementsAction;
|
|
143
|
-
protected actionDispatcher: IActionDispatcher;
|
|
144
|
-
protected selectionService: SelectionService;
|
|
145
|
-
readonly movementRestrictor?: IMovementRestrictor | undefined;
|
|
146
|
-
static readonly KIND = "resizeElementAction";
|
|
147
|
-
constructor(action: ResizeElementsAction, actionDispatcher: IActionDispatcher, selectionService: SelectionService, movementRestrictor?: IMovementRestrictor | undefined);
|
|
148
|
-
protected isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
149
|
-
execute(context: CommandExecutionContext): CommandReturn;
|
|
150
|
-
resizeWidth(elements: BoundsAwareModelElement[]): void;
|
|
151
|
-
resizeHeight(elements: BoundsAwareModelElement[]): void;
|
|
152
|
-
resizeWidthAndHeight(elements: BoundsAwareModelElement[]): void;
|
|
153
|
-
dispatchResizeActions(elements: BoundsAwareModelElement[], change: (element: BoundsAwareModelElement, bounds: WriteableElementAndBounds) => void): void;
|
|
154
|
-
createElementAndBounds(element: BoundsAwareModelElement, change: (_element: BoundsAwareModelElement, _bounds: WriteableElementAndBounds) => void): WriteableElementAndBounds | undefined;
|
|
155
|
-
undo(context: CommandExecutionContext): CommandReturn;
|
|
156
|
-
redo(context: CommandExecutionContext): CommandReturn;
|
|
157
|
-
}
|
|
158
|
-
export declare class AlignElementsCommand extends LayoutElementsCommand {
|
|
159
|
-
protected action: AlignElementsAction;
|
|
160
|
-
protected actionDispatcher: IActionDispatcher;
|
|
161
|
-
protected selectionService: SelectionService;
|
|
162
|
-
readonly movementRestrictor?: IMovementRestrictor | undefined;
|
|
163
|
-
static readonly KIND = "alignElements";
|
|
164
|
-
constructor(action: AlignElementsAction, actionDispatcher: IActionDispatcher, selectionService: SelectionService, movementRestrictor?: IMovementRestrictor | undefined);
|
|
165
|
-
protected isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
166
|
-
execute(context: CommandExecutionContext): CommandReturn;
|
|
185
|
+
export declare class AlignElementsActionHandler extends LayoutElementsActionHandler {
|
|
186
|
+
handle(action: AlignElementsAction): void;
|
|
167
187
|
alignLeft(elements: BoundsAwareModelElement[]): void;
|
|
168
188
|
alignCenter(elements: BoundsAwareModelElement[]): void;
|
|
169
189
|
alignRight(elements: BoundsAwareModelElement[]): void;
|
|
170
190
|
alignTop(elements: BoundsAwareModelElement[]): void;
|
|
171
191
|
alignMiddle(elements: BoundsAwareModelElement[]): void;
|
|
172
192
|
alignBottom(elements: BoundsAwareModelElement[]): void;
|
|
173
|
-
dispatchAlignActions(elements: BoundsAwareModelElement[], change: (element: BoundsAwareModelElement, move:
|
|
174
|
-
createElementMove(element: BoundsAwareModelElement, change: (_element: BoundsAwareModelElement, _move:
|
|
193
|
+
dispatchAlignActions(elements: BoundsAwareModelElement[], change: (element: BoundsAwareModelElement, move: Writable<ElementMove>) => void): void;
|
|
194
|
+
createElementMove(element: BoundsAwareModelElement, change: (_element: BoundsAwareModelElement, _move: Writable<ElementMove>) => void): Writable<ElementMove> | undefined;
|
|
175
195
|
createElementAndBounds(element: BoundsAwareModelElement, move: ElementMove): ElementAndBounds;
|
|
176
|
-
|
|
177
|
-
redo(context: CommandExecutionContext): CommandReturn;
|
|
196
|
+
protected isActionElement(element: SModelElement): element is BoundsAwareModelElement;
|
|
178
197
|
}
|
|
179
|
-
|
|
180
|
-
//# sourceMappingURL=layout-commands.d.ts.map
|
|
198
|
+
//# sourceMappingURL=layout-elements-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-elements-action.d.ts","sourceRoot":"","sources":["../../../src/features/layout/layout-elements-action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,EAEN,gBAAgB,EAKhB,QAAQ,EACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAc,aAAa,EAAE,MAAM,SAAS,CAAC;AAG9G,OAAO,EAAE,uBAAuB,EAAe,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D;;GAEG;AAEH,oBAAY,eAAe;IACvB,KAAK,IA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