| |
| |
| |
| |
| |
| |
| |
| |
|
|
| export as namespace PptxGenJS |
|
|
| export default PptxGenJS |
|
|
| declare class PptxGenJS { |
| |
| |
| |
| |
| readonly version: string |
|
|
| |
| readonly presLayout: PptxGenJS.PresLayout |
| readonly AlignH: typeof PptxGenJS.AlignH |
| readonly AlignV: typeof PptxGenJS.AlignV |
| readonly ChartType: typeof PptxGenJS.ChartType |
| readonly OutputType: typeof PptxGenJS.OutputType |
| readonly SchemeColor: typeof PptxGenJS.SchemeColor |
| readonly ShapeType: typeof PptxGenJS.ShapeType |
| readonly PlaceholderType: typeof PptxGenJS.PLACEHOLDER_TYPES |
|
|
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| layout: string |
| |
| |
| |
| |
| rtlMode: boolean |
|
|
| |
| |
| |
| |
| |
| author: string |
| |
| |
| |
| |
| company: string |
| |
| |
| |
| |
| revision: string |
| |
| |
| |
| |
| subject: string |
| |
| |
| |
| |
| theme: PptxGenJS.ThemeProps |
| |
| |
| |
| |
| title: string |
|
|
| |
|
|
| |
| |
| |
| |
| |
| stream(props?: PptxGenJS.WriteBaseProps): Promise<string | ArrayBuffer | Blob | Uint8Array> |
| |
| |
| |
| |
| |
| write(props?: PptxGenJS.WriteProps): Promise<string | ArrayBuffer | Blob | Uint8Array> |
| |
| |
| |
| |
| |
| |
| |
| writeFile(props?: PptxGenJS.WriteFileProps): Promise<string> |
| |
| |
| |
| |
| |
| addSection(props: PptxGenJS.SectionProps): void |
| |
| |
| |
| |
| |
| addSlide(props?: PptxGenJS.AddSlideProps): PptxGenJS.Slide |
| |
| |
| |
| |
| |
| |
| addSlide(masterName?: string): PptxGenJS.Slide |
| |
| |
| |
| |
| |
| defineLayout(layout: PptxGenJS.PresLayout): void |
| |
| |
| |
| |
| defineSlideMaster(props: PptxGenJS.SlideMasterProps): void |
| |
| |
| |
| |
| |
| tableToSlides(eleId: string, props?: PptxGenJS.TableToSlidesProps): void |
| } |
|
|
| declare namespace PptxGenJS { |
| |
| |
| export enum AlignH { |
| 'left' = 'left', |
| 'center' = 'center', |
| 'right' = 'right', |
| 'justify' = 'justify', |
| } |
| export enum AlignV { |
| 'top' = 'top', |
| 'middle' = 'middle', |
| 'bottom' = 'bottom', |
| } |
| export enum ChartType { |
| 'area' = 'area', |
| 'bar' = 'bar', |
| 'bar3d' = 'bar3D', |
| 'bubble' = 'bubble', |
| 'bubble3d' = 'bubble3D', |
| 'doughnut' = 'doughnut', |
| 'line' = 'line', |
| 'pie' = 'pie', |
| 'radar' = 'radar', |
| 'scatter' = 'scatter', |
| } |
| export enum OutputType { |
| 'arraybuffer' = 'arraybuffer', |
| 'base64' = 'base64', |
| 'binarystring' = 'binarystring', |
| 'blob' = 'blob', |
| 'nodebuffer' = 'nodebuffer', |
| 'uint8array' = 'uint8array', |
| } |
| |
| |
| |
| export enum SchemeColor { |
| 'text1' = 'tx1', |
| 'text2' = 'tx2', |
| 'background1' = 'bg1', |
| 'background2' = 'bg2', |
| 'accent1' = 'accent1', |
| 'accent2' = 'accent2', |
| 'accent3' = 'accent3', |
| 'accent4' = 'accent4', |
| 'accent5' = 'accent5', |
| 'accent6' = 'accent6', |
| } |
| export enum ShapeType { |
| 'accentBorderCallout1' = 'accentBorderCallout1', |
| 'accentBorderCallout2' = 'accentBorderCallout2', |
| 'accentBorderCallout3' = 'accentBorderCallout3', |
| 'accentCallout1' = 'accentCallout1', |
| 'accentCallout2' = 'accentCallout2', |
| 'accentCallout3' = 'accentCallout3', |
| 'actionButtonBackPrevious' = 'actionButtonBackPrevious', |
| 'actionButtonBeginning' = 'actionButtonBeginning', |
| 'actionButtonBlank' = 'actionButtonBlank', |
| 'actionButtonDocument' = 'actionButtonDocument', |
| 'actionButtonEnd' = 'actionButtonEnd', |
| 'actionButtonForwardNext' = 'actionButtonForwardNext', |
| 'actionButtonHelp' = 'actionButtonHelp', |
| 'actionButtonHome' = 'actionButtonHome', |
| 'actionButtonInformation' = 'actionButtonInformation', |
| 'actionButtonMovie' = 'actionButtonMovie', |
| 'actionButtonReturn' = 'actionButtonReturn', |
| 'actionButtonSound' = 'actionButtonSound', |
| 'arc' = 'arc', |
| 'bentArrow' = 'bentArrow', |
| 'bentUpArrow' = 'bentUpArrow', |
| 'bevel' = 'bevel', |
| 'blockArc' = 'blockArc', |
| 'borderCallout1' = 'borderCallout1', |
| 'borderCallout2' = 'borderCallout2', |
| 'borderCallout3' = 'borderCallout3', |
| 'bracePair' = 'bracePair', |
| 'bracketPair' = 'bracketPair', |
| 'callout1' = 'callout1', |
| 'callout2' = 'callout2', |
| 'callout3' = 'callout3', |
| 'can' = 'can', |
| 'chartPlus' = 'chartPlus', |
| 'chartStar' = 'chartStar', |
| 'chartX' = 'chartX', |
| 'chevron' = 'chevron', |
| 'chord' = 'chord', |
| 'circularArrow' = 'circularArrow', |
| 'cloud' = 'cloud', |
| 'cloudCallout' = 'cloudCallout', |
| 'corner' = 'corner', |
| 'cornerTabs' = 'cornerTabs', |
| 'cube' = 'cube', |
| 'curvedDownArrow' = 'curvedDownArrow', |
| 'curvedLeftArrow' = 'curvedLeftArrow', |
| 'curvedRightArrow' = 'curvedRightArrow', |
| 'curvedUpArrow' = 'curvedUpArrow', |
| 'decagon' = 'decagon', |
| 'diagStripe' = 'diagStripe', |
| 'diamond' = 'diamond', |
| 'dodecagon' = 'dodecagon', |
| 'donut' = 'donut', |
| 'doubleWave' = 'doubleWave', |
| 'downArrow' = 'downArrow', |
| 'downArrowCallout' = 'downArrowCallout', |
| 'ellipse' = 'ellipse', |
| 'ellipseRibbon' = 'ellipseRibbon', |
| 'ellipseRibbon2' = 'ellipseRibbon2', |
| 'flowChartAlternateProcess' = 'flowChartAlternateProcess', |
| 'flowChartCollate' = 'flowChartCollate', |
| 'flowChartConnector' = 'flowChartConnector', |
| 'flowChartDecision' = 'flowChartDecision', |
| 'flowChartDelay' = 'flowChartDelay', |
| 'flowChartDisplay' = 'flowChartDisplay', |
| 'flowChartDocument' = 'flowChartDocument', |
| 'flowChartExtract' = 'flowChartExtract', |
| 'flowChartInputOutput' = 'flowChartInputOutput', |
| 'flowChartInternalStorage' = 'flowChartInternalStorage', |
| 'flowChartMagneticDisk' = 'flowChartMagneticDisk', |
| 'flowChartMagneticDrum' = 'flowChartMagneticDrum', |
| 'flowChartMagneticTape' = 'flowChartMagneticTape', |
| 'flowChartManualInput' = 'flowChartManualInput', |
| 'flowChartManualOperation' = 'flowChartManualOperation', |
| 'flowChartMerge' = 'flowChartMerge', |
| 'flowChartMultidocument' = 'flowChartMultidocument', |
| 'flowChartOfflineStorage' = 'flowChartOfflineStorage', |
| 'flowChartOffpageConnector' = 'flowChartOffpageConnector', |
| 'flowChartOnlineStorage' = 'flowChartOnlineStorage', |
| 'flowChartOr' = 'flowChartOr', |
| 'flowChartPredefinedProcess' = 'flowChartPredefinedProcess', |
| 'flowChartPreparation' = 'flowChartPreparation', |
| 'flowChartProcess' = 'flowChartProcess', |
| 'flowChartPunchedCard' = 'flowChartPunchedCard', |
| 'flowChartPunchedTape' = 'flowChartPunchedTape', |
| 'flowChartSort' = 'flowChartSort', |
| 'flowChartSummingJunction' = 'flowChartSummingJunction', |
| 'flowChartTerminator' = 'flowChartTerminator', |
| 'folderCorner' = 'folderCorner', |
| 'frame' = 'frame', |
| 'funnel' = 'funnel', |
| 'gear6' = 'gear6', |
| 'gear9' = 'gear9', |
| 'halfFrame' = 'halfFrame', |
| 'heart' = 'heart', |
| 'heptagon' = 'heptagon', |
| 'hexagon' = 'hexagon', |
| 'homePlate' = 'homePlate', |
| 'horizontalScroll' = 'horizontalScroll', |
| 'irregularSeal1' = 'irregularSeal1', |
| 'irregularSeal2' = 'irregularSeal2', |
| 'leftArrow' = 'leftArrow', |
| 'leftArrowCallout' = 'leftArrowCallout', |
| 'leftBrace' = 'leftBrace', |
| 'leftBracket' = 'leftBracket', |
| 'leftCircularArrow' = 'leftCircularArrow', |
| 'leftRightArrow' = 'leftRightArrow', |
| 'leftRightArrowCallout' = 'leftRightArrowCallout', |
| 'leftRightCircularArrow' = 'leftRightCircularArrow', |
| 'leftRightRibbon' = 'leftRightRibbon', |
| 'leftRightUpArrow' = 'leftRightUpArrow', |
| 'leftUpArrow' = 'leftUpArrow', |
| 'lightningBolt' = 'lightningBolt', |
| 'line' = 'line', |
| 'lineInv' = 'lineInv', |
| 'mathDivide' = 'mathDivide', |
| 'mathEqual' = 'mathEqual', |
| 'mathMinus' = 'mathMinus', |
| 'mathMultiply' = 'mathMultiply', |
| 'mathNotEqual' = 'mathNotEqual', |
| 'mathPlus' = 'mathPlus', |
| 'moon' = 'moon', |
| 'nonIsoscelesTrapezoid' = 'nonIsoscelesTrapezoid', |
| 'noSmoking' = 'noSmoking', |
| 'notchedRightArrow' = 'notchedRightArrow', |
| 'octagon' = 'octagon', |
| 'parallelogram' = 'parallelogram', |
| 'pentagon' = 'pentagon', |
| 'pie' = 'pie', |
| 'pieWedge' = 'pieWedge', |
| 'plaque' = 'plaque', |
| 'plaqueTabs' = 'plaqueTabs', |
| 'plus' = 'plus', |
| 'quadArrow' = 'quadArrow', |
| 'quadArrowCallout' = 'quadArrowCallout', |
| 'rect' = 'rect', |
| 'ribbon' = 'ribbon', |
| 'ribbon2' = 'ribbon2', |
| 'rightArrow' = 'rightArrow', |
| 'rightArrowCallout' = 'rightArrowCallout', |
| 'rightBrace' = 'rightBrace', |
| 'rightBracket' = 'rightBracket', |
| 'round1Rect' = 'round1Rect', |
| 'round2DiagRect' = 'round2DiagRect', |
| 'round2SameRect' = 'round2SameRect', |
| 'roundRect' = 'roundRect', |
| 'rtTriangle' = 'rtTriangle', |
| 'smileyFace' = 'smileyFace', |
| 'snip1Rect' = 'snip1Rect', |
| 'snip2DiagRect' = 'snip2DiagRect', |
| 'snip2SameRect' = 'snip2SameRect', |
| 'snipRoundRect' = 'snipRoundRect', |
| 'squareTabs' = 'squareTabs', |
| 'star10' = 'star10', |
| 'star12' = 'star12', |
| 'star16' = 'star16', |
| 'star24' = 'star24', |
| 'star32' = 'star32', |
| 'star4' = 'star4', |
| 'star5' = 'star5', |
| 'star6' = 'star6', |
| 'star7' = 'star7', |
| 'star8' = 'star8', |
| 'stripedRightArrow' = 'stripedRightArrow', |
| 'sun' = 'sun', |
| 'swooshArrow' = 'swooshArrow', |
| 'teardrop' = 'teardrop', |
| 'trapezoid' = 'trapezoid', |
| 'triangle' = 'triangle', |
| 'upArrow' = 'upArrow', |
| 'upArrowCallout' = 'upArrowCallout', |
| 'upDownArrow' = 'upDownArrow', |
| 'upDownArrowCallout' = 'upDownArrowCallout', |
| 'uturnArrow' = 'uturnArrow', |
| 'verticalScroll' = 'verticalScroll', |
| 'wave' = 'wave', |
| 'wedgeEllipseCallout' = 'wedgeEllipseCallout', |
| 'wedgeRectCallout' = 'wedgeRectCallout', |
| 'wedgeRoundRectCallout' = 'wedgeRoundRectCallout', |
| } |
| |
| export interface BorderOptions { |
| |
| |
| |
| type?: 'none' | 'dash' | 'solid' |
| |
| |
| |
| |
| color?: HexColor |
| |
| |
| |
| pt?: number |
| } |
| |
| |
| |
| export enum charts { |
| 'AREA' = 'area', |
| 'BAR' = 'bar', |
| 'BAR3D' = 'bar3D', |
| 'BUBBLE' = 'bubble', |
| 'DOUGHNUT' = 'doughnut', |
| 'LINE' = 'line', |
| 'PIE' = 'pie', |
| 'RADAR' = 'radar', |
| 'SCATTER' = 'scatter', |
| } |
| export enum shapes { |
| ACTION_BUTTON_BACK_OR_PREVIOUS = 'actionButtonBackPrevious', |
| ACTION_BUTTON_BEGINNING = 'actionButtonBeginning', |
| ACTION_BUTTON_CUSTOM = 'actionButtonBlank', |
| ACTION_BUTTON_DOCUMENT = 'actionButtonDocument', |
| ACTION_BUTTON_END = 'actionButtonEnd', |
| ACTION_BUTTON_FORWARD_OR_NEXT = 'actionButtonForwardNext', |
| ACTION_BUTTON_HELP = 'actionButtonHelp', |
| ACTION_BUTTON_HOME = 'actionButtonHome', |
| ACTION_BUTTON_INFORMATION = 'actionButtonInformation', |
| ACTION_BUTTON_MOVIE = 'actionButtonMovie', |
| ACTION_BUTTON_RETURN = 'actionButtonReturn', |
| ACTION_BUTTON_SOUND = 'actionButtonSound', |
| ARC = 'arc', |
| BALLOON = 'wedgeRoundRectCallout', |
| BENT_ARROW = 'bentArrow', |
| BENT_UP_ARROW = 'bentUpArrow', |
| BEVEL = 'bevel', |
| BLOCK_ARC = 'blockArc', |
| CAN = 'can', |
| CHART_PLUS = 'chartPlus', |
| CHART_STAR = 'chartStar', |
| CHART_X = 'chartX', |
| CHEVRON = 'chevron', |
| CHORD = 'chord', |
| CIRCULAR_ARROW = 'circularArrow', |
| CLOUD = 'cloud', |
| CLOUD_CALLOUT = 'cloudCallout', |
| CORNER = 'corner', |
| CORNER_TABS = 'cornerTabs', |
| CROSS = 'plus', |
| CUBE = 'cube', |
| CURVED_DOWN_ARROW = 'curvedDownArrow', |
| CURVED_DOWN_RIBBON = 'ellipseRibbon', |
| CURVED_LEFT_ARROW = 'curvedLeftArrow', |
| CURVED_RIGHT_ARROW = 'curvedRightArrow', |
| CURVED_UP_ARROW = 'curvedUpArrow', |
| CURVED_UP_RIBBON = 'ellipseRibbon2', |
| DECAGON = 'decagon', |
| DIAGONAL_STRIPE = 'diagStripe', |
| DIAMOND = 'diamond', |
| DODECAGON = 'dodecagon', |
| DONUT = 'donut', |
| DOUBLE_BRACE = 'bracePair', |
| DOUBLE_BRACKET = 'bracketPair', |
| DOUBLE_WAVE = 'doubleWave', |
| DOWN_ARROW = 'downArrow', |
| DOWN_ARROW_CALLOUT = 'downArrowCallout', |
| DOWN_RIBBON = 'ribbon', |
| EXPLOSION1 = 'irregularSeal1', |
| EXPLOSION2 = 'irregularSeal2', |
| FLOWCHART_ALTERNATE_PROCESS = 'flowChartAlternateProcess', |
| FLOWCHART_CARD = 'flowChartPunchedCard', |
| FLOWCHART_COLLATE = 'flowChartCollate', |
| FLOWCHART_CONNECTOR = 'flowChartConnector', |
| FLOWCHART_DATA = 'flowChartInputOutput', |
| FLOWCHART_DECISION = 'flowChartDecision', |
| FLOWCHART_DELAY = 'flowChartDelay', |
| FLOWCHART_DIRECT_ACCESS_STORAGE = 'flowChartMagneticDrum', |
| FLOWCHART_DISPLAY = 'flowChartDisplay', |
| FLOWCHART_DOCUMENT = 'flowChartDocument', |
| FLOWCHART_EXTRACT = 'flowChartExtract', |
| FLOWCHART_INTERNAL_STORAGE = 'flowChartInternalStorage', |
| FLOWCHART_MAGNETIC_DISK = 'flowChartMagneticDisk', |
| FLOWCHART_MANUAL_INPUT = 'flowChartManualInput', |
| FLOWCHART_MANUAL_OPERATION = 'flowChartManualOperation', |
| FLOWCHART_MERGE = 'flowChartMerge', |
| FLOWCHART_MULTIDOCUMENT = 'flowChartMultidocument', |
| FLOWCHART_OFFLINE_STORAGE = 'flowChartOfflineStorage', |
| FLOWCHART_OFFPAGE_CONNECTOR = 'flowChartOffpageConnector', |
| FLOWCHART_OR = 'flowChartOr', |
| FLOWCHART_PREDEFINED_PROCESS = 'flowChartPredefinedProcess', |
| FLOWCHART_PREPARATION = 'flowChartPreparation', |
| FLOWCHART_PROCESS = 'flowChartProcess', |
| FLOWCHART_PUNCHED_TAPE = 'flowChartPunchedTape', |
| FLOWCHART_SEQUENTIAL_ACCESS_STORAGE = 'flowChartMagneticTape', |
| FLOWCHART_SORT = 'flowChartSort', |
| FLOWCHART_STORED_DATA = 'flowChartOnlineStorage', |
| FLOWCHART_SUMMING_JUNCTION = 'flowChartSummingJunction', |
| FLOWCHART_TERMINATOR = 'flowChartTerminator', |
| FOLDED_CORNER = 'folderCorner', |
| FRAME = 'frame', |
| FUNNEL = 'funnel', |
| GEAR_6 = 'gear6', |
| GEAR_9 = 'gear9', |
| HALF_FRAME = 'halfFrame', |
| HEART = 'heart', |
| HEPTAGON = 'heptagon', |
| HEXAGON = 'hexagon', |
| HORIZONTAL_SCROLL = 'horizontalScroll', |
| ISOSCELES_TRIANGLE = 'triangle', |
| LEFT_ARROW = 'leftArrow', |
| LEFT_ARROW_CALLOUT = 'leftArrowCallout', |
| LEFT_BRACE = 'leftBrace', |
| LEFT_BRACKET = 'leftBracket', |
| LEFT_CIRCULAR_ARROW = 'leftCircularArrow', |
| LEFT_RIGHT_ARROW = 'leftRightArrow', |
| LEFT_RIGHT_ARROW_CALLOUT = 'leftRightArrowCallout', |
| LEFT_RIGHT_CIRCULAR_ARROW = 'leftRightCircularArrow', |
| LEFT_RIGHT_RIBBON = 'leftRightRibbon', |
| LEFT_RIGHT_UP_ARROW = 'leftRightUpArrow', |
| LEFT_UP_ARROW = 'leftUpArrow', |
| LIGHTNING_BOLT = 'lightningBolt', |
| LINE_CALLOUT_1 = 'borderCallout1', |
| LINE_CALLOUT_1_ACCENT_BAR = 'accentCallout1', |
| LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR = 'accentBorderCallout1', |
| LINE_CALLOUT_1_NO_BORDER = 'callout1', |
| LINE_CALLOUT_2 = 'borderCallout2', |
| LINE_CALLOUT_2_ACCENT_BAR = 'accentCallout2', |
| LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR = 'accentBorderCallout2', |
| LINE_CALLOUT_2_NO_BORDER = 'callout2', |
| LINE_CALLOUT_3 = 'borderCallout3', |
| LINE_CALLOUT_3_ACCENT_BAR = 'accentCallout3', |
| LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR = 'accentBorderCallout3', |
| LINE_CALLOUT_3_NO_BORDER = 'callout3', |
| LINE_CALLOUT_4 = 'borderCallout4', |
| LINE_CALLOUT_4_ACCENT_BAR = 'accentCallout4', |
| LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR = 'accentBorderCallout4', |
| LINE_CALLOUT_4_NO_BORDER = 'callout4', |
| LINE = 'line', |
| LINE_INVERSE = 'lineInv', |
| MATH_DIVIDE = 'mathDivide', |
| MATH_EQUAL = 'mathEqual', |
| MATH_MINUS = 'mathMinus', |
| MATH_MULTIPLY = 'mathMultiply', |
| MATH_NOT_EQUAL = 'mathNotEqual', |
| MATH_PLUS = 'mathPlus', |
| MOON = 'moon', |
| NON_ISOSCELES_TRAPEZOID = 'nonIsoscelesTrapezoid', |
| NOTCHED_RIGHT_ARROW = 'notchedRightArrow', |
| NO_SYMBOL = 'noSmoking', |
| OCTAGON = 'octagon', |
| OVAL = 'ellipse', |
| OVAL_CALLOUT = 'wedgeEllipseCallout', |
| PARALLELOGRAM = 'parallelogram', |
| PENTAGON = 'homePlate', |
| PIE = 'pie', |
| PIE_WEDGE = 'pieWedge', |
| PLAQUE = 'plaque', |
| PLAQUE_TABS = 'plaqueTabs', |
| QUAD_ARROW = 'quadArrow', |
| QUAD_ARROW_CALLOUT = 'quadArrowCallout', |
| RECTANGLE = 'rect', |
| RECTANGULAR_CALLOUT = 'wedgeRectCallout', |
| REGULAR_PENTAGON = 'pentagon', |
| RIGHT_ARROW = 'rightArrow', |
| RIGHT_ARROW_CALLOUT = 'rightArrowCallout', |
| RIGHT_BRACE = 'rightBrace', |
| RIGHT_BRACKET = 'rightBracket', |
| RIGHT_TRIANGLE = 'rtTriangle', |
| ROUNDED_RECTANGLE = 'roundRect', |
| ROUNDED_RECTANGULAR_CALLOUT = 'wedgeRoundRectCallout', |
| ROUND_1_RECTANGLE = 'round1Rect', |
| ROUND_2_DIAG_RECTANGLE = 'round2DiagRect', |
| ROUND_2_SAME_RECTANGLE = 'round2SameRect', |
| SMILEY_FACE = 'smileyFace', |
| SNIP_1_RECTANGLE = 'snip1Rect', |
| SNIP_2_DIAG_RECTANGLE = 'snip2DiagRect', |
| SNIP_2_SAME_RECTANGLE = 'snip2SameRect', |
| SNIP_ROUND_RECTANGLE = 'snipRoundRect', |
| SQUARE_TABS = 'squareTabs', |
| STAR_10_POINT = 'star10', |
| STAR_12_POINT = 'star12', |
| STAR_16_POINT = 'star16', |
| STAR_24_POINT = 'star24', |
| STAR_32_POINT = 'star32', |
| STAR_4_POINT = 'star4', |
| STAR_5_POINT = 'star5', |
| STAR_6_POINT = 'star6', |
| STAR_7_POINT = 'star7', |
| STAR_8_POINT = 'star8', |
| STRIPED_RIGHT_ARROW = 'stripedRightArrow', |
| SUN = 'sun', |
| SWOOSH_ARROW = 'swooshArrow', |
| TEAR = 'teardrop', |
| TRAPEZOID = 'trapezoid', |
| UP_ARROW = 'upArrow', |
| UP_ARROW_CALLOUT = 'upArrowCallout', |
| UP_DOWN_ARROW = 'upDownArrow', |
| UP_DOWN_ARROW_CALLOUT = 'upDownArrowCallout', |
| UP_RIBBON = 'ribbon2', |
| U_TURN_ARROW = 'uturnArrow', |
| VERTICAL_SCROLL = 'verticalScroll', |
| WAVE = 'wave', |
| } |
|
|
| |
| export type JSZIP_OUTPUT_TYPE = 'arraybuffer' | 'base64' | 'binarystring' | 'blob' | 'nodebuffer' | 'uint8array' |
| export type WRITE_OUTPUT_TYPE = JSZIP_OUTPUT_TYPE | 'STREAM' |
| export enum CHART_TYPE { |
| 'AREA' = 'area', |
| 'BAR' = 'bar', |
| 'BAR3D' = 'bar3D', |
| 'BUBBLE' = 'bubble', |
| 'DOUGHNUT' = 'doughnut', |
| 'LINE' = 'line', |
| 'PIE' = 'pie', |
| 'RADAR' = 'radar', |
| 'SCATTER' = 'scatter', |
| } |
| export enum SCHEME_COLOR_NAMES { |
| 'TEXT1' = 'tx1', |
| 'TEXT2' = 'tx2', |
| 'BACKGROUND1' = 'bg1', |
| 'BACKGROUND2' = 'bg2', |
| 'ACCENT1' = 'accent1', |
| 'ACCENT2' = 'accent2', |
| 'ACCENT3' = 'accent3', |
| 'ACCENT4' = 'accent4', |
| 'ACCENT5' = 'accent5', |
| 'ACCENT6' = 'accent6', |
| } |
|
|
| |
| |
| export type CHART_NAME = 'area' | 'bar' | 'bar3D' | 'bubble' | 'doughnut' | 'line' | 'pie' | 'radar' | 'scatter' |
| export enum PLACEHOLDER_TYPES { |
| 'title' = 'title', |
| 'body' = 'body', |
| 'image' = 'pic', |
| 'chart' = 'chart', |
| 'table' = 'tbl', |
| 'media' = 'media', |
| } |
| export type PLACEHOLDER_TYPE = 'title' | 'body' | 'pic' | 'chart' | 'tbl' | 'media' |
|
|
| export type SHAPE_NAME = |
| | 'accentBorderCallout1' |
| | 'accentBorderCallout2' |
| | 'accentBorderCallout3' |
| | 'accentCallout1' |
| | 'accentCallout2' |
| | 'accentCallout3' |
| | 'actionButtonBackPrevious' |
| | 'actionButtonBeginning' |
| | 'actionButtonBlank' |
| | 'actionButtonDocument' |
| | 'actionButtonEnd' |
| | 'actionButtonForwardNext' |
| | 'actionButtonHelp' |
| | 'actionButtonHome' |
| | 'actionButtonInformation' |
| | 'actionButtonMovie' |
| | 'actionButtonReturn' |
| | 'actionButtonSound' |
| | 'arc' |
| | 'bentArrow' |
| | 'bentUpArrow' |
| | 'bevel' |
| | 'blockArc' |
| | 'borderCallout1' |
| | 'borderCallout2' |
| | 'borderCallout3' |
| | 'bracePair' |
| | 'bracketPair' |
| | 'callout1' |
| | 'callout2' |
| | 'callout3' |
| | 'can' |
| | 'chartPlus' |
| | 'chartStar' |
| | 'chartX' |
| | 'chevron' |
| | 'chord' |
| | 'circularArrow' |
| | 'cloud' |
| | 'cloudCallout' |
| | 'corner' |
| | 'cornerTabs' |
| | 'cube' |
| | 'curvedDownArrow' |
| | 'curvedLeftArrow' |
| | 'curvedRightArrow' |
| | 'curvedUpArrow' |
| | 'decagon' |
| | 'diagStripe' |
| | 'diamond' |
| | 'dodecagon' |
| | 'donut' |
| | 'doubleWave' |
| | 'downArrow' |
| | 'downArrowCallout' |
| | 'ellipse' |
| | 'ellipseRibbon' |
| | 'ellipseRibbon2' |
| | 'flowChartAlternateProcess' |
| | 'flowChartCollate' |
| | 'flowChartConnector' |
| | 'flowChartDecision' |
| | 'flowChartDelay' |
| | 'flowChartDisplay' |
| | 'flowChartDocument' |
| | 'flowChartExtract' |
| | 'flowChartInputOutput' |
| | 'flowChartInternalStorage' |
| | 'flowChartMagneticDisk' |
| | 'flowChartMagneticDrum' |
| | 'flowChartMagneticTape' |
| | 'flowChartManualInput' |
| | 'flowChartManualOperation' |
| | 'flowChartMerge' |
| | 'flowChartMultidocument' |
| | 'flowChartOfflineStorage' |
| | 'flowChartOffpageConnector' |
| | 'flowChartOnlineStorage' |
| | 'flowChartOr' |
| | 'flowChartPredefinedProcess' |
| | 'flowChartPreparation' |
| | 'flowChartProcess' |
| | 'flowChartPunchedCard' |
| | 'flowChartPunchedTape' |
| | 'flowChartSort' |
| | 'flowChartSummingJunction' |
| | 'flowChartTerminator' |
| | 'folderCorner' |
| | 'frame' |
| | 'funnel' |
| | 'gear6' |
| | 'gear9' |
| | 'halfFrame' |
| | 'heart' |
| | 'heptagon' |
| | 'hexagon' |
| | 'homePlate' |
| | 'horizontalScroll' |
| | 'irregularSeal1' |
| | 'irregularSeal2' |
| | 'leftArrow' |
| | 'leftArrowCallout' |
| | 'leftBrace' |
| | 'leftBracket' |
| | 'leftCircularArrow' |
| | 'leftRightArrow' |
| | 'leftRightArrowCallout' |
| | 'leftRightCircularArrow' |
| | 'leftRightRibbon' |
| | 'leftRightUpArrow' |
| | 'leftUpArrow' |
| | 'lightningBolt' |
| | 'line' |
| | 'lineInv' |
| | 'mathDivide' |
| | 'mathEqual' |
| | 'mathMinus' |
| | 'mathMultiply' |
| | 'mathNotEqual' |
| | 'mathPlus' |
| | 'moon' |
| | 'noSmoking' |
| | 'nonIsoscelesTrapezoid' |
| | 'notchedRightArrow' |
| | 'octagon' |
| | 'parallelogram' |
| | 'pentagon' |
| | 'pie' |
| | 'pieWedge' |
| | 'plaque' |
| | 'plaqueTabs' |
| | 'plus' |
| | 'quadArrow' |
| | 'quadArrowCallout' |
| | 'rect' |
| | 'ribbon' |
| | 'ribbon2' |
| | 'rightArrow' |
| | 'rightArrowCallout' |
| | 'rightBrace' |
| | 'rightBracket' |
| | 'round1Rect' |
| | 'round2DiagRect' |
| | 'round2SameRect' |
| | 'roundRect' |
| | 'rtTriangle' |
| | 'smileyFace' |
| | 'snip1Rect' |
| | 'snip2DiagRect' |
| | 'snip2SameRect' |
| | 'snipRoundRect' |
| | 'squareTabs' |
| | 'star10' |
| | 'star12' |
| | 'star16' |
| | 'star24' |
| | 'star32' |
| | 'star4' |
| | 'star5' |
| | 'star6' |
| | 'star7' |
| | 'star8' |
| | 'stripedRightArrow' |
| | 'sun' |
| | 'swooshArrow' |
| | 'teardrop' |
| | 'trapezoid' |
| | 'triangle' |
| | 'upArrow' |
| | 'upArrowCallout' |
| | 'upDownArrow' |
| | 'upDownArrowCallout' |
| | 'uturnArrow' |
| | 'verticalScroll' |
| | 'wave' |
| | 'wedgeEllipseCallout' |
| | 'wedgeRectCallout' |
| | 'wedgeRoundRectCallout' |
|
|
| export enum SLIDE_OBJECT_TYPES { |
| 'chart' = 'chart', |
| 'hyperlink' = 'hyperlink', |
| 'image' = 'image', |
| 'media' = 'media', |
| 'online' = 'online', |
| 'placeholder' = 'placeholder', |
| 'table' = 'table', |
| 'tablecell' = 'tablecell', |
| 'text' = 'text', |
| 'notes' = 'notes', |
| 'formula' = 'formula', |
| } |
| export enum TEXT_HALIGN { |
| 'left' = 'left', |
| 'center' = 'center', |
| 'right' = 'right', |
| 'justify' = 'justify', |
| } |
| export enum TEXT_VALIGN { |
| 'b' = 'b', |
| 'ctr' = 'ctr', |
| 't' = 't', |
| } |
|
|
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| export type Coord = number | `${number}%` |
| export interface PositionProps { |
| |
| |
| |
| |
| |
| |
| x?: Coord |
| |
| |
| |
| |
| |
| |
| y?: Coord |
| |
| |
| |
| |
| |
| |
| h?: Coord |
| |
| |
| |
| |
| |
| |
| w?: Coord |
| } |
| |
| |
| |
| export interface DataOrPathProps { |
| |
| |
| |
| |
| |
| |
| path?: string |
| |
| |
| |
| |
| |
| |
| data?: string |
| } |
| export interface BackgroundProps extends DataOrPathProps, ShapeFillProps { |
| |
| |
| |
| |
| fill?: HexColor |
|
|
| |
| |
| |
| |
| src?: string |
| } |
| |
| |
| |
| |
| export type HexColor = string |
| export type ThemeColor = 'tx1' | 'tx2' | 'bg1' | 'bg2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' |
| export type Color = HexColor | ThemeColor |
| export type Margin = number | [number, number, number, number] |
| export type HAlign = 'left' | 'center' | 'right' | 'justify' |
| export type VAlign = 'top' | 'middle' | 'bottom' |
|
|
| |
| export interface BorderProps { |
| |
| |
| |
| |
| type?: 'none' | 'dash' | 'solid' |
| |
| |
| |
| |
| |
| color?: HexColor |
|
|
| |
|
|
| |
| |
| |
| |
| |
| pt?: number |
| } |
| |
| export interface HyperlinkProps { |
| |
| |
| |
| |
| slide?: number |
| |
| |
| |
| url?: string |
| |
| |
| |
| tooltip?: string |
| } |
| |
| export interface ShadowProps { |
| |
| |
| |
| |
| type: 'outer' | 'inner' | 'none' |
| |
| |
| |
| |
| |
| opacity?: number |
| |
| |
| |
| |
| |
| blur?: number |
| |
| |
| |
| |
| |
| angle?: number |
| |
| |
| |
| |
| |
| offset?: number |
| |
| |
| |
| |
| color?: HexColor |
| |
| |
| |
| |
| rotateWithShape?: boolean |
| } |
| |
| export interface ShapeFillProps { |
| |
| |
| |
| |
| |
| |
| color?: Color |
| |
| |
| |
| |
| |
| |
| transparency?: number |
| |
| |
| |
| |
| type?: 'none' | 'solid' |
|
|
| |
| |
| |
| |
| alpha?: number |
| } |
| export interface ShapeLineProps extends ShapeFillProps { |
| |
| |
| |
| |
| width?: number |
| |
| |
| |
| |
| dashType?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot' |
| |
| |
| |
| |
| beginArrowType?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| |
| endArrowType?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| |
| |
|
|
| |
| |
| |
| |
| lineDash?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot' |
| |
| |
| |
| lineHead?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| lineTail?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| |
| pt?: number |
| |
| |
| |
| |
| size?: number |
| } |
| |
| export interface TextBaseProps { |
| |
| |
| |
| |
| align?: HAlign |
| |
| |
| |
| |
| bold?: boolean |
| |
| |
| |
| |
| breakLine?: boolean |
| |
| |
| |
| |
| |
| |
| bullet?: |
| | boolean |
| | { |
| |
| |
| |
| |
| type?: 'bullet' | 'number' |
| |
| |
| |
| |
| |
| characterCode?: string |
| |
| |
| |
| |
| |
| |
| indent?: number |
| |
| |
| |
| |
| |
| numberType?: |
| | 'alphaLcParenBoth' |
| | 'alphaLcParenR' |
| | 'alphaLcPeriod' |
| | 'alphaUcParenBoth' |
| | 'alphaUcParenR' |
| | 'alphaUcPeriod' |
| | 'arabicParenBoth' |
| | 'arabicParenR' |
| | 'arabicPeriod' |
| | 'arabicPlain' |
| | 'romanLcParenBoth' |
| | 'romanLcParenR' |
| | 'romanLcPeriod' |
| | 'romanUcParenBoth' |
| | 'romanUcParenR' |
| | 'romanUcPeriod' |
| |
| |
| |
| |
| |
| |
| numberStartAt?: number |
|
|
| |
|
|
| |
| |
| |
| |
| code?: string |
| |
| |
| |
| |
| |
| marginPt?: number |
| |
| |
| |
| |
| startAt?: number |
| |
| |
| |
| |
| style?: string |
| } |
| |
| |
| |
| |
| |
| |
| |
| color?: Color |
| |
| |
| |
| |
| fontFace?: string |
| |
| |
| |
| |
| fontSize?: number |
| |
| |
| |
| |
| highlight?: HexColor |
| |
| |
| |
| |
| italic?: boolean |
| |
| |
| |
| |
| |
| |
| lang?: string |
| |
| |
| |
| |
| |
| softBreakBefore?: boolean |
| |
| |
| |
| |
| |
| tabStops?: Array<{ position: number, alignment?: 'l' | 'r' | 'ctr' | 'dec' }> |
| |
| |
| |
| |
| |
| |
| |
| |
| textDirection?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' |
| |
| |
| |
| |
| |
| |
| transparency?: number |
| |
| |
| |
| |
| |
| underline?: { |
| style?: |
| | 'dash' |
| | 'dashHeavy' |
| | 'dashLong' |
| | 'dashLongHeavy' |
| | 'dbl' |
| | 'dotDash' |
| | 'dotDashHeave' |
| | 'dotDotDash' |
| | 'dotDotDashHeavy' |
| | 'dotted' |
| | 'dottedHeavy' |
| | 'heavy' |
| | 'none' |
| | 'sng' |
| | 'wavy' |
| | 'wavyDbl' |
| | 'wavyHeavy' |
| color?: Color |
| } |
| |
| |
| |
| |
| valign?: VAlign |
| } |
| export interface PlaceholderProps extends PositionProps, TextBaseProps { |
| name: string |
| type: PLACEHOLDER_TYPE |
| |
| |
| |
| margin?: Margin |
| } |
| export interface ObjectNameProps { |
| |
| |
| |
| |
| |
| |
| |
| |
| objectName?: string |
| } |
| export interface ThemeProps { |
| |
| |
| |
| |
| |
| headFontFace?: string |
| |
| |
| |
| |
| |
| bodyFontFace?: string |
| } |
|
|
| |
| export type MediaType = 'audio' | 'online' | 'video' |
|
|
| export interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameProps { |
| |
| |
| |
| |
| altText?: string |
| |
| |
| |
| |
| flipH?: boolean |
| |
| |
| |
| |
| flipV?: boolean |
| hyperlink?: HyperlinkProps |
| |
| |
| |
| |
| |
| |
| placeholder?: string |
| |
| |
| |
| |
| |
| |
| rotate?: number |
| |
| |
| |
| |
| rounding?: boolean |
| |
| |
| |
| |
| |
| |
| shadow?: ShadowProps |
| |
| |
| |
| sizing?: { |
| |
| |
| |
| type: 'contain' | 'cover' | 'crop' |
| |
| |
| |
| |
| |
| |
| w: Coord |
| |
| |
| |
| |
| |
| |
| h: Coord |
| |
| |
| |
| |
| |
| |
| |
| x?: Coord |
| |
| |
| |
| |
| |
| |
| |
| y?: Coord |
| } |
| |
| |
| |
| |
| |
| |
| |
| transparency?: number |
| } |
| |
| |
| |
| |
| export interface MediaProps extends PositionProps, DataOrPathProps, ObjectNameProps { |
| |
| |
| |
| |
| type: MediaType |
| |
| |
| |
| |
| |
| cover?: string |
| |
| |
| |
| |
| |
| |
| extn?: string |
| |
| |
| |
| |
| |
| |
| link?: string |
| |
| |
| |
| |
| |
| path?: string |
| } |
|
|
| |
|
|
| |
| |
| |
| export interface FormulaProps extends PositionProps, ObjectNameProps { |
| |
| |
| |
| omml: string |
| |
| |
| |
| fontSize?: number |
| |
| |
| |
| color?: string |
| |
| |
| |
| |
| align?: 'left' | 'center' | 'right' |
| } |
|
|
| |
|
|
| export interface ShapeProps extends PositionProps, ObjectNameProps { |
| |
| |
| |
| |
| align?: HAlign |
| |
| |
| |
| |
| |
| |
| |
| angleRange?: [number, number] |
| |
| |
| |
| |
| |
| |
| |
| arcThicknessRatio?: number |
| |
| |
| |
| |
| |
| |
| fill?: ShapeFillProps |
| |
| |
| |
| |
| flipH?: boolean |
| |
| |
| |
| |
| flipV?: boolean |
| |
| |
| |
| |
| hyperlink?: HyperlinkProps |
| |
| |
| |
| line?: ShapeLineProps |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| points?: Array< |
| | { x: Coord, y: Coord, moveTo?: boolean } |
| | { x: Coord, y: Coord, curve: { type: 'arc', hR: Coord, wR: Coord, stAng: number, swAng: number } } |
| | { x: Coord, y: Coord, curve: { type: 'cubic', x1: Coord, y1: Coord, x2: Coord, y2: Coord } } |
| | { x: Coord, y: Coord, curve: { type: 'quadratic', x1: Coord, y1: Coord } } |
| | { close: true } |
| > |
| |
| |
| |
| |
| |
| rectRadius?: number |
| |
| |
| |
| |
| |
| |
| rotate?: number |
| |
| |
| |
| |
| shadow?: ShadowProps |
|
|
| |
| |
| |
| lineSize?: number |
| |
| |
| |
| lineDash?: 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'solid' | 'sysDash' | 'sysDot' |
| |
| |
| |
| lineHead?: 'arrow' | 'diamond' | 'none' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| lineTail?: 'arrow' | 'diamond' | 'none' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| |
| shapeName?: string |
| } |
|
|
| |
|
|
| export interface TableToSlidesProps extends TableProps { |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| addImage?: { image: DataOrPathProps, options: PositionProps } |
| |
| |
| |
| addShape?: { shapeName: SHAPE_NAME, options: ShapeProps } |
| |
| |
| |
| addTable?: { rows: TableRow[], options: TableProps } |
| |
| |
| |
| addText?: { text: TextProps[], options: TextPropsOptions } |
| |
| |
| |
| |
| |
| autoPage?: boolean |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageCharWeight?: number |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageLineWeight?: number |
| |
| |
| |
| |
| |
| autoPageRepeatHeader?: boolean |
| |
| |
| |
| |
| autoPageSlideStartY?: number |
| |
| |
| |
| colW?: number | number[] |
| |
| |
| |
| |
| |
| masterSlideName?: string |
| |
| |
| |
| |
| slideMargin?: Margin |
|
|
| |
| |
| |
| addHeaderToEach?: boolean |
| |
| |
| |
| newSlideStartY?: number |
| } |
| export interface TableCellProps extends TextBaseProps { |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageCharWeight?: number |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageLineWeight?: number |
| |
| |
| |
| border?: BorderProps | [BorderProps, BorderProps, BorderProps, BorderProps] |
| |
| |
| |
| colspan?: number |
| |
| |
| |
| |
| |
| |
| fill?: ShapeFillProps |
| hyperlink?: HyperlinkProps |
| |
| |
| |
| |
| margin?: Margin |
| |
| |
| |
| rowspan?: number |
| } |
| export interface TableProps extends PositionProps, TextBaseProps, ObjectNameProps { |
| |
|
|
| |
| |
| |
| |
| |
| autoPage?: boolean |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageCharWeight?: number |
| |
| |
| |
| |
| |
| |
| |
| |
| autoPageLineWeight?: number |
| |
| |
| |
| |
| |
| |
| autoPageRepeatHeader?: boolean |
| |
| |
| |
| |
| |
| |
| |
| autoPageHeaderRows?: number |
| |
| |
| |
| |
| autoPageSlideStartY?: number |
| |
| |
| |
| |
| |
| border?: BorderProps | [BorderProps, BorderProps, BorderProps, BorderProps] |
| |
| |
| |
| |
| |
| |
| colW?: number | number[] |
| |
| |
| |
| |
| |
| |
| fill?: ShapeFillProps |
| |
| |
| |
| |
| margin?: Margin |
| |
| |
| |
| |
| |
| |
| rowH?: number | number[] |
| |
| |
| |
| |
| |
| verbose?: boolean |
|
|
| |
| |
| |
| newSlideStartY?: number |
| } |
| export interface TableCell { |
| text?: string | TableCell[] |
| options?: TableCellProps |
| } |
| export interface TableRowSlide { |
| rows: TableRow[] |
| } |
| export type TableRow = TableCell[] |
|
|
| |
| export interface TextGlowProps { |
| |
| |
| |
| |
| color?: HexColor |
| |
| |
| |
| |
| |
| opacity: number |
| |
| |
| |
| size: number |
| } |
|
|
| export interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps, ObjectNameProps { |
| baseline?: number |
| |
| |
| |
| charSpacing?: number |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| fit?: 'none' | 'shrink' | 'resize' |
| |
| |
| |
| |
| |
| |
| fill?: ShapeFillProps |
| |
| |
| |
| |
| flipH?: boolean |
| |
| |
| |
| |
| flipV?: boolean |
| glow?: TextGlowProps |
| hyperlink?: HyperlinkProps |
| indentLevel?: number |
| isTextBox?: boolean |
| line?: ShapeLineProps |
| |
| |
| |
| |
| |
| lineSpacing?: number |
| |
| |
| |
| |
| |
| |
| |
| lineSpacingMultiple?: number |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| margin?: Margin |
| outline?: { color: Color, size: number } |
| paraSpaceAfter?: number |
| paraSpaceBefore?: number |
| placeholder?: string |
| |
| |
| |
| |
| |
| rectRadius?: number |
| |
| |
| |
| |
| |
| |
| rotate?: number |
| |
| |
| |
| |
| rtlMode?: boolean |
| shadow?: ShadowProps |
| shape?: SHAPE_NAME |
| strike?: boolean | 'dblStrike' | 'sngStrike' |
| subscript?: boolean |
| superscript?: boolean |
| |
| |
| |
| |
| valign?: VAlign |
| vert?: 'eaVert' | 'horz' | 'mongolianVert' | 'vert' | 'vert270' | 'wordArtVert' | 'wordArtVertRtl' |
| |
| |
| |
| |
| |
| wrap?: boolean |
|
|
| |
| |
| |
| |
| autoFit?: boolean |
| |
| |
| |
| |
| shrinkText?: boolean |
| |
| |
| |
| |
| inset?: number |
| |
| |
| |
| |
| lineDash?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot' |
| |
| |
| |
| lineHead?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| |
| |
| |
| lineSize?: number |
| |
| |
| |
| lineTail?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle' |
| } |
| export interface TextProps { |
| text?: string |
| options?: TextPropsOptions |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| export type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross' |
| export type ChartLineCap = 'flat' | 'round' | 'square' |
|
|
| export interface OptsChartData { |
| |
|
|
| |
| |
| |
| |
| |
| |
| labels?: string[] | string[][] |
| |
| |
| |
| |
| name?: string |
| |
| |
| |
| |
| sizes?: number[] |
| |
| |
| |
| |
| values?: number[] |
| |
| |
| |
| |
| } |
| export interface OptsChartGridLine { |
| |
| |
| |
| |
| |
| cap?: ChartLineCap |
| |
| |
| |
| |
| color?: HexColor |
| |
| |
| |
| size?: number |
| |
| |
| |
| style?: 'solid' | 'dash' | 'dot' | 'none' |
| } |
| |
| export interface IChartMulti { |
| type: CHART_NAME |
| data: OptsChartData[] |
| options: IChartOpts |
| } |
| export interface IChartPropsFillLine { |
| |
| |
| |
| |
| border?: BorderProps |
| |
| |
| |
| |
| |
| |
| fill?: ShapeFillProps |
| } |
| export interface IChartAreaProps extends IChartPropsFillLine { |
| |
| |
| |
| |
| |
| |
| roundedCorners?: boolean |
| } |
| export interface IChartPropsBase { |
| |
| |
| |
| axisPos?: 'b' | 'l' | 'r' | 't' |
| chartColors?: HexColor[] |
| |
| |
| |
| |
| chartColorsOpacity?: number |
| dataBorder?: BorderProps |
| displayBlanksAs?: string |
| invertedColors?: HexColor[] |
| lang?: string |
| layout?: PositionProps |
| shadow?: ShadowProps |
| |
| |
| |
| showLabel?: boolean |
| showLeaderLines?: boolean |
| |
| |
| |
| showLegend?: boolean |
| |
| |
| |
| showPercent?: boolean |
| |
| |
| |
| showSerName?: boolean |
| |
| |
| |
| showTitle?: boolean |
| |
| |
| |
| showValue?: boolean |
| |
| |
| |
| |
| |
| v3DPerspective?: number |
| |
| |
| |
| |
| |
| |
| |
| v3DRAngAx?: boolean |
| |
| |
| |
| |
| |
| |
| v3DRotX?: number |
| |
| |
| |
| |
| |
| v3DRotY?: number |
|
|
| |
| |
| |
| |
| chartArea?: IChartAreaProps |
| |
| |
| |
| |
| plotArea?: IChartPropsFillLine |
|
|
| |
| |
| |
| border?: BorderProps |
| |
| |
| |
| fill?: HexColor |
| } |
| export interface IChartPropsAxisCat { |
| |
| |
| |
| catAxes?: IChartPropsAxisCat[] |
| catAxisBaseTimeUnit?: string |
| catAxisCrossesAt?: number | 'autoZero' |
| catAxisHidden?: boolean |
| catAxisLabelColor?: string |
| catAxisLabelFontBold?: boolean |
| catAxisLabelFontFace?: string |
| catAxisLabelFontItalic?: boolean |
| catAxisLabelFontSize?: number |
| catAxisLabelFrequency?: string |
| catAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo' |
| catAxisLabelRotate?: number |
| catAxisLineColor?: string |
| catAxisLineShow?: boolean |
| catAxisLineSize?: number |
| catAxisLineStyle?: 'solid' | 'dash' | 'dot' |
| catAxisMajorTickMark?: ChartAxisTickMark |
| catAxisMajorTimeUnit?: string |
| catAxisMajorUnit?: number |
| catAxisMaxVal?: number |
| catAxisMinorTickMark?: ChartAxisTickMark |
| catAxisMinorTimeUnit?: string |
| catAxisMinorUnit?: number |
| catAxisMinVal?: number |
| |
| catAxisMultiLevelLabels?: boolean |
| catAxisOrientation?: 'minMax' |
| catAxisTitle?: string |
| catAxisTitleColor?: string |
| catAxisTitleFontFace?: string |
| catAxisTitleFontSize?: number |
| catAxisTitleRotate?: number |
| catGridLine?: OptsChartGridLine |
| catLabelFormatCode?: string |
| |
| |
| |
| |
| secondaryCatAxis?: boolean |
| showCatAxisTitle?: boolean |
| } |
| export interface IChartPropsAxisSer { |
| serAxisBaseTimeUnit?: string |
| serAxisHidden?: boolean |
| serAxisLabelColor?: string |
| serAxisLabelFontBold?: boolean |
| serAxisLabelFontFace?: string |
| serAxisLabelFontItalic?: boolean |
| serAxisLabelFontSize?: number |
| serAxisLabelFrequency?: string |
| serAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo' |
| serAxisLineColor?: string |
| serAxisLineShow?: boolean |
| serAxisMajorTimeUnit?: string |
| serAxisMajorUnit?: number |
| serAxisMinorTimeUnit?: string |
| serAxisMinorUnit?: number |
| serAxisOrientation?: string |
| serAxisTitle?: string |
| serAxisTitleColor?: string |
| serAxisTitleFontFace?: string |
| serAxisTitleFontSize?: number |
| serAxisTitleRotate?: number |
| serGridLine?: OptsChartGridLine |
| serLabelFormatCode?: string |
| showSerAxisTitle?: boolean |
| } |
| export interface IChartPropsAxisVal { |
| |
| |
| |
| |
| secondaryValAxis?: boolean |
| showValAxisTitle?: boolean |
| |
| |
| |
| valAxes?: IChartPropsAxisVal[] |
| valAxisCrossesAt?: number | 'autoZero' |
| valAxisDisplayUnit?: 'billions' | 'hundredMillions' | 'hundreds' | 'hundredThousands' | 'millions' | 'tenMillions' | 'tenThousands' | 'thousands' | 'trillions' |
| valAxisDisplayUnitLabel?: boolean |
| valAxisHidden?: boolean |
| valAxisLabelColor?: string |
| valAxisLabelFontBold?: boolean |
| valAxisLabelFontFace?: string |
| valAxisLabelFontItalic?: boolean |
| valAxisLabelFontSize?: number |
| valAxisLabelFormatCode?: string |
| valAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo' |
| valAxisLabelRotate?: number |
| valAxisLineColor?: string |
| valAxisLineShow?: boolean |
| valAxisLineSize?: number |
| valAxisLineStyle?: 'solid' | 'dash' | 'dot' |
| |
| |
| |
| |
| |
| valAxisLogScaleBase?: number |
| valAxisMajorTickMark?: ChartAxisTickMark |
| valAxisMajorUnit?: number |
| valAxisMaxVal?: number |
| valAxisMinorTickMark?: ChartAxisTickMark |
| valAxisMinVal?: number |
| valAxisOrientation?: 'minMax' |
| valAxisTitle?: string |
| valAxisTitleColor?: string |
| valAxisTitleFontFace?: string |
| valAxisTitleFontSize?: number |
| valAxisTitleRotate?: number |
| valGridLine?: OptsChartGridLine |
| |
| |
| |
| |
| |
| |
| |
| |
| valLabelFormatCode?: string |
| } |
| export interface IChartPropsChartBar { |
| bar3DShape?: string |
| barDir?: string |
| barGapDepthPct?: number |
| |
| |
| |
| |
| |
| |
| barGapWidthPct?: number |
| barGrouping?: string |
| |
| |
| |
| |
| |
| |
| |
| barOverlapPct?: number |
| } |
| export interface IChartPropsChartDoughnut { |
| dataNoEffects?: boolean |
| holeSize?: number |
| } |
| export interface IChartPropsChartLine { |
| |
| |
| |
| |
| |
| lineCap?: ChartLineCap |
| |
| |
| |
| |
| |
| lineDash?: 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'solid' | 'sysDash' | 'sysDot' |
| |
| |
| |
| |
| |
| lineDataSymbol?: 'circle' | 'dash' | 'diamond' | 'dot' | 'none' | 'square' | 'triangle' |
| |
| |
| |
| |
| |
| lineDataSymbolLineColor?: string |
| |
| |
| |
| |
| |
| lineDataSymbolLineSize?: number |
| |
| |
| |
| |
| |
| |
| lineDataSymbolSize?: number |
| |
| |
| |
| |
| |
| |
| lineSize?: number |
| |
| |
| |
| |
| |
| lineSmooth?: boolean |
| } |
| export interface IChartPropsChartPie { |
| dataNoEffects?: boolean |
| |
| |
| |
| |
| |
| |
| |
| firstSliceAng?: number |
| } |
| export interface IChartPropsChartRadar { |
| |
| |
| |
| |
| |
| radarStyle?: 'standard' | 'marker' | 'filled' |
| } |
| export interface IChartPropsDataLabel { |
| dataLabelBkgrdColors?: boolean |
| dataLabelColor?: string |
| dataLabelFontBold?: boolean |
| dataLabelFontFace?: string |
| dataLabelFontItalic?: boolean |
| dataLabelFontSize?: number |
| |
| |
| |
| |
| |
| |
| dataLabelFormatCode?: string |
| dataLabelFormatScatter?: 'custom' | 'customXY' | 'XY' |
| dataLabelPosition?: 'b' | 'bestFit' | 'ctr' | 'l' | 'r' | 't' | 'inEnd' | 'outEnd' |
| } |
| export interface IChartPropsDataTable { |
| dataTableFontSize?: number |
| |
| |
| |
| |
| |
| |
| |
| dataTableFormatCode?: string |
| |
| |
| |
| |
| showDataTable?: boolean |
| showDataTableHorzBorder?: boolean |
| showDataTableKeys?: boolean |
| showDataTableOutline?: boolean |
| showDataTableVertBorder?: boolean |
| } |
| export interface IChartPropsLegend { |
| legendColor?: string |
| legendFontFace?: string |
| legendFontSize?: number |
| legendPos?: 'b' | 'l' | 'r' | 't' | 'tr' |
| } |
| export interface IChartPropsTitle extends TextBaseProps { |
| title?: string |
| titleAlign?: string |
| titleBold?: boolean |
| titleColor?: string |
| titleFontFace?: string |
| titleFontSize?: number |
| titlePos?: { x: number, y: number } |
| titleRotate?: number |
| } |
| export interface IChartOpts |
| extends IChartPropsAxisCat, |
| IChartPropsAxisSer, |
| IChartPropsAxisVal, |
| IChartPropsBase, |
| IChartPropsChartBar, |
| IChartPropsChartDoughnut, |
| IChartPropsChartLine, |
| IChartPropsChartPie, |
| IChartPropsChartRadar, |
| IChartPropsDataLabel, |
| IChartPropsDataTable, |
| IChartPropsLegend, |
| IChartPropsTitle, |
| ObjectNameProps, |
| OptsChartGridLine, |
| PositionProps { |
| |
| |
| |
| |
| altText?: string |
| } |
| export interface ISlideRelChart extends OptsChartData { |
| type: CHART_NAME | IChartMulti[] |
| opts: IChartOpts |
| data: OptsChartData[] |
| |
| |
| |
| |
| |
| } |
|
|
| |
| |
| export interface WriteBaseProps { |
| |
| |
| |
| |
| |
| compression?: boolean |
| } |
| export interface WriteProps extends WriteBaseProps { |
| |
| |
| |
| |
| |
| outputType?: WRITE_OUTPUT_TYPE |
| } |
| export interface WriteFileProps extends WriteBaseProps { |
| |
| |
| |
| |
| fileName?: string |
| } |
| export interface SectionProps { |
| |
| |
|
|
| |
| |
| |
| title: string |
| |
| |
| |
| |
| order?: number |
| } |
| export interface PresLayout { |
| |
| |
|
|
| |
| |
| |
| |
| name: string |
| width: number |
| height: number |
| } |
| export interface SlideNumberProps extends PositionProps, TextBaseProps { |
| |
| |
| |
| margin?: Margin |
| } |
| export interface SlideMasterProps { |
| |
| |
| |
| title: string |
| background?: BackgroundProps |
| margin?: Margin |
| slideNumber?: SlideNumberProps |
| objects?: Array<| { chart: IChartOpts } |
| | { image: ImageProps } |
| | { line: ShapeProps } |
| | { rect: ShapeProps } |
| | { text: TextProps } |
| | { |
| placeholder: { |
| options: PlaceholderProps |
| |
| |
| |
| |
| text?: string |
| } |
| }> |
|
|
| |
| |
| |
| bkgd?: string | BackgroundProps |
| } |
| export interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, TableCellProps, TextPropsOptions { |
| |
| |
|
|
| cx?: Coord |
| cy?: Coord |
| margin?: Margin |
| colW?: number | number[] |
| rowH?: number | number[] |
| } |
| export interface PresSlide { |
| addChart: Function |
| addFormula: Function |
| addImage: Function |
| addMedia: Function |
| addNotes: Function |
| addShape: Function |
| addTable: Function |
| addText: Function |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| background?: BackgroundProps |
| |
| |
| |
| |
| |
| color?: HexColor |
| |
| |
| |
| |
| hidden?: boolean |
| |
| |
| |
| slideNumber?: SlideNumberProps |
| } |
| export interface AddSlideProps { |
| masterName?: string |
| sectionTitle?: string |
| } |
| export interface PresentationProps { |
| author: string |
| company: string |
| layout: string |
| masterSlide: PresSlide |
| |
| |
| |
| |
| presLayout: PresLayout |
| revision: string |
| |
| |
| |
| |
| rtlMode: boolean |
| subject: string |
| theme: ThemeProps |
| title: string |
| } |
|
|
| |
| |
| |
| |
| export class Slide { |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| background: BackgroundProps |
| |
| |
| |
| |
| |
| color: HexColor |
| |
| |
| |
| |
| hidden: boolean |
| |
| |
| |
| slideNumber: SlideNumberProps |
| |
| |
| |
| newAutoPagedSlides: PresSlide[] |
| |
| |
| |
| |
| |
| |
| |
| |
| addChart(type: CHART_NAME | IChartMulti[], data: any[], options?: IChartOpts): Slide |
| |
| |
| |
| |
| |
| addFormula(options: FormulaProps): Slide |
| |
| |
| |
| |
| |
| addImage(options: ImageProps): Slide |
| |
| |
| |
| |
| |
| addMedia(options: MediaProps): Slide |
| |
| |
| |
| |
| |
| |
| addNotes(notes: string): Slide |
| |
| |
| |
| |
| |
| |
| addShape(shapeName: SHAPE_NAME, options?: ShapeProps): Slide |
| |
| |
| |
| |
| |
| |
| addTable(tableRows: TableRow[], options?: TableProps): Slide |
| |
| |
| |
| |
| |
| |
| addText(text: string | TextProps[], options?: TextPropsOptions): Slide |
|
|
| |
| |
| |
| |
| bkgd: string |
| } |
| } |
|
|