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
Olivier Mengué
2132de1a08
Extract WriteTo method (see io.WriterTo) to expose bytes written
...
Extract a WriteTo() method (see io.WriterTo) that exposes the count of bytes
written and rewrite Write() to use it.
7 years ago
Sebastian Willing
ccdefb3b16
Documentation:
...
* Add information about return value of NewSheet()
* Minor documentation language fixes
Samples:
* Added sample go file for dumping a XLSX file to the console
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
b5655ce121
Merge pull request #219 from jdevelop/feature/chart-size
...
Added helper functions to set the chart size.
7 years ago
Eugene Dzhurinsky
1787c3533b
Use format string for chart dimension.
...
Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
7 years ago
xuri
18aa606ffe
Merge pull request #221 from srdolor/outline
...
Added functions to set and get outline level for columns and rows.
7 years ago
Eugene Dzhurinsky
e09e47d988
Custom chart size.
...
Added helper functions to set the chart size.
Added the unit test
Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
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
Ilya Kuznetsov
e70618d084
Added functions to set and get outline level for columns and rows.
7 years ago
xuri
038e34250f
Merge pull request #220 from lunny/lunny/refactor
...
save bytes on memory instead of string
7 years ago
xuri
d04be7b33d
Merge branch 'master' into lunny/refactor
7 years ago
Ri Xu
3ca180f09c
Merge test cases and use strict error checking.
7 years ago
Lunny Xiao
38ad20efc1
save bytes on memory instead of string
7 years ago
xuri
761d47f45a
Merge pull request #211 from OloloevReal/master
...
Added ZoomScale SheetViewOption
7 years ago
xuri
3746ba6a50
Merge pull request #218 from lunny/master
...
Add iterator method for rows
7 years ago
Lunny Xiao
bc451a78de
add iterator method for rows
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
200437d778
Fix document typo.
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
OloloevReal
52eb0ececf
Merge branch 'master' of https://github.com/OloloevReal/excelize
7 years ago
OloloevReal
b8464af086
Added ZoomScale SheetViewOption
...
Accessible value between 10 - 400
Used as:
xlsx.SetSheetViewOptions(sheet, 0, excelize.ZoomScale(75))
7 years ago
OloloevReal
9933a49f0e
Fixed checking accessible value for ZoomScale, was missed in last commit
7 years ago
OloloevReal
4efc3dd8f0
Added ZoomScale SheetViewOption
...
Accessible value between 10 - 400
Used as:
xlsx.SetSheetViewOptions(sheet, 0, excelize.ZoomScale(75))
7 years ago
Ri Xu
2b97c3bb46
- Support to read inlineStr type cell value, relate issue #208 , PR #209 ;
...
- go test and godoc has been updated
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
50e3963332
Remove English from the Chinese Readme file.
7 years ago
Ri Xu
adce2de927
Add the Chinese version of the README file.
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
Ri Xu
638bd44dd5
- gofmted with -s;
...
- Fix ineffectual assignments in Go code;
- Godoc has been updated
7 years ago
xuri
12760a7ee6
Merge pull request #184 from martinal/speedup-setcellstyle-more
...
Speedup `SetCellStyle()` more.
7 years ago
Martin Sandve Alnæs
e556c25047
Avoid looping over unused rows and columns in SetCellStyle.
...
The recent improvement to SetCellStyle still loops
over all the rows before the area, moving the area checks
into the loop is more concise and faster.
Since the loop now covers the correct area by construction,
the inner loop check checkCellInArea is no longer needed.
7 years ago
Ri Xu
6f4e4d9ef1
Revert "The godoc and readme page has been updated."
...
This reverts commit e4611e9e25
.
7 years ago
Ri Xu
e4611e9e25
The godoc and readme page has been updated.
7 years ago
xuri
4aadca6db8
Merge pull request #183 from pvelder/182_fix
...
xlsx.SetCellValue() now supports bool value
7 years ago
dvelderp
b25ec6e9d3
xlsx.SetCellValue() now supports bool value
7 years ago