@zinejs/core 0.7.1 → 0.7.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/{controls-BrPo8pKL.js → controls-Bj72hxVJ.js} +11 -7
- package/dist/{controls-BrPo8pKL.js.map → controls-Bj72hxVJ.js.map} +1 -1
- package/dist/index.js +289 -266
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/geometry/hitTest.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PageRect, Vec2 } from './foldFromPointer';
|
|
2
|
-
export type HitRegion = 'corner' | 'page' | 'outside';
|
|
3
|
-
/**
|
|
4
|
-
* Classify a page-local point into a hit region.
|
|
5
|
-
*
|
|
6
|
-
* Coordinates are page-local (see `foldFromPointer`): (0,0) top-left,
|
|
7
|
-
* page spanning (0,0)..(width,height). `cornerSize` is the width/height of each
|
|
8
|
-
* grabbable corner box. All four corners report `corner`; the engine decides
|
|
9
|
-
* which are actually grabbable for the current spread layout (LTR/RTL, cover).
|
|
10
|
-
*/
|
|
11
|
-
export declare function hitTest(point: Vec2, pageRect: PageRect, cornerSize: number): HitRegion;
|