Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 62 additions & 2 deletions plugin-api-standalone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3777,6 +3777,10 @@ interface NoiseEffectBase {
* The color of the noise effect.
*/
readonly color: RGBA
/**
* Whether the noise effect is visible.
*/
readonly visible: boolean
/**
* The blend mode of the noise.
*/
Expand All @@ -3789,6 +3793,10 @@ interface NoiseEffectBase {
* The density of the noise effect.
*/
readonly density: number
/**
* Noise effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
Expand Down Expand Up @@ -3840,6 +3848,10 @@ interface TextureEffect {
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
*/
readonly type: 'TEXTURE'
/**
* Whether the texture effect is visible.
*/
readonly visible: boolean
/**
* The size of the texture effect.
*/
Expand All @@ -3852,6 +3864,51 @@ interface TextureEffect {
* Whether the texture is clipped to the shape.
*/
readonly clipToShape: boolean
/**
* Texture effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
*/
interface GlassEffect {
/**
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
*/
readonly type: 'GLASS'
/**
* Whether this glass effect is visible.
*/
readonly visible: boolean
/**
* The intensity of specular highlights. Must be between 0 and 1. Higher values create brighter highlights.
*/
readonly lightIntensity: number
/**
* The angle of the specular light in degrees. Controls the direction of highlights on the glass surface.
*/
readonly lightAngle: number
/**
* The intensity of the refraction distortion. Must be between 0 and 1. Higher values create more distortion.
*/
readonly refraction: number
/**
* The depth of the refraction effect. Must be >= 1. Higher values create deeper glass appearance.
*/
readonly depth: number
/**
* The amount of chromatic aberration (color separation). Must be between 0 and 1. Higher values create more rainbow-like distortion at edges.
*/
readonly dispersion: number
/**
* The radius of frost on the glass effect.
*/
readonly radius: number
/**
* Glass effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
Expand All @@ -3862,6 +3919,7 @@ declare type Effect =
| BlurEffect
| NoiseEffect
| TextureEffect
| GlassEffect
/**
* @see https://www.figma.com/plugin-docs/api/Constraints
*/
Expand Down Expand Up @@ -6515,9 +6573,10 @@ interface AutoLayoutMixin {
interface GridTrackSize {
/**
* Applicable only on FIXED grid tracks. The size of the track in pixels.
* Optional for `FLEX` tracks.
* If the setter for this value is called on a `FLEX` track, the track will be converted to a `FIXED` track.
*/
value: number
value?: number
/**
* The type of the grid track. `FLEX` indicates that the track will grow to fill the available space in the container (evenly divided among all flex tracks in the grid), while `FIXED` indicates that the track will have a fixed size.
**/
Expand Down Expand Up @@ -6548,6 +6607,7 @@ interface GridLayoutMixin {
* // + --- + --- + --- +
* // | | | |
* // + --- + --- + --- +
* ```
*/
gridRowCount: number
/**
Expand Down Expand Up @@ -10576,4 +10636,4 @@ interface FindAllCriteria<T extends NodeType[]> {
}

// prettier-ignore
export { ArgFreeEventType, PluginAPI, VersionHistoryResult, VariablesAPI, LibraryVariableCollection, LibraryVariable, AnnotationsAPI, TeamLibraryAPI, PaymentStatus, PaymentsAPI, ClientStorageAPI, NotificationOptions, NotifyDequeueReason, NotificationHandler, ShowUIOptions, UIPostMessageOptions, OnMessageProperties, MessageEventHandler, UIAPI, UtilAPI, ColorPalette, ColorPalettes, ConstantsAPI, CodegenEvent, CodegenPreferences, CodegenPreferencesEvent, CodegenResult, CodegenAPI, DevResource, DevResourceWithNodeId, LinkPreviewEvent, PlainTextElement, LinkPreviewResult, AuthEvent, DevResourceOpenEvent, AuthResult, VSCodeAPI, DevResourcesAPI, TimerAPI, ViewportAPI, TextReviewAPI, ParameterValues, SuggestionResults, ParameterInputEvent, ParametersAPI, RunParametersEvent, OpenDevResourcesEvent, RunEvent, SlidesViewChangeEvent, DropEvent, DropItem, DropFile, DocumentChangeEvent, StyleChangeEvent, StyleChange, BaseDocumentChange, BaseNodeChange, RemovedNode, CreateChange, DeleteChange, PropertyChange, BaseStyleChange, StyleCreateChange, StyleDeleteChange, StylePropertyChange, DocumentChange, NodeChangeProperty, NodeChangeEvent, NodeChange, StyleChangeProperty, TextReviewEvent, TextReviewRange, Transform, Vector, Rect, RGB, RGBA, FontName, TextCase, TextDecoration, TextDecorationStyle, TextDecorationOffset, TextDecorationThickness, TextDecorationColor, OpenTypeFeature, ArcData, DropShadowEffect, InnerShadowEffect, BlurEffectBase, BlurEffectNormal, BlurEffectProgressive, BlurEffect, NoiseEffectBase, NoiseEffectMonotone, NoiseEffectDuotone, NoiseEffectMultitone, NoiseEffect, TextureEffect, Effect, ConstraintType, Constraints, ColorStop, ImageFilters, SolidPaint, GradientPaint, ImagePaint, VideoPaint, PatternPaint, Paint, Guide, RowsColsLayoutGrid, GridLayoutGrid, LayoutGrid, ExportSettingsConstraints, ExportSettingsImage, ExportSettingsSVGBase, ExportSettingsSVG, ExportSettingsSVGString, ExportSettingsPDF, ExportSettingsREST, ExportSettings, WindingRule, VectorVertex, VectorSegment, VectorRegion, VectorNetwork, VectorPath, VectorPaths, LetterSpacing, LineHeight, LeadingTrim, HyperlinkTarget, TextListOptions, BlendMode, MaskType, Font, TextStyleOverrideType, StyledTextSegment, Reaction, VariableDataType, ExpressionFunction, Expression, VariableValueWithExpression, VariableData, ConditionalBlock, DevStatus, Action, SimpleTransition, DirectionalTransition, Transition, Trigger, Navigation, Easing, EasingFunctionBezier, EasingFunctionSpring, OverflowDirection, OverlayPositionType, OverlayBackground, OverlayBackgroundInteraction, PublishStatus, ConnectorEndpointPosition, ConnectorEndpointPositionAndEndpointNodeId, ConnectorEndpointEndpointNodeIdAndMagnet, ConnectorEndpoint, ConnectorStrokeCap, BaseNodeMixin, PluginDataMixin, DevResourcesMixin, DevStatusMixin, SceneNodeMixin, VariableBindableNodeField, VariableBindableTextField, VariableBindablePaintField, VariableBindablePaintStyleField, VariableBindableColorStopField, VariableBindableEffectField, VariableBindableEffectStyleField, VariableBindableLayoutGridField, VariableBindableGridStyleField, VariableBindableComponentPropertyField, VariableBindableComponentPropertyDefinitionField, StickableMixin, ChildrenMixin, ConstraintMixin, DimensionAndPositionMixin, LayoutMixin, AspectRatioLockMixin, BlendMixin, ContainerMixin, DeprecatedBackgroundMixin, StrokeCap, StrokeJoin, HandleMirroring, AutoLayoutMixin, GridTrackSize, GridLayoutMixin, AutoLayoutChildrenMixin, GridChildrenMixin, InferredAutoLayoutResult, DetachedInfo, MinimalStrokesMixin, IndividualStrokesMixin, MinimalFillsMixin, GeometryMixin, CornerMixin, RectangleCornerMixin, ExportMixin, FramePrototypingMixin, VectorLikeMixin, ReactionMixin, DocumentationLink, PublishableMixin, DefaultShapeMixin, BaseFrameMixin, DefaultFrameMixin, OpaqueNodeMixin, MinimalBlendMixin, Annotation, AnnotationProperty, AnnotationPropertyType, AnnotationsMixin, Measurement, MeasurementSide, MeasurementOffset, MeasurementsMixin, VariantMixin, ComponentPropertiesMixin, BaseNonResizableTextMixin, NonResizableTextMixin, NonResizableTextPathMixin, TextSublayerNode, DocumentNode, ExplicitVariableModesMixin, PageNode, FrameNode, GroupNode, TransformGroupNode, SliceNode, RectangleNode, LineNode, EllipseNode, PolygonNode, StarNode, VectorNode, TextNode, TextPathNode, ComponentPropertyType, InstanceSwapPreferredValue, ComponentPropertyOptions, ComponentPropertyDefinitions, ComponentSetNode, ComponentNode, ComponentProperties, InstanceNode, BooleanOperationNode, StickyNode, StampNode, TableNode, TableCellNode, HighlightNode, WashiTapeNode, ShapeWithTextNode, CodeBlockNode, LabelSublayerNode, ConnectorNode, VariableResolvedDataType, VariableAlias, VariableValue, VariableScope, CodeSyntaxPlatform, Variable, VariableCollection, AnnotationCategoryColor, AnnotationCategory, WidgetNode, EmbedData, EmbedNode, LinkUnfurlData, LinkUnfurlNode, MediaData, MediaNode, SectionNode, SlideNode, SlideRowNode, SlideGridNode, InteractiveSlideElementNode, SlideTransition, BaseNode, SceneNode, NodeType, StyleType, InheritedStyleField, StyleConsumers, BaseStyleMixin, PaintStyle, TextStyle, EffectStyle, GridStyle, BaseStyle, Image, Video, BaseUser, User, ActiveUser, FindAllCriteria }
export { ArgFreeEventType, PluginAPI, VersionHistoryResult, VariablesAPI, LibraryVariableCollection, LibraryVariable, AnnotationsAPI, TeamLibraryAPI, PaymentStatus, PaymentsAPI, ClientStorageAPI, NotificationOptions, NotifyDequeueReason, NotificationHandler, ShowUIOptions, UIPostMessageOptions, OnMessageProperties, MessageEventHandler, UIAPI, UtilAPI, ColorPalette, ColorPalettes, ConstantsAPI, CodegenEvent, CodegenPreferences, CodegenPreferencesEvent, CodegenResult, CodegenAPI, DevResource, DevResourceWithNodeId, LinkPreviewEvent, PlainTextElement, LinkPreviewResult, AuthEvent, DevResourceOpenEvent, AuthResult, VSCodeAPI, DevResourcesAPI, TimerAPI, ViewportAPI, TextReviewAPI, ParameterValues, SuggestionResults, ParameterInputEvent, ParametersAPI, RunParametersEvent, OpenDevResourcesEvent, RunEvent, SlidesViewChangeEvent, DropEvent, DropItem, DropFile, DocumentChangeEvent, StyleChangeEvent, StyleChange, BaseDocumentChange, BaseNodeChange, RemovedNode, CreateChange, DeleteChange, PropertyChange, BaseStyleChange, StyleCreateChange, StyleDeleteChange, StylePropertyChange, DocumentChange, NodeChangeProperty, NodeChangeEvent, NodeChange, StyleChangeProperty, TextReviewEvent, TextReviewRange, Transform, Vector, Rect, RGB, RGBA, FontName, TextCase, TextDecoration, TextDecorationStyle, TextDecorationOffset, TextDecorationThickness, TextDecorationColor, OpenTypeFeature, ArcData, DropShadowEffect, InnerShadowEffect, BlurEffectBase, BlurEffectNormal, BlurEffectProgressive, BlurEffect, NoiseEffectBase, NoiseEffectMonotone, NoiseEffectDuotone, NoiseEffectMultitone, NoiseEffect, TextureEffect, GlassEffect, Effect, ConstraintType, Constraints, ColorStop, ImageFilters, SolidPaint, GradientPaint, ImagePaint, VideoPaint, PatternPaint, Paint, Guide, RowsColsLayoutGrid, GridLayoutGrid, LayoutGrid, ExportSettingsConstraints, ExportSettingsImage, ExportSettingsSVGBase, ExportSettingsSVG, ExportSettingsSVGString, ExportSettingsPDF, ExportSettingsREST, ExportSettings, WindingRule, VectorVertex, VectorSegment, VectorRegion, VectorNetwork, VectorPath, VectorPaths, LetterSpacing, LineHeight, LeadingTrim, HyperlinkTarget, TextListOptions, BlendMode, MaskType, Font, TextStyleOverrideType, StyledTextSegment, Reaction, VariableDataType, ExpressionFunction, Expression, VariableValueWithExpression, VariableData, ConditionalBlock, DevStatus, Action, SimpleTransition, DirectionalTransition, Transition, Trigger, Navigation, Easing, EasingFunctionBezier, EasingFunctionSpring, OverflowDirection, OverlayPositionType, OverlayBackground, OverlayBackgroundInteraction, PublishStatus, ConnectorEndpointPosition, ConnectorEndpointPositionAndEndpointNodeId, ConnectorEndpointEndpointNodeIdAndMagnet, ConnectorEndpoint, ConnectorStrokeCap, BaseNodeMixin, PluginDataMixin, DevResourcesMixin, DevStatusMixin, SceneNodeMixin, VariableBindableNodeField, VariableBindableTextField, VariableBindablePaintField, VariableBindablePaintStyleField, VariableBindableColorStopField, VariableBindableEffectField, VariableBindableEffectStyleField, VariableBindableLayoutGridField, VariableBindableGridStyleField, VariableBindableComponentPropertyField, VariableBindableComponentPropertyDefinitionField, StickableMixin, ChildrenMixin, ConstraintMixin, DimensionAndPositionMixin, LayoutMixin, AspectRatioLockMixin, BlendMixin, ContainerMixin, DeprecatedBackgroundMixin, StrokeCap, StrokeJoin, HandleMirroring, AutoLayoutMixin, GridTrackSize, GridLayoutMixin, AutoLayoutChildrenMixin, GridChildrenMixin, InferredAutoLayoutResult, DetachedInfo, MinimalStrokesMixin, IndividualStrokesMixin, MinimalFillsMixin, GeometryMixin, CornerMixin, RectangleCornerMixin, ExportMixin, FramePrototypingMixin, VectorLikeMixin, ReactionMixin, DocumentationLink, PublishableMixin, DefaultShapeMixin, BaseFrameMixin, DefaultFrameMixin, OpaqueNodeMixin, MinimalBlendMixin, Annotation, AnnotationProperty, AnnotationPropertyType, AnnotationsMixin, Measurement, MeasurementSide, MeasurementOffset, MeasurementsMixin, VariantMixin, ComponentPropertiesMixin, BaseNonResizableTextMixin, NonResizableTextMixin, NonResizableTextPathMixin, TextSublayerNode, DocumentNode, ExplicitVariableModesMixin, PageNode, FrameNode, GroupNode, TransformGroupNode, SliceNode, RectangleNode, LineNode, EllipseNode, PolygonNode, StarNode, VectorNode, TextNode, TextPathNode, ComponentPropertyType, InstanceSwapPreferredValue, ComponentPropertyOptions, ComponentPropertyDefinitions, ComponentSetNode, ComponentNode, ComponentProperties, InstanceNode, BooleanOperationNode, StickyNode, StampNode, TableNode, TableCellNode, HighlightNode, WashiTapeNode, ShapeWithTextNode, CodeBlockNode, LabelSublayerNode, ConnectorNode, VariableResolvedDataType, VariableAlias, VariableValue, VariableScope, CodeSyntaxPlatform, Variable, VariableCollection, AnnotationCategoryColor, AnnotationCategory, WidgetNode, EmbedData, EmbedNode, LinkUnfurlData, LinkUnfurlNode, MediaData, MediaNode, SectionNode, SlideNode, SlideRowNode, SlideGridNode, InteractiveSlideElementNode, SlideTransition, BaseNode, SceneNode, NodeType, StyleType, InheritedStyleField, StyleConsumers, BaseStyleMixin, PaintStyle, TextStyle, EffectStyle, GridStyle, BaseStyle, Image, Video, BaseUser, User, ActiveUser, FindAllCriteria }
62 changes: 61 additions & 1 deletion plugin-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3773,6 +3773,10 @@ interface NoiseEffectBase {
* The color of the noise effect.
*/
readonly color: RGBA
/**
* Whether the noise effect is visible.
*/
readonly visible: boolean
/**
* The blend mode of the noise.
*/
Expand All @@ -3785,6 +3789,10 @@ interface NoiseEffectBase {
* The density of the noise effect.
*/
readonly density: number
/**
* Noise effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
Expand Down Expand Up @@ -3836,6 +3844,10 @@ interface TextureEffect {
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
*/
readonly type: 'TEXTURE'
/**
* Whether the texture effect is visible.
*/
readonly visible: boolean
/**
* The size of the texture effect.
*/
Expand All @@ -3848,6 +3860,51 @@ interface TextureEffect {
* Whether the texture is clipped to the shape.
*/
readonly clipToShape: boolean
/**
* Texture effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
*/
interface GlassEffect {
/**
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
*/
readonly type: 'GLASS'
/**
* Whether this glass effect is visible.
*/
readonly visible: boolean
/**
* The intensity of specular highlights. Must be between 0 and 1. Higher values create brighter highlights.
*/
readonly lightIntensity: number
/**
* The angle of the specular light in degrees. Controls the direction of highlights on the glass surface.
*/
readonly lightAngle: number
/**
* The intensity of the refraction distortion. Must be between 0 and 1. Higher values create more distortion.
*/
readonly refraction: number
/**
* The depth of the refraction effect. Must be >= 1. Higher values create deeper glass appearance.
*/
readonly depth: number
/**
* The amount of chromatic aberration (color separation). Must be between 0 and 1. Higher values create more rainbow-like distortion at edges.
*/
readonly dispersion: number
/**
* The radius of frost on the glass effect.
*/
readonly radius: number
/**
* Glass effects currently do not support binding variables.
*/
readonly boundVariables?: {}
}
/**
* @see https://www.figma.com/plugin-docs/api/Effect
Expand All @@ -3858,6 +3915,7 @@ declare type Effect =
| BlurEffect
| NoiseEffect
| TextureEffect
| GlassEffect
/**
* @see https://www.figma.com/plugin-docs/api/Constraints
*/
Expand Down Expand Up @@ -6511,9 +6569,10 @@ interface AutoLayoutMixin {
interface GridTrackSize {
/**
* Applicable only on FIXED grid tracks. The size of the track in pixels.
* Optional for `FLEX` tracks.
* If the setter for this value is called on a `FLEX` track, the track will be converted to a `FIXED` track.
*/
value: number
value?: number
/**
* The type of the grid track. `FLEX` indicates that the track will grow to fill the available space in the container (evenly divided among all flex tracks in the grid), while `FIXED` indicates that the track will have a fixed size.
**/
Expand Down Expand Up @@ -6544,6 +6603,7 @@ interface GridLayoutMixin {
* // + --- + --- + --- +
* // | | | |
* // + --- + --- + --- +
* ```
*/
gridRowCount: number
/**
Expand Down