@@ -34,6 +34,7 @@ const PictureXform = require('../../xlsx/xform/sheet/picture-xform');
3434const ConditionalFormattingsXform = require ( '../../xlsx/xform/sheet/cf/conditional-formattings-xform' ) ;
3535const HeaderFooterXform = require ( '../../xlsx/xform/sheet/header-footer-xform' ) ;
3636const RowBreaksXform = require ( '../../xlsx/xform/sheet/row-breaks-xform' ) ;
37+ const ColBreaksXform = require ( '../../xlsx/xform/sheet/col-breaks-xform' ) ;
3738
3839// since prepare and render are functional, we can use singletons
3940const xform = {
@@ -52,6 +53,7 @@ const xform = {
5253 conditionalFormattings : new ConditionalFormattingsXform ( ) ,
5354 headerFooter : new HeaderFooterXform ( ) ,
5455 rowBreaks : new RowBreaksXform ( ) ,
56+ colBreaks : new ColBreaksXform ( ) ,
5557} ;
5658
5759// ============================================================================================
@@ -107,6 +109,7 @@ class WorksheetWriter {
107109
108110 // keep a record of all row and column pageBreaks
109111 this . rowBreaks = [ ] ;
112+ this . colBreaks = [ ] ;
110113
111114 // for default row height, outline levels, etc
112115 this . properties = Object . assign (
@@ -246,6 +249,7 @@ class WorksheetWriter {
246249 this . _writeBackground ( ) ;
247250 this . _writeHeaderFooter ( ) ;
248251 this . _writeRowBreaks ( ) ;
252+ this . _writeColBreaks ( ) ;
249253
250254 // Legacy Data tag for comments
251255 this . _writeLegacyData ( ) ;
@@ -653,6 +657,10 @@ class WorksheetWriter {
653657 this . stream . write ( xform . rowBreaks . toXml ( this . rowBreaks ) ) ;
654658 }
655659
660+ _writeColBreaks ( ) {
661+ this . stream . write ( xform . colBreaks . toXml ( this . colBreaks ) ) ;
662+ }
663+
656664 _writeDataValidations ( ) {
657665 this . stream . write ( xform . dataValidations . toXml ( this . dataValidations . model ) ) ;
658666 }
0 commit comments