From 8727bf0b77e522ca42971da1a678de6a9fecd1ad Mon Sep 17 00:00:00 2001 From: Jonathan Kaufman Date: Wed, 25 Sep 2024 15:22:04 -0400 Subject: [PATCH] add createSlide and createSlideRow and add new node types to SceneNode --- plugin-api-standalone.d.ts | 6 ++++++ plugin-api.d.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/plugin-api-standalone.d.ts b/plugin-api-standalone.d.ts index 87834d3..fd1f407 100644 --- a/plugin-api-standalone.d.ts +++ b/plugin-api-standalone.d.ts @@ -92,6 +92,8 @@ interface PluginAPI { createComponentFromNode(node: SceneNode): ComponentNode createPage(): PageNode createSlice(): SliceNode + createSlide(row?: number, col?: number): SlideNode + createSlideRow(row?: number): SlideRowNode createSticky(): StickyNode createConnector(): ConnectorNode createShapeWithText(): ShapeWithTextNode @@ -2584,6 +2586,10 @@ declare type SceneNode = | HighlightNode | WashiTapeNode | TableNode + | SlideNode + | SlideRowNode + | SlideGridNode + | InteractiveSlideElementNode declare type NodeType = BaseNode['type'] declare type StyleType = 'PAINT' | 'TEXT' | 'EFFECT' | 'GRID' declare type InheritedStyleField = diff --git a/plugin-api.d.ts b/plugin-api.d.ts index c190f9c..d5578b1 100644 --- a/plugin-api.d.ts +++ b/plugin-api.d.ts @@ -88,6 +88,8 @@ interface PluginAPI { createComponentFromNode(node: SceneNode): ComponentNode createPage(): PageNode createSlice(): SliceNode + createSlide(row?: number, col?: number): SlideNode + createSlideRow(row?: number): SlideRowNode createSticky(): StickyNode createConnector(): ConnectorNode createShapeWithText(): ShapeWithTextNode @@ -2580,6 +2582,10 @@ declare type SceneNode = | HighlightNode | WashiTapeNode | TableNode + | SlideNode + | SlideRowNode + | SlideGridNode + | InteractiveSlideElementNode declare type NodeType = BaseNode['type'] declare type StyleType = 'PAINT' | 'TEXT' | 'EFFECT' | 'GRID' declare type InheritedStyleField =