MCPcopy Create free account

hub / github.com/alexwidua/figma-beautiful-shadows / functions

Functions67 in github.com/alexwidua/figma-beautiful-shadows

↓ 7 callersFunctionnormalize
(value: number, min: number, max: number)
src/utils/math.ts:9
↓ 4 callersFunctionalignGridToCenter
(viewport: number, gridSize: number)
src/utils/grid.ts:1
↓ 4 callersFunctioncleanUpAndRestorePrevEffects
()
src/main.ts:146
↓ 4 callersFunctionround
(value: number, decimals: number = 0)
src/utils/math.ts:21
↓ 4 callersFunctionstepped
(value: number, steps: number)
src/utils/math.ts:1
↓ 3 callersFunctionclamp
(num: number, min: number, max: number)
src/utils/math.ts:5
↓ 3 callersFunctiondenormalize
(value: number, min: number, max: number)
src/utils/math.ts:13
↓ 2 callersFunctiondegreeToRadian
(degree: number)
src/utils/math.ts:47
↓ 2 callersFunctionderiveXYFromAngle
( angle: number, distance: number )
src/utils/math.ts:37
↓ 2 callersFunctiongetCastedShadows
({ numShadows, azimuth, distance, elevation, brightness, color, shadowType, size, }: ShadowPar
src/utils/shadow.ts:26
↓ 2 callersFunctionpercent
(value: number, roundValue: boolean = true)
src/utils/math.ts:17
↓ 1 callersFunctionalign
( x: number, y: number, alignX: number, alignY: number, treshold: number )
src/ui/Preview/components/helpers/align.ts:2
↓ 1 callersFunctionangleFromLightToTarget
(vec1: Vector, vec2: Vector)
src/utils/math.ts:25
↓ 1 callersFunctioncheckIfExistingShadowData
* Check if node has previously set shadow data and load
src/main.ts:65
↓ 1 callersFunctioncreateHexColor
(string: string)
src/ui/ColorInput/normalize-hex-color.ts:19
↓ 1 callersFunctioncreateLight
(set: SetState<Store>)
src/store/createLight.ts:25
↓ 1 callersFunctioncreatePreview
(set: SetState<Store>)
src/store/createPreview.ts:24
↓ 1 callersFunctioncreatePreviewBounds
(set: SetState<Store>)
src/store/createPreviewBounds.ts:10
↓ 1 callersFunctioncreateSelection
(set: SetState<Store>)
src/store/createSelection.ts:18
↓ 1 callersFunctioncreateShadowProps
(set: SetState<Store>)
src/store/createShadowProps.ts:13
↓ 1 callersFunctioncreateTarget
(set: SetState<Store>)
src/store/createTarget.ts:16
↓ 1 callersFunctiondebounce
(callback: (...args: any[]) => any, wait: number)
src/utils/debounce.ts:1
↓ 1 callersFunctiondistanceFromLightToTarget
(vec1: Vector, vec2: Vector)
src/utils/math.ts:30
↓ 1 callersFunctiondrawShadows
* Draw shadows ☀️
src/main.ts:120
↓ 1 callersFunctiongetPreviewBounds
()
src/hooks/usePreviewBounds.ts:19
↓ 1 callersFunctionhandleSelectionChange
* Handle selection change. * When the user (de)selects an element, we do two things: * * · See if shadow effects are applicable to the select
src/main.ts:88
↓ 1 callersFunctionhasComponentChild
(selection: SceneNode)
src/utils/selection.ts:71
↓ 1 callersFunctionhexToGL
(color: Color | string)
src/utils/color.ts:3
↓ 1 callersFunctionisSymbol
(property: any)
src/utils/node.ts:1
↓ 1 callersFunctionisWithinNodeType
(node: SceneNode, type: NodeType)
src/utils/selection.ts:55
↓ 1 callersFunctionmakePluginResizeable
()
src/ui.tsx:138
↓ 1 callersFunctionnormalizeUserInputColor
(string: string)
src/ui/ColorInput/normalize-hex-color.ts:7
↓ 1 callersFunctionresizeAndRetainAspectRatio
( ogWidth: number, ogHeight: number, maxWidth: number, maxHeight: number )
src/utils/math.ts:51
↓ 1 callersFunctionuseDebounce
(value: T, delay?: number)
src/hooks/useDebounce.ts:3
↓ 1 callersFunctionuseElevationSlider
()
src/ui/Preview/components/Target/useElevationSlider.ts:11
↓ 1 callersFunctionusePreviewBounds
(ref: any)
src/hooks/usePreviewBounds.ts:12
↓ 1 callersFunctionuseSelectionStyle
()
src/ui/Preview/components/Target/useSelectionStyle.ts:9
↓ 1 callersFunctionvalidateSelection
( selection: ReadonlyArray<SceneNode>, validNodeTypes: Array<NodeType> )
src/utils/selection.ts:15
FunctionBadge
({ visible = true, children, style, ...rest }: { visible?: boolean children: any style?: any })
src/ui/Preview/components/Badge/badge.tsx:4
FunctionBrightnessSlider
({ isHuggingTop, children }: { isHuggingTop: boolean children: any })
src/ui/Preview/components/Light/BrightnessSlider.tsx:25
FunctionColor
()
src/ui/Menu/OptionsPanel/options/Color.tsx:5
FunctionColorInput
({ disabled = false, name, hexColor, hasMixedColors, onHexColorInput, type = "round", ...rest }:
src/ui/ColorInput/color-input.tsx:13
FunctionIconBrightness16
({ v = 0 })
src/ui/Menu/OptionsPanel/options/Parameters.tsx:153
FunctionIconElevation16
({ v = 0 })
src/ui/Menu/OptionsPanel/options/Parameters.tsx:175
FunctionLight
({ ...rest })
src/ui/Preview/components/Light/index.tsx:8
FunctionMenu
({ bounds }: any)
src/ui/Menu/menu.tsx:15
FunctionOptions
({ bounds, anchor, open, onClose }: any)
src/ui/Menu/OptionsPanel/index.tsx:8
FunctionPanel
({ open, title = 'Options', boundsRef, anchorRef, anchorMargin = 8, anchorAlign = 'LEFT', onClose, chi
src/ui/Menu/OptionsPanel/Panel.tsx:31
FunctionParameters
()
src/ui/Menu/OptionsPanel/options/Parameters.tsx:13
FunctionPlugin
()
src/ui.tsx:34
FunctionPositionDrag
({ children, style, ...rest }: { style?: any; children: any })
src/ui/Preview/components/Light/PositionDrag.tsx:20
FunctionShowAlignmentLines
()
src/ui/Preview/components/ShowAlignmentLines/lines.tsx:5
FunctionTarget
({ ...rest })
src/ui/Preview/components/Target/Target.tsx:13
FunctionType
()
src/ui/Menu/OptionsPanel/options/Type.tsx:12
FunctiondottedGridOffset
(viewport: number, gridSize: number)
src/utils/math.ts:65
FunctionhandleBgColorChange
(newColor: string)
src/ui.tsx:111
FunctionhandleDropdownChange
(e: JSX.TargetedEvent<HTMLInputElement>)
src/ui/Menu/OptionsPanel/options/Type.tsx:18
FunctionhandleHexColorInput
(event: JSX.TargetedEvent<HTMLInputElement>)
src/ui/Menu/OptionsPanel/options/Color.tsx:11
FunctionhandleResize
()
src/ui/Menu/OptionsPanel/Panel.tsx:83
FunctionhandleShadowColorChange
(newColor: string)
src/ui.tsx:107
FunctiononWindowResize
(windowSize: { width: number; height: number })
src/ui.tsx:139
FunctionupdateSceneAndRedrawShadows
(data: PluginData)
src/main.ts:141
FunctionuseShadow
()
src/ui/Preview/components/Target/useShadowStyle.ts:5
FunctionvalidateAzimuth
(value: null | number)
src/ui/Menu/OptionsPanel/options/Parameters.tsx:34
FunctionvalidateBrightness
(value: null | number)
src/ui/Menu/OptionsPanel/options/Parameters.tsx:79
FunctionvalidateDistance
(value: null | number)
src/ui/Menu/OptionsPanel/options/Parameters.tsx:54
FunctionvalidateElevation
(value: null | number)
src/ui/Menu/OptionsPanel/options/Parameters.tsx:96