@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2096-20250113182637 to 0.0.0-PR2101-20250114162957
@@ -261,2 +261,10 @@ /** | ||
}; | ||
/** | ||
* The type of markings to display on the graph. | ||
* - axes: shows the axes without the gride lines | ||
* - graph: shows the axes and the grid lines | ||
* - grid: shows only the grid lines | ||
* - none: shows no markings | ||
*/ | ||
export type MarkingsType = "axes" | "graph" | "grid" | "none"; | ||
export type PerseusCategorizerWidgetOptions = { | ||
@@ -376,3 +384,3 @@ items: ReadonlyArray<string>; | ||
labels: [string, string]; | ||
markings: "graph" | "none" | "grid"; | ||
markings: MarkingsType; | ||
range: GraphRange; | ||
@@ -412,7 +420,4 @@ rulerLabel: ""; | ||
* The type of markings to display on the graph. | ||
* - graph: shows the axes and the grid lines | ||
* - grid: shows only the grid lines | ||
* - none: shows no markings | ||
*/ | ||
markings: "graph" | "grid" | "none"; | ||
markings: MarkingsType; | ||
labels?: ReadonlyArray<string>; | ||
@@ -805,7 +810,4 @@ showProtractor: boolean; | ||
* The type of markings to display on the graph. | ||
* - graph: shows the axes and the grid lines | ||
* - grid: shows only the grid lines | ||
* - none: shows no markings | ||
*/ | ||
markings: "graph" | "grid" | "none"; | ||
markings: MarkingsType; | ||
snapStep?: [number, number]; | ||
@@ -812,0 +814,0 @@ valid?: boolean | string; |
export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { KEScore, KeypadContextRendererInterface, RendererInterface, } from "./types"; | ||
export type { KEScore, KeypadContextRendererInterface, RendererInterface, MarkerType, InteractiveMarkerType, Relationship, } from "./types"; | ||
export type { ErrorKind } from "./error/errors"; | ||
@@ -4,0 +4,0 @@ export { addLibraryVersionToPerseusDebug } from "./utils/add-library-version-to-perseus-debug"; |
@@ -20,2 +20,14 @@ export interface KeypadContextRendererInterface { | ||
}; | ||
export type MarkerType = { | ||
answers: ReadonlyArray<string>; | ||
label: string; | ||
x: number; | ||
y: number; | ||
}; | ||
export type InteractiveMarkerType = MarkerType & { | ||
selected?: ReadonlyArray<string>; | ||
showCorrectness?: "correct" | "incorrect"; | ||
focused?: boolean; | ||
}; | ||
export type Relationship = "lt" | "gt" | "le" | "ge"; | ||
export {}; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2096-20250113182637", | ||
"version": "0.0.0-PR2101-20250114162957", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
663830
5419