toSlidesOps
toSlidesOps(
op): ({attribution?:string;bullets?:string[];chart?: {chart:"bar"|"line"|"pie";labels:string[];series:object[]; };id?:string;image?: {alt:string;url:string; };layout?:"title"|"title_bullets"|"section"|"two_column"|"chart_takeaway"|"image_full"|"quote"|"closing";notes?:string;position?:number;quote?:string;rightBullets?:string[];subtitle?:string;title?:string;type:"add_slide"; } | {attribution?:string;bullets?:string[];chart?: {chart:"bar"|"line"|"pie";labels:string[];series:object[]; };hidden?:boolean;image?: {alt:string;url:string; };layout?:"title"|"title_bullets"|"section"|"two_column"|"chart_takeaway"|"image_full"|"quote"|"closing";notes?:string;quote?:string;rightBullets?:string[];slide:string;subtitle?:string;title?:string;type:"update_slide"; } | {position:number;slide:string;type:"move_slide"; } | {slide:string;type:"delete_slide"; } | {overrides?: {accent?:string;background?:string; };themeId?:"studio"|"midnight";type:"set_theme"; } | {data?: {chart:"bar"|"line"|"pie";labels:string[];series:object[]; } | {alt:string;url:string; } | {header:boolean;rows:string[][]; } | {shape:"ellipse"|"line"|"rect"; };delete?:boolean;element:string;h?:number;rotation?:number;style?: {align?:"left"|"right"|"center";color?:string;fill?:string;opacity?:number;radius?:number;role?:"title"|"quote"|"subtitle"|"heading"|"body"|"caption";stroke?:string;valign?:"middle"|"top"|"bottom"; };text?:string;type:"edit_element";w?:number;x?:number;y?:number;z?:number; } | {data?: {chart:"bar"|"line"|"pie";labels:string[];series:object[]; } | {alt:string;url:string; } | {header:boolean;rows:string[][]; } | {shape:"ellipse"|"line"|"rect"; };h?:number;id?:string;kind:"shape"|"text"|"chart"|"image"|"table";slide:string;style?: {align?:"left"|"right"|"center";color?:string;fill?:string;opacity?:number;radius?:number;role?:"title"|"quote"|"subtitle"|"heading"|"body"|"caption";stroke?:string;valign?:"middle"|"top"|"bottom"; };text?:string;type:"add_element";w?:number;x?:number;y?:number; })[]
Defined in: tools/src/index.ts:1015
Parameters
Section titled “Parameters”{ shapes: object[]; type: "add_shapes"; } | { arrows: object[]; type: "connect"; } | { type: "update_shapes"; updates: object[]; } | { ids: string[]; type: "delete_shapes"; } | { position?: number; slides: object[]; type: "add_slides"; } | { attribution?: string; bullets?: string[]; chart?: { labels: string[]; series?: object[]; type: "bar" | "line" | "pie"; values?: number[]; }; hidden?: boolean; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; quote?: string; right_bullets?: string[]; slide: string; subtitle?: string; title?: string; type: "update_slide"; } | { position: number; slide: string; type: "move_slide"; } | { slide: string; type: "delete_slide"; } | { accent?: string; theme?: "studio" | "midnight"; type: "set_theme"; } | { delete?: boolean; element: string; h?: number; text?: string; type: "edit_element"; w?: number; x?: number; y?: number; } | { h: number; kind: "shape" | "text" | "table"; rows?: string[][]; slide: string; text?: string; type: "add_element"; w: number; x: number; y: number; }
Returns
Section titled “Returns”({ attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; id?: string; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; position?: number; quote?: string; rightBullets?: string[]; subtitle?: string; title?: string; type: "add_slide"; } | { attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; hidden?: boolean; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; quote?: string; rightBullets?: string[]; slide: string; subtitle?: string; title?: string; type: "update_slide"; } | { position: number; slide: string; type: "move_slide"; } | { slide: string; type: "delete_slide"; } | { overrides?: { accent?: string; background?: string; }; themeId?: "studio" | "midnight"; type: "set_theme"; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; delete?: boolean; element: string; h?: number; rotation?: number; style?: { align?: "left" | "right" | "center"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "middle" | "top" | "bottom"; }; text?: string; type: "edit_element"; w?: number; x?: number; y?: number; z?: number; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; h?: number; id?: string; kind: "shape" | "text" | "chart" | "image" | "table"; slide: string; style?: { align?: "left" | "right" | "center"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "middle" | "top" | "bottom"; }; text?: string; type: "add_element"; w?: number; x?: number; y?: number; })[]