fika-editor 3.2.3 → 3.2.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.
|
@@ -182,7 +182,10 @@ export declare function visualHitAabb(rect: VisualHitRect): {
|
|
|
182
182
|
export declare function hitRectClipPath(rect: VisualHitRect, occluders: VisualHitRect[]): string | undefined;
|
|
183
183
|
/** True when the wrapper-local point sits on a resize handle square. */
|
|
184
184
|
export declare function isPointOnResizeHandle(x: number, y: number, rect: VisualHitRect, directions?: readonly ResizeHandleDirection[]): boolean;
|
|
185
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* True when the wrapper-local point sits on the move ring (inner + outer grab).
|
|
187
|
+
* Same geometry as {@link hitRingLayout} / `.operate-drag-border` / `.hit-border`.
|
|
188
|
+
*/
|
|
186
189
|
export declare function isPointOnVisualBorder(x: number, y: number, rect: VisualHitRect, options?: {
|
|
187
190
|
clearResizeHandles?: readonly ResizeHandleDirection[];
|
|
188
191
|
}): boolean;
|
|
@@ -8,3 +8,14 @@ export declare function estimateInlineMathBox(latex: string, fontSize: number, d
|
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Unstyled MathLive HTML collapses to a sliver (a few px wide, many em tall).
|
|
13
|
+
* Stretching that box onto the canvas is what turns table snapshots into bars.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isPlausibleInlineMathBox(box: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}, fontSize: number, estimate: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
}): boolean;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* `fonts.css`) is lazy-loaded the first time math actually appears or an editor
|
|
13
13
|
* opens, so decks without math never pull it into the bundle.
|
|
14
14
|
*/
|
|
15
|
-
export { MATH_CLASS, estimateInlineMathBox, htmlHasFikaMath } from './inlineMathBox';
|
|
15
|
+
export { MATH_CLASS, estimateInlineMathBox, htmlHasFikaMath, isPlausibleInlineMathBox } from './inlineMathBox';
|
|
16
16
|
type ConvertLatexToMarkup = (latex: string, options?: {
|
|
17
17
|
defaultMode?: 'inline-math' | 'math' | 'text';
|
|
18
18
|
}) => string;
|