-
Notifications
You must be signed in to change notification settings - Fork 164
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 #1796 from microsoft/u/biwu/versionbump_8_46_1
U/biwu/versionbump 8 46 1
- Loading branch information
Showing
279 changed files
with
11,823 additions
and
4,886 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
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
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
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
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
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
9 changes: 9 additions & 0 deletions
9
demo/scripts/controls/contentModel/components/format/formatPart/DirectionFormatRenderer.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,9 @@ | ||
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer'; | ||
import { DirectionFormat } from 'roosterjs-content-model'; | ||
|
||
export const DirectionFormatRenderer = createDropDownFormatRenderer<DirectionFormat, 'ltr' | 'rtl'>( | ||
'Direction', | ||
['ltr', 'rtl'], | ||
format => format.direction, | ||
(format, value) => (format.direction = value) | ||
); |
17 changes: 0 additions & 17 deletions
17
demo/scripts/controls/contentModel/components/format/formatPart/DirectionFormatRenderers.ts
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
demo/scripts/controls/contentModel/components/format/formatPart/HtmlAlignFormatRenderer.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 { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer'; | ||
import { HtmlAlignFormat } from 'roosterjs-content-model'; | ||
|
||
export const HtmlAlignFormatRenderer = createDropDownFormatRenderer< | ||
HtmlAlignFormat, | ||
'start' | 'center' | 'end' | 'justify' | 'initial' | ||
>( | ||
'HTML align', | ||
['start', 'center', 'end'], | ||
format => format.htmlAlign, | ||
(format, value) => (format.htmlAlign = value) | ||
); |
13 changes: 13 additions & 0 deletions
13
...scripts/controls/contentModel/components/format/formatPart/LetterSpacingFormatRenderer.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,13 @@ | ||
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer'; | ||
import { FormatRenderer } from '../utils/FormatRenderer'; | ||
import { LetterSpacingFormat } from 'roosterjs-content-model'; | ||
|
||
export const LetterSpacingFormatRenderer: FormatRenderer<LetterSpacingFormat> = createTextFormatRenderer< | ||
LetterSpacingFormat | ||
>( | ||
'Letter spacing', | ||
format => format.letterSpacing, | ||
(format, value) => { | ||
format.letterSpacing = value; | ||
} | ||
); |
10 changes: 10 additions & 0 deletions
10
...pts/controls/contentModel/components/format/formatPart/ListStylePositionFormatRenderer.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,10 @@ | ||
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer'; | ||
import { FormatRenderer } from '../utils/FormatRenderer'; | ||
import { ListStylePositionFormat } from 'roosterjs-content-model'; | ||
|
||
export const ListStylePositionFormatRenderer: FormatRenderer<ListStylePositionFormat> = createDropDownFormatRenderer( | ||
'List Type', | ||
['inside', 'outside'], | ||
format => format.listStylePosition, | ||
(format, value) => (format.listStylePosition = value) | ||
); |
12 changes: 12 additions & 0 deletions
12
demo/scripts/controls/contentModel/components/format/formatPart/TextAlignFormatRenderer.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 { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer'; | ||
import { TextAlignFormat } from 'roosterjs-content-model'; | ||
|
||
export const TextAlignFormatRenderer = createDropDownFormatRenderer< | ||
TextAlignFormat, | ||
'start' | 'center' | 'end' | 'justify' | 'initial' | ||
>( | ||
'Text align', | ||
['start', 'center', 'end'], | ||
format => format.textAlign, | ||
(format, value) => (format.textAlign = value) | ||
); |
11 changes: 9 additions & 2 deletions
11
demo/scripts/controls/contentModel/components/model/ContentModelCodeView.tsx
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
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
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
Oops, something went wrong.