Commit Graph

442 Commits

Author SHA1 Message Date
xuri 204139739a
Merge branch 'master' into master 2018-09-27 23:40:00 +08:00
xuri 250946568c
Remove independent sample file 2018-09-27 23:36:27 +08:00
xuri 3e004d900b
Comments style changed. 2018-09-14 00:58:48 +08:00
xuri 13a9769cc5
Comments style changed. 2018-09-14 00:44:23 +08:00
xuri 2f146c923c
Comments style changed. 2018-09-14 00:35:47 +08:00
xuri 6ced438f39
New function `AddPictureFromBytes()` has been added, this resolve #259 and close #271. 2018-09-14 00:24:49 +08:00
xuri 4f47737d64
Complete unit testing case for data validation 2018-09-13 10:38:01 +08:00
xuri b4a6e61ec3
Fix golint errors under confidence 0.1 2018-09-12 15:47:56 +08:00
xuri 99c9d04f67
Merge pull request #270 from rentiansheng/valiationdata
data validation drop-down list use sqref cell  issue #268
2018-09-06 20:10:00 +08:00
rentiansheng 93cbafb0e2 data validation drop-down list use sqref cell issue #268 2018-09-04 13:40:53 +08:00
xuri 2da107d3b2
Fix typo. 2018-09-02 01:44:32 +08:00
xuri b691e617d0
Merge pull request #267 from rentiansheng/valiationdata, this closes #147 and closes #240.
Initialize data validation support
2018-09-01 23:48:00 +08:00
xuri ba459dc659
DataValidation struct changed
Change `allowBlank`, `ShowErrorMessage` and `ShowInputMessage` type as boolean, add new field `ShowDropDown`, change fields orders follow as ECMA-376-1:2016 18.3.1.32.
2018-09-01 23:36:57 +08:00
xuri 562ba3d234
Add function doc and fix golint error 2018-09-01 23:32:44 +08:00
rentiansheng 24a8d64f93 add datavalidation test and fixed struct bug issue #240 2018-09-01 19:38:30 +08:00
Farmerx ce5b37a4ac
# fix : file close 没有关闭 2018-08-20 16:53:51 +08:00
xuri ec37b114c3
Fixes #256 and format document. 2018-08-06 10:21:24 +08:00
rentiansheng 0548852190 data validation funcation 2018-07-30 22:09:41 +08:00
xuri efe3219af0
Delete ISSUE_TEMPLATE.md 2018-07-30 10:06:22 +08:00
xuri df6b0d9ff4
Create PULL_REQUEST_TEMPLATE.md 2018-07-29 14:00:21 +08:00
xuri b11b95a69a Update issue templates
Issue templates have been added.
2018-07-27 10:11:13 +08:00
xuri cddcf852c2
Merge pull request #253 from alex-whitney/252-color-scale-cond-formatting
Use min/mid/max value for 2 and 3 color scale conditional formatting
2018-07-26 09:46:26 +08:00
Alex Whitney db7a605cf8 Use min/mid/max value for 2 and 3 color scale conditional formatting 2018-07-25 10:47:14 -04:00
Alex Whitney a885bb0fb9 Add failing unit tests for issue-252 2018-07-25 10:45:09 -04:00
xuri a3571ee39b
Bugfix: create worksheet cause file issue. Relate issue #249. 2018-07-17 15:28:22 +08:00
xuri 79dfe1c307
GoDoc updated. 2018-07-13 17:40:47 +08:00
xuri 58a7b23d11
Merge pull request #246 from nad2000/retrieve-comments
added retrieval of worksheet comments
2018-07-10 10:10:38 +08:00
xuri d6468fc114
- Initialize theme support;
- RGBA, HSL color convert has been added;
- go test updated
2018-07-07 15:59:48 +08:00
Rad Cirskis 1a953b6601 added unit tests 2018-06-30 22:55:14 +12:00
Rad Cirskis e3050d21e7 added retieval of worksheet comments 2018-06-30 22:37:14 +12:00
xuri 9cb0e9308b
- Update Travis CI to include GOARCH=386 tests, relate issue #239 and #244;
- Fix doc typo
2018-06-30 16:44:09 +08:00
xuri d80d6aa318
Merge pull request #234 from dolmen-go/WriteTo
Extract WriteTo method (see io.WriterTo) to expose bytes written
2018-06-29 09:53:57 +08:00
xuri 07d568aa44
Merge pull request #241 from nad2000/issues/238
improved comment formatting
2018-06-28 10:05:57 +08:00
xuri 74c6091cfc
Update comment.go
make the comment box's height auto and having the minimum height.
2018-06-28 10:03:53 +08:00
xuri 13cf7a3b03
Merge pull request #243 from liepumartins/patch-2
Restore date 32bit compatibility
2018-06-27 14:03:06 +08:00
Mārtiņš 4855a43bc6 Restore date 32bit compatibility, be more verbose
Do not use large int64 constants that are not available in GOARCH=386
Fix #239
2018-06-26 16:41:26 +03:00
Rad Cirskis 741810a863 improved commenting formatting 2018-06-23 23:35:27 +12:00
xuri 3a91b28ddb
Merge pull request #237 from liepumartins/patch-1
Ability to parse dates further in future
2018-06-20 15:53:30 +08:00
Mārtiņš 37c470e8c0 Ability to parse dates further in future
Golangs time.Duration uses nanoseconds, thus it is limited to approximately 290 years.
2018-06-20 09:16:25 +03:00
xuri 5db716d849
Merge pull request #155 from dolmen-go/deepcopy-with-reflect
CopySheet() using reflect instead of encoding/gob
2018-06-17 21:38:14 +08:00
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
```
2018-06-14 17:54:31 +02:00
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.
2018-06-14 17:00:00 +02:00
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
2018-06-11 17:25:28 +02:00
xuri 9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
- go test has been updated
2018-05-27 11:25:55 +08:00
xuri aaced358f1
- Initialize shared formula types support, relate issue #227;
- go test and godoc has been updated
2018-05-26 16:23:15 +08:00
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
2018-05-15 21:00:56 +08:00
xuri 167554bfec
Improve unit testing, remove redundant code. 2018-05-14 10:12:46 +08:00
xuri eb62256d16
Simplify testing code, add test case for outline functions and update the godoc. 2018-05-11 10:14:18 +08:00
xuri b5655ce121
Merge pull request #219 from jdevelop/feature/chart-size
Added helper functions to set the chart size.
2018-05-10 09:50:31 +08:00
Eugene Dzhurinsky 1787c3533b Use format string for chart dimension.
Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
2018-05-09 08:13:20 -04:00