@khanacademy/perseus-core 0.0.0-PR3132-20251215185407 → 0.0.0-PR3136-20251216002534
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.
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PerseusLabelImageWidgetOptions, LabelImageWidget } from "../../data-schema";
|
|
2
|
+
export declare function generateLabelImageOptions(options?: Partial<PerseusLabelImageWidgetOptions>): PerseusLabelImageWidgetOptions;
|
|
3
|
+
export declare function generateLabelImageWidget(labelImageWidgetProperties?: Partial<Omit<LabelImageWidget, "type">>): LabelImageWidget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PerseusLabelImageMarker, PerseusLabelImageWidgetOptions } from "../../data-schema";
|
|
1
|
+
import type { PerseusLabelImageMarker, PerseusLabelImageWidgetOptions, PerseusWidgetOptions } from "../../data-schema";
|
|
2
2
|
/**
|
|
3
3
|
* For details on the individual options, see the
|
|
4
4
|
* PerseusLabelImageWidgetOptions type
|
|
@@ -16,3 +16,4 @@ export type LabelImagePublicWidgetOptions = {
|
|
|
16
16
|
};
|
|
17
17
|
export type LabelImageMarkerPublicData = Pick<PerseusLabelImageMarker, "x" | "y" | "label">;
|
|
18
18
|
export default function getLabelImagePublicWidgetOptions(options: PerseusLabelImageWidgetOptions): LabelImagePublicWidgetOptions;
|
|
19
|
+
export declare function isLabelImageAccessible(options: PerseusWidgetOptions): boolean;
|