Skip to content

Commit

Permalink
fix(slide): slide initialize (#1641)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
  • Loading branch information
DR-Univer and wzhudev committed Mar 21, 2024
1 parent f4d6bd1 commit 599ed71
Show file tree
Hide file tree
Showing 85 changed files with 754 additions and 3,613 deletions.
38 changes: 19 additions & 19 deletions examples/src/data/docs/default-document-data-en.ts
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
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
8 changes: 4 additions & 4 deletions examples/src/data/slides/default-pages/page1.ts
Expand Up @@ -68,13 +68,13 @@ export const DEFAULT_FIRST_PAGE = {
left: 300,
top: 200,
width: 400,
height: 140,
height: 100,
title: 'mask',
description: '',
type: PageElementType.TEXT,
richText: {
text: 'Univer slide',
fs: 64,
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: 48,
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: 14,
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
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

0 comments on commit 599ed71

Please sign in to comment.