@floless/app 0.134.0 → 0.134.2

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.
@@ -9,7 +9,8 @@ export function canvasToolGuidanceState(state = {}) {
9
9
  const forceOpen = !!(
10
10
  state.teklaDragActive || state.workPlaneMode || state.addActive || state.transformActive ||
11
11
  state.referenceMeasureActive || state.gridLinePickActive || state.clipMode || state.dimensionMode ||
12
- state.insertMode || state.basePickColumn || state.frameMode || state.framePickStep != null || state.geometryMode
12
+ state.insertMode || state.basePickColumn || state.frameMode || state.framePickStep != null || state.geometryMode ||
13
+ state.connectionMemberPick
13
14
  );
14
15
 
15
16
  let text = null;
@@ -17,6 +18,13 @@ export function canvasToolGuidanceState(state = {}) {
17
18
  text = state.dimensionHasStart
18
19
  ? 'Click the second dimension point · Esc to step back'
19
20
  : 'Click the first dimension point · Esc to cancel';
21
+ } else if (state.connectionMemberPick) {
22
+ const n = state.connectionMemberPickCount || 0;
23
+ // Esc SKIPS rather than cancels: the geometry is already placed by the time this pick is armed, so
24
+ // saying "cancel" would promise an undo this step cannot deliver.
25
+ text = n
26
+ ? `${n} member${n === 1 ? '' : 's'} picked · Enter to confirm · Esc to skip`
27
+ : 'Click each member this connection joins · Enter to confirm · Esc to skip';
20
28
  } else if (state.insertMode) {
21
29
  text = `Click to place ${state.insertName || 'the detail'} on a member face or the working plane · Esc to cancel`;
22
30
  } else if (state.basePickColumn) {