Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #4

Merged
merged 120 commits into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
ff40697
feat(build): build for universlide
Dushusir Nov 21, 2022
30799fa
feat(formula): add FormulaActionExtension execute
Dushusir Nov 22, 2022
962dcb0
fix(style): modal show
Nov 23, 2022
2bec218
feat(formula): formula action extension add formulaData actoin
Dushusir Nov 23, 2022
c518783
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 23, 2022
47579b2
fix(richtext): fix richtext editor formula input
Dushusir Nov 24, 2022
de90d6b
fix(base-sheets): setcolumnwidth
Nov 24, 2022
38b37de
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 25, 2022
6227490
fix: changeToolBar bug
jerry-TangHao Nov 25, 2022
083be98
Merge remote-tracking branch 'origin/dev' into dev
jerry-TangHao Nov 25, 2022
f5e5395
fix(formula): formula help and search modal move to formula plugn
Dushusir Nov 25, 2022
4625bc7
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 25, 2022
57678bc
fix: changeToolBar bug
jerry-TangHao Nov 28, 2022
bedbb70
Merge remote-tracking branch 'origin/dev' into dev
jerry-TangHao Nov 28, 2022
4f64e15
fix: changeToolBar bug
jerry-TangHao Nov 28, 2022
f889bbf
fix(sheets): fix selection change
Dushusir Nov 28, 2022
16b96e9
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 28, 2022
12ecd0b
fix: changeToolBar bug
jerry-TangHao Nov 28, 2022
936f63b
fix: objectarray bug
jerry-TangHao Nov 28, 2022
dba1fec
fix: objectmatrix bug
jerry-TangHao Nov 28, 2022
db2ecb9
fix(base-sheets): drag line
Nov 28, 2022
150d94f
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Nov 28, 2022
8c4486b
fix: objectmatrix bug
jerry-TangHao Nov 28, 2022
c1d4baa
feat(sheets): named range
Dushusir Nov 28, 2022
a87c4a9
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 28, 2022
7f07ede
feat(sheet): doc editor dev
Nov 28, 2022
d896aca
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Nov 28, 2022
f480ca6
fix(core): Object Matrix forEach error
Dushusir Nov 29, 2022
7e468e9
fix: numfmt bug
jerry-TangHao Nov 29, 2022
ce57805
fix: numfmt bug
jerry-TangHao Nov 29, 2022
77f471b
feat(sheets): update namedrange obs
Dushusir Nov 29, 2022
46f68fc
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 29, 2022
0c1170f
fix: toolbar bug
jerry-TangHao Nov 30, 2022
e41a40c
Merge remote-tracking branch 'origin/dev' into dev
jerry-TangHao Nov 30, 2022
5403c2c
feat(sheets-plugin): add import xlsx plugin template
Dushusir Nov 30, 2022
694a4c3
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Nov 30, 2022
4c1dc51
chore(cli): add docs-plugin and slides-plugin template
Dushusir Dec 1, 2022
db33bba
feat(import-xlsx): 1.support import xlsx 2. render supprt inline style
Dushusir Dec 1, 2022
eda1102
fix(base-sheets): set column width
Dec 1, 2022
e6bf16b
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 1, 2022
8986025
feat(build): build umd
Dushusir Dec 1, 2022
5f0a709
feat(sheet): editor dev
Dec 2, 2022
7d3e533
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 2, 2022
165cc0d
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 2, 2022
9e2acfc
fix(base-sheets): copy/paste
Dec 2, 2022
4e32094
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 2, 2022
b917389
xiugai
Dec 2, 2022
1d87389
feat(register): add common plugin register
Dushusir Dec 2, 2022
a7d83dc
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 2, 2022
a341315
feat(register)
Dushusir Dec 2, 2022
d6cbf33
add: add doc init
jerry-TangHao Dec 3, 2022
9d4cf38
Merge remote-tracking branch 'origin/dev' into dev
jerry-TangHao Dec 3, 2022
95b046c
fix(sheet): editor dev
Dec 3, 2022
a76ad45
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 3, 2022
87b862f
feat(keyboard): add keyboardManager
Dushusir Dec 3, 2022
3304b17
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 3, 2022
febf5dc
add: add univer init
jerry-TangHao Dec 3, 2022
1ba42de
fix(clipboard): cell edit handle paste event
Dushusir Dec 3, 2022
5cdcd40
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 3, 2022
2f73e6b
feat(build): build custom
Dushusir Dec 3, 2022
a465be7
fix(sheets): 1. right click cell edit 2. formula open
Dushusir Dec 5, 2022
84d12d7
fix(formula): add getStyleByCell for formula get style from cell or s…
Dushusir Dec 5, 2022
19ae9a5
feat(sheets): add set selection type by data
Dushusir Dec 5, 2022
138ef19
fix(sheet): support =A3*B4 reference formula
DR-Univer Dec 5, 2022
1c32456
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 5, 2022
5d820ee
fix(sheet): formula dependency
DR-Univer Dec 5, 2022
1fcea70
chore(plugin): move clipboard extension manager to base-component, me…
Dushusir Dec 6, 2022
4654186
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 6, 2022
b46079d
chore(core): remove rangeData in setRangeData
Dushusir Dec 6, 2022
7329595
chore(example): run d locale english error
Dushusir Dec 7, 2022
e9914d0
feat(doc): selection develop
DR-Univer Dec 7, 2022
4f25902
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 7, 2022
80c03a1
fix(sheet): dependency include self
DR-Univer Dec 7, 2022
9d37b9e
chore(core): ActionExtension handle actionDataList
Dushusir Dec 7, 2022
a890f8b
fix(formula): 1. prompt serach list positon 2. cursor position
Dushusir Dec 7, 2022
69c8003
add: add univer init
jerry-TangHao Dec 8, 2022
20b0c8c
Merge remote-tracking branch 'origin/dev' into dev
jerry-TangHao Dec 8, 2022
a862dd3
add: add univer init
jerry-TangHao Dec 8, 2022
71c3bd2
fix(demo)
Dec 8, 2022
c723d3a
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 8, 2022
013de26
feat(base-component): drag and drop event support
Dushusir Dec 8, 2022
7d71875
build(demo): 1. support npm run dev:demo, npm run build:demo
Dushusir Dec 8, 2022
8b22b3b
feat(base-component): 1. drap and drop 2.import xlsx plugin support d…
Dushusir Dec 9, 2022
ab71785
build(demo): build no legacy
Dushusir Dec 9, 2022
3f3255b
xiugai
Dec 10, 2022
4ff1e40
feat(doc): doc editor
DR-Univer Dec 10, 2022
eb6fd5a
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 10, 2022
e7e7459
feat(demo): demo data
Dushusir Dec 10, 2022
4600d63
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 10, 2022
a47363b
feat(doc): editor and float sheet
DR-Univer Dec 11, 2022
83fe052
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 11, 2022
fd3a915
fix(base-sheets): 1. canvas resize listener 2. remove vite plugin legacy
Dushusir Dec 12, 2022
f6ff421
fix(base-docs,base-slides): resize bug
Dushusir Dec 12, 2022
ced1543
feat(slide): define snapshot
DR-Univer Dec 12, 2022
0d7ab0a
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 12, 2022
42d91e6
fix(base-sheets): 1. border setting by toolbar 2. border disapper by …
Dushusir Dec 13, 2022
dbd2ad3
fix(base-sheets): edit merged cell to save
Dushusir Dec 13, 2022
0ca9d44
feat(slide): dev
DR-Univer Dec 14, 2022
3781dd1
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 14, 2022
5f0b5ef
fix(formula) calculate number cell
Dushusir Dec 14, 2022
9a3060f
chore(core): remove useless code
Dushusir Dec 14, 2022
ed6e34a
xiugai
Dec 14, 2022
887c3ef
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dec 14, 2022
4b44684
feat(collaboration): add simle collaboration
Dushusir Dec 15, 2022
541548c
fix(core): 1. styles.getStyleByCell 2. collaboration url example
Dushusir Dec 16, 2022
394d7a5
feat(demo): add doc and slide demo project
Dushusir Dec 16, 2022
7b27f1d
fix(demo): demo formula
Dushusir Dec 16, 2022
5c0d031
feat(slide): dev
DR-Univer Dec 16, 2022
2d7c6a2
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 16, 2022
19ad0a1
fix(base-sheets): cell input handle
Dushusir Dec 16, 2022
2187e48
Merge branch 'dev' of https://github.com/dream-num/univer into dev
Dushusir Dec 16, 2022
2978de1
chore(demo): demo build script
Dushusir Dec 16, 2022
eac1f8c
fix(sheet): formula dependency fix
DR-Univer Dec 16, 2022
625bb1f
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 16, 2022
17593cd
feat(slide): base feature dev
DR-Univer Dec 17, 2022
7d9259f
feat(slide): doc and slide demo done
DR-Univer Dec 18, 2022
4a0b7ea
fix(base-sheets): 1. toolbar merge cell 2.refreshWorkbook in main.tsx…
Dushusir Dec 18, 2022
f1bf593
fix(sheet): doc in slide center fix
DR-Univer Dec 18, 2022
bd02e17
Merge branch 'dev' of https://github.com/dream-num/univer into dev
DR-Univer Dec 18, 2022
5f7b98d
chore(demo): collaboration demo
Dushusir Dec 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(slide): define snapshot
  • Loading branch information
DR-Univer committed Dec 12, 2022
commit ced1543ca40492eb3a477681a8cdcb27a927a02c
19 changes: 19 additions & 0 deletions packages/core/src/Enum/PlaceHolderType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export enum PlaceholderType {
NONE, //Default value, signifies it is not a placeholder.
BODY, //Body text.
CHART, //Chart or graph.
CLIP_ART, //Clip art image.
CENTERED_TITLE, //Title centered.
DIAGRAM, //Diagram.
DATE_AND_TIME, //Date and time.
FOOTER, //Footer text.
HEADER, //Header text.
MEDIA, //Multimedia.
OBJECT, //Any content type.
PICTURE, //Picture.
SLIDE_NUMBER, //Number of a slide.
SUBTITLE, //Subtitle.
TABLE, //Table.
TITLE, //Slide title.
SLIDE_IMAGE, //Slide image.
}
145 changes: 145 additions & 0 deletions packages/core/src/Enum/ShapeType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
export enum ShapeType {
TYPE_UNSPECIFIED, //The shape type that is not predefined.
TEXT_BOX, //Text box shape.
RECTANGLE, //Rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'rect'.
ROUND_RECTANGLE, //Round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'roundRect'
ELLIPSE, //Ellipse shape. Corresponds to ECMA-376 ST_ShapeType 'ellipse'
ARC, //Curved arc shape. Corresponds to ECMA-376 ST_ShapeType 'arc'
BENT_ARROW, //Bent arrow shape. Corresponds to ECMA-376 ST_ShapeType 'bentArrow'
BENT_UP_ARROW, //Bent up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'bentUpArrow'
BEVEL, //Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
BLOCK_ARC, //Block arc shape. Corresponds to ECMA-376 ST_ShapeType 'blockArc'
BRACE_PAIR, //Brace pair shape. Corresponds to ECMA-376 ST_ShapeType 'bracePair'
BRACKET_PAIR, //Bracket pair shape. Corresponds to ECMA-376 ST_ShapeType 'bracketPair'
CAN, //Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
CHEVRON, //Chevron shape. Corresponds to ECMA-376 ST_ShapeType 'chevron'
CHORD, //Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
CLOUD, //Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
CORNER, //Corner shape. Corresponds to ECMA-376 ST_ShapeType 'corner'
CUBE, //Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
CURVED_DOWN_ARROW, //Curved down arrow shape. Corresponds to ECMA-376 ST_ShapeType 'curvedDownArrow'
CURVED_LEFT_ARROW, //Curved left arrow shape. Corresponds to ECMA-376 ST_ShapeType 'curvedLeftArrow'
CURVED_RIGHT_ARROW, //Curved right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'curvedRightArrow'
CURVED_UP_ARROW, //Curved up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'curvedUpArrow'
DECAGON, //Decagon shape. Corresponds to ECMA-376 ST_ShapeType 'decagon'
DIAGONAL_STRIPE, //Diagonal stripe shape. Corresponds to ECMA-376 ST_ShapeType 'diagStripe'
DIAMOND, //Diamond shape. Corresponds to ECMA-376 ST_ShapeType 'diamond'
DODECAGON, //Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType 'dodecagon'
DONUT, //Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
DOUBLE_WAVE, //Double wave shape. Corresponds to ECMA-376 ST_ShapeType 'doubleWave'
DOWN_ARROW, //Down arrow shape. Corresponds to ECMA-376 ST_ShapeType 'downArrow'
DOWN_ARROW_CALLOUT, //Callout down arrow shape. Corresponds to ECMA-376 ST_ShapeType 'downArrowCallout'
FOLDED_CORNER, //Folded corner shape. Corresponds to ECMA-376 ST_ShapeType 'foldedCorner'
FRAME, //Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
HALF_FRAME, //Half frame shape. Corresponds to ECMA-376 ST_ShapeType 'halfFrame'
HEART, //Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
HEPTAGON, //Heptagon shape. Corresponds to ECMA-376 ST_ShapeType 'heptagon'
HEXAGON, //Hexagon shape. Corresponds to ECMA-376 ST_ShapeType 'hexagon'
HOME_PLATE, //Home plate shape. Corresponds to ECMA-376 ST_ShapeType 'homePlate'
HORIZONTAL_SCROLL, //Horizontal scroll shape. Corresponds to ECMA-376 ST_ShapeType 'horizontalScroll'
IRREGULAR_SEAL_1, //Irregular seal 1 shape. Corresponds to ECMA-376 ST_ShapeType 'irregularSeal1'
IRREGULAR_SEAL_2, //Irregular seal 2 shape. Corresponds to ECMA-376 ST_ShapeType 'irregularSeal2'
LEFT_ARROW, //Left arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftArrow'
LEFT_ARROW_CALLOUT, //Callout left arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftArrowCallout'
LEFT_BRACE, //Left brace shape. Corresponds to ECMA-376 ST_ShapeType 'leftBrace'
LEFT_BRACKET, //Left bracket shape. Corresponds to ECMA-376 ST_ShapeType 'leftBracket'
LEFT_RIGHT_ARROW, //Left right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftRightArrow'
LEFT_RIGHT_ARROW_CALLOUT, //Callout left right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftRightArrowCallout'
LEFT_RIGHT_UP_ARROW, //Left right up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftRightUpArrow'
LEFT_UP_ARROW, //Left up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'leftUpArrow'
LIGHTNING_BOLT, //Lightning bolt shape. Corresponds to ECMA-376 ST_ShapeType 'lightningBolt'
MATH_DIVIDE, //Divide math shape. Corresponds to ECMA-376 ST_ShapeType 'mathDivide'
MATH_EQUAL, //Equal math shape. Corresponds to ECMA-376 ST_ShapeType 'mathEqual'
MATH_MINUS, //Minus math shape. Corresponds to ECMA-376 ST_ShapeType 'mathMinus'
MATH_MULTIPLY, //Multiply math shape. Corresponds to ECMA-376 ST_ShapeType 'mathMultiply'
MATH_NOT_EQUAL, //Not equal math shape. Corresponds to ECMA-376 ST_ShapeType 'mathNotEqual'
MATH_PLUS, //Plus math shape. Corresponds to ECMA-376 ST_ShapeType 'mathPlus'
MOON, //Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
NO_SMOKING, //No smoking shape. Corresponds to ECMA-376 ST_ShapeType 'noSmoking'
NOTCHED_RIGHT_ARROW, //Notched right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'notchedRightArrow'
OCTAGON, //Octagon shape. Corresponds to ECMA-376 ST_ShapeType 'octagon'
PARALLELOGRAM, //Parallelogram shape. Corresponds to ECMA-376 ST_ShapeType 'parallelogram'
PENTAGON, //Pentagon shape. Corresponds to ECMA-376 ST_ShapeType 'pentagon'
PIE, //Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
PLAQUE, //Plaque shape. Corresponds to ECMA-376 ST_ShapeType 'plaque'
PLUS, //Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
QUAD_ARROW, //Quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType 'quadArrow'
QUAD_ARROW_CALLOUT, //Callout quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType 'quadArrowCallout'
RIBBON, //Ribbon shape. Corresponds to ECMA-376 ST_ShapeType 'ribbon'
RIBBON_2, //Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType 'ribbon2'
RIGHT_ARROW, //Right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'rightArrow'
RIGHT_ARROW_CALLOUT, //Callout right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'rightArrowCallout'
RIGHT_BRACE, //Right brace shape. Corresponds to ECMA-376 ST_ShapeType 'rightBrace'
RIGHT_BRACKET, //Right bracket shape. Corresponds to ECMA-376 ST_ShapeType 'rightBracket'
ROUND_1_RECTANGLE, //One round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'round1Rect'
ROUND_2_DIAGONAL_RECTANGLE, //Two diagonal round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'round2DiagRect'
ROUND_2_SAME_RECTANGLE, //Two same-side round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'round2SameRect'
RIGHT_TRIANGLE, //Right triangle shape. Corresponds to ECMA-376 ST_ShapeType 'rtTriangle'
SMILEY_FACE, //Smiley face shape. Corresponds to ECMA-376 ST_ShapeType 'smileyFace'
SNIP_1_RECTANGLE, //One snip corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'snip1Rect'
SNIP_2_DIAGONAL_RECTANGLE, //Two diagonal snip corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'snip2DiagRect'
SNIP_2_SAME_RECTANGLE, //Two same-side snip corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'snip2SameRect'
SNIP_ROUND_RECTANGLE, //One snip one round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'snipRoundRect'
STAR_10, //Ten pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star10'
STAR_12, //Twelve pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star12'
STAR_16, //Sixteen pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star16'
STAR_24, //Twenty four pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star24'
STAR_32, //Thirty two pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star32'
STAR_4, //Four pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star4'
STAR_5, //Five pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star5'
STAR_6, //Six pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star6'
STAR_7, //Seven pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star7'
STAR_8, //Eight pointed star shape. Corresponds to ECMA-376 ST_ShapeType 'star8'
STRIPED_RIGHT_ARROW, //Striped right arrow shape. Corresponds to ECMA-376 ST_ShapeType 'stripedRightArrow'
SUN, //Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
TRAPEZOID, //Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType 'trapezoid'
TRIANGLE, //Triangle shape. Corresponds to ECMA-376 ST_ShapeType 'triangle'
UP_ARROW, //Up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'upArrow'
UP_ARROW_CALLOUT, //Callout up arrow shape. Corresponds to ECMA-376 ST_ShapeType 'upArrowCallout'
UP_DOWN_ARROW, //Up down arrow shape. Corresponds to ECMA-376 ST_ShapeType 'upDownArrow'
UTURN_ARROW, //U-turn arrow shape. Corresponds to ECMA-376 ST_ShapeType 'uturnArrow'
VERTICAL_SCROLL, //Vertical scroll shape. Corresponds to ECMA-376 ST_ShapeType 'verticalScroll'
WAVE, //Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
WEDGE_ELLIPSE_CALLOUT, //Callout wedge ellipse shape. Corresponds to ECMA-376 ST_ShapeType 'wedgeEllipseCallout'
WEDGE_RECTANGLE_CALLOUT, //Callout wedge rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'wedgeRectCallout'
WEDGE_ROUND_RECTANGLE_CALLOUT, //Callout wedge round rectangle shape. Corresponds to ECMA-376 ST_ShapeType 'wedgeRoundRectCallout'
FLOW_CHART_ALTERNATE_PROCESS, //Alternate process flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartAlternateProcess'
FLOW_CHART_COLLATE, //Collate flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartCollate'
FLOW_CHART_CONNECTOR, //Connector flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartConnector'
FLOW_CHART_DECISION, //Decision flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartDecision'
FLOW_CHART_DELAY, //Delay flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartDelay'
FLOW_CHART_DISPLAY, //Display flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartDisplay'
FLOW_CHART_DOCUMENT, //Document flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartDocument'
FLOW_CHART_EXTRACT, //Extract flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartExtract'
FLOW_CHART_INPUT_OUTPUT, //Input output flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartInputOutput'
FLOW_CHART_INTERNAL_STORAGE, //Internal storage flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartInternalStorage'
FLOW_CHART_MAGNETIC_DISK, //Magnetic disk flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartMagneticDisk'
FLOW_CHART_MAGNETIC_DRUM, //Magnetic drum flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartMagneticDrum'
FLOW_CHART_MAGNETIC_TAPE, //Magnetic tape flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartMagneticTape'
FLOW_CHART_MANUAL_INPUT, //Manual input flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartManualInput'
FLOW_CHART_MANUAL_OPERATION, //Manual operation flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartManualOperation'
FLOW_CHART_MERGE, //Merge flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartMerge'
FLOW_CHART_MULTIDOCUMENT, //Multi-document flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartMultidocument'
FLOW_CHART_OFFLINE_STORAGE, //Offline storage flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartOfflineStorage'
FLOW_CHART_OFFPAGE_CONNECTOR, //Off-page connector flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartOffpageConnector'
FLOW_CHART_ONLINE_STORAGE, //Online storage flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartOnlineStorage'
FLOW_CHART_OR, //Or flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartOr'
FLOW_CHART_PREDEFINED_PROCESS, //Predefined process flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartPredefinedProcess'
FLOW_CHART_PREPARATION, //Preparation flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartPreparation'
FLOW_CHART_PROCESS, //Process flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartProcess'
FLOW_CHART_PUNCHED_CARD, //Punched card flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartPunchedCard'
FLOW_CHART_PUNCHED_TAPE, //Punched tape flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartPunchedTape'
FLOW_CHART_SORT, //Sort flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartSort'
FLOW_CHART_SUMMING_JUNCTION, //Summing junction flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartSummingJunction'
FLOW_CHART_TERMINATOR, //Terminator flow shape. Corresponds to ECMA-376 ST_ShapeType 'flowChartTerminator'
ARROW_EAST, //East arrow shape.
ARROW_NORTH_EAST, //Northeast arrow shape.
ARROW_NORTH, //North arrow shape.
SPEECH, //Speech shape.
STARBURST, //Star burst shape.
TEARDROP, //Teardrop shape. Corresponds to ECMA-376 ST_ShapeType 'teardrop'
ELLIPSE_RIBBON, //Ellipse ribbon shape. Corresponds to ECMA-376 ST_ShapeType 'ellipseRibbon'
ELLIPSE_RIBBON_2, //Ellipse ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType 'ellipseRibbon2'
CLOUD_CALLOUT, //Callout cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloudCallout'
CUSTOM, //Custom shape.
}
31 changes: 2 additions & 29 deletions packages/core/src/Interfaces/IDocumentData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
VerticalAlign,
WrapStrategy,
} from '../Enum';
import { IImageProperties } from './IImageProperties';
import { IShapeProperties } from './IShapeProperties';

// 注意:所有的尺寸单位,若无特殊说明,都是指pt,1 pt = 1 / 72 in
/**
Expand Down Expand Up @@ -450,35 +452,6 @@ export interface IObjectProperties {
*/
export interface IChartProperties {}

/**
* ShapeProperties
*/
export interface IShapeProperties {}

/**
* Properties of Image
*/
export interface IImageProperties {
contentUrl: string;
sourceUrl?: string;
brightness?: number;
contrast?: number;
transparency?: number;
cropProperties?: ICropProperties;
angle?: number;
}

/**
* Properties of crop image
*/
export interface ICropProperties {
offsetLeft: number;
offsetRight: number;
offsetTop: number;
offsetBottom: number;
angle: number;
}

// export enum BulletType {
// NONE,
// ORDERED_LIST,
Expand Down
23 changes: 23 additions & 0 deletions packages/core/src/Interfaces/IImageProperties.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Properties of Image
*/
export interface IImageProperties {
contentUrl: string;
sourceUrl?: string;
brightness?: number;
contrast?: number;
transparency?: number;
cropProperties?: ICropProperties;
angle?: number;
}

/**
* Properties of crop image
*/
export interface ICropProperties {
offsetLeft: number;
offsetRight: number;
offsetTop: number;
offsetBottom: number;
angle: number;
}
7 changes: 7 additions & 0 deletions packages/core/src/Interfaces/IPlaceholder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { PlaceholderType } from '../Enum/PlaceHolderType';

export interface IPlaceholder {
type: PlaceholderType;
index: number;
parentObjectId: string;
}
13 changes: 13 additions & 0 deletions packages/core/src/Interfaces/IShapeProperties.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ISolidFill } from './IStyleData';

/**
* ShapeProperties
*/
export interface IShapeProperties {
shapeBackgroundFill: ISolidFill;
// outline: IOutline;
// shadow: IShadow;
// link: ILink;
// contentAlignment: ContentAlignment;
// autoFit: IAutoFit;
}
40 changes: 38 additions & 2 deletions packages/core/src/Interfaces/ISlideData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { LocaleType, ThemeColorType } from '../Enum';
import { ShapeType } from '../Enum/ShapeType';
import { ICustomBlock, ILists, ISizeData } from './IDocumentData';
import { IImageProperties } from './IImageProperties';
import { IPlaceholder } from './IPlaceholder';
import { IShapeProperties } from './IShapeProperties';
import { IColorStyle } from './IStyleData';

export interface ISlideData extends IReferenceSource {
Expand Down Expand Up @@ -82,8 +86,8 @@ export interface IPageElement {

// Union field element_kind can be only one of the following:
// elementGroup: IGroup;
// shape: IShapeProperties;
// image: IImageProperties;
shape: IShape;
image: IImage;
// video: IVideo;
// line: ILine;
// table: ITable;
Expand All @@ -98,3 +102,35 @@ export enum PageType {
HANDOUT_MASTER, // A handout master page.
NOTES_MASTER, // A notes master page.
}

/**
* IShape
*/
export interface IShape {
shapeType: ShapeType;
text: string;
shapeProperties: IShapeProperties;
placeholder: IPlaceholder;
link: ILink;
}

export interface IImage {
imageProperties?: IImageProperties;
placeholder: IPlaceholder;
link: ILink;
}

export interface ILink {
url: string;
relativeLink: RelativeSlideLink;
pageObjectId: string;
slideIndex: number;
}

export enum RelativeSlideLink {
RELATIVE_SLIDE_LINK_UNSPECIFIED, // An unspecified relative slide link.
NEXT_SLIDE, // A link to the next slide.
PREVIOUS_SLIDE, // A link to the previous slide.
FIRST_SLIDE, // A link to the first slide in the presentation.
LAST_SLIDE, // A link to the last slide in the presentation.
}
5 changes: 5 additions & 0 deletions packages/core/src/Interfaces/IStyleData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export interface ITextDecoration {
t?: TextDecoration; // lineType
}

export interface ISolidFill {
color: IColorStyle;
alpha: number;
}

/**
* RGB color or theme color
*/
Expand Down