Skip to content

Commit

Permalink
fix(slide): render correct
Browse files Browse the repository at this point in the history
  • Loading branch information
DR-Univer committed Mar 20, 2024
1 parent 393f107 commit 648ab7d
Show file tree
Hide file tree
Showing 31 changed files with 473 additions and 283 deletions.
38 changes: 19 additions & 19 deletions examples/src/data/docs/default-document-data-en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
ed: 67,
ts: {
bl: BooleanNumber.TRUE,
fs: 24,
fs: 24 * 0.75,
cl: {
rgb: 'rgb(0, 40, 86)',
},
Expand All @@ -95,7 +95,7 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 68,
ed: 253,
ts: {
fs: 18,
fs: 18 * 0.75,
cl: {
rgb: 'rgb(0, 40, 86)',
},
Expand All @@ -105,42 +105,42 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 254,
ed: 404,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 405,
ed: 433,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 434,
ed: 484,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 485,
ed: 516,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 517,
ed: 679,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 680,
ed: 713,
ts: {
fs: 16,
fs: 16 * 0.75,
cl: {
rgb: 'rgb(0, 0, 211)',
},
Expand All @@ -151,7 +151,7 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 714,
ed: 771,
ts: {
fs: 24,
fs: 24 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -164,35 +164,35 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 772,
ed: 1244,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 1246,
ed: 1589,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 1590,
ed: 1986,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 1987,
ed: 2062,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 2063,
ed: 2086,
ts: {
fs: 16,
fs: 16 * 0.75,
cl: {
rgb: 'rgb(0, 0, 211)',
},
Expand All @@ -203,14 +203,14 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 2086,
ed: 2294,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 2295,
ed: 2310,
ts: {
fs: 16,
fs: 16 * 0.75,
cl: {
rgb: 'rgb(0, 0, 211)',
},
Expand All @@ -221,14 +221,14 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 2310,
ed: 2438,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
{
st: 2439,
ed: 2468,
ts: {
fs: 16,
fs: 16 * 0.75,
cl: {
rgb: 'rgb(0, 0, 0)',
},
Expand All @@ -239,7 +239,7 @@ export const DEFAULT_DOCUMENT_DATA_EN: IDocumentData = {
st: 2468,
ed: 2628,
ts: {
fs: 16,
fs: 16 * 0.75,
},
},
],
Expand Down
8 changes: 4 additions & 4 deletions examples/src/data/sheets/slide-workbook-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const SLIDE_WORKBOOK_DATA: IWorkbookData = {
vt: 2,
ht: 2,
bl: 1,
fs: 14,
fs: 14 * 0.75,
bg: {
rgb: 'rgb(105,126,146)',
},
Expand All @@ -41,7 +41,7 @@ export const SLIDE_WORKBOOK_DATA: IWorkbookData = {
vt: 2,
ht: 2,
bl: 1,
fs: 20,
fs: 20 * 0.75,
bg: {
rgb: 'rgb(244,79,86)',
},
Expand Down Expand Up @@ -83,7 +83,7 @@ export const SLIDE_WORKBOOK_DATA: IWorkbookData = {
cl: {
rgb: 'rgb(255,255,255)',
},
fs: 14,
fs: 14 * 0.75,
ht: 2,
bd: {
t: {
Expand Down Expand Up @@ -113,7 +113,7 @@ export const SLIDE_WORKBOOK_DATA: IWorkbookData = {
},
},
4: {
fs: 12,
fs: 12 * 0.75,
vt: 2,
pd: {
l: 5,
Expand Down
6 changes: 3 additions & 3 deletions examples/src/data/slides/default-pages/page1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DEFAULT_FIRST_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Univer slide',
fs: 48,
fs: 64 * 0.75,
cl: {
rgb: 'rgb(244,79,86)',
},
Expand Down Expand Up @@ -113,7 +113,7 @@ export const DEFAULT_FIRST_PAGE = {
type: PageElementType.TEXT,
richText: {
text: '2022',
fs: 36,
fs: 48 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -132,7 +132,7 @@ export const DEFAULT_FIRST_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'The concepts national income and national product have roughly the same value and can be used interchangeably if our interest is in their sum total which is measured as the market value of the total output of goods and services of an economy in a given period, usually a year.',
fs: 10.5,
fs: 14 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand Down
26 changes: 13 additions & 13 deletions examples/src/data/slides/default-pages/page2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Catalog',
fs: 42,
fs: 42 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand Down Expand Up @@ -192,7 +192,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: '01',
fs: 28,
fs: 28 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -211,7 +211,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Strategic technology trends',
fs: 20,
fs: 20 * 0.75,
cl: {
rgb: 'rgb(244,79,86)',
},
Expand All @@ -230,7 +230,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'How they impact business goals.',
fs: 14,
fs: 14 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -248,7 +248,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: '02',
fs: 28,
fs: 28 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -267,7 +267,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Technical profile',
fs: 20,
fs: 20 * 0.75,
cl: {
rgb: 'rgb(244,79,86)',
},
Expand All @@ -286,7 +286,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'What the technologies are and do.',
fs: 14,
fs: 14 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -304,7 +304,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: '03',
fs: 28,
fs: 28 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -323,7 +323,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Opportunities',
fs: 20,
fs: 20 * 0.75,
cl: {
rgb: 'rgb(244,79,86)',
},
Expand All @@ -342,7 +342,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'What benefits and outcomes they drive.',
fs: 14,
fs: 14 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -360,7 +360,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: '04',
fs: 28,
fs: 28 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand All @@ -379,7 +379,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Implementation steps',
fs: 20,
fs: 20 * 0.75,
cl: {
rgb: 'rgb(244,79,86)',
},
Expand All @@ -398,7 +398,7 @@ export const DEFAULT_SECOND_PAGE = {
type: PageElementType.TEXT,
richText: {
text: 'Action plans for implementation.',
fs: 14,
fs: 14 * 0.75,
cl: {
rgb: 'rgb(255,255,255)',
},
Expand Down
Loading

0 comments on commit 648ab7d

Please sign in to comment.