From 4198251dc45304e5c038ac5b4f75b957e3a6cb7a Mon Sep 17 00:00:00 2001 From: Donovan So Date: Sat, 26 Nov 2022 11:35:44 -0500 Subject: [PATCH] add absoluteRenderBounds field I needed to use `absoluteRenderBounds` but it isn't in the types, perhaps it's new? Reference: https://www.figma.com/developers/api --- src/figmaTypes.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/figmaTypes.ts b/src/figmaTypes.ts index 8f3f98a..314b27d 100644 --- a/src/figmaTypes.ts +++ b/src/figmaTypes.ts @@ -235,6 +235,8 @@ export interface FrameBase extends Global { readonly opacity?: number; /** Bounding box of the node in absolute space coordinates */ readonly absoluteBoundingBox: Rect; + /** The bounds of the rendered node in the file in absolute space coordinates */ + readonly absoluteRenderBounds: Rect; /** * Width and height of element. This is different from the width and height @@ -403,6 +405,8 @@ export interface VectorBase extends Global { readonly opacity?: number; /** Bounding box of the node in absolute space coordinates */ readonly absoluteBoundingBox: Rect; + /** The bounds of the rendered node in the file in absolute space coordinates */ + readonly absoluteRenderBounds: Rect; /** * Width and height of element. This is different from the width and height @@ -545,6 +549,8 @@ export interface Slice extends Global { readonly exportSettings: ReadonlyArray; /** Bounding box of the node in absolute space coordinates */ readonly absoluteBoundingBox: Rect; + /** The bounds of the rendered node in the file in absolute space coordinates */ + readonly absoluteRenderBounds: Rect; /** * Width and height of element. This is different from the width and height * of the bounding box in that the absolute bounding box represents the