1. 23 3月, 2019 1 次提交
    • xurime's avatar
      refactor: handler error instead of panic, · 40ff5dc1
      xurime 提交于
      Exported functions:
      
      SetCellStyle
      InsertCol
      RemoveCol
      RemoveRow
      InsertRow
      DuplicateRow
      DuplicateRowTo
      SetRowHeight
      GetRowHeight
      GetCellValue
      GetCellFormula
      GetCellHyperLink
      SetCellHyperLink
      SetCellInt
      SetCellBool
      SetCellFloat
      SetCellStr
      SetCellDefault
      GetCellStyle
      SetCellValue
      MergeCell
      SetSheetRow
      SetRowVisible
      GetRowVisible
      SetRowOutlineLevel
      GetRowOutlineLevel
      GetRows
      Columns
      SearchSheet
      AddTable
      GetPicture
      AutoFilter
      GetColVisible
      SetColVisible
      GetColOutlineLevel
      SetColOutlineLevel
      SetColWidth
      GetColWidth
      
      inner functions:
      
      adjustHelper
      adjustMergeCells
      adjustAutoFilter
      prepareCell
      setDefaultTimeStyle
      timeToExcelTime
      addDrawingChart
      addDrawingVML
      addDrawingPicture
      getTotalRowsCols
      checkRow
      addDrawingShape
      addTable
      40ff5dc1
  2. 20 3月, 2019 2 次提交
    • xurime's avatar
      resolve #360, fix axis parse issue when add / get pictures; · 40ea8eb0
      xurime 提交于
      typo fixed and go test updated
      40ea8eb0
    • V
      Huge refactorig for consistent col/row numbering (#356) · dc012645
      Veniamin Albaev 提交于
      * 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
      dc012645
  3. 07 3月, 2019 1 次提交
  4. 06 3月, 2019 1 次提交
    • V
      Implement consistent row addressing by Excel row number starting with 1 (#350) · 12c1e248
      Veniamin Albaev 提交于
      * 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
      12c1e248
  5. 25 2月, 2019 1 次提交
  6. 22 2月, 2019 1 次提交
  7. 02 2月, 2019 1 次提交
    • O
      Faster TitleToNumber (#343) · e780e41e
      Olivier Mengué 提交于
      * TestTitleToNumber: more test cases
      
      * TitleToNumber: drop use of math.Pow()
      
      Compute using pure integers
      
      * TitleToNumber: simplify
      
      Remove unecessary casts to int
      e780e41e
  8. 10 1月, 2019 1 次提交
    • V
      New feature: File.DuplicateRowTo() duplicate row to specified row position. · 725c1a0c
      Veniamin Albaev 提交于
      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.
      725c1a0c
  9. 01 1月, 2019 1 次提交
  10. 27 12月, 2018 1 次提交
    • V
      Tests refactoring · 35426ed5
      Veniamin Albaev 提交于
      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)
      35426ed5
  11. 26 12月, 2018 3 次提交
  12. 23 12月, 2018 1 次提交
  13. 19 12月, 2018 1 次提交
  14. 05 12月, 2018 1 次提交
  15. 04 11月, 2018 1 次提交
  16. 02 11月, 2018 1 次提交
  17. 27 10月, 2018 1 次提交
  18. 18 10月, 2018 1 次提交
  19. 12 10月, 2018 1 次提交
  20. 14 9月, 2018 1 次提交
  21. 17 7月, 2018 1 次提交
  22. 07 7月, 2018 1 次提交
  23. 30 6月, 2018 1 次提交
  24. 14 6月, 2018 1 次提交
    • O
      CopySheet() using reflect instead of encoding/gob · 4a1b4064
      Olivier Mengué 提交于
      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
      ```
      4a1b4064
  25. 27 5月, 2018 1 次提交
  26. 26 5月, 2018 1 次提交
  27. 15 5月, 2018 1 次提交
  28. 14 5月, 2018 1 次提交
  29. 11 5月, 2018 1 次提交
  30. 08 5月, 2018 1 次提交
  31. 07 5月, 2018 1 次提交
  32. 04 5月, 2018 1 次提交
  33. 26 4月, 2018 1 次提交
  34. 23 4月, 2018 1 次提交
  35. 08 4月, 2018 1 次提交
  36. 02 4月, 2018 1 次提交
  37. 29 3月, 2018 1 次提交