-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1656 from microsoft/u/juliaroldi/image-format-con…
…tent-model Add Image Format to getFormatState
- Loading branch information
Showing
4 changed files
with
166 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ges/roosterjs-content-model/lib/publicTypes/format/formatState/ContentModelFormatState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ImageFormat from './ImageFormat'; | ||
import { FormatState } from 'roosterjs-editor-types'; | ||
|
||
/** | ||
* The format object state in Content Model | ||
*/ | ||
export interface ContentModelFormatState extends FormatState { | ||
/** | ||
* Format of image, if there is table at cursor position | ||
*/ | ||
imageFormat?: ImageFormat; | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/roosterjs-content-model/lib/publicTypes/format/formatState/ImageFormat.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Image Format | ||
*/ | ||
export default interface ImageFormat { | ||
/** | ||
* Border color | ||
*/ | ||
borderColor?: string; | ||
/** | ||
* Border width | ||
*/ | ||
borderWidth?: string; | ||
/** | ||
* Border style | ||
*/ | ||
borderStyle?: string; | ||
|
||
/** | ||
* Border radius | ||
*/ | ||
borderRadius?: string; | ||
|
||
/** | ||
* Box Shadow style | ||
*/ | ||
boxShadow?: string; | ||
} |
Oops, something went wrong.