Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/concrete-utopia/utopia
/ functions
Functions
8,668 in github.com/concrete-utopia/utopia
⨍
Functions
8,668
◇
Types & classes
1,798
↓ 66 callers
Function
varSafeNavigatorEntryToKey
(entry: NavigatorEntry)
editor/src/components/editor/store/editor-state.ts:2424
↓ 65 callers
Function
localRectangle
( rectangle: SimpleRectangle | null | undefined, )
editor/src/core/shared/math-utils.ts:162
↓ 63 callers
Function
codeFile
( fileContents: string, lastSavedContents: string | null, versionNumber: number = 0, revisionsState: R
editor/src/core/shared/project-file-types.ts:503
↓ 63 callers
Function
fromTypeGuard
(typeGuard: (s: S) => s is A)
editor/src/core/shared/optics/optic-creators.ts:6
↓ 63 callers
Function
shortcut
(description: string, shortcutKeys: Key | Array<Key>)
editor/src/components/editor/shortcut-definitions.ts:19
↓ 62 callers
Function
defaultEither
(defaultValue: R, either: Either<L, R>)
editor/src/core/shared/either.ts:53
↓ 62 callers
Function
jsPropertyAccess
( onValue: JSExpression, property: string, uid: string, sourceMap: RawSourceMap | null, comments: Pa
editor/src/core/shared/element-template.ts:577
↓ 61 callers
Function
addFileToProjectContents
( tree: ProjectContentTreeRoot, path: string, file: ProjectFile, )
editor/src/components/assets.ts:583
↓ 61 callers
Function
ensure
(condition: unknown, message: string, status: number)
utopia-remix/app/util/api.server.ts:163
↓ 61 callers
Function
getPrintedUiJsCodeWithoutUIDs
( store: EditorStorePatched, filePath: string = StoryboardFilePath, )
editor/src/components/canvas/ui-jsx.test-utils.tsx:827
↓ 60 callers
Function
renderProjectWithGroup
(code: string)
editor/src/components/canvas/canvas-strategies/strategies/groups.spec.browser2.tsx:137
↓ 59 callers
Function
cssDefault
(value: T, defaultValue = true)
editor/src/components/inspector/common/css-utils.ts:1410
↓ 59 callers
Function
offsetPoint
(p: Point<C>, by: Point<C>)
editor/src/core/shared/math-utils.ts:622
↓ 58 callers
Function
childInsertionPath
( elementPath: StaticElementPath | ElementPath, )
editor/src/components/editor/store/insertion-path.ts:62
↓ 58 callers
Function
combine1EqualityCall
( getAValue: (x: X) => A, callA: KeepDeepEqualityCall<A>, combine: (a: A) => X, )
editor/src/utils/deep-equality.ts:30
↓ 58 callers
Function
regularParam
( paramName: string, defaultExpression: JSExpression | null, )
editor/src/core/shared/element-template.ts:2100
↓ 57 callers
Function
getLayoutProperty
( layoutProp: P, propsOrAttributes: PropsOrJSXAttributes, propertyTarget: ReadonlyArray<string>, )
editor/src/core/layout/getLayoutProperty.ts:12
↓ 57 callers
Function
simplifyParsedTextFileAttributes
(parsedTextFile: ParsedTextFile)
editor/src/core/workers/parser-printer/parser-printer.test-utils.ts:433
↓ 56 callers
Function
applyPrettier
( code: string, calculateCursorOffset: boolean, cursorOffset?: number, )
utopia-vscode-common/src/prettier-utils.ts:20
↓ 56 callers
Function
functionParam
(dotDotDotToken: boolean, boundParam: BoundParam)
editor/src/core/shared/element-template.ts:2167
↓ 56 callers
Function
isJSXConditionalExpression
( element: JSXElementChild, )
editor/src/core/shared/element-template.ts:1844
↓ 56 callers
Function
mouseDragFromPointToPoint
( eventSourceElement: HTMLElement, startPoint: Point, endPoint: Point, options: { modifiers?: Modi
editor/src/components/canvas/event-helpers.test-utils.tsx:195
↓ 56 callers
Function
printCSSNumber
( input: CSSNumber, defaultUnitToSkip: string | null, )
editor/src/components/inspector/common/css-utils.ts:945
↓ 55 callers
Function
createBuiltInDependenciesList
( workers: UtopiaTsWorkers | null, )
editor/src/core/es-modules/package-manager/built-in-dependencies-list.ts:61
↓ 53 callers
Function
isFeatureEnabled
(featureName: FeatureName)
editor/src/utils/feature-switches.ts:132
↓ 53 callers
Function
mouseUpAtPoint
( eventSourceElement: HTMLElement, point: Point, options: { modifiers?: Modifiers eventOptions?:
editor/src/components/canvas/event-helpers.test-utils.tsx:142
↓ 53 callers
Function
resolve
(importOrigin: string, toImport: string)
editor/src/core/es-modules/package-manager/module-resolution.spec.ts:66
↓ 52 callers
Function
jsExpressionNestedObject
( content: Array<JSXProperty>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:464
↓ 52 callers
Function
mouseDragFromPointWithDelta
( eventSourceElement: HTMLElement, startPoint: Point, dragDelta: Point, options: { modifiers?: Mod
editor/src/components/canvas/event-helpers.test-utils.tsx:175
↓ 52 callers
Function
useProjectsStore
(selector: (store: ProjectsStore) => T)
utopia-remix/app/stores/projectsStore.tsx:168
↓ 51 callers
Function
cssPixelLength
(length: number)
editor/src/components/inspector/common/css-utils.ts:1440
↓ 51 callers
Function
modify
(withOptic: Optic<S, A>, update: (a: A) => A, s: S)
editor/src/core/shared/optics/optic-utilities.ts:74
↓ 50 callers
Function
deepFreeze
(obj: T)
editor/src/utils/deep-freeze.ts:33
↓ 50 callers
Function
jsxArrayValue
(value: JSExpression, comments: ParsedComments)
editor/src/core/shared/element-template.ts:492
↓ 50 callers
Function
showToast
(toastContent: Notice)
editor/src/components/editor/actions/action-creators.ts:614
↓ 50 callers
Function
styleP
(prop: K)
editor/src/components/inspector/inspector-common.ts:498
↓ 50 callers
Function
treatElementAsGroupLike
( metadata: ElementInstanceMetadataMap, path: ElementPath, )
editor/src/components/canvas/canvas-strategies/strategies/group-helpers.ts:64
↓ 50 callers
Function
unsafeGet
(withOptic: Optic<S, A>, s: S)
editor/src/core/shared/optics/optic-utilities.ts:90
↓ 49 callers
Function
wait
(timeout: number)
editor/src/utils/utils.test-utils.tsx:439
↓ 48 callers
Function
projectWithSnippet
(snippet: string)
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2520
↓ 48 callers
Function
setProp_UNSAFE
( target: ElementPath, propertyPath: PropertyPath, value: JSExpression, importsToAdd: Imports = {}, )
editor/src/components/editor/actions/action-creators.ts:1267
↓ 47 callers
Function
clearExpressionUniqueIDs
(attribute: JSExpression)
editor/src/core/shared/element-template.ts:795
↓ 47 callers
Function
testPrintCodeFromEditorState
( editorState: EditorState, filePath: string = StoryboardFilePath, )
editor/src/components/canvas/ui-jsx.test-utils.tsx:1031
↓ 47 callers
Function
zeroRectIfNullOrInfinity
( r: MaybeInfinityRectangle<C> | null | undefined, )
editor/src/core/shared/math-utils.ts:185
↓ 46 callers
Function
delay
(time: number)
editor/src/utils/utils.test-utils.tsx:115
↓ 46 callers
Function
gridPositionValue
(numericalPosition: number | null)
editor/src/core/shared/element-template.ts:2658
↓ 46 callers
Function
typeText
(text: string)
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2489
↓ 45 callers
Function
closeTextEditor
()
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2493
↓ 45 callers
Function
getTargetPathsFromInteractionTarget
(target: InteractionTarget)
editor/src/components/canvas/canvas-strategies/canvas-strategy-types.ts:170
↓ 45 callers
Function
isFiniteRectangle
( r: MaybeInfinityRectangle<C>, )
editor/src/core/shared/math-utils.ts:124
↓ 45 callers
Function
isSelectMode
(value: Mode)
editor/src/components/editor/editor-modes.ts:271
↓ 45 callers
Function
setCssLengthProperty
( whenToRun: WhenToRun, target: ElementPath, property: CSSLengthPropertyPath, value: CssNumberOrKeepOr
editor/src/components/canvas/commands/set-css-length-command.ts:53
↓ 44 callers
Function
combine3EqualityCalls
( getAValue: (x: X) => A, callA: KeepDeepEqualityCall<A>, getBValue: (x: X) => B, callB: KeepDeepEqual
editor/src/utils/deep-equality.ts:75
↓ 44 callers
Function
flatMapEither
( transform: (r: R1) => Either<L, R2>, either: Either<L, R1>, )
editor/src/core/shared/either.ts:62
↓ 44 callers
Function
parseCSSLength
(input: unknown)
editor/src/components/inspector/common/css-utils.ts:1025
↓ 43 callers
Function
getControlStyles
(controlStatus: ControlStatus)
editor/src/components/inspector/common/control-styles.ts:215
↓ 43 callers
Function
getUtopiaID
(element: JSXElementChild | ElementInstanceMetadata)
editor/src/core/shared/uid-utils.ts:700
↓ 43 callers
Function
jsxAttributeNestedObjectSimple
( content: Array<JSXAttributesEntry>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:477
↓ 43 callers
Function
memoize
(func: T, options?: Partial<Options<T>>)
editor/src/core/shared/memoize.ts:22
↓ 42 callers
Function
addIfDefinedElsewhere
( inScope: Array<string>, nodeToCheck: TS.Node, nodeIsJSXElement: boolean, )
editor/src/core/workers/parser-printer/parser-printer-parsing.ts:1045
↓ 42 callers
Function
addImport
( fileUri: string, filePathMappings: FilePathMappings, importedFrom: string, importedWithName: string
editor/src/core/workers/common/project-file-utils.ts:167
↓ 42 callers
Function
contentsToTree
(projectContents: ProjectContents)
editor/src/components/assets.ts:302
↓ 42 callers
Function
objectKeyParser
( parser: (v: unknown, k: string) => ParseResult<V>, key: string, )
editor/src/utils/value-parser-utils.ts:228
↓ 42 callers
Function
setFocusedElement
( focusedElementElementPath: ElementPath | null, )
editor/src/components/editor/actions/action-creators.ts:1512
↓ 42 callers
Function
testCanvasRender
(possibleProps: PartialCanvasProps | null, code: string)
editor/src/components/canvas/ui-jsx-canvas.test-utils.tsx:317
↓ 41 callers
Function
jsExpressionNestedArray
( content: Array<JSXArrayElement>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:516
↓ 41 callers
Function
useKeepReferenceEqualityIfPossible
(possibleNewValue: T, measure = false)
editor/src/utils/react-performance.ts:468
↓ 40 callers
Function
getUidTree
(parsedFile: ParsedTextFile)
editor/src/core/workers/parser-printer/uid-fix.spec.ts:1414
↓ 40 callers
Function
objectDeepEquality
( valueCall: KeepDeepEqualityCall<T>, )
editor/src/utils/deep-equality.ts:1158
↓ 40 callers
Function
size
(width: number, height: number)
editor/src/core/shared/math-utils.ts:84
↓ 40 callers
Function
testGridOutlines
( targetPath: string, attributes: CSSProperties, )
editor/src/components/canvas/controls/grid-controls.spec.browser2.tsx:14
↓ 40 callers
Function
validateProjectAccess
( permission: UserProjectPermission, { getProjectId, includeDeleted = false, canRequestAccess
utopia-remix/app/handlers/validators.ts:11
↓ 39 callers
Function
arbitraryJSBlock
( params: Array<Param>, javascript: string, transpiledJavascript: string, definedWithin: Array<string>
editor/src/core/shared/element-template.ts:2051
↓ 39 callers
Function
deleteProperties
( whenToRun: WhenToRun, element: ElementPath, properties: Array<PropertyPath>, )
editor/src/components/canvas/commands/delete-properties-command.ts:16
↓ 39 callers
Function
getModifiableJSXAttributeAtPath
( attributes: JSXAttributes, path: PropertyPath, )
editor/src/core/shared/jsx-attribute-utils.ts:84
↓ 39 callers
Method
keys
()
editor/src/utils/fake-localforage.ts:14
↓ 39 callers
Function
makeCodeSnippetWithKeyValue
(props: { [key: string]: any })
editor/src/components/inspector/sections/layout-section/layout-system-subsection/padding-section.spec.browser2.tsx:40
↓ 39 callers
Function
nullIfInfinity
( r: MaybeInfinityRectangle<C> | null | undefined, )
editor/src/core/shared/math-utils.ts:191
↓ 39 callers
Function
traverseArray
()
editor/src/core/shared/optics/optic-creators.ts:102
↓ 38 callers
Function
emptyCollaborativeEditingSupport
()
editor/src/components/editor/store/editor-state.ts:469
↓ 38 callers
Function
emptyProjectServerState
()
editor/src/components/editor/store/project-server-state.tsx:58
↓ 38 callers
Function
getComponentFromCode
(componentName: string, code: string)
editor/src/core/model/element-template.test-utils.ts:6
↓ 38 callers
Function
gridCellTargetId
( gridElementPath: ElementPath, row: number, column: number, )
editor/src/components/canvas/canvas-strategies/strategies/grid-cell-bounds.ts:22
↓ 38 callers
Function
setJSXValueAtPath
( attributes: JSXAttributes, path: PropertyPath, value: JSExpression, )
editor/src/core/shared/jsx-attribute-utils.ts:290
↓ 38 callers
Function
unsetProperty
(element: ElementPath, property: PropertyPath)
editor/src/components/editor/actions/action-creators.ts:364
↓ 37 callers
Function
directory
()
editor/src/core/shared/project-file-types.ts:599
↓ 37 callers
Function
eitherToMaybe
(either: Either<L, R>)
editor/src/core/shared/either.ts:114
↓ 37 callers
Function
emptyUiJsxCanvasContextData
()
editor/src/components/canvas/ui-jsx-canvas.tsx:164
↓ 37 callers
Function
getSubduedPaddingControlTestID
( side: EdgePiece, hoveredOrFocused: 'hovered' | 'focused', )
editor/src/components/canvas/controls/select-mode/subdued-padding-control.tsx:78
↓ 37 callers
Function
mergeImports
( fileUri: string, filePathMappings: FilePathMappings, first: Imports, second: Imports, )
editor/src/core/workers/common/project-file-utils.ts:112
↓ 36 callers
Function
applyCommandsAction
(commands: CanvasCommand[])
editor/src/components/editor/actions/action-creators.ts:1766
↓ 36 callers
Function
doDragTest
( editor: EditorRenderResult, corner: BorderRadiusCorner, offset: number, modifiers: Modifiers, )
editor/src/components/canvas/canvas-strategies/strategies/set-border-radius-strategy.spec.browser2.tsx:800
↓ 36 callers
Function
isGridSpan
(u: unknown)
editor/src/core/shared/element-template.ts:3246
↓ 36 callers
Function
isUtopiaJSXComponent
( topLevelElement: TopLevelElement, )
editor/src/core/shared/element-template.ts:2427
↓ 36 callers
Function
projectContentFile
( fullPath: string, content: TextFile | ImageFile | AssetFile, )
editor/src/components/assets.ts:204
↓ 36 callers
Function
switchEditorMode
( mode: Mode, unlessMode?: 'select' | 'live' | 'insert' | 'textEdit', )
editor/src/components/editor/actions/action-creators.ts:422
↓ 36 callers
Function
truncateTables
(models: DeletableModel[])
utopia-remix/app/test-util.ts:120
↓ 36 callers
Function
unless
(condition: boolean, element: ReactNode | (() => ReactNode))
editor/src/utils/react-conditionals.ts:22
↓ 35 callers
Function
fireSingleClickEvents
( target: HTMLElement, clientX: number, clientY: number, modifiers: Modifiers = emptyModifiers, )
editor/src/components/canvas/controls/select-mode/select-mode.spec.browser2.tsx:40
↓ 35 callers
Function
getSimpleAttributeAtPath
( propsOrAttributes: PropsOrJSXAttributes, path: PropertyPath, )
editor/src/core/model/element-metadata-utils.ts:2915
← previous
next →
101–200 of 8,668, ranked by callers