Skip to content

Commit

Permalink
updated PlaceholderProps (Issue #987)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Apr 11, 2022
1 parent ae1b674 commit 0a6640c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
24 changes: 12 additions & 12 deletions src/core-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ export interface HyperlinkProps {
*/
tooltip?: string
}
export interface PlaceholderProps {
name: string
type: PLACEHOLDER_TYPE
x: Coord
y: Coord
w: Coord
h: Coord
}
// used by: chart, text
export interface ShadowProps {
/**
Expand Down Expand Up @@ -170,8 +162,8 @@ export interface ShapeFillProps {
/**
* Fill color
* - `HexColor` or `ThemeColor`
* @example 'FF0000' // red
* @example pptx.SchemeColor.text1 // Text1 Theme Color
* @example 'FF0000' // hex color (red)
* @example pptx.SchemeColor.text1 // Theme color (Text1)
*/
color?: Color
/**
Expand Down Expand Up @@ -425,6 +417,14 @@ export interface TextBaseProps {
*/
valign?: VAlign
}
export interface PlaceholderProps extends PositionProps, TextBaseProps {
name: string
type: PLACEHOLDER_TYPE
/**
* margin (points)
*/
margin?: Margin
}
export type ObjectNameProps = {
/**
* Object name
Expand Down Expand Up @@ -1569,8 +1569,9 @@ export interface SlideMasterProps {
* Unique name for this master
*/
title: string
margin?: Margin
background?: BackgroundProps
margin?: Margin
slideNumber?: SlideNumberProps
objects?: (
| { chart: {} }
| { image: {} }
Expand All @@ -1588,7 +1589,6 @@ export interface SlideMasterProps {
}
}
)[]
slideNumber?: SlideNumberProps

/**
* @deprecated v3.3.0 - use `background`
Expand Down
20 changes: 10 additions & 10 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,6 @@ declare namespace PptxGenJS {
*/
tooltip?: string
}
export interface PlaceholderProps {
name: string
type: PLACEHOLDER_TYPE
x: Coord
y: Coord
w: Coord
h: Coord
}
// used by: chart, text
export interface ShadowProps {
/**
Expand Down Expand Up @@ -1237,6 +1229,14 @@ declare namespace PptxGenJS {
*/
valign?: VAlign
}
export interface PlaceholderProps extends PositionProps, TextBaseProps {
name: string
type: PLACEHOLDER_TYPE
/**
* margin (points)
*/
margin?: Margin
}
/**
* Common for Props
*/
Expand Down Expand Up @@ -2290,8 +2290,9 @@ declare namespace PptxGenJS {
* Unique name for this master
*/
title: string
margin?: Margin
background?: BackgroundProps
margin?: Margin
slideNumber?: SlideNumberProps
objects?: (
| { chart: {} }
| { image: {} }
Expand All @@ -2309,7 +2310,6 @@ declare namespace PptxGenJS {
}
}
)[]
slideNumber?: SlideNumberProps

/**
* @deprecated v3.3.0 - use `background`
Expand Down

0 comments on commit 0a6640c

Please # to comment.