xuri
40ea8eb014
resolve #360 , fix axis parse issue when add / get pictures;
...
typo fixed and go test updated
6 years ago
Veniamin Albaev
dc01264562
Huge refactorig for consistent col/row numbering ( #356 )
...
* Huge refactorig for consistent col/row numbering
Started from simply changing ToALphaString()/TitleToNumber() logic and related fixes.
But have to go deeper, do fixes, after do related fixes and again and again.
Major improvements:
1. Tests made stronger again (But still be weak).
2. "Empty" returns for incorrect input replaces with panic.
3. Check for correct col/row/cell naming & addressing by default.
4. Removed huge amount of duplicated code.
5. Removed ToALphaString(), TitleToNumber() and it helpers functions at all,
and replaced with SplitCellName(), JoinCellName(), ColumnNameToNumber(), ColumnNumberToName(), CellNameToCoordinates(), CoordinatesToCellName().
6. Minor fixes for internal variable naming for code readability (ex. col, row for input params, colIdx, rowIdx for slice indexes etc).
* Formatting fixes
6 years ago
caozhiyi
b974df402a
update go test and function docs
6 years ago
Veniamin Albaev
12c1e2481e
Implement consistent row addressing by Excel row number starting with 1 ( #350 )
...
* Implement consistent row addressing by Excel row number starting with 1
1. Added second versions for all row manipulation methods with zero-based row addressing.
2. Fixed methods documentation to explicitly describe which row addressing used in method.
3. Added WARNING to README.md.
4. Cosmetic change: All row test moved to file `rows_test.go`.
* TravisCI: go1.12 added to tests matrix
* BACKWARD INCOMPARTIBLE: Use only Excel numbering logic from 1 row
* README updated
6 years ago
xuri
1aed1d744b
Resolve #274 , performance optimization for add images, charts and shapes
6 years ago
xuri
0072bb7310
resolve the issue corrupted xlsx after deleting formula of cell, reference #346
6 years ago
Olivier Mengué
e780e41e02
Faster TitleToNumber ( #343 )
...
* TestTitleToNumber: more test cases
* TitleToNumber: drop use of math.Pow()
Compute using pure integers
* TitleToNumber: simplify
Remove unecessary casts to int
6 years ago
Veniamin Albaev
725c1a0c40
New feature: File.DuplicateRowTo() duplicate row to specified row position.
...
DuplicateRowTo() is similar to DuplicateRow() but copies specified row not just after specified source row
but to any other specified position below or above source row.
Also I made minor modifications of tests: using filepath.Join() instead of direct unix-way paths strings
to avoid possible tests fails on other OS.
6 years ago
xuri
fabd9d013f
README updated
6 years ago
Veniamin Albaev
35426ed5dc
Tests refactoring
...
Primary motivation: Avoid statefull tests with not ignorable git file tree changes.
Multiple tests reads and overwrites signle file for won needs.
Multiple tests reads and overwrites file under version control.
Secondary motivation: Minimal tests logic aligment, separate error expectation
and not error expectation tests. Introduce sub-test over test data sets and so far.
This commit is not ideal but necessary (IMHO)
6 years ago
xuri
9a6f66a996
New feature: the function `SearchSheet` now support regular expression, relate pull request #316
6 years ago
Veniamin Albaev
7b7ca99f5d
Duplicate row ( #317 )
...
* go mod tidy applied
* File.DuplicateRow() method added
6 years ago
r-uchino
9b8baf75ad
Add RegSearchSheet ( #316 )
6 years ago
xuri
b04107c4a3
Resolve #311 , create 2D/3D area, stacked area, 100% stacked area chart support
6 years ago
xuri
3ca3156d45
Merge pull request #313 from sairoutine/feature/get_merge_cells
...
Add GetMergeCells
6 years ago
sairoutine
3012df08eb
Add GetMergeCells
6 years ago
xuri
b89f75c896
Add new logo for excelize
6 years ago
q523591
51857a217d
New function `UnprotectSheet()` has been added
6 years ago
HcySunYang
4dbc78ce0a
resolve #273 new feature: protect sheet support
...
new feature: protect sheet support, relate issue #273
6 years ago
covv
75edf1ac7d
Add testing case for the function `SearchSheet()`.
6 years ago
xuri
90bdd3632f
Fix the issue caused by missing tradition to strict conversion for `sharedStringsReader()`, relate issue #276
6 years ago
lizheao
2be4d45c62
feat: add new function and refactor writeto action
...
* add new exported function to get Excel file content buffer
* refactor the WriteTo function
6 years ago
xuri
6ced438f39
New function `AddPictureFromBytes()` has been added, this resolve #259 and close #271 .
6 years ago
xuri
a3571ee39b
Bugfix: create worksheet cause file issue. Relate issue #249 .
7 years ago
xuri
58a7b23d11
Merge pull request #246 from nad2000/retrieve-comments
...
added retrieval of worksheet comments
7 years ago
xuri
d6468fc114
- Initialize theme support;
...
- RGBA, HSL color convert has been added;
- go test updated
7 years ago
Rad Cirskis
1a953b6601
added unit tests
7 years ago
Olivier Mengué
4a1b406456
CopySheet() using reflect instead of encoding/gob
...
Use github.com/mohae/deepcopy to deep copy worksheets instead of the
internal deepcopy function that was using encoding/gob serialization and
deserialization.
Rationale:
1/ using `encoding/gob` is much slower than
[`mohae/deepcopy`](https://github.com/mohae/deepcopy/ )
2/ When building an application this implementation of `deepcopy` drags
the `encoding/gob` package into the binary. And this package is much
bigger than `mohae/deepcopy` (which only depends on `time` and `reflect`).
```
$ LC_ALL=C stat -f "%6z %N" $(go env GOPATH)/pkg/$(go env GOOS)_$(go env GOARCH)/github.com/mohae/deepcopy.a $(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)/encoding/gob.a
10508 .../pkg/darwin_amd64/github.com/mohae/deepcopy.a
541818 .../pkg/darwin_amd64/encoding/gob.a
```
7 years ago
xuri
9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
...
- go test has been updated
7 years ago
xuri
aaced358f1
- Initialize shared formula types support, relate issue #227 ;
...
- go test and godoc has been updated
7 years ago
xuri
d96440edc4
- Performance optimization 20% faster, 14% memory savings on set cell values;
...
- Using the canonical syntax in issue template and contributing guide;
- go test has been updated
7 years ago
xuri
167554bfec
Improve unit testing, remove redundant code.
7 years ago
xuri
eb62256d16
Simplify testing code, add test case for outline functions and update the godoc.
7 years ago
xuri
e8961f0aff
- Bugfix: set font family not works, relate issue #222 ;
...
- Remove useless function `replaceWorkSheetsRelationshipsNameSpace()`;
- Make test cases use strict error checking
7 years ago
Ri Xu
3ca180f09c
Merge test cases and use strict error checking.
7 years ago
Ri Xu
934ecec1a9
- Set name of table support in `AddTable()`, relate issue #216 ;
...
- godoc and go test has been updated
7 years ago
Ri Xu
a9c7d6637c
- Support to set the positioning of a picture, relate issue #214 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
9ee57fdb38
Fix typo and adding Chinese version document.
7 years ago
Ri Xu
564ebe48dd
- Fix `checkCellInArea()` index out of range when merged cell ref is single coordinate, relate issue #206 ;
...
- go test updated;
- Repository icon for SourceTree has been added
7 years ago
Ri Xu
a6fc5a721d
- Make row index consistent in function `SetRowHeight` and `GetRowHeight`, fix issue #205 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
dcbde4b831
- Add categories or values on reverse order (orientation of the chart) support, and set auto or fixed maximum, minimum of the axis, relate issue #202 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
d65b30055d
- Update the function `NewSheet()` to handle when already exists a worksheet of the same name, relate pull request #196 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
770026e956
- New function `SetSheetRow()` has been added for support write whole line at once, relate issue #96 and #194 ;
...
- go test and godoc updated;
- Note that this function performance has not been tested
7 years ago
Ri Xu
ecc3adf22a
- Add protection properties associated with the cell support, relate issue #191 ;
...
- godoc and go test has been updated
7 years ago
Ri Xu
06e54bf1c6
Readme and godoc has been updated.
7 years ago
Ri Xu
45c31c4764
- Update the function `AddChart()`: clustered, stacked and 100% stacked bar and column series charts supported, relate issue #190 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
b1b056e0eb
Handle special shared string table file name `xl/SharedStrings.xml`, relate issue #188
7 years ago
Ri Xu
9d7b94d760
Update godoc to make charts compatibility with WPS, relate issue #187 .
7 years ago
Ri Xu
7621927573
- Add a hyperlink to an image support for the function `AddPicture()`, relate issue #185 ;
...
- go test and document has been updated.
7 years ago
dvelderp
b25ec6e9d3
xlsx.SetCellValue() now supports bool value
7 years ago
Ri Xu
50cdaed5a3
- Add 3D column and 3D 100% stacked column chart support, relate issue #160 ;
...
- go test updated
7 years ago
Ri Xu
52b1a8e896
- Function `SetCellValue()` time.Duration support added, relate issue #176 ;
...
- go test updated
7 years ago
xuri
443695732e
Merge pull request #153 from jinzhu/master
...
Rename import path to github.com/360EntSecGroup-Skylar/excelize
7 years ago
Rohan Allison
cc1d3fefc2
Add stacked bar chart
7 years ago
Jinzhu
21214a514d
Rename import path to github.com/360EntSecGroup-Skylar/excelize
7 years ago
Ri Xu
f10ee929d0
- Bugfix: use sheet name in func `AddPicture`, relate issue #142 ;
...
- godoc updated
7 years ago
Ri Xu
b4ffa8ce48
- Add unsigned integer data type support, related issue #136 ;
...
- go test and godoc updated
Signed-off-by: Ri Xu <xuri.me@gmail.com>
7 years ago
Ri Xu
e820388d70
Handle coordinate parse exception, relate issue #122 .
7 years ago
Ri Xu
f05f799f8d
- API changed, use worksheet name instead of "sheet" + index, related issue #25 , #43 , #47 , #51 , #89 , #101 , #116 and #120 .
...
- go test updated
7 years ago
Ri Xu
3e7192b6ab
Simple go test.
7 years ago
Ri Xu
565b23e0e9
go test added for pull request #114
7 years ago
Ri Xu
1ec2661dda
Bugfix: deep copy issue with function `CopySheet()`, relate PR #108 .
8 years ago
Ri Xu
77af25295e
- Conditional format with formula support, relate issue #75 ;
...
- go test and readme update
8 years ago
Ri Xu
67636039f6
- Init conditional format support, relate issue #75 ;
...
- go test and godoc updated
8 years ago
Ri Xu
a8cf38ebd5
- New function `GetCellHyperLink()` added, relate issue #98 ;
...
- go test added
8 years ago
Ri Xu
6626a26f7b
Simplify code and update unit tests.
8 years ago
Ri Xu
308776e350
Optimize code, go test and godoc updated.
8 years ago
Youngwan Kim
5a4870d1cf
Add extra argument "Linktype" to SetCellHyperLink
...
it support "External" and "Location"
Signed-off-by: Youngwan Kim <y103.kim@gmail.com>
8 years ago
Ri Xu
bbed2f6dc9
- Init create or remove panes support;
...
- go test updated
8 years ago
Ri Xu
4a74951e81
- Support set custom number format, relate issue #86 ;
...
- go test and godoc updated
8 years ago
Ri Xu
6aa59a1af2
- Init insert/remove column/row support. Relate issue #77 and #82 ;
...
- Readme and go test updated
8 years ago
Ri Xu
101abe8e98
Add currency format code and go test updated.
8 years ago
Ri Xu
60fa5a5be1
- Display negative numbers by applying a red color supported;
...
- go test updated
8 years ago
Ri Xu
bc31e545c8
- Currency format supported, relate issue #80 ;
...
- go test and godoc updated
8 years ago
Ri Xu
20aae4e0e6
Repo URI changed.
8 years ago
Ri Xu
654a676d93
- New function `NewStyle()` added and function `SetCellStyle()` has been exported, relate issue #72 ;
...
- go test and go doc updated
8 years ago
Ri Xu
86466654e2
- Unify the index row number index of functions `SetRowHeight()` and `GetRowHeight()` relate issue #68 ;
...
- Unify the return value data type of functions `SetColWidth()` and `GetColWidth()`;
- go test updated
8 years ago
Ri Xu
66e5d1fa80
API changed, use `NewFile()` instead of `CreateFile()` and use `SaveAs()` instead of `WriteTo()`.
8 years ago
Ri Xu
7bc43301da
- Support insert new lines into shape, relate issue #38 , note that the format set parameter of function `AddShape()` changed;
...
- go test and go doc updated
8 years ago
Ri Xu
9928bbc7c8
- New functions `GetColVisible()` and `SetColVisible()` added, relate issue #61 ;
...
- go test updated;
- Fix typo
8 years ago
Ri Xu
a9f671d98f
- New functions: `GetSheetVisible()` and `GetRowVisible()` added, relate issue #61 ;
...
- go test updated
8 years ago
Ri Xu
c89d842352
Init auto filter support, relate issue #59 .
8 years ago
Ri Xu
70f6328150
Support set font style of shape text. Relate issue #38 .
8 years ago
Ri Xu
cf97118bfe
- The max author and text in comment limit added;
...
- go doc and go test updated
8 years ago
Ri Xu
d93a156355
Initialize comments support & go test updated.
8 years ago
Ri Xu
8fbab47444
- Formatted cell data support, fix issue #48 ;
...
- Function `SetCellValue()` support `time.Time` data type parameter, relate issue #49 ;
- go doc and go test updated
8 years ago
Ri Xu
7f30a6c943
- Initialize shape support: new function `AddShape()` added. Relate issue #38 ;
...
- Drawing `nvPicPr` element ID property calculation changed;
- go test updated
8 years ago
Ri Xu
46b8c46d91
- Initialize table support;
...
- go test updated
8 years ago
Ri Xu
2868bd3ec9
- New function `HideSheet()` and `UnhideSheet()` added;
...
- go test updated
8 years ago
Ri Xu
266d2c36e5
- Font bold, italic and underline style support. Relate issue #45 ;
...
- Function `GetRows()` doc updated, relate issue #43 ;
- go test and embed template updated
8 years ago
Ri Xu
d78ac4108c
- Update doc of function `AddChart()`;
...
- Readme updated;
- go test update
8 years ago
Ri Xu
219aadeb76
- Initialize char support, relate issue #31 ;
...
- Doc for function `GetRows()` updated, relate issue #43 ;
- Fix doc typo in `xmlContentTypes.go`;
- Default template updated;
- Readme updated;
- go test updated
8 years ago
Ri Xu
6e287839ec
- Set number format for a cell support;
...
- go test updated
8 years ago
Ri Xu
c7e277a07a
- New function `CopySheet()` added, relate issue #33 ;
...
- Typo fixed;
- go test updated
8 years ago
Ri Xu
b4ed9cc40f
New function `GetSheetIndex()` added, relate issue #25 ;
...
Fix return index error in function `GetSheetMap()`;
Fix return worksheet name error in function `GetSheetName()`;
go test updated
8 years ago
Ri Xu
02b81b7efe
- Get an images in a cell supported, new function `GetPicture` added;
...
- go test updated
8 years ago
Ri Xu
bee487c445
Leading space(s) character in cell value detection added. Related issue #32 .
8 years ago
Ri Xu
b6254209fe
- Set text in cell align support, note that the parameters of the `SetCellStyle` function have changed;
...
- go test updated
8 years ago
Ri Xu
0d3452fbe2
- Delete sheet from workbook support, related issue #30 ;
...
- go test updated
8 years ago
Ri Xu
68b4d1f546
- Set cell background color and style support;
...
- Rename function `SetBorder` to `SetCellStyle`;
- Complete `xlsxColor` structure definition;
- go test updated
8 years ago