Skip to content

Commit 787d357

Browse files
plugin-typings: 1.116.0 release
1 parent b381f11 commit 787d357

File tree

2 files changed

+123
-3
lines changed

2 files changed

+123
-3
lines changed

plugin-api-standalone.d.ts

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3777,6 +3777,10 @@ interface NoiseEffectBase {
37773777
* The color of the noise effect.
37783778
*/
37793779
readonly color: RGBA
3780+
/**
3781+
* Whether the noise effect is visible.
3782+
*/
3783+
readonly visible: boolean
37803784
/**
37813785
* The blend mode of the noise.
37823786
*/
@@ -3789,6 +3793,10 @@ interface NoiseEffectBase {
37893793
* The density of the noise effect.
37903794
*/
37913795
readonly density: number
3796+
/**
3797+
* Noise effects currently do not support binding variables.
3798+
*/
3799+
readonly boundVariables?: {}
37923800
}
37933801
/**
37943802
* @see https://www.figma.com/plugin-docs/api/Effect
@@ -3840,6 +3848,10 @@ interface TextureEffect {
38403848
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
38413849
*/
38423850
readonly type: 'TEXTURE'
3851+
/**
3852+
* Whether the texture effect is visible.
3853+
*/
3854+
readonly visible: boolean
38433855
/**
38443856
* The size of the texture effect.
38453857
*/
@@ -3852,6 +3864,51 @@ interface TextureEffect {
38523864
* Whether the texture is clipped to the shape.
38533865
*/
38543866
readonly clipToShape: boolean
3867+
/**
3868+
* Texture effects currently do not support binding variables.
3869+
*/
3870+
readonly boundVariables?: {}
3871+
}
3872+
/**
3873+
* @see https://www.figma.com/plugin-docs/api/Effect
3874+
*/
3875+
interface GlassEffect {
3876+
/**
3877+
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
3878+
*/
3879+
readonly type: 'GLASS'
3880+
/**
3881+
* Whether this glass effect is visible.
3882+
*/
3883+
readonly visible: boolean
3884+
/**
3885+
* The intensity of specular highlights. Must be between 0 and 1. Higher values create brighter highlights.
3886+
*/
3887+
readonly lightIntensity: number
3888+
/**
3889+
* The angle of the specular light in degrees. Controls the direction of highlights on the glass surface.
3890+
*/
3891+
readonly lightAngle: number
3892+
/**
3893+
* The intensity of the refraction distortion. Must be between 0 and 1. Higher values create more distortion.
3894+
*/
3895+
readonly refraction: number
3896+
/**
3897+
* The depth of the refraction effect. Must be >= 1. Higher values create deeper glass appearance.
3898+
*/
3899+
readonly depth: number
3900+
/**
3901+
* The amount of chromatic aberration (color separation). Must be between 0 and 1. Higher values create more rainbow-like distortion at edges.
3902+
*/
3903+
readonly dispersion: number
3904+
/**
3905+
* The radius of frost on the glass effect.
3906+
*/
3907+
readonly radius: number
3908+
/**
3909+
* Glass effects currently do not support binding variables.
3910+
*/
3911+
readonly boundVariables?: {}
38553912
}
38563913
/**
38573914
* @see https://www.figma.com/plugin-docs/api/Effect
@@ -3862,6 +3919,7 @@ declare type Effect =
38623919
| BlurEffect
38633920
| NoiseEffect
38643921
| TextureEffect
3922+
| GlassEffect
38653923
/**
38663924
* @see https://www.figma.com/plugin-docs/api/Constraints
38673925
*/
@@ -6515,9 +6573,10 @@ interface AutoLayoutMixin {
65156573
interface GridTrackSize {
65166574
/**
65176575
* Applicable only on FIXED grid tracks. The size of the track in pixels.
6576+
* Optional for `FLEX` tracks.
65186577
* If the setter for this value is called on a `FLEX` track, the track will be converted to a `FIXED` track.
65196578
*/
6520-
value: number
6579+
value?: number
65216580
/**
65226581
* 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.
65236582
**/
@@ -6548,6 +6607,7 @@ interface GridLayoutMixin {
65486607
* // + --- + --- + --- +
65496608
* // | | | |
65506609
* // + --- + --- + --- +
6610+
* ```
65516611
*/
65526612
gridRowCount: number
65536613
/**
@@ -10576,4 +10636,4 @@ interface FindAllCriteria<T extends NodeType[]> {
1057610636
}
1057710637

1057810638
// prettier-ignore
10579-
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 }
10639+
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 }

plugin-api.d.ts

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,6 +3773,10 @@ interface NoiseEffectBase {
37733773
* The color of the noise effect.
37743774
*/
37753775
readonly color: RGBA
3776+
/**
3777+
* Whether the noise effect is visible.
3778+
*/
3779+
readonly visible: boolean
37763780
/**
37773781
* The blend mode of the noise.
37783782
*/
@@ -3785,6 +3789,10 @@ interface NoiseEffectBase {
37853789
* The density of the noise effect.
37863790
*/
37873791
readonly density: number
3792+
/**
3793+
* Noise effects currently do not support binding variables.
3794+
*/
3795+
readonly boundVariables?: {}
37883796
}
37893797
/**
37903798
* @see https://www.figma.com/plugin-docs/api/Effect
@@ -3836,6 +3844,10 @@ interface TextureEffect {
38363844
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
38373845
*/
38383846
readonly type: 'TEXTURE'
3847+
/**
3848+
* Whether the texture effect is visible.
3849+
*/
3850+
readonly visible: boolean
38393851
/**
38403852
* The size of the texture effect.
38413853
*/
@@ -3848,6 +3860,51 @@ interface TextureEffect {
38483860
* Whether the texture is clipped to the shape.
38493861
*/
38503862
readonly clipToShape: boolean
3863+
/**
3864+
* Texture effects currently do not support binding variables.
3865+
*/
3866+
readonly boundVariables?: {}
3867+
}
3868+
/**
3869+
* @see https://www.figma.com/plugin-docs/api/Effect
3870+
*/
3871+
interface GlassEffect {
3872+
/**
3873+
* The string literal representing the type of effect this is. Always check the `type` before reading other properties.
3874+
*/
3875+
readonly type: 'GLASS'
3876+
/**
3877+
* Whether this glass effect is visible.
3878+
*/
3879+
readonly visible: boolean
3880+
/**
3881+
* The intensity of specular highlights. Must be between 0 and 1. Higher values create brighter highlights.
3882+
*/
3883+
readonly lightIntensity: number
3884+
/**
3885+
* The angle of the specular light in degrees. Controls the direction of highlights on the glass surface.
3886+
*/
3887+
readonly lightAngle: number
3888+
/**
3889+
* The intensity of the refraction distortion. Must be between 0 and 1. Higher values create more distortion.
3890+
*/
3891+
readonly refraction: number
3892+
/**
3893+
* The depth of the refraction effect. Must be >= 1. Higher values create deeper glass appearance.
3894+
*/
3895+
readonly depth: number
3896+
/**
3897+
* The amount of chromatic aberration (color separation). Must be between 0 and 1. Higher values create more rainbow-like distortion at edges.
3898+
*/
3899+
readonly dispersion: number
3900+
/**
3901+
* The radius of frost on the glass effect.
3902+
*/
3903+
readonly radius: number
3904+
/**
3905+
* Glass effects currently do not support binding variables.
3906+
*/
3907+
readonly boundVariables?: {}
38513908
}
38523909
/**
38533910
* @see https://www.figma.com/plugin-docs/api/Effect
@@ -3858,6 +3915,7 @@ declare type Effect =
38583915
| BlurEffect
38593916
| NoiseEffect
38603917
| TextureEffect
3918+
| GlassEffect
38613919
/**
38623920
* @see https://www.figma.com/plugin-docs/api/Constraints
38633921
*/
@@ -6511,9 +6569,10 @@ interface AutoLayoutMixin {
65116569
interface GridTrackSize {
65126570
/**
65136571
* Applicable only on FIXED grid tracks. The size of the track in pixels.
6572+
* Optional for `FLEX` tracks.
65146573
* If the setter for this value is called on a `FLEX` track, the track will be converted to a `FIXED` track.
65156574
*/
6516-
value: number
6575+
value?: number
65176576
/**
65186577
* 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.
65196578
**/
@@ -6544,6 +6603,7 @@ interface GridLayoutMixin {
65446603
* // + --- + --- + --- +
65456604
* // | | | |
65466605
* // + --- + --- + --- +
6606+
* ```
65476607
*/
65486608
gridRowCount: number
65496609
/**

0 commit comments

Comments
 (0)