@selimssevgi/cube-design-angular 0.7.0 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selimssevgi/cube-design-angular",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "cube design in angular: the pieces anlat, mosaic and cubes share, starting with the isometric cube picture.",
5
5
  "keywords": [
6
6
  "angular",
@@ -268,7 +268,7 @@ export interface CubePinched {
268
268
  * firefox send a trackpad's pinch; `gesture`: safari's own gesture events for a trackpad's pinch.
269
269
  */
270
270
  via: 'touch' | 'wheel' | 'gesture';
271
- /** the event that decided it: the `pointerup`, the first `wheel` of the stream, the `gestureend`. */
271
+ /** the event that decided it: the `pointerup`, the stream's first real `wheel` step, the `gestureend`. */
272
272
  event: Event;
273
273
  }
274
274
  /** two fingers this much further apart than they started is a pinch in (cubes', mosaic's, anlat's). */
@@ -286,6 +286,19 @@ export declare const CUBE_WHEEL_QUIET_MS = 250;
286
286
  * the same rule.
287
287
  */
288
288
  export declare function startsWheelGesture(lastAt: number, now: number, quietMs?: number): boolean;
289
+ /**
290
+ * the least `deltaY` of one ctrl + wheel event that decides a pinch's way. a trackpad begins a pinch
291
+ * with a still event (0) or the fingers settling the other way (-1) before the real steps come, so a
292
+ * smaller step only moves the stream's end (the every-level prototype's rule, 6 nov 2026).
293
+ */
294
+ export declare const CUBE_WHEEL_STEP = 2;
295
+ /**
296
+ * which way a ctrl + wheel stream that has not decided yet goes, given its event's `deltaY` and the
297
+ * sum of the stream's deltas so far, this one counted: the first step of at least `least` decides
298
+ * by its own sign; a slow pinch of small steps decides once they add up to three times `least`;
299
+ * else not yet (null). pure, so an app with a wheel of its own reads a stream the same way.
300
+ */
301
+ export declare function wheelWay(deltaY: number, sum: number, least?: number): 'in' | 'out' | null;
289
302
  /**
290
303
  * the pinch (principle 25, two fingers together is one level out): fingers apart on a piece raise
291
304
  * one `cubePinched` with `way: 'in'`, fingers together one with `way: 'out'`. on a computer a