diff --git a/plugin-api-standalone.d.ts b/plugin-api-standalone.d.ts index e7d33c3..116ffc9 100644 --- a/plugin-api-standalone.d.ts +++ b/plugin-api-standalone.d.ts @@ -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. */ @@ -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 @@ -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. */ @@ -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 @@ -3862,6 +3919,7 @@ declare type Effect = | BlurEffect | NoiseEffect | TextureEffect + | GlassEffect /** * @see https://www.figma.com/plugin-docs/api/Constraints */ @@ -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. **/ @@ -6548,6 +6607,7 @@ interface GridLayoutMixin { * // + --- + --- + --- + * // | | | | * // + --- + --- + --- + + * ``` */ gridRowCount: number /** @@ -10576,4 +10636,4 @@ interface FindAllCriteria { } // 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 } diff --git a/plugin-api.d.ts b/plugin-api.d.ts index 2aa4ca3..bbe9799 100644 --- a/plugin-api.d.ts +++ b/plugin-api.d.ts @@ -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. */ @@ -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 @@ -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. */ @@ -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 @@ -3858,6 +3915,7 @@ declare type Effect = | BlurEffect | NoiseEffect | TextureEffect + | GlassEffect /** * @see https://www.figma.com/plugin-docs/api/Constraints */ @@ -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. **/ @@ -6544,6 +6603,7 @@ interface GridLayoutMixin { * // + --- + --- + --- + * // | | | | * // + --- + --- + --- + + * ``` */ gridRowCount: number /**