MCPcopy Create free account

hub / github.com/Khan/perseus / functions

Functions3,411 in github.com/Khan/perseus

↓ 1 callersFunctionmediaQueryIsMatched
(mediaQuery: string)
packages/perseus/src/widgets/explanation/explanation.tsx:42
↓ 1 callersFunctionmergeGraphs
( a: PerseusGraphType, b: PerseusGraphType, )
packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx:631
↓ 1 callersFunctionmigrateV0ToV1
( widget: ParsedValue<typeof parseRadioWidgetV0>, )
packages/perseus-core/src/parse-perseus-json/perseus-parsers/radio-widget.ts:218
↓ 1 callersFunctionmigrateV1ToV2
( widget: ParsedValue<typeof parseRadioWidgetV1>, )
packages/perseus-core/src/parse-perseus-json/perseus-parsers/radio-widget.ts:204
↓ 1 callersFunctionminMove
({snapStep, range, point}: ConstraintArgs)
packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts:1627
↓ 1 callersFunctionmockGraphConfig
(config: GraphConfig)
packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point-labels-layer/movable-point-labels-layer.test.tsx:11
↓ 1 callersMethodmodify
(options: Options)
packages/perseus/src/interactive2/movable.ts:80
↓ 1 callersFunctionmodifyTex
(tex: string)
packages/perseus-score/src/util/tex-wrangler.ts:156
↓ 1 callersFunctionmoveLockedFigure
( index: number, movement: LockedFigureSettingsMovementType, )
packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx:56
↓ 1 callersMethodnatural
()
packages/kas/src/nodes.ts:2173
↓ 1 callersFunctionnegate
(v: V)
packages/kmath/src/vector.ts:84
↓ 1 callersFunctionnestedOutput
(ast, state)
packages/simple-markdown/src/index.ts:1759
↓ 1 callersFunctionnestedParse
( source: string, state?: State | null, )
packages/simple-markdown/src/index.ts:333
↓ 1 callersFunctionnormalizeMediaQuery
* Normalize media query into `_mq_<normalizedQuery>` * Example: * "(max-width: 1240px)" -> "_mq_maxWidth_1240px" * "screen and (max-wi
utils/extract-aphrodite.js:249
↓ 1 callersFunctionnormalizeSelector
* Normalize selector and media query: * - Pseudo‑selectors: `.class:hover` -> `.class_hover` * - Media query: `@media (max-width: 1240px)` -> `_mq_m
utils/extract-aphrodite.js:229
↓ 1 callersFunctionnumSteps
(range: [number, number], step: number)
packages/perseus-editor/src/components/graph-settings.tsx:31
↓ 1 callersFunctionnumSteps
(range: any, step: any)
packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx:44
↓ 1 callersFunctionnumSteps
(range: Range, step: number)
packages/perseus/src/widgets/interactive-graphs/get-equation-string.ts:43
↓ 1 callersFunctionnumSteps
(range: Coord, step: number)
packages/perseus/src/widgets/grapher/util.tsx:52
↓ 1 callersFunctionobjectEntry
(before: any, after: any, key)
packages/perseus-editor/src/diffs/shared/widget-diff-performer.ts:35
↓ 1 callersMethodonHeaderChange
(index: number, e: any)
packages/perseus/src/widgets/table/table.tsx:114
↓ 1 callersMethodonMouseMove
(key: SortableItem["key"])
packages/perseus/src/components/sortable.tsx:659
↓ 1 callersMethodonMoveStart
(coord: Coord, prevCoord: Coord)
packages/perseus/src/interactive2/__tests__/movable-mock.ts:36
↓ 1 callersFunctiononUrlChange
(url: string)
packages/perseus-editor/src/widgets/image-editor/components/image-url-input.tsx:54
↓ 1 callersMethodopenDropdown
()
packages/perseus-editor/src/widgets/label-image-editor/marker.tsx:64
↓ 1 callersMethodopenDropdownForMarkerIndices
(indices: ReadonlyArray<number>)
packages/perseus-editor/src/widgets/label-image-editor/question-markers.tsx:36
↓ 1 callersMethodopenKeypad
()
packages/perseus/src/components/math-input.tsx:139
↓ 1 callersFunctionparse
(source: string, state: any)
packages/perseus/src/perseus-markdown.tsx:303
↓ 1 callersFunctionparse
(source: string, state: any)
packages/perseus/src/perseus-markdown.new.tsx:302
↓ 1 callersFunctionparseAtom
* Parse the next atom in the molecule, returning an atom object if this is the * first atom in the molecule, or a bond object with this atom as the
packages/perseus/src/widgets/molecule/smiles-parser.ts:195
↓ 1 callersFunctionparseBlockContent
* Parse a block of CSS content that may contain @media blocks and rule blocks. * * @param {string} css A CSS string with balanced braces.
utils/extract-aphrodite.js:70
↓ 1 callersFunctionparseBondModifier
* Parse a bond modifier character, updating the context object so that the * next bond created has this modifier.
packages/perseus/src/widgets/molecule/smiles-parser.ts:78
↓ 1 callersFunctionparseCommandLineArguments
(args: string[])
packages/perseus-core/src/parse-perseus-json/exhaustive-test-tool/index.ts:56
↓ 1 callersFunctionparseCssToObjects
(cssString)
utils/extract-aphrodite.js:48
↓ 1 callersFunctionparseDeclarations
* Parse declarations like `color: red; font-size: 1.4rem;` * into `{ "color": "red", "fontSize": "1.4rem" }` * * @param {string} block * @returns
utils/extract-aphrodite.js:193
↓ 1 callersFunctionparseGroupUserInput
( rawVal, ctx, )
packages/perseus-core/src/parse-perseus-json/perseus-parsers/group-user-input.ts:9
↓ 1 callersFunctionparseMantissa
* Parse a string representation of a floating point * and pull out the mantissa. * * @param s the string representation of a floating point. * @re
packages/perseus/src/sigfigs.ts:226
↓ 1 callersFunctionparseOrder
* Parse a string representation of a floating point * and pull out the exponent. * * @param s the string representation of a floating point. * @re
packages/perseus/src/sigfigs.ts:296
↓ 1 callersFunctionparseParenthesizedExpression
* Parse a branch, as indicated by the presence of a parenthesized experession. * * This returns a list of all branches (including the continuation o
packages/perseus/src/widgets/molecule/smiles-parser.ts:126
↓ 1 callersFunctionparseRuleBlock
* Parse a selector block `.foo, .bar:hover { ... }` * * @param {string} selectorRaw * @param {string} block * @param {string|null} mq * @param {o
utils/extract-aphrodite.js:157
↓ 1 callersFunctionparseSign
* Parse a string representation of a floating point * and pull out the sign. * * @param s the string representation of a floating point. * @return
packages/perseus/src/sigfigs.ts:156
↓ 1 callersFunctionparseTableAlign
( source: string, parse: Parser, state: State, trimEndSeparators: boolean,
packages/simple-markdown/src/index.ts:741
↓ 1 callersFunctionparseTableCells
( source: string, parse: Parser, state: State, trimEndSeparators: boolean,
packages/simple-markdown/src/index.ts:802
↓ 1 callersFunctionparseTree
()
packages/perseus-linter/src/__tests__/rule.test.ts:55
↓ 1 callersFunctionparseUrl
(url: string)
packages/perseus/src/util/url-utils.ts:28
↓ 1 callersFunctionparseUserInputMapEntry
([id, userInput], userInputMap, ctx)
packages/perseus-core/src/parse-perseus-json/perseus-parsers/user-input-map.ts:87
↓ 1 callersFunctionparseWidgetsMapEntry
([id, widget], widgetMap, ctx)
packages/perseus-core/src/parse-perseus-json/perseus-parsers/widgets-map.ts:78
↓ 1 callersFunctionparserFor
( rules: ParserRules, defaultState?: State | null, )
packages/simple-markdown/src/index.ts:275
↓ 1 callersFunctionpointInRect
(a: Coord, b: Coord, c: Coord)
packages/kmath/src/geometry.ts:46
↓ 1 callersMethodpointInTriangle
* Test whether point is contained within triangle. * * Implementation taken from: https://stackoverflow.com/a/2049593
packages/perseus/src/widgets/label-image/label-image.tsx:157
↓ 1 callersFunctionpointsFromNormalized
( coordsList: ReadonlyArray<Coord>, range: [Coord, Coord], step: [number, number], snapStep: [
packages/perseus/src/widgets/grapher/util.tsx:46
↓ 1 callersFunctionpolarAdd
* Compute a coordinate by moving an angle and length from an origin point. * * Args: * origin: a list of the [x, y] coordinates of the origin
packages/perseus/src/widgets/molecule/molecule-layout.ts:28
↓ 1 callersFunctionpolarDegFromCart
( v: readonly [number, number], )
packages/kmath/src/vector.ts:150
↓ 1 callersMethodpostprocessDrawingResult
(result: any)
packages/perseus/src/util/graphie.ts:1292
↓ 1 callersFunctionpredicateCallback
* predicateCallback used to check if the given question matches * the rules you're looking for * * @param {PerseusRenderer} q the question to check
data/find-questions.ts:26
↓ 1 callersFunctionprepareChoicesProps
()
packages/perseus/src/widgets/radio/radio-widget.tsx:332
↓ 1 callersFunctionpreprocess
(source: string)
packages/simple-markdown/src/index.ts:235
↓ 1 callersMethodpresentItemDisplay
()
packages/perseus/src/testing/item-flipbook/item-flipbook-model.ts:85
↓ 1 callersMethodpresentItemJsonInput
()
packages/perseus/src/testing/item-flipbook/item-flipbook-model.ts:63
↓ 1 callersMethodpresentSelectedItemNumber
()
packages/perseus/src/testing/item-flipbook/item-flipbook-model.ts:103
↓ 1 callersMethodpresentSelectedItemNumberValue
()
packages/perseus/src/testing/item-flipbook/item-flipbook-model.ts:110
↓ 1 callersMethodpresentTotalItems
()
packages/perseus/src/testing/item-flipbook/item-flipbook-model.ts:117
↓ 1 callersMethodprint
()
packages/kas/src/nodes.ts:3101
↓ 1 callersFunctionprintHelp
()
utils/sync-dependencies.ts:18
↓ 1 callersFunctionprintHelp
()
utils/update-catalog-hashes-cli.ts:14
↓ 1 callersFunctionpropertyKeepsPx
(propertyName)
utils/extract-css-helper-functions.js:81
↓ 1 callersFunctionpxToRem
(px)
utils/extract-css-helper-functions.js:85
↓ 1 callersMethodqueueClass
(removeClassName: string, addClassName: string)
packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx:156
↓ 1 callersFunctionradioWidgetHasRationales
(widget: RadioWidget)
packages/perseus-core/src/utils/item-has-rationales.ts:32
↓ 1 callersFunctionrandomFloat
(min: number, max: number)
packages/kas/src/nodes.ts:52
↓ 1 callersFunctionrange
(min: number, max: number, step = 1)
packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts:242
↓ 1 callersFunctionreadAtomSymbol
* Get the symbol of the next atom in the molecule. * * Return a 2-element list containing that symbol and the remainder of the * molecule.
packages/perseus/src/widgets/molecule/smiles-parser.ts:169
↓ 1 callersFunctionreducer
(state, newState)
packages/perseus-editor/src/components/__docs__/interactive-graph-settings.stories.tsx:46
↓ 1 callersFunctionreinitialize
(params: InitializeGraphStateParams)
packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-action.ts:336
↓ 1 callersMethodremoveAllClasses
(node: Element)
packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx:93
↓ 1 callersFunctionremoveLockedFigure
(index: number)
packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx:106
↓ 1 callersFunctionremoveOrphanedWidgetsFromPerseusItem
( item: PerseusItem, )
packages/perseus-core/src/utils/remove-orphaned-widgets.ts:14
↓ 1 callersFunctionrenderAbsoluteValueGraph
( state: AbsoluteValueGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/absolute-value.tsx:27
↓ 1 callersFunctionrenderAngleGraph
( state: AngleGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx:36
↓ 1 callersFunctionrenderCircleGraph
( state: CircleGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx:35
↓ 1 callersFunctionrenderExponentialGraph
( state: ExponentialGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/exponential.tsx:40
↓ 1 callersFunctionrenderGraphControls
(props: { state: InteractiveGraphState; dispatch: (action: InteractiveGraphAction) => unknown; wid
packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx:702
↓ 1 callersFunctionrenderGraphElements
(props: { state: InteractiveGraphState; dispatch: (action: InteractiveGraphAction) => unknown; i18
packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx:800
↓ 1 callersMethodrenderIcon
()
packages/perseus/src/widgets/label-image/marker.tsx:71
↓ 1 callersFunctionrenderInput
()
packages/perseus/src/widgets/numeric-input/input-with-examples.tsx:101
↓ 1 callersMethodrenderInstructions
()
packages/perseus/src/widgets/label-image/label-image.tsx:643
↓ 1 callersFunctionrenderLinearGraph
( state: LinearGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx:21
↓ 1 callersFunctionrenderLinearSystemGraph
( state: LinearSystemGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx:22
↓ 1 callersFunctionrenderLogarithmCurve
({ coeffs, coords, asymptoteX, xMin, xMax, yMin, yMax, interactiveColor, }: {
packages/perseus/src/widgets/interactive-graphs/graphs/logarithm.tsx:226
↓ 1 callersFunctionrenderLogarithmGraph
( state: LogarithmGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/logarithm.tsx:40
↓ 1 callersMethodrenderMarkers
()
packages/perseus/src/widgets/label-image/label-image.tsx:474
↓ 1 callersFunctionrenderPointGraph
( state: PointGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx:26
↓ 1 callersFunctionrenderPointGraphControls
(props: { state: PointGraphState; dispatch: (action: InteractiveGraphAction) => unknown; width: nu
packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx:516
↓ 1 callersFunctionrenderPolygonGraph
( state: PolygonGraphState, dispatch: Dispatch, i18n: I18nContextType, markings: InteractiveGr
packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx:57
↓ 1 callersFunctionrenderPolygonGraphControls
(props: { state: PolygonGraphState; dispatch: (action: InteractiveGraphAction) => unknown; width:
packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx:581
↓ 1 callersFunctionrenderQuadraticGraph
( state: QuadraticGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx:29
↓ 1 callersFunctionrenderRayGraph
( state: RayGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx:20
↓ 1 callersFunctionrenderSegmentGraph
( state: SegmentGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx:23
↓ 1 callersFunctionrenderSingleKeypad
()
packages/math-input/src/testing/render-keypad-with-cypress.tsx:6
↓ 1 callersFunctionrenderSinusoidGraph
( state: SinusoidGraphState, dispatch: Dispatch, i18n: I18nContextType, )
packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx:27
← previousnext →1,701–1,800 of 3,411, ranked by callers