@m3ui-vue/m3ui-vue 1.3.4 → 1.3.5

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.
@@ -93,6 +93,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
93
93
  grid?: number;
94
94
  /** Draw the grid while editing */
95
95
  showGrid?: boolean;
96
+ /**
97
+ * Where a table's middle snaps: `point` a grid point (default), `cell` the middle of a grid square, so tables sit in
98
+ * the squares between the points while walls, zones and decor snap to the points (a plan of cells)
99
+ */
100
+ tableSnap?: "point" | "cell";
96
101
  /** Draw chairs from `seats` */
97
102
  chairs?: boolean;
98
103
  /** Decor kinds of yours, or the built-in ones restyled (merged over them by name) */
@@ -101,7 +106,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
101
106
  rotatable?: boolean;
102
107
  /** Dragging (or nudging) a merged table moves its whole merge with it */
103
108
  dragMerged?: boolean;
104
- /** Outside editing, what a click on a table selects: nothing, one, or several (toggling; to merge them) */
109
+ /**
110
+ * What a click on a table selects outside editing: nothing, one, or several (toggling; to merge them). While
111
+ * editing, `multiple` keeps clicks toggling tables in and out of the selection, and a drag moves the table pressed
112
+ * on its own (to bring the ones being merged together)
113
+ */
105
114
  selectable?: "none" | "single" | "multiple";
106
115
  /** Whether these tables may be merged: `true`, or `false` / a reason to refuse (shown by `merge-refused`) */
107
116
  canMerge?: (ids: (string | number)[]) => boolean | string;
@@ -167,6 +176,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
167
176
  grid?: number;
168
177
  /** Draw the grid while editing */
169
178
  showGrid?: boolean;
179
+ /**
180
+ * Where a table's middle snaps: `point` a grid point (default), `cell` the middle of a grid square, so tables sit in
181
+ * the squares between the points while walls, zones and decor snap to the points (a plan of cells)
182
+ */
183
+ tableSnap?: "point" | "cell";
170
184
  /** Draw chairs from `seats` */
171
185
  chairs?: boolean;
172
186
  /** Decor kinds of yours, or the built-in ones restyled (merged over them by name) */
@@ -175,7 +189,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
175
189
  rotatable?: boolean;
176
190
  /** Dragging (or nudging) a merged table moves its whole merge with it */
177
191
  dragMerged?: boolean;
178
- /** Outside editing, what a click on a table selects: nothing, one, or several (toggling; to merge them) */
192
+ /**
193
+ * What a click on a table selects outside editing: nothing, one, or several (toggling; to merge them). While
194
+ * editing, `multiple` keeps clicks toggling tables in and out of the selection, and a drag moves the table pressed
195
+ * on its own (to bring the ones being merged together)
196
+ */
179
197
  selectable?: "none" | "single" | "multiple";
180
198
  /** Whether these tables may be merged: `true`, or `false` / a reason to refuse (shown by `merge-refused`) */
181
199
  canMerge?: (ids: (string | number)[]) => boolean | string;
@@ -218,6 +236,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
218
236
  showGrid: boolean;
219
237
  statuses: Record<string, FloorStatus>;
220
238
  editable: boolean;
239
+ tableSnap: "point" | "cell";
221
240
  chairs: boolean;
222
241
  rotatable: boolean;
223
242
  dragMerged: boolean;