@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2089-20250109204545 to 0.0.0-PR2089-20250114154030
@@ -99,2 +99,3 @@ /** | ||
measurer: MeasurerWidget; | ||
"mock-widget": MockWidget; | ||
"molecule-renderer": MoleculeRendererWidget; | ||
@@ -231,2 +232,3 @@ "number-line": NumberLineWidget; | ||
export type MeasurerWidget = WidgetOptions<'measurer', PerseusMeasurerWidgetOptions>; | ||
export type MockWidget = WidgetOptions<'mock-widget', MockWidgetOptions>; | ||
export type NumberLineWidget = WidgetOptions<'number-line', PerseusNumberLineWidgetOptions>; | ||
@@ -248,3 +250,3 @@ export type NumericInputWidget = WidgetOptions<'numeric-input', PerseusNumericInputWidgetOptions>; | ||
export type DeprecatedStandinWidget = WidgetOptions<'deprecated-standin', object>; | ||
export type PerseusWidget = CategorizerWidget | CSProgramWidget | DefinitionWidget | DropdownWidget | ExplanationWidget | ExpressionWidget | GradedGroupSetWidget | GradedGroupWidget | GrapherWidget | GroupWidget | IFrameWidget | ImageWidget | InputNumberWidget | InteractionWidget | InteractiveGraphWidget | LabelImageWidget | MatcherWidget | MatrixWidget | MeasurerWidget | MoleculeRendererWidget | NumberLineWidget | NumericInputWidget | OrdererWidget | PassageRefWidget | PassageWidget | PhetSimulationWidget | PlotterWidget | PythonProgramWidget | RadioWidget | RefTargetWidget | SorterWidget | TableWidget | VideoWidget | DeprecatedStandinWidget; | ||
export type PerseusWidget = CategorizerWidget | CSProgramWidget | DefinitionWidget | DropdownWidget | ExplanationWidget | ExpressionWidget | GradedGroupSetWidget | GradedGroupWidget | GrapherWidget | GroupWidget | IFrameWidget | ImageWidget | InputNumberWidget | InteractionWidget | InteractiveGraphWidget | LabelImageWidget | MatcherWidget | MatrixWidget | MeasurerWidget | MockWidget | MoleculeRendererWidget | NumberLineWidget | NumericInputWidget | OrdererWidget | PassageRefWidget | PassageWidget | PhetSimulationWidget | PlotterWidget | PythonProgramWidget | RadioWidget | RefTargetWidget | SorterWidget | TableWidget | VideoWidget | DeprecatedStandinWidget; | ||
/** | ||
@@ -262,2 +264,10 @@ * A background image applied to various widgets. | ||
}; | ||
/** | ||
* 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 = { | ||
@@ -339,29 +349,23 @@ items: ReadonlyArray<string>; | ||
type: "absolute_value"; | ||
coords: [ | ||
Coord, | ||
Coord | ||
]; | ||
coords: null | [vertex: Coord, secondPoint: Coord]; | ||
} | { | ||
type: "exponential"; | ||
asymptote: [Coord, Coord]; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "linear"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "logarithm"; | ||
asymptote: [Coord, Coord]; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "quadratic"; | ||
coords: [ | ||
Coord, | ||
Coord | ||
]; | ||
coords: null | [vertex: Coord, secondPoint: Coord]; | ||
} | { | ||
type: "sinusoid"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "tangent"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
}; | ||
@@ -384,3 +388,3 @@ export type PerseusGrapherWidgetOptions = { | ||
labels: [string, string]; | ||
markings: "graph" | "none" | "grid"; | ||
markings: MarkingsType; | ||
range: GraphRange; | ||
@@ -420,7 +424,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>; | ||
@@ -813,7 +814,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]; | ||
@@ -940,3 +938,2 @@ valid?: boolean | string; | ||
showButtons: boolean; | ||
width: number; | ||
height: number; | ||
@@ -955,3 +952,3 @@ static: boolean; | ||
url: string; | ||
settings: ReadonlyArray<PerseusCSProgramSetting>; | ||
settings?: ReadonlyArray<PerseusCSProgramSetting>; | ||
width: number | string; | ||
@@ -971,2 +968,6 @@ height: number | string; | ||
}; | ||
export type MockWidgetOptions = { | ||
static?: boolean; | ||
value: string; | ||
}; | ||
export type PerseusInputNumberWidgetOptions = { | ||
@@ -973,0 +974,0 @@ answerType?: "number" | "decimal" | "integer" | "rational" | "improper" | "mixed" | "percent" | "pi"; |
/** | ||
<<<<<<<< HEAD:packages/perseus-core/src/utils/object-utils.ts | ||
* Utilities for objects | ||
======== | ||
* _ utilities for objects | ||
>>>>>>>> main:packages/perseus-core/src/utils/objective_.ts | ||
*/ | ||
@@ -4,0 +8,0 @@ /** |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2089-20250109204545", | ||
"version": "0.0.0-PR2089-20250114154030", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
781731
17
6715