MCPcopy Create free account

hub / github.com/concrete-utopia/utopia / functions

Functions8,668 in github.com/concrete-utopia/utopia

↓ 66 callersFunctionvarSafeNavigatorEntryToKey
(entry: NavigatorEntry)
editor/src/components/editor/store/editor-state.ts:2424
↓ 65 callersFunctionlocalRectangle
( rectangle: SimpleRectangle | null | undefined, )
editor/src/core/shared/math-utils.ts:162
↓ 63 callersFunctioncodeFile
( fileContents: string, lastSavedContents: string | null, versionNumber: number = 0, revisionsState: R
editor/src/core/shared/project-file-types.ts:503
↓ 63 callersFunctionfromTypeGuard
(typeGuard: (s: S) => s is A)
editor/src/core/shared/optics/optic-creators.ts:6
↓ 63 callersFunctionshortcut
(description: string, shortcutKeys: Key | Array<Key>)
editor/src/components/editor/shortcut-definitions.ts:19
↓ 62 callersFunctiondefaultEither
(defaultValue: R, either: Either<L, R>)
editor/src/core/shared/either.ts:53
↓ 62 callersFunctionjsPropertyAccess
( onValue: JSExpression, property: string, uid: string, sourceMap: RawSourceMap | null, comments: Pa
editor/src/core/shared/element-template.ts:577
↓ 61 callersFunctionaddFileToProjectContents
( tree: ProjectContentTreeRoot, path: string, file: ProjectFile, )
editor/src/components/assets.ts:583
↓ 61 callersFunctionensure
(condition: unknown, message: string, status: number)
utopia-remix/app/util/api.server.ts:163
↓ 61 callersFunctiongetPrintedUiJsCodeWithoutUIDs
( store: EditorStorePatched, filePath: string = StoryboardFilePath, )
editor/src/components/canvas/ui-jsx.test-utils.tsx:827
↓ 60 callersFunctionrenderProjectWithGroup
(code: string)
editor/src/components/canvas/canvas-strategies/strategies/groups.spec.browser2.tsx:137
↓ 59 callersFunctioncssDefault
(value: T, defaultValue = true)
editor/src/components/inspector/common/css-utils.ts:1410
↓ 59 callersFunctionoffsetPoint
(p: Point<C>, by: Point<C>)
editor/src/core/shared/math-utils.ts:622
↓ 58 callersFunctionchildInsertionPath
( elementPath: StaticElementPath | ElementPath, )
editor/src/components/editor/store/insertion-path.ts:62
↓ 58 callersFunctioncombine1EqualityCall
( getAValue: (x: X) => A, callA: KeepDeepEqualityCall<A>, combine: (a: A) => X, )
editor/src/utils/deep-equality.ts:30
↓ 58 callersFunctionregularParam
( paramName: string, defaultExpression: JSExpression | null, )
editor/src/core/shared/element-template.ts:2100
↓ 57 callersFunctiongetLayoutProperty
( layoutProp: P, propsOrAttributes: PropsOrJSXAttributes, propertyTarget: ReadonlyArray<string>, )
editor/src/core/layout/getLayoutProperty.ts:12
↓ 57 callersFunctionsimplifyParsedTextFileAttributes
(parsedTextFile: ParsedTextFile)
editor/src/core/workers/parser-printer/parser-printer.test-utils.ts:433
↓ 56 callersFunctionapplyPrettier
( code: string, calculateCursorOffset: boolean, cursorOffset?: number, )
utopia-vscode-common/src/prettier-utils.ts:20
↓ 56 callersFunctionfunctionParam
(dotDotDotToken: boolean, boundParam: BoundParam)
editor/src/core/shared/element-template.ts:2167
↓ 56 callersFunctionisJSXConditionalExpression
( element: JSXElementChild, )
editor/src/core/shared/element-template.ts:1844
↓ 56 callersFunctionmouseDragFromPointToPoint
( eventSourceElement: HTMLElement, startPoint: Point, endPoint: Point, options: { modifiers?: Modi
editor/src/components/canvas/event-helpers.test-utils.tsx:195
↓ 56 callersFunctionprintCSSNumber
( input: CSSNumber, defaultUnitToSkip: string | null, )
editor/src/components/inspector/common/css-utils.ts:945
↓ 55 callersFunctioncreateBuiltInDependenciesList
( workers: UtopiaTsWorkers | null, )
editor/src/core/es-modules/package-manager/built-in-dependencies-list.ts:61
↓ 53 callersFunctionisFeatureEnabled
(featureName: FeatureName)
editor/src/utils/feature-switches.ts:132
↓ 53 callersFunctionmouseUpAtPoint
( eventSourceElement: HTMLElement, point: Point, options: { modifiers?: Modifiers eventOptions?:
editor/src/components/canvas/event-helpers.test-utils.tsx:142
↓ 53 callersFunctionresolve
(importOrigin: string, toImport: string)
editor/src/core/es-modules/package-manager/module-resolution.spec.ts:66
↓ 52 callersFunctionjsExpressionNestedObject
( content: Array<JSXProperty>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:464
↓ 52 callersFunctionmouseDragFromPointWithDelta
( eventSourceElement: HTMLElement, startPoint: Point, dragDelta: Point, options: { modifiers?: Mod
editor/src/components/canvas/event-helpers.test-utils.tsx:175
↓ 52 callersFunctionuseProjectsStore
(selector: (store: ProjectsStore) => T)
utopia-remix/app/stores/projectsStore.tsx:168
↓ 51 callersFunctioncssPixelLength
(length: number)
editor/src/components/inspector/common/css-utils.ts:1440
↓ 51 callersFunctionmodify
(withOptic: Optic<S, A>, update: (a: A) => A, s: S)
editor/src/core/shared/optics/optic-utilities.ts:74
↓ 50 callersFunctiondeepFreeze
(obj: T)
editor/src/utils/deep-freeze.ts:33
↓ 50 callersFunctionjsxArrayValue
(value: JSExpression, comments: ParsedComments)
editor/src/core/shared/element-template.ts:492
↓ 50 callersFunctionshowToast
(toastContent: Notice)
editor/src/components/editor/actions/action-creators.ts:614
↓ 50 callersFunctionstyleP
(prop: K)
editor/src/components/inspector/inspector-common.ts:498
↓ 50 callersFunctiontreatElementAsGroupLike
( metadata: ElementInstanceMetadataMap, path: ElementPath, )
editor/src/components/canvas/canvas-strategies/strategies/group-helpers.ts:64
↓ 50 callersFunctionunsafeGet
(withOptic: Optic<S, A>, s: S)
editor/src/core/shared/optics/optic-utilities.ts:90
↓ 49 callersFunctionwait
(timeout: number)
editor/src/utils/utils.test-utils.tsx:439
↓ 48 callersFunctionprojectWithSnippet
(snippet: string)
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2520
↓ 48 callersFunctionsetProp_UNSAFE
( target: ElementPath, propertyPath: PropertyPath, value: JSExpression, importsToAdd: Imports = {}, )
editor/src/components/editor/actions/action-creators.ts:1267
↓ 47 callersFunctionclearExpressionUniqueIDs
(attribute: JSExpression)
editor/src/core/shared/element-template.ts:795
↓ 47 callersFunctiontestPrintCodeFromEditorState
( editorState: EditorState, filePath: string = StoryboardFilePath, )
editor/src/components/canvas/ui-jsx.test-utils.tsx:1031
↓ 47 callersFunctionzeroRectIfNullOrInfinity
( r: MaybeInfinityRectangle<C> | null | undefined, )
editor/src/core/shared/math-utils.ts:185
↓ 46 callersFunctiondelay
(time: number)
editor/src/utils/utils.test-utils.tsx:115
↓ 46 callersFunctiongridPositionValue
(numericalPosition: number | null)
editor/src/core/shared/element-template.ts:2658
↓ 46 callersFunctiontypeText
(text: string)
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2489
↓ 45 callersFunctioncloseTextEditor
()
editor/src/components/text-editor/text-editor.spec.browser2.tsx:2493
↓ 45 callersFunctiongetTargetPathsFromInteractionTarget
(target: InteractionTarget)
editor/src/components/canvas/canvas-strategies/canvas-strategy-types.ts:170
↓ 45 callersFunctionisFiniteRectangle
( r: MaybeInfinityRectangle<C>, )
editor/src/core/shared/math-utils.ts:124
↓ 45 callersFunctionisSelectMode
(value: Mode)
editor/src/components/editor/editor-modes.ts:271
↓ 45 callersFunctionsetCssLengthProperty
( whenToRun: WhenToRun, target: ElementPath, property: CSSLengthPropertyPath, value: CssNumberOrKeepOr
editor/src/components/canvas/commands/set-css-length-command.ts:53
↓ 44 callersFunctioncombine3EqualityCalls
( getAValue: (x: X) => A, callA: KeepDeepEqualityCall<A>, getBValue: (x: X) => B, callB: KeepDeepEqual
editor/src/utils/deep-equality.ts:75
↓ 44 callersFunctionflatMapEither
( transform: (r: R1) => Either<L, R2>, either: Either<L, R1>, )
editor/src/core/shared/either.ts:62
↓ 44 callersFunctionparseCSSLength
(input: unknown)
editor/src/components/inspector/common/css-utils.ts:1025
↓ 43 callersFunctiongetControlStyles
(controlStatus: ControlStatus)
editor/src/components/inspector/common/control-styles.ts:215
↓ 43 callersFunctiongetUtopiaID
(element: JSXElementChild | ElementInstanceMetadata)
editor/src/core/shared/uid-utils.ts:700
↓ 43 callersFunctionjsxAttributeNestedObjectSimple
( content: Array<JSXAttributesEntry>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:477
↓ 43 callersFunctionmemoize
(func: T, options?: Partial<Options<T>>)
editor/src/core/shared/memoize.ts:22
↓ 42 callersFunctionaddIfDefinedElsewhere
( inScope: Array<string>, nodeToCheck: TS.Node, nodeIsJSXElement: boolean, )
editor/src/core/workers/parser-printer/parser-printer-parsing.ts:1045
↓ 42 callersFunctionaddImport
( fileUri: string, filePathMappings: FilePathMappings, importedFrom: string, importedWithName: string
editor/src/core/workers/common/project-file-utils.ts:167
↓ 42 callersFunctioncontentsToTree
(projectContents: ProjectContents)
editor/src/components/assets.ts:302
↓ 42 callersFunctionobjectKeyParser
( parser: (v: unknown, k: string) => ParseResult<V>, key: string, )
editor/src/utils/value-parser-utils.ts:228
↓ 42 callersFunctionsetFocusedElement
( focusedElementElementPath: ElementPath | null, )
editor/src/components/editor/actions/action-creators.ts:1512
↓ 42 callersFunctiontestCanvasRender
(possibleProps: PartialCanvasProps | null, code: string)
editor/src/components/canvas/ui-jsx-canvas.test-utils.tsx:317
↓ 41 callersFunctionjsExpressionNestedArray
( content: Array<JSXArrayElement>, comments: ParsedComments, uid: string = UUID(), )
editor/src/core/shared/element-template.ts:516
↓ 41 callersFunctionuseKeepReferenceEqualityIfPossible
(possibleNewValue: T, measure = false)
editor/src/utils/react-performance.ts:468
↓ 40 callersFunctiongetUidTree
(parsedFile: ParsedTextFile)
editor/src/core/workers/parser-printer/uid-fix.spec.ts:1414
↓ 40 callersFunctionobjectDeepEquality
( valueCall: KeepDeepEqualityCall<T>, )
editor/src/utils/deep-equality.ts:1158
↓ 40 callersFunctionsize
(width: number, height: number)
editor/src/core/shared/math-utils.ts:84
↓ 40 callersFunctiontestGridOutlines
( targetPath: string, attributes: CSSProperties, )
editor/src/components/canvas/controls/grid-controls.spec.browser2.tsx:14
↓ 40 callersFunctionvalidateProjectAccess
( permission: UserProjectPermission, { getProjectId, includeDeleted = false, canRequestAccess
utopia-remix/app/handlers/validators.ts:11
↓ 39 callersFunctionarbitraryJSBlock
( params: Array<Param>, javascript: string, transpiledJavascript: string, definedWithin: Array<string>
editor/src/core/shared/element-template.ts:2051
↓ 39 callersFunctiondeleteProperties
( whenToRun: WhenToRun, element: ElementPath, properties: Array<PropertyPath>, )
editor/src/components/canvas/commands/delete-properties-command.ts:16
↓ 39 callersFunctiongetModifiableJSXAttributeAtPath
( attributes: JSXAttributes, path: PropertyPath, )
editor/src/core/shared/jsx-attribute-utils.ts:84
↓ 39 callersMethodkeys
()
editor/src/utils/fake-localforage.ts:14
↓ 39 callersFunctionmakeCodeSnippetWithKeyValue
(props: { [key: string]: any })
editor/src/components/inspector/sections/layout-section/layout-system-subsection/padding-section.spec.browser2.tsx:40
↓ 39 callersFunctionnullIfInfinity
( r: MaybeInfinityRectangle<C> | null | undefined, )
editor/src/core/shared/math-utils.ts:191
↓ 39 callersFunctiontraverseArray
()
editor/src/core/shared/optics/optic-creators.ts:102
↓ 38 callersFunctionemptyCollaborativeEditingSupport
()
editor/src/components/editor/store/editor-state.ts:469
↓ 38 callersFunctionemptyProjectServerState
()
editor/src/components/editor/store/project-server-state.tsx:58
↓ 38 callersFunctiongetComponentFromCode
(componentName: string, code: string)
editor/src/core/model/element-template.test-utils.ts:6
↓ 38 callersFunctiongridCellTargetId
( gridElementPath: ElementPath, row: number, column: number, )
editor/src/components/canvas/canvas-strategies/strategies/grid-cell-bounds.ts:22
↓ 38 callersFunctionsetJSXValueAtPath
( attributes: JSXAttributes, path: PropertyPath, value: JSExpression, )
editor/src/core/shared/jsx-attribute-utils.ts:290
↓ 38 callersFunctionunsetProperty
(element: ElementPath, property: PropertyPath)
editor/src/components/editor/actions/action-creators.ts:364
↓ 37 callersFunctiondirectory
()
editor/src/core/shared/project-file-types.ts:599
↓ 37 callersFunctioneitherToMaybe
(either: Either<L, R>)
editor/src/core/shared/either.ts:114
↓ 37 callersFunctionemptyUiJsxCanvasContextData
()
editor/src/components/canvas/ui-jsx-canvas.tsx:164
↓ 37 callersFunctiongetSubduedPaddingControlTestID
( side: EdgePiece, hoveredOrFocused: 'hovered' | 'focused', )
editor/src/components/canvas/controls/select-mode/subdued-padding-control.tsx:78
↓ 37 callersFunctionmergeImports
( fileUri: string, filePathMappings: FilePathMappings, first: Imports, second: Imports, )
editor/src/core/workers/common/project-file-utils.ts:112
↓ 36 callersFunctionapplyCommandsAction
(commands: CanvasCommand[])
editor/src/components/editor/actions/action-creators.ts:1766
↓ 36 callersFunctiondoDragTest
( editor: EditorRenderResult, corner: BorderRadiusCorner, offset: number, modifiers: Modifiers, )
editor/src/components/canvas/canvas-strategies/strategies/set-border-radius-strategy.spec.browser2.tsx:800
↓ 36 callersFunctionisGridSpan
(u: unknown)
editor/src/core/shared/element-template.ts:3246
↓ 36 callersFunctionisUtopiaJSXComponent
( topLevelElement: TopLevelElement, )
editor/src/core/shared/element-template.ts:2427
↓ 36 callersFunctionprojectContentFile
( fullPath: string, content: TextFile | ImageFile | AssetFile, )
editor/src/components/assets.ts:204
↓ 36 callersFunctionswitchEditorMode
( mode: Mode, unlessMode?: 'select' | 'live' | 'insert' | 'textEdit', )
editor/src/components/editor/actions/action-creators.ts:422
↓ 36 callersFunctiontruncateTables
(models: DeletableModel[])
utopia-remix/app/test-util.ts:120
↓ 36 callersFunctionunless
(condition: boolean, element: ReactNode | (() => ReactNode))
editor/src/utils/react-conditionals.ts:22
↓ 35 callersFunctionfireSingleClickEvents
( target: HTMLElement, clientX: number, clientY: number, modifiers: Modifiers = emptyModifiers, )
editor/src/components/canvas/controls/select-mode/select-mode.spec.browser2.tsx:40
↓ 35 callersFunctiongetSimpleAttributeAtPath
( propsOrAttributes: PropsOrJSXAttributes, path: PropertyPath, )
editor/src/core/model/element-metadata-utils.ts:2915
← previousnext →101–200 of 8,668, ranked by callers