@hufe921/canvas-editor 0.9.27 → 0.9.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (()=>{(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;overflow-y:auto}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-date-container{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#ffffff;border-radius:4px;padding:10px;user-select:none;border:1px solid #e4e7ed;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-title{display:flex;justify-content:center;align-items:center;text-align:center;color:#606266;font-size:16px}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){font-family:cursive;cursor:pointer}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{width:100%;display:flex;justify-content:center;margin-top:15px;padding-bottom:5px;border-bottom:1px solid #e4e7ed}.ce-date-week>span{list-style:none;width:14.28571%;text-align:center;color:#606266;font-size:14px}.ce-date-day{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:5px}.ce-date-day>div{width:14.28571%;height:40px;text-align:center;color:#606266;font-size:14px;cursor:pointer;line-height:40px;border-radius:4px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{display:none;padding:10px;height:286px}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{width:33.3%;height:100%;text-align:center}.ce-time-wrap>li>span{transform:translateY(-5px);display:inline-block}.ce-time-wrap>li>ol{height:calc(100% - 20px);overflow-y:auto;border:1px solid #e2e2e2;position:relative}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{line-height:30px;cursor:pointer;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175F4}.ce-date-menu{width:100%;height:28px;display:flex;justify-content:flex-end;align-items:center;padding-top:10px;position:relative;border-top:1px solid #e4e7ed}.ce-date-menu button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;appearance:none;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:500;user-select:none;padding:7px 15px;font-size:12px;border-radius:3px;margin:0 0 0 10px}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid transparent;position:absolute;left:0;margin-left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{position:absolute;z-index:0;overflow:hidden;border-radius:8px;background-color:#fff;border:1px solid rgb(235 236 240)}.ce-table-tool__row{position:absolute;width:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed}.ce-table-tool__row .ce-table-tool__row__item{width:100%;position:relative}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";position:absolute;bottom:0;left:2px;width:8px;height:1px;background-color:#c0c6cf}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__col{position:absolute;height:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed;display:flex}.ce-table-tool__col .ce-table-tool__col__item{height:100%;position:relative}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";position:absolute;top:2px;left:-1px;width:1px;height:8px;z-index:1;background-color:#c0c6cf}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{right:-5px;width:10px;height:12px;z-index:9;position:absolute;cursor:col-resize}.ce-table-tool__row .ce-table-tool__anchor{bottom:-5px;left:0;width:12px;height:10px;z-index:9;position:absolute;cursor:row-resize}.ce-table-anchor__line{z-index:9;position:absolute;border:1px dotted #000000}.ce-table-tool__border{position:absolute;z-index:1;background:transparent;pointer-events:none}.ce-table-tool__border__row{position:absolute;cursor:row-resize;pointer-events:auto}.ce-table-tool__border__col{position:absolute;cursor:col-resize;pointer-events:auto}.ce-resizer-selection{position:absolute;border:1px solid}.ce-resizer-selection>div{position:absolute;width:10px;height:10px;box-shadow:0 1px 4px #0000004d;border-radius:5px;border:2px solid #ffffff;box-sizing:border-box}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-image{position:absolute;opacity:.5}.ce-image-previewer{position:fixed;left:0;top:0;z-index:1000;width:100%;height:100%;overflow:hidden;background:#f2f4f7;display:flex;align-items:center;justify-content:center;animation:previewerAnimation .3s}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{width:24px;height:24px;display:inline-block;position:absolute;right:50px;top:30px;z-index:99;cursor:pointer;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIzLjk3IDdsMS40MTUgMS40MTQtNy43NzkgNy43NzggNy43NzkgNy43NzktMS40MTQgMS40MTQtNy43NzktNy43NzktNy43NzggNy43NzlMNyAyMy45N2w3Ljc3OC03Ljc3OUw3IDguNDE0IDguNDE0IDdsNy43NzggNy43NzhMMjMuOTcxIDd6IiBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=) no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{height:50px;position:absolute;bottom:50px;z-index:99;display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i{width:32px;height:32px;margin:0 8px;cursor:pointer;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0IDE0di00aDJ2NGg0djJoLTR2NGgtMnYtNGgtNHYtMmg0em04Ljc0OSAxMC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIyLjc0OSAyNC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHptLTUtMTFoMTB2MkgxMHYtMnoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.rotate{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTYgNGM2LjYyNyAwIDEyIDUuMzczIDEyIDEyYTExLjk3IDExLjk3IDAgMDEtNCA4Ljk0NFYyM2gtLjg2QTkuOTY4IDkuOTY4IDAgMDAyNiAxNmMwLTUuNTIzLTQuNDc3LTEwLTEwLTEwUzYgMTAuNDc3IDYgMTZjMCA1LjE4NSAzLjk0NyA5LjQ0OSA5IDkuOTV2Mi4wMDlDOC44NCAyNy40NTEgNCAyMi4yOTEgNCAxNiA0IDkuMzczIDkuMzczIDQgMTYgNHoiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik0xOS44NzkgMjcuMzI4bDEuNzY3LTYuNzE3IDQuOTUgNC45NXoiLz48L2c+PC9zdmc+)}.ce-image-previewer .ce-image-menu i.original-size{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQgNGgyNHYyNEg0VjR6bTIgMnYyMGgyMFY2SDZ6bTQgNWgydjEwaC0yVjExem01IDJoMnYyaC0ydi0yem0wIDRoMnYyaC0ydi0yem01LTZoMnYxMGgtMlYxMXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.image-download{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQuNSAxNXYzLjVoMTVWMTVIMjF2NUgzdi01aDEuNXptOC4yMzItMTEuMjI2djkuMTk2bDQuMDUtNC4wNSAxLjA2IDEuMDYtNS44MzQgNS44MzQtNS44MzMtNS44MzMgMS4wNi0xLjA2IDMuOTk4IDMuOTk2VjMuNzc0aDEuNXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-contextmenu-container{z-index:9;position:fixed;display:none;padding:4px;overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.ce-contextmenu-content{display:flex;flex-direction:column}.ce-contextmenu-content .ce-contextmenu-sub-item:after{position:absolute;content:"";width:16px;height:16px;right:12px;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDE2djE2SDB6Ii8+PGcgZmlsbD0iIzc2N0M4NSI+PHBhdGggZD0iTTcgMTIuMjQzbC0uNzA3LS43MDcgNC4yNDMtNC4yNDMuNzA3LjcwN3oiLz48cGF0aCBkPSJNNi4yOTMgNC40NjRMNyAzLjc1NyAxMS4yNDMgOGwtLjcwNy43MDd6Ii8+PC9nPjwvZz48L3N2Zz4=)}.ce-contextmenu-content .ce-contextmenu-item{min-width:140px;padding:0 32px 0 16px;height:30px;display:flex;align-items:center;white-space:nowrap;box-sizing:border-box;cursor:pointer}.ce-contextmenu-content .ce-contextmenu-item.hover{background:rgba(25,55,88,.04)}.ce-contextmenu-content .ce-contextmenu-item span{max-width:300px;font-size:12px;color:#3d4757;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;height:30px;flex:1;text-align:right;line-height:30px;margin-left:20px}.ce-contextmenu-content .ce-contextmenu-item i{width:16px;height:16px;vertical-align:middle;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;margin-right:8px}.ce-contextmenu-divider{background-color:#e2e6ed;margin:4px 16px;height:1px}.ce-contextmenu-print{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0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ce-contextmenu-insert-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiMzRDQ3NTciIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNCA3djFoMlY3em0tMyAuNUw0IDV2NXpNMSAxaDEydjFIMXptMCAxMmgxMnYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-top-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNOCA1SDd2M2gxem0tLjUtM0wxMCA1SDV6Ii8+PHJlY3Qgc3Ryb2tlPSIjM0Q0NzU3IiB4PSIxLjUiIHk9IjEwLjUiIHdpZHRoPSIxMiIgaGVpZ2h0PSIzIiByeD0iMSIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-insert-bottom-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNyAxMWgxVjhIN3ptLjUgM0w1IDExaDV6Ii8+PHJlY3Qgc3Ryb2tlPSIjM0Q0NzU3IiB4PSIxLjUiIHk9IjIuNSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjMiIHJ4PSIxIi8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-left-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMTEgN3YxaDNWN3ptLTMgLjVMMTEgNXY1eiIvPjxyZWN0IHN0cm9rZT0iIzNENDc1NyIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgNCA3LjUpIiB4PSItMiIgeT0iNiIgd2lkdGg9IjEyIiBoZWlnaHQ9IjMiIHJ4PSIxIi8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-right-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNSA4VjdIMnYxem0zLS41TDUgMTBWNXoiLz48cmVjdCBzdHJva2U9IiMzRDQ3NTciIHRyYW5zZm9ybT0icm90YXRlKDkwIDEyIDcuNSkiIHg9IjYiIHk9IjYiIHdpZHRoPSIxMiIgaGVpZ2h0PSIzIiByeD0iMSIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNi41aDZ2MmgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMiAxMmgxMXYxSDJ6TTIgMmgxMXYxSDJ6bS42MyAzTDcgOS4zNWwtLjYzNS42NUwyIDUuNjN6Ii8+PHBhdGggZmlsbD0iIzNENDc1NyIgZD0iTTIgOS4zNjNMNi4zNTUgNSA3IDUuNzA3IDIuNjk1IDEweiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMSAxM2gxMnYxSDF6TTEgMWgxMnYxSDF6bTAgNGgxdjFIMXptMSAxaDF2MUgyem0xIDFoMXYxSDN6bTEtMWgxdjFINHptMS0xaDF2MUg1ek00IDhoMXYxSDR6TTIgOGgxdjFIMnptMyAxaDF2MUg1ek0xIDloMXYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-delete-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik01LjUgNy41di02aDR2NnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMTMgMTVWM2gxdjEyek0xIDE1VjNoMXYxMnptNCAwdi0xaDF2MXptMS0xdi0xaDF2MXptMS0xdi0xaDF2MXptLTEtMXYtMWgxdjF6bS0xLTF2LTFoMXYxem0zIDF2LTFoMXYxem0wIDJ2LTFoMXYxem0xLTN2LTFoMXYxem0wIDR2LTFoMXYxeiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-table{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQgMTNoLTF2LTNIMnYzSDF2LTNhMSAxIDAgMDExLTFoMTFhMSAxIDAgMDExIDF2M3oiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik01LjYyNSAyTDEwIDYuMzc1IDkuMzc1IDcgNSAyLjYyNXoiLz48cGF0aCBkPSJNNSA2LjM3NUw5LjM3NSAybC42MjUuNjI1TDUuNjI1IDd6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik04IDcuNUwxMCA2djN6bS0xIDBMNSA2djN6Ii8+PHBhdGggZD0iTTkgN2gzdjFIOXpNMyA3aDN2MUgzeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTggMTBoMXY0SDh6bS0yIDBoMXY0SDZ6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cancel-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik0zIDcuNUw1IDZ2M3ptOSAwTDEwIDZ2M3oiLz48cGF0aCBkPSJNNCA3aDN2MUg0em00IDBoM3YxSDh6Ii8+PHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNOCAxMGgxdjRIOHptLTIgMGgxdjRINnoiLz48L2c+PC9zdmc+)}.ce-contextmenu-vertical-align{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAxM2gxMnYxSDJ6bTAtM2g4djFIMnptMC0zaDEydjFIMnptMC02aDEydjFIMnptMCAzaDh2MUgyeiIgZmlsbD0iIzNkNDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-top{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggOEg3djZoMXptLS41LTNMMTAgOEg1ek0yIDNoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-middle{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxMkg3djNoMXptLS41LTNsMi41IDNINXpNNyAzaDFWMEg3em0uNSAzTDUgM2g1ek0yIDdoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-bottom{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgOWgxVjNIN3ptLjUgM0w1IDloNXpNMiAxM2gxMXYxSDJ6IiBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ce-contextmenu-border-all{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iIzNENDc1NyIvPjxwYXRoIGZpbGw9IiMzRDQ3NTciIGQ9Ik0zIDhoMTF2MUgzeiIvPjxwYXRoIGZpbGw9IiMzRDQ3NTciIGQ9Ik05IDN2MTFIOFYzeiIvPjwvc3ZnPg==)}.ce-contextmenu-border-empty{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMyAzaC0xVjJoMWExIDEgMCAwMTEgMXYxaC0xVjN6bS0zLTF2MUg4LjV2MmgtMVYzSDZWMmg0ek00IDJ2MUgzdjFIMlYzYTEgMSAwIDAxMS0xaDF6TTIgNmgxdjEuNWgydjFIM1YxMEgyVjZ6bTAgNmgxdjFoMXYxSDNhMSAxIDAgMDEtMS0xdi0xem00IDJ2LTFoMS41di0yaDF2MkgxMHYxSDZ6bTYgMHYtMWgxdi0xaDF2MWExIDEgMCAwMS0xIDFoLTF6bTItNGgtMVY4LjVoLTJ2LTFoMlY2aDF2NHpNOC41IDcuNXYtMWgtMXYxaC0xdjFoMXYxaDF2LTFoMXYtMWgtMXoiIGZpbGw9IiNBQUFDQjAiLz48L3N2Zz4=)}.ce-contextmenu-border-external{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iIzNENDc1NyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSA1VjNIOHYyaDF6bTAgOXYtMkg4djJoMXpNNSA4SDN2MWgyVjh6bTkgMGgtMnYxaDJWOHpNOSA3djFoMXYxSDl2MUg4VjlIN1Y4aDFWN2gxeiIgZmlsbD0iI0FBQUNCMCIvPjwvc3ZnPg==)}.ce-hyperlink-popup{background:#fff;box-shadow:0 2px 12px #626b8433;border-radius:2px;color:#3d4757;padding:12px 16px;position:absolute;z-index:1;text-align:center;display:none}.ce-hyperlink-popup a{min-width:100px;max-width:300px;font-size:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;color:#00f}.ce-header-indicator>div{padding:3px 6px;color:#000;font-size:12px;background:rgb(218 231 252);position:absolute;transform-origin:0 0}.ce-header-indicator-border__top,.ce-header-indicator-border__bottom,.ce-header-indicator-border__left,.ce-header-indicator-border__right{display:block;position:absolute}.ce-header-indicator-border__top{border-top:2px dashed rgb(238,238,238)}.ce-header-indicator-border__bottom{border-top:2px dashed rgb(238,238,238);width:100%}.ce-header-indicator-border__left{border-left:2px dashed rgb(238,238,238)}.ce-header-indicator-border__right{border-right:2px dashed rgb(238,238,238)}.ce-inputarea{width:1px;height:12px;min-width:0;min-height:0;margin:0;padding:0;left:0;right:0;letter-spacing:0;font-size:12px;position:absolute;z-index:-1;outline:none;resize:none;border:none;overflow:hidden;color:transparent;user-select:none;background-color:transparent}.ce-cursor{width:1px;height:20px;left:0;right:0;position:absolute;outline:none;background-color:#000;pointer-events:none}.ce-cursor.ce-cursor--animation{animation-duration:1s;animation-iteration-count:infinite;animation-name:cursorAnimation}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();})();
1
+ (()=>{(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;overflow-y:auto}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-date-container{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#ffffff;border-radius:4px;padding:10px;user-select:none;border:1px solid #e4e7ed;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-title{display:flex;justify-content:center;align-items:center;text-align:center;color:#606266;font-size:16px}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){font-family:cursive;cursor:pointer}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{width:100%;display:flex;justify-content:center;margin-top:15px;padding-bottom:5px;border-bottom:1px solid #e4e7ed}.ce-date-week>span{list-style:none;width:14.28571%;text-align:center;color:#606266;font-size:14px}.ce-date-day{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:5px}.ce-date-day>div{width:14.28571%;height:40px;text-align:center;color:#606266;font-size:14px;cursor:pointer;line-height:40px;border-radius:4px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{display:none;padding:10px;height:286px}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{width:33.3%;height:100%;text-align:center}.ce-time-wrap>li>span{transform:translateY(-5px);display:inline-block}.ce-time-wrap>li>ol{height:calc(100% - 20px);overflow-y:auto;border:1px solid #e2e2e2;position:relative}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{line-height:30px;cursor:pointer;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175F4}.ce-date-menu{width:100%;height:28px;display:flex;justify-content:flex-end;align-items:center;padding-top:10px;position:relative;border-top:1px solid #e4e7ed}.ce-date-menu button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;appearance:none;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:500;user-select:none;padding:7px 15px;font-size:12px;border-radius:3px;margin:0 0 0 10px}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid transparent;position:absolute;left:0;margin-left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{position:absolute;z-index:0;overflow:hidden;border-radius:8px;background-color:#fff;border:1px solid rgb(235 236 240)}.ce-table-tool__row{position:absolute;width:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed}.ce-table-tool__row .ce-table-tool__row__item{width:100%;position:relative}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";position:absolute;bottom:0;left:2px;width:8px;height:1px;background-color:#c0c6cf}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__col{position:absolute;height:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed;display:flex}.ce-table-tool__col .ce-table-tool__col__item{height:100%;position:relative}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";position:absolute;top:2px;left:-1px;width:1px;height:8px;z-index:1;background-color:#c0c6cf}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{right:-5px;width:10px;height:12px;z-index:9;position:absolute;cursor:col-resize}.ce-table-tool__row .ce-table-tool__anchor{bottom:-5px;left:0;width:12px;height:10px;z-index:9;position:absolute;cursor:row-resize}.ce-table-anchor__line{z-index:9;position:absolute;border:1px dotted #000000}.ce-table-tool__border{position:absolute;z-index:1;background:transparent;pointer-events:none}.ce-table-tool__border__row{position:absolute;cursor:row-resize;pointer-events:auto}.ce-table-tool__border__col{position:absolute;cursor:col-resize;pointer-events:auto}.ce-resizer-selection{position:absolute;border:1px solid}.ce-resizer-selection>div{position:absolute;z-index:9;width:10px;height:10px;box-shadow:0 1px 4px #0000004d;border-radius:5px;border:2px solid #ffffff;box-sizing:border-box}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-image{position:absolute;opacity:.5}.ce-image-previewer{position:fixed;left:0;top:0;z-index:1000;width:100%;height:100%;overflow:hidden;background:#f2f4f7;display:flex;align-items:center;justify-content:center;animation:previewerAnimation .3s}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{width:24px;height:24px;display:inline-block;position:absolute;right:50px;top:30px;z-index:99;cursor:pointer;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIzLjk3IDdsMS40MTUgMS40MTQtNy43NzkgNy43NzggNy43NzkgNy43NzktMS40MTQgMS40MTQtNy43NzktNy43NzktNy43NzggNy43NzlMNyAyMy45N2w3Ljc3OC03Ljc3OUw3IDguNDE0IDguNDE0IDdsNy43NzggNy43NzhMMjMuOTcxIDd6IiBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=) no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{height:50px;position:absolute;bottom:50px;z-index:99;display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i{width:32px;height:32px;margin:0 8px;cursor:pointer;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0IDE0di00aDJ2NGg0djJoLTR2NGgtMnYtNGgtNHYtMmg0em04Ljc0OSAxMC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIyLjc0OSAyNC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHptLTUtMTFoMTB2MkgxMHYtMnoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.rotate{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTYgNGM2LjYyNyAwIDEyIDUuMzczIDEyIDEyYTExLjk3IDExLjk3IDAgMDEtNCA4Ljk0NFYyM2gtLjg2QTkuOTY4IDkuOTY4IDAgMDAyNiAxNmMwLTUuNTIzLTQuNDc3LTEwLTEwLTEwUzYgMTAuNDc3IDYgMTZjMCA1LjE4NSAzLjk0NyA5LjQ0OSA5IDkuOTV2Mi4wMDlDOC44NCAyNy40NTEgNCAyMi4yOTEgNCAxNiA0IDkuMzczIDkuMzczIDQgMTYgNHoiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik0xOS44NzkgMjcuMzI4bDEuNzY3LTYuNzE3IDQuOTUgNC45NXoiLz48L2c+PC9zdmc+)}.ce-image-previewer .ce-image-menu i.original-size{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQgNGgyNHYyNEg0VjR6bTIgMnYyMGgyMFY2SDZ6bTQgNWgydjEwaC0yVjExem01IDJoMnYyaC0ydi0yem0wIDRoMnYyaC0ydi0yem01LTZoMnYxMGgtMlYxMXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.image-download{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQuNSAxNXYzLjVoMTVWMTVIMjF2NUgzdi01aDEuNXptOC4yMzItMTEuMjI2djkuMTk2bDQuMDUtNC4wNSAxLjA2IDEuMDYtNS44MzQgNS44MzQtNS44MzMtNS44MzMgMS4wNi0xLjA2IDMuOTk4IDMuOTk2VjMuNzc0aDEuNXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-contextmenu-container{z-index:9;position:fixed;display:none;padding:4px;overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.ce-contextmenu-content{display:flex;flex-direction:column}.ce-contextmenu-content .ce-contextmenu-sub-item:after{position:absolute;content:"";width:16px;height:16px;right:12px;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDE2djE2SDB6Ii8+PGcgZmlsbD0iIzc2N0M4NSI+PHBhdGggZD0iTTcgMTIuMjQzbC0uNzA3LS43MDcgNC4yNDMtNC4yNDMuNzA3LjcwN3oiLz48cGF0aCBkPSJNNi4yOTMgNC40NjRMNyAzLjc1NyAxMS4yNDMgOGwtLjcwNy43MDd6Ii8+PC9nPjwvZz48L3N2Zz4=)}.ce-contextmenu-content .ce-contextmenu-item{min-width:140px;padding:0 32px 0 16px;height:30px;display:flex;align-items:center;white-space:nowrap;box-sizing:border-box;cursor:pointer}.ce-contextmenu-content .ce-contextmenu-item.hover{background:rgba(25,55,88,.04)}.ce-contextmenu-content .ce-contextmenu-item span{max-width:300px;font-size:12px;color:#3d4757;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;height:30px;flex:1;text-align:right;line-height:30px;margin-left:20px}.ce-contextmenu-content .ce-contextmenu-item i{width:16px;height:16px;vertical-align:middle;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;margin-right:8px}.ce-contextmenu-divider{background-color:#e2e6ed;margin:4px 16px;height:1px}.ce-contextmenu-print{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiA0aC0xVjJINXYySDRWMmExIDEgMCAwMTEtMWg2YTEgMSAwIDAxMSAxdjJ6bTAgNXY0YTEgMSAwIDAxLTEgMUg1YTEgMSAwIDAxLTEtMVY5aDF2NGg2VjloMXoiLz48cGF0aCBkPSJNMTIgMTJ2LTFoMlY1SDJ2NmgydjFIMmExIDEgMCAwMS0xLTFWNWExIDEgMCAwMTEtMWgxMmExIDEgMCAwMTEgMXY2YTEgMSAwIDAxLTEgMWgtMnoiLz48cGF0aCBkPSJNMyA4aDEwdjFIM3ptOC0yaDJ2MWgtMnoiLz48L2c+PC9zdmc+)}.ce-contextmenu-image{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfM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SIxIiByPSIxIi8+PHBhdGggZD0iTTcuNDczIDguMjIzTDMuNDcgNC4xMDcgMCA3LjY2N3YtMS41QzEuNzE1IDQuNiAyLjcwNyAzLjY2NCAyLjk3NSAzLjM1OGMuNDAyLS40NTcuNjUxLS4zOSAxLjA0MiAwTDcuNDczIDcgOS45NiA0LjM0OWMuNDE0LS40NjIuNjItLjQ2MiAxLjAxMS0uMDcxTDEzIDcuMDZ2MS41bC0yLjUxLTMuNDEtMy4wMTcgMy4wNzJ6Ii8+PC9nPjxwYXRoIGQ9Ik02IDEuNUgxLjV2MTJoMTN2LTRWMTNhLjUuNSAwIDAxLS41LjVIMmEuNS41IDAgMDEtLjUtLjVWMmEuNS41IDAgMDEuNS0uNWg0em04LjUgOFY2bC0uNS41aDFsLS41LS41djMuNXpNNiAxLjVoNEw5LjUgMXYxbC41LS41SDZ6IiBzdHJva2U9IiMzRDQ3NTciLz48cGF0aCBkPSJNMTMuMDg1IDEuMzE2bC0zLjgxNCA0YTEgMSAwIDAwMS40NTggMS4zNjhsMy44MTUtNGExIDEgMCAxMC0xLjQ1OS0xLjM2OHoiIGZpbGw9IiMzRDQ3NTciIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-insert-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiMzRDQ3NTciIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNCA3djFoMlY3em0tMyAuNUw0IDV2NXpNMSAxaDEydjFIMXptMCAxMmgxMnYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-top-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aW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g==)}.ce-contextmenu-insert-right-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNSA4VjdIMnYxem0zLS41TDUgMTBWNXoiLz48cmVjdCBzdHJva2U9IiMzRDQ3NTciIHRyYW5zZm9ybT0icm90YXRlKDkwIDEyIDcuNSkiIHg9IjYiIHk9IjYiIHdpZHRoPSIxMiIgaGVpZ2h0PSIzIiByeD0iMSIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNi41aDZ2MmgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMiAxMmgxMXYxSDJ6TTIgMmgxMXYxSDJ6bS42MyAzTDcgOS4zNWwtLjYzNS42NUwyIDUuNjN6Ii8+PHBhdGggZmlsbD0iIzNENDc1NyIgZD0iTTIgOS4zNjNMNi4zNTUgNSA3IDUuNzA3IDIuNjk1IDEweiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMSAxM2gxMnYxSDF6TTEgMWgxMnYxSDF6bTAgNGgxdjFIMXptMSAxaDF2MUgyem0xIDFoMXYxSDN6bTEtMWgxdjFINHptMS0xaDF2MUg1ek00IDhoMXYxSDR6TTIgOGgxdjFIMnptMyAxaDF2MUg1ek0xIDloMXYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-delete-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik01LjUgNy41di02aDR2NnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMTMgMTVWM2gxdjEyek0xIDE1VjNoMXYxMnptNCAwdi0xaDF2MXptMS0xdi0xaDF2MXptMS0xdi0xaDF2MXptLTEtMXYtMWgxdjF6bS0xLTF2LTFoMXYxem0zIDF2LTFoMXYxem0wIDJ2LTFoMXYxem0xLTN2LTFoMXYxem0wIDR2LTFoMXYxeiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-table{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQgMTNoLTF2LTNIMnYzSDF2LTNhMSAxIDAgMDExLTFoMTFhMSAxIDAgMDExIDF2M3oiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik01LjYyNSAyTDEwIDYuMzc1IDkuMzc1IDcgNSAyLjYyNXoiLz48cGF0aCBkPSJNNSA2LjM3NUw5LjM3NSAybC42MjUuNjI1TDUuNjI1IDd6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik04IDcuNUwxMCA2djN6bS0xIDBMNSA2djN6Ii8+PHBhdGggZD0iTTkgN2gzdjFIOXpNMyA3aDN2MUgzeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTggMTBoMXY0SDh6bS0yIDBoMXY0SDZ6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cancel-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik0zIDcuNUw1IDZ2M3ptOSAwTDEwIDZ2M3oiLz48cGF0aCBkPSJNNCA3aDN2MUg0em00IDBoM3YxSDh6Ii8+PHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNOCAxMGgxdjRIOHptLTIgMGgxdjRINnoiLz48L2c+PC9zdmc+)}.ce-contextmenu-vertical-align{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAxM2gxMnYxSDJ6bTAtM2g4djFIMnptMC0zaDEydjFIMnptMC02aDEydjFIMnptMCAzaDh2MUgyeiIgZmlsbD0iIzNkNDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-top{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggOEg3djZoMXptLS41LTNMMTAgOEg1ek0yIDNoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-middle{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxMkg3djNoMXptLS41LTNsMi41IDNINXpNNyAzaDFWMEg3em0uNSAzTDUgM2g1ek0yIDdoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-bottom{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtb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VoLTJ2LTFoMlY2aDF2NHpNOC41IDcuNXYtMWgtMXYxaC0xdjFoMXYxaDF2LTFoMXYtMWgtMXoiIGZpbGw9IiNBQUFDQjAiLz48L3N2Zz4=)}.ce-contextmenu-border-external{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iIzNENDc1NyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSA1VjNIOHYyaDF6bTAgOXYtMkg4djJoMXpNNSA4SDN2MWgyVjh6bTkgMGgtMnYxaDJWOHpNOSA3djFoMXYxSDl2MUg4VjlIN1Y4aDFWN2gxeiIgZmlsbD0iI0FBQUNCMCIvPjwvc3ZnPg==)}.ce-hyperlink-popup{background:#fff;box-shadow:0 2px 12px #626b8433;border-radius:2px;color:#3d4757;padding:12px 16px;position:absolute;z-index:1;text-align:center;display:none}.ce-hyperlink-popup a{min-width:100px;max-width:300px;font-size:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;color:#00f}.ce-zone-indicator>div{padding:3px 6px;color:#000;font-size:12px;background:rgb(218 231 252);position:absolute;transform-origin:0 0}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{display:block;position:absolute;z-index:0}.ce-zone-indicator-border__top{border-top:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__bottom{border-top:2px dashed rgb(238,238,238);width:100%}.ce-zone-indicator-border__left{border-left:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__right{border-right:2px dashed rgb(238,238,238)}.ce-inputarea{width:1px;height:12px;min-width:0;min-height:0;margin:0;padding:0;left:0;right:0;letter-spacing:0;font-size:12px;position:absolute;z-index:-1;outline:none;resize:none;border:none;overflow:hidden;color:transparent;user-select:none;background-color:transparent}.ce-cursor{width:1px;height:20px;left:0;right:0;position:absolute;outline:none;background-color:#000;pointer-events:none}.ce-cursor.ce-cursor--animation{animation-duration:1s;animation-iteration-count:infinite;animation-name:cursorAnimation}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();})();
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defProps = Object.defineProperties;
4
4
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -23,9 +23,20 @@ var __publicField = (obj, key, value) => {
23
23
  return value;
24
24
  };
25
25
  var index = "";
26
- const version = "0.9.26";
26
+ const version = "0.9.28";
27
+ var MaxHeightRatio;
28
+ (function(MaxHeightRatio2) {
29
+ MaxHeightRatio2["HALF"] = "half";
30
+ MaxHeightRatio2["ONE_THIRD"] = "one-third";
31
+ MaxHeightRatio2["QUARTER"] = "quarter";
32
+ })(MaxHeightRatio || (MaxHeightRatio = {}));
27
33
  const ZERO = "\u200B";
28
34
  const WRAP = "\n";
35
+ const maxHeightRadioMapping = {
36
+ [MaxHeightRatio.HALF]: 1 / 2,
37
+ [MaxHeightRatio.ONE_THIRD]: 1 / 3,
38
+ [MaxHeightRatio.QUARTER]: 1 / 4
39
+ };
29
40
  var RowFlex;
30
41
  (function(RowFlex2) {
31
42
  RowFlex2["LEFT"] = "left";
@@ -3270,6 +3281,9 @@ function formatElementList(elementList, options) {
3270
3281
  const tr = el.trList[t];
3271
3282
  const trId = getUUID();
3272
3283
  tr.id = trId;
3284
+ if (!tr.minHeight || tr.minHeight < editorOptions.defaultTrMinHeight) {
3285
+ tr.minHeight = editorOptions.defaultTrMinHeight;
3286
+ }
3273
3287
  for (let d = 0; d < tr.tdList.length; d++) {
3274
3288
  const td = tr.tdList[d];
3275
3289
  const tdId = getUUID();
@@ -4776,7 +4790,7 @@ function keydown(evt, host) {
4776
4790
  } else if (evt.key === KeyMap.ESC) {
4777
4791
  host.clearPainterStyle();
4778
4792
  const zoneManager = draw.getZone();
4779
- if (zoneManager.isHeaderActive()) {
4793
+ if (!zoneManager.isMainActive()) {
4780
4794
  zoneManager.setZone(EditorZone.MAIN);
4781
4795
  }
4782
4796
  evt.preventDefault();
@@ -5444,8 +5458,15 @@ class Position {
5444
5458
  }
5445
5459
  getOriginalPositionList() {
5446
5460
  const zoneManager = this.draw.getZone();
5447
- const header = this.draw.getHeader();
5448
- return zoneManager.isHeaderActive() ? header.getPositionList() : this.positionList;
5461
+ if (zoneManager.isHeaderActive()) {
5462
+ const header = this.draw.getHeader();
5463
+ return header.getPositionList();
5464
+ }
5465
+ if (zoneManager.isFooterActive()) {
5466
+ const footer = this.draw.getFooter();
5467
+ return footer.getPositionList();
5468
+ }
5469
+ return this.positionList;
5449
5470
  }
5450
5471
  getOriginalMainPositionList() {
5451
5472
  return this.positionList;
@@ -5582,7 +5603,8 @@ class Position {
5582
5603
  }
5583
5604
  const zoneManager = this.draw.getZone();
5584
5605
  const curPageNo = this.draw.getPageNo();
5585
- const positionNo = zoneManager.isMainActive() ? curPageNo : 0;
5606
+ const isMainActive = zoneManager.isMainActive();
5607
+ const positionNo = isMainActive ? curPageNo : 0;
5586
5608
  for (let j = 0; j < positionList.length; j++) {
5587
5609
  const { index: index2, pageNo, coordinate: { leftTop, rightTop, leftBottom } } = positionList[j];
5588
5610
  if (positionNo !== pageNo)
@@ -5669,15 +5691,15 @@ class Position {
5669
5691
  }
5670
5692
  }
5671
5693
  }
5672
- const firstLetterList = positionList.filter((p) => p.isLastLetter && p.pageNo === positionNo);
5673
- for (let j = 0; j < firstLetterList.length; j++) {
5674
- const { index: index2, pageNo, coordinate: { leftTop, leftBottom } } = firstLetterList[j];
5694
+ const lastLetterList = positionList.filter((p) => p.isLastLetter && p.pageNo === positionNo);
5695
+ for (let j = 0; j < lastLetterList.length; j++) {
5696
+ const { index: index2, pageNo, coordinate: { leftTop, leftBottom } } = lastLetterList[j];
5675
5697
  if (positionNo !== pageNo)
5676
5698
  continue;
5677
5699
  if (y > leftTop[1] && y <= leftBottom[1]) {
5678
5700
  const isHead = x < this.options.margins[3];
5679
5701
  if (isHead) {
5680
- const headIndex = positionList.findIndex((p) => p.pageNo === positionNo && p.rowNo === firstLetterList[j].rowNo);
5702
+ const headIndex = positionList.findIndex((p) => p.pageNo === positionNo && p.rowNo === lastLetterList[j].rowNo);
5681
5703
  curPositionIndex = ~headIndex ? headIndex - 1 : index2;
5682
5704
  } else {
5683
5705
  curPositionIndex = index2;
@@ -5687,16 +5709,26 @@ class Position {
5687
5709
  }
5688
5710
  }
5689
5711
  if (!isLastArea) {
5690
- if (zoneManager.isMainActive()) {
5691
- if (y < firstLetterList[0].coordinate.leftTop[1]) {
5712
+ const header = this.draw.getHeader();
5713
+ const headerBottomY = header.getHeaderTop() + header.getHeight();
5714
+ const footer = this.draw.getFooter();
5715
+ const pageHeight = this.draw.getHeight();
5716
+ const footerTopY = pageHeight - (footer.getFooterBottom() + footer.getHeight());
5717
+ if (isMainActive) {
5718
+ if (y < headerBottomY) {
5692
5719
  return {
5693
5720
  index: -1,
5694
5721
  zone: EditorZone.HEADER
5695
5722
  };
5696
5723
  }
5697
- }
5698
- if (zoneManager.isHeaderActive()) {
5699
- if (y > firstLetterList[0].coordinate.leftTop[1]) {
5724
+ if (y > footerTopY) {
5725
+ return {
5726
+ index: -1,
5727
+ zone: EditorZone.FOOTER
5728
+ };
5729
+ }
5730
+ } else {
5731
+ if (y <= footerTopY && y >= headerBottomY) {
5700
5732
  return {
5701
5733
  index: -1,
5702
5734
  zone: EditorZone.MAIN
@@ -5704,7 +5736,7 @@ class Position {
5704
5736
  }
5705
5737
  }
5706
5738
  return {
5707
- index: ((_a = firstLetterList[firstLetterList.length - 1]) == null ? void 0 : _a.index) || positionList.length - 1
5739
+ index: ((_a = lastLetterList[lastLetterList.length - 1]) == null ? void 0 : _a.index) || positionList.length - 1
5708
5740
  };
5709
5741
  }
5710
5742
  return {
@@ -6461,7 +6493,7 @@ class PageNumber {
6461
6493
  const margins = this.draw.getMargins();
6462
6494
  const { width: textWidth } = ctx.measureText(text);
6463
6495
  if (rowFlex === RowFlex.CENTER) {
6464
- x = (width + textWidth) / 2;
6496
+ x = (width - textWidth) / 2;
6465
6497
  } else if (rowFlex === RowFlex.RIGHT) {
6466
6498
  x = width - textWidth - margins[1];
6467
6499
  } else {
@@ -6614,6 +6646,22 @@ class TableParticle {
6614
6646
  this.range = draw.getRange();
6615
6647
  this.options = draw.getOptions();
6616
6648
  }
6649
+ getTrListGroupByCol(payload) {
6650
+ const trList = deepClone(payload);
6651
+ for (let t = 0; t < payload.length; t++) {
6652
+ const tr = trList[t];
6653
+ for (let d = tr.tdList.length - 1; d >= 0; d--) {
6654
+ const td = tr.tdList[d];
6655
+ const { rowspan, rowIndex, colIndex } = td;
6656
+ const curRowIndex = rowIndex + rowspan - 1;
6657
+ if (curRowIndex !== d) {
6658
+ const changeTd = tr.tdList.splice(d, 1)[0];
6659
+ trList[curRowIndex].tdList.splice(colIndex, 0, changeTd);
6660
+ }
6661
+ }
6662
+ }
6663
+ return trList;
6664
+ }
6617
6665
  _drawBorder(payload) {
6618
6666
  const { ctx, startX, startY, width, height, isDrawFullBorder } = payload;
6619
6667
  ctx.beginPath();
@@ -6928,7 +6976,7 @@ class TableTool {
6928
6976
  this._mousedown({
6929
6977
  evt,
6930
6978
  element,
6931
- index: td2.rowIndex,
6979
+ index: td2.rowIndex + td2.rowspan - 1,
6932
6980
  order: TableOrder.ROW
6933
6981
  });
6934
6982
  };
@@ -6943,7 +6991,7 @@ class TableTool {
6943
6991
  this._mousedown({
6944
6992
  evt,
6945
6993
  element,
6946
- index: td2.colIndex,
6994
+ index: td2.colIndex + td2.colspan - 1,
6947
6995
  order: TableOrder.COL
6948
6996
  });
6949
6997
  };
@@ -7001,8 +7049,14 @@ class TableTool {
7001
7049
  var _a;
7002
7050
  let isChangeSize = false;
7003
7051
  if (order === TableOrder.ROW) {
7004
- element.trList[index2].height += dy;
7052
+ const tr = element.trList[index2];
7053
+ const { defaultTrMinHeight } = this.options;
7054
+ if (dy < 0 && tr.height + dy < defaultTrMinHeight) {
7055
+ dy = defaultTrMinHeight - tr.height;
7056
+ }
7005
7057
  if (dy) {
7058
+ tr.height += dy;
7059
+ tr.minHeight = tr.height;
7006
7060
  isChangeSize = true;
7007
7061
  }
7008
7062
  } else {
@@ -7010,11 +7064,14 @@ class TableTool {
7010
7064
  if (colgroup && dx) {
7011
7065
  const innerWidth = this.draw.getInnerWidth();
7012
7066
  const curColWidth = colgroup[index2].width;
7013
- const moveColWidth = curColWidth + dx;
7014
- const nextColWidth = ((_a = colgroup[index2 + 1]) == null ? void 0 : _a.width) || 0;
7015
- if (moveColWidth < this.MIN_TD_WIDTH || moveColWidth > curColWidth + nextColWidth) {
7067
+ if (dx < 0 && curColWidth + dx < this.MIN_TD_WIDTH) {
7016
7068
  dx = this.MIN_TD_WIDTH - curColWidth;
7017
7069
  }
7070
+ const nextColWidth = (_a = colgroup[index2 + 1]) == null ? void 0 : _a.width;
7071
+ if (dx > 0 && nextColWidth && nextColWidth - dx < this.MIN_TD_WIDTH) {
7072
+ dx = nextColWidth - this.MIN_TD_WIDTH;
7073
+ }
7074
+ const moveColWidth = curColWidth + dx;
7018
7075
  let moveTableWidth = 0;
7019
7076
  for (let c = 0; c < colgroup.length; c++) {
7020
7077
  const group2 = colgroup[c];
@@ -7127,21 +7184,6 @@ class HyperlinkParticle {
7127
7184
  ctx.restore();
7128
7185
  }
7129
7186
  }
7130
- var HeaderMaxHeightRatio;
7131
- (function(HeaderMaxHeightRatio2) {
7132
- HeaderMaxHeightRatio2["HALF"] = "half";
7133
- HeaderMaxHeightRatio2["ONE_THIRD"] = "one-third";
7134
- HeaderMaxHeightRatio2["QUARTER"] = "quarter";
7135
- })(HeaderMaxHeightRatio || (HeaderMaxHeightRatio = {}));
7136
- const defaultHeaderOption = {
7137
- top: 30,
7138
- maxHeightRadio: HeaderMaxHeightRatio.HALF
7139
- };
7140
- const maxHeightRadioMapping = {
7141
- [HeaderMaxHeightRatio.HALF]: 1 / 2,
7142
- [HeaderMaxHeightRatio.ONE_THIRD]: 1 / 3,
7143
- [HeaderMaxHeightRatio.QUARTER]: 1 / 4
7144
- };
7145
7187
  class Header {
7146
7188
  constructor(draw) {
7147
7189
  __publicField(this, "draw");
@@ -9186,19 +9228,20 @@ class ImageObserver {
9186
9228
  }
9187
9229
  class Zone {
9188
9230
  constructor(draw) {
9231
+ __publicField(this, "INDICATOR_PADDING", 2);
9189
9232
  __publicField(this, "INDICATOR_TITLE_TRANSLATE", [20, 5]);
9190
9233
  __publicField(this, "draw");
9191
9234
  __publicField(this, "options");
9192
9235
  __publicField(this, "i18n");
9193
9236
  __publicField(this, "container");
9194
9237
  __publicField(this, "currentZone");
9195
- __publicField(this, "headerIndicatorContainer");
9238
+ __publicField(this, "indicatorContainer");
9196
9239
  this.draw = draw;
9197
9240
  this.i18n = draw.getI18n();
9198
9241
  this.options = draw.getOptions();
9199
9242
  this.container = draw.getContainer();
9200
9243
  this.currentZone = EditorZone.MAIN;
9201
- this.headerIndicatorContainer = null;
9244
+ this.indicatorContainer = null;
9202
9245
  }
9203
9246
  isHeaderActive() {
9204
9247
  return this.getZone() === EditorZone.HEADER;
@@ -9206,6 +9249,9 @@ class Zone {
9206
9249
  isMainActive() {
9207
9250
  return this.getZone() === EditorZone.MAIN;
9208
9251
  }
9252
+ isFooterActive() {
9253
+ return this.getZone() === EditorZone.FOOTER;
9254
+ }
9209
9255
  getZone() {
9210
9256
  return this.currentZone;
9211
9257
  }
@@ -9219,63 +9265,171 @@ class Zone {
9219
9265
  isSetCursor: false,
9220
9266
  isCompute: false
9221
9267
  });
9222
- if (this.isHeaderActive()) {
9223
- this.drawHeaderZoneIndicator();
9224
- } else {
9225
- this._clearHeaderZoneIndicator();
9226
- }
9268
+ this.drawZoneIndicator();
9227
9269
  }
9228
- drawHeaderZoneIndicator() {
9229
- this._clearHeaderZoneIndicator();
9270
+ drawZoneIndicator() {
9271
+ this._clearZoneIndicator();
9272
+ if (!this.isHeaderActive() && !this.isFooterActive())
9273
+ return;
9230
9274
  const { scale } = this.options;
9275
+ const isHeaderActive = this.isHeaderActive();
9231
9276
  const [offsetX, offsetY] = this.INDICATOR_TITLE_TRANSLATE;
9232
- this.headerIndicatorContainer = document.createElement("div");
9233
- this.headerIndicatorContainer.classList.add(`${EDITOR_PREFIX}-header-indicator`);
9234
9277
  const pageList = this.draw.getPageList();
9235
9278
  const margins = this.draw.getMargins();
9236
9279
  const innerWidth = this.draw.getInnerWidth();
9237
9280
  const pageHeight = this.draw.getHeight();
9238
9281
  const pageGap = this.draw.getPageGap();
9239
9282
  const preY = pageHeight + pageGap;
9283
+ this.indicatorContainer = document.createElement("div");
9284
+ this.indicatorContainer.classList.add(`${EDITOR_PREFIX}-zone-indicator`);
9240
9285
  const header = this.draw.getHeader();
9241
- const headerHeight = header.getHeight();
9242
- const headerTop = header.getHeaderTop();
9286
+ const footer = this.draw.getFooter();
9287
+ const indicatorHeight = isHeaderActive ? header.getHeight() : footer.getHeight();
9288
+ const indicatorTop = isHeaderActive ? header.getHeaderTop() : pageHeight - footer.getFooterBottom() - indicatorHeight;
9243
9289
  for (let p = 0; p < pageList.length; p++) {
9244
- const startY = preY * p + headerTop;
9290
+ const startY = preY * p + indicatorTop;
9291
+ const indicatorLeftX = margins[3] - this.INDICATOR_PADDING;
9292
+ const indicatorRightX = margins[3] + innerWidth + this.INDICATOR_PADDING;
9293
+ const indicatorTopY = isHeaderActive ? startY - this.INDICATOR_PADDING : startY + indicatorHeight + this.INDICATOR_PADDING;
9294
+ const indicatorBottomY = isHeaderActive ? startY + indicatorHeight + this.INDICATOR_PADDING : startY - this.INDICATOR_PADDING;
9245
9295
  const indicatorTitle = document.createElement("div");
9246
- indicatorTitle.innerText = this.i18n.t("frame.header");
9247
- indicatorTitle.style.top = `${startY + headerHeight}px`;
9296
+ indicatorTitle.innerText = this.i18n.t(`frame.${isHeaderActive ? "header" : "footer"}`);
9297
+ indicatorTitle.style.top = `${indicatorBottomY}px`;
9248
9298
  indicatorTitle.style.transform = `translate(${offsetX * scale}px, ${offsetY * scale}px) scale(${scale})`;
9249
- this.headerIndicatorContainer.append(indicatorTitle);
9299
+ this.indicatorContainer.append(indicatorTitle);
9250
9300
  const lineTop = document.createElement("span");
9251
- lineTop.classList.add(`${EDITOR_PREFIX}-header-indicator-border__top`);
9252
- lineTop.style.top = `${startY}px`;
9301
+ lineTop.classList.add(`${EDITOR_PREFIX}-zone-indicator-border__top`);
9302
+ lineTop.style.top = `${indicatorTopY}px`;
9253
9303
  lineTop.style.width = `${innerWidth}px`;
9254
9304
  lineTop.style.marginLeft = `${margins[3]}px`;
9255
- this.headerIndicatorContainer.append(lineTop);
9305
+ this.indicatorContainer.append(lineTop);
9256
9306
  const lineLeft = document.createElement("span");
9257
- lineLeft.classList.add(`${EDITOR_PREFIX}-header-indicator-border__left`);
9307
+ lineLeft.classList.add(`${EDITOR_PREFIX}-zone-indicator-border__left`);
9258
9308
  lineLeft.style.top = `${startY}px`;
9259
- lineLeft.style.height = `${headerHeight}px`;
9260
- lineLeft.style.left = `${margins[3]}px`;
9261
- this.headerIndicatorContainer.append(lineLeft);
9309
+ lineLeft.style.height = `${indicatorHeight}px`;
9310
+ lineLeft.style.left = `${indicatorLeftX}px`;
9311
+ this.indicatorContainer.append(lineLeft);
9262
9312
  const lineBottom = document.createElement("span");
9263
- lineBottom.classList.add(`${EDITOR_PREFIX}-header-indicator-border__bottom`);
9264
- lineBottom.style.top = `${startY + headerHeight}px`;
9265
- this.headerIndicatorContainer.append(lineBottom);
9313
+ lineBottom.classList.add(`${EDITOR_PREFIX}-zone-indicator-border__bottom`);
9314
+ lineBottom.style.top = `${indicatorBottomY}px`;
9315
+ this.indicatorContainer.append(lineBottom);
9266
9316
  const lineRight = document.createElement("span");
9267
- lineRight.classList.add(`${EDITOR_PREFIX}-header-indicator-border__right`);
9317
+ lineRight.classList.add(`${EDITOR_PREFIX}-zone-indicator-border__right`);
9268
9318
  lineRight.style.top = `${startY}px`;
9269
- lineRight.style.height = `${headerHeight}px`;
9270
- lineRight.style.left = `${margins[3] + innerWidth}px`;
9271
- this.headerIndicatorContainer.append(lineRight);
9319
+ lineRight.style.height = `${indicatorHeight}px`;
9320
+ lineRight.style.left = `${indicatorRightX}px`;
9321
+ this.indicatorContainer.append(lineRight);
9272
9322
  }
9273
- this.container.append(this.headerIndicatorContainer);
9323
+ this.container.append(this.indicatorContainer);
9274
9324
  }
9275
- _clearHeaderZoneIndicator() {
9325
+ _clearZoneIndicator() {
9276
9326
  var _a;
9277
- (_a = this.headerIndicatorContainer) == null ? void 0 : _a.remove();
9278
- this.headerIndicatorContainer = null;
9327
+ (_a = this.indicatorContainer) == null ? void 0 : _a.remove();
9328
+ this.indicatorContainer = null;
9329
+ }
9330
+ }
9331
+ class Footer {
9332
+ constructor(draw) {
9333
+ __publicField(this, "draw");
9334
+ __publicField(this, "position");
9335
+ __publicField(this, "options");
9336
+ __publicField(this, "elementList");
9337
+ __publicField(this, "rowList");
9338
+ __publicField(this, "positionList");
9339
+ this.draw = draw;
9340
+ this.position = draw.getPosition();
9341
+ this.options = draw.getOptions();
9342
+ this.elementList = draw.getFooterElementList();
9343
+ this.rowList = [];
9344
+ this.positionList = [];
9345
+ }
9346
+ setElementList(elementList) {
9347
+ this.elementList = elementList;
9348
+ }
9349
+ getElementList() {
9350
+ return this.elementList;
9351
+ }
9352
+ getPositionList() {
9353
+ return this.positionList;
9354
+ }
9355
+ compute() {
9356
+ this._recovery();
9357
+ this._computeRowList();
9358
+ this._computePositionList();
9359
+ }
9360
+ _recovery() {
9361
+ this.rowList = [];
9362
+ this.positionList = [];
9363
+ }
9364
+ _computeRowList() {
9365
+ const innerWidth = this.draw.getInnerWidth();
9366
+ this.rowList = this.draw.computeRowList(innerWidth, this.elementList);
9367
+ }
9368
+ _computePositionList() {
9369
+ const footerBottom = this.getFooterBottom();
9370
+ const innerWidth = this.draw.getInnerWidth();
9371
+ const margins = this.draw.getMargins();
9372
+ const startX = margins[3];
9373
+ const pageHeight = this.draw.getHeight();
9374
+ const footerHeight = this.getHeight();
9375
+ const startY = pageHeight - footerBottom - footerHeight;
9376
+ this.position.computePageRowPosition({
9377
+ positionList: this.positionList,
9378
+ rowList: this.rowList,
9379
+ pageNo: 0,
9380
+ startIndex: 0,
9381
+ startX,
9382
+ startY,
9383
+ innerWidth
9384
+ });
9385
+ }
9386
+ getFooterBottom() {
9387
+ const { footer: { bottom }, scale } = this.options;
9388
+ return Math.floor(bottom * scale);
9389
+ }
9390
+ getMaxHeight() {
9391
+ const { footer: { maxHeightRadio } } = this.options;
9392
+ const height = this.draw.getHeight();
9393
+ return Math.floor(height * maxHeightRadioMapping[maxHeightRadio]);
9394
+ }
9395
+ getHeight() {
9396
+ const maxHeight = this.getMaxHeight();
9397
+ const rowHeight = this.getRowHeight();
9398
+ return rowHeight > maxHeight ? maxHeight : rowHeight;
9399
+ }
9400
+ getRowHeight() {
9401
+ return this.rowList.reduce((pre, cur) => pre + cur.height, 0);
9402
+ }
9403
+ getExtraHeight() {
9404
+ const margins = this.draw.getMargins();
9405
+ const footerHeight = this.getHeight();
9406
+ const footerBottom = this.getFooterBottom();
9407
+ const extraHeight = footerBottom + footerHeight - margins[2];
9408
+ return extraHeight <= 0 ? 0 : extraHeight;
9409
+ }
9410
+ render(ctx, pageNo) {
9411
+ ctx.globalAlpha = 1;
9412
+ const innerWidth = this.draw.getInnerWidth();
9413
+ const maxHeight = this.getMaxHeight();
9414
+ const rowList = [];
9415
+ let curRowHeight = 0;
9416
+ for (let r = 0; r < this.rowList.length; r++) {
9417
+ const row = this.rowList[r];
9418
+ if (curRowHeight + row.height > maxHeight) {
9419
+ break;
9420
+ }
9421
+ rowList.push(row);
9422
+ curRowHeight += row.height;
9423
+ }
9424
+ this.draw.drawRow(ctx, {
9425
+ elementList: this.elementList,
9426
+ positionList: this.positionList,
9427
+ rowList,
9428
+ pageNo,
9429
+ startIndex: 0,
9430
+ innerWidth,
9431
+ zone: EditorZone.FOOTER
9432
+ });
9279
9433
  }
9280
9434
  }
9281
9435
  class Draw {
@@ -9314,6 +9468,7 @@ class Draw {
9314
9468
  __publicField(this, "pageNumber");
9315
9469
  __publicField(this, "waterMark");
9316
9470
  __publicField(this, "header");
9471
+ __publicField(this, "footer");
9317
9472
  __publicField(this, "hyperlinkParticle");
9318
9473
  __publicField(this, "dateParticle");
9319
9474
  __publicField(this, "separatorParticle");
@@ -9367,6 +9522,7 @@ class Draw {
9367
9522
  this.pageNumber = new PageNumber(this);
9368
9523
  this.waterMark = new Watermark(this);
9369
9524
  this.header = new Header(this);
9525
+ this.footer = new Footer(this);
9370
9526
  this.hyperlinkParticle = new HyperlinkParticle(this);
9371
9527
  this.dateParticle = new DateParticle(this);
9372
9528
  this.separatorParticle = new SeparatorParticle();
@@ -9419,9 +9575,13 @@ class Draw {
9419
9575
  }
9420
9576
  getMainHeight() {
9421
9577
  const pageHeight = this.getHeight();
9578
+ return pageHeight - this.getMainOuterHeight();
9579
+ }
9580
+ getMainOuterHeight() {
9422
9581
  const margins = this.getMargins();
9423
- const extraHeight = this.header.getExtraHeight();
9424
- return pageHeight - margins[0] - margins[2] - extraHeight;
9582
+ const headerExtraHeight = this.header.getExtraHeight();
9583
+ const footerExtraHeight = this.footer.getExtraHeight();
9584
+ return margins[0] + margins[2] + headerExtraHeight + footerExtraHeight;
9425
9585
  }
9426
9586
  getCanvasWidth(pageNo = -1) {
9427
9587
  const page = this.getPage(pageNo);
@@ -9546,7 +9706,13 @@ class Draw {
9546
9706
  }
9547
9707
  getOriginalElementList() {
9548
9708
  const zoneManager = this.getZone();
9549
- return zoneManager.isHeaderActive() ? this.header.getElementList() : this.elementList;
9709
+ if (zoneManager.isHeaderActive()) {
9710
+ return this.header.getElementList();
9711
+ }
9712
+ if (zoneManager.isFooterActive()) {
9713
+ return this.footer.getElementList();
9714
+ }
9715
+ return this.elementList;
9550
9716
  }
9551
9717
  getOriginalMainElementList() {
9552
9718
  return this.elementList;
@@ -9618,6 +9784,9 @@ class Draw {
9618
9784
  getHeader() {
9619
9785
  return this.header;
9620
9786
  }
9787
+ getFooter() {
9788
+ return this.footer;
9789
+ }
9621
9790
  getHyperlinkParticle() {
9622
9791
  return this.hyperlinkParticle;
9623
9792
  }
@@ -9775,7 +9944,8 @@ class Draw {
9775
9944
  const { width, height, margins, watermark } = this.options;
9776
9945
  const data2 = {
9777
9946
  header: zipElementList(this.headerElementList),
9778
- main: zipElementList(this.elementList)
9947
+ main: zipElementList(this.elementList),
9948
+ footer: zipElementList(this.footerElementList)
9779
9949
  };
9780
9950
  return {
9781
9951
  version,
@@ -9899,6 +10069,40 @@ class Draw {
9899
10069
  changeTd.height += extraHeight;
9900
10070
  });
9901
10071
  }
10072
+ let curTdMinHeight = 0;
10073
+ let curTdRealHeight = 0;
10074
+ let i2 = 0;
10075
+ while (i2 < td.rowspan) {
10076
+ const curTr = trList[i2 + t];
10077
+ curTdMinHeight += curTr.minHeight;
10078
+ curTdRealHeight += curTr.height;
10079
+ i2++;
10080
+ }
10081
+ td.realMinHeight = curTdMinHeight;
10082
+ td.realHeight = curTdRealHeight;
10083
+ td.mainHeight = curTdHeight;
10084
+ }
10085
+ }
10086
+ const reduceTrList = this.tableParticle.getTrListGroupByCol(trList);
10087
+ for (let t = 0; t < reduceTrList.length; t++) {
10088
+ const tr = reduceTrList[t];
10089
+ let reduceHeight = -1;
10090
+ for (let d = 0; d < tr.tdList.length; d++) {
10091
+ const td = tr.tdList[d];
10092
+ const curTdRealHeight = td.realHeight;
10093
+ const curTdHeight = td.mainHeight;
10094
+ const curTdMinHeight = td.realMinHeight;
10095
+ const curReduceHeight = curTdHeight < curTdMinHeight ? curTdRealHeight - curTdMinHeight : curTdRealHeight - curTdHeight;
10096
+ if (!~reduceHeight || curReduceHeight < reduceHeight) {
10097
+ reduceHeight = curReduceHeight;
10098
+ }
10099
+ }
10100
+ if (reduceHeight > 0) {
10101
+ const changeTr = trList[t];
10102
+ changeTr.height -= reduceHeight;
10103
+ changeTr.tdList.forEach((changeTd) => {
10104
+ changeTd.height -= reduceHeight;
10105
+ });
9902
10106
  }
9903
10107
  }
9904
10108
  this.tableParticle.computeRowColInfo(element);
@@ -9912,10 +10116,8 @@ class Draw {
9912
10116
  metrics.height = elementHeight;
9913
10117
  metrics.boundingBoxDescent = elementHeight;
9914
10118
  metrics.boundingBoxAscent = 0;
9915
- const margins = this.getMargins();
9916
10119
  const height2 = this.getHeight();
9917
- const headerExtraHeight = this.header.getExtraHeight();
9918
- const marginHeight = margins[0] + margins[2] + headerExtraHeight;
10120
+ const marginHeight = this.getMainOuterHeight();
9919
10121
  let curPagePreHeight = marginHeight;
9920
10122
  for (let r = 0; r < rowList.length; r++) {
9921
10123
  const row = rowList[r];
@@ -10063,9 +10265,7 @@ class Draw {
10063
10265
  const pageRowList = [[]];
10064
10266
  const { pageMode } = this.options;
10065
10267
  const height = this.getHeight();
10066
- const margins = this.getMargins();
10067
- const headerExtraHeight = this.header.getExtraHeight();
10068
- const marginHeight = margins[0] + margins[2] + headerExtraHeight;
10268
+ const marginHeight = this.getMainOuterHeight();
10069
10269
  let pageHeight = marginHeight;
10070
10270
  let pageNo = 0;
10071
10271
  if (pageMode === PageMode.CONTINUITY) {
@@ -10254,7 +10454,7 @@ class Draw {
10254
10454
  const { inactiveAlpha, pageMode } = this.options;
10255
10455
  const innerWidth = this.getInnerWidth();
10256
10456
  const ctx = this.ctxList[pageNo];
10257
- ctx.globalAlpha = this.zone.isHeaderActive() ? inactiveAlpha : 1;
10457
+ ctx.globalAlpha = !this.zone.isMainActive() ? inactiveAlpha : 1;
10258
10458
  this._clearPage(pageNo);
10259
10459
  this.background.render(ctx);
10260
10460
  this.margin.render(ctx, pageNo);
@@ -10270,6 +10470,7 @@ class Draw {
10270
10470
  });
10271
10471
  this.header.render(ctx, pageNo);
10272
10472
  this.pageNumber.render(ctx, pageNo);
10473
+ this.footer.render(ctx, pageNo);
10273
10474
  if (this.search.getSearchKeyword()) {
10274
10475
  this.search.render(ctx, pageNo);
10275
10476
  }
@@ -10286,7 +10487,6 @@ class Draw {
10286
10487
  entries.forEach((entry) => {
10287
10488
  if (entry.isIntersecting) {
10288
10489
  const index2 = Number(entry.target.dataset.index);
10289
- this.header.render(this.ctxList[index2], index2);
10290
10490
  this._drawPage({
10291
10491
  elementList,
10292
10492
  positionList,
@@ -10320,6 +10520,7 @@ class Draw {
10320
10520
  const innerWidth = this.getInnerWidth();
10321
10521
  if (isCompute) {
10322
10522
  this.header.compute();
10523
+ this.footer.compute();
10323
10524
  this.rowList = this.computeRowList(innerWidth, this.elementList);
10324
10525
  this.pageRowList = this._computePageList();
10325
10526
  this.position.computePositionList();
@@ -10368,6 +10569,7 @@ class Draw {
10368
10569
  const self = this;
10369
10570
  const oldElementList = deepClone(this.elementList);
10370
10571
  const oldHeaderElementList = deepClone(this.header.getElementList());
10572
+ const oldFooterElementList = deepClone(this.footer.getElementList());
10371
10573
  const { startIndex, endIndex } = this.range.getRange();
10372
10574
  const pageNo = this.pageNo;
10373
10575
  const oldPositionContext = deepClone(positionContext);
@@ -10375,8 +10577,9 @@ class Draw {
10375
10577
  this.historyManager.execute(function() {
10376
10578
  self.zone.setZone(zone);
10377
10579
  self.setPageNo(pageNo);
10378
- self.position.setPositionContext(oldPositionContext);
10379
- self.header.setElementList(oldHeaderElementList);
10580
+ self.position.setPositionContext(deepClone(oldPositionContext));
10581
+ self.header.setElementList(deepClone(oldHeaderElementList));
10582
+ self.footer.setElementList(deepClone(oldFooterElementList));
10380
10583
  self.elementList = deepClone(oldElementList);
10381
10584
  self.range.setRange(startIndex, endIndex);
10382
10585
  self.render({ curIndex, isSubmitHistory: false });
@@ -10386,8 +10589,8 @@ class Draw {
10386
10589
  if (isCompute && !this.isReadonly() && positionContext.isTable) {
10387
10590
  this.tableTool.render();
10388
10591
  }
10389
- if (isCompute && this.zone.isHeaderActive()) {
10390
- this.zone.drawHeaderZoneIndicator();
10592
+ if (isCompute && !this.zone.isMainActive()) {
10593
+ this.zone.drawZoneIndicator();
10391
10594
  }
10392
10595
  if (this.listener.pageSizeChange) {
10393
10596
  this.listener.pageSizeChange(this.pageRowList.length);
@@ -11276,7 +11479,7 @@ class CommandAdapt {
11276
11479
  }
11277
11480
  const element = {
11278
11481
  type: ElementType.TABLE,
11279
- value: ZERO,
11482
+ value: !startIndex ? "" : ZERO,
11280
11483
  colgroup,
11281
11484
  trList
11282
11485
  };
@@ -12892,6 +13095,10 @@ class ContextMenu {
12892
13095
  this.contextMenuRelationShip.clear();
12893
13096
  }
12894
13097
  }
13098
+ const defaultHeaderOption = {
13099
+ top: 30,
13100
+ maxHeightRadio: MaxHeightRatio.HALF
13101
+ };
12895
13102
  const richtextKeys = [
12896
13103
  {
12897
13104
  key: KeyMap.X_UPPERCASE,
@@ -13043,6 +13250,10 @@ const defaultPageNumberOption = {
13043
13250
  color: "#000000",
13044
13251
  rowFlex: RowFlex.CENTER
13045
13252
  };
13253
+ const defaultFooterOption = {
13254
+ bottom: 30,
13255
+ maxHeightRadio: MaxHeightRatio.HALF
13256
+ };
13046
13257
  class Editor {
13047
13258
  constructor(container, data2, options = {}) {
13048
13259
  __publicField(this, "command");
@@ -13050,6 +13261,7 @@ class Editor {
13050
13261
  __publicField(this, "register");
13051
13262
  __publicField(this, "destroy");
13052
13263
  const headerOptions = __spreadValues(__spreadValues({}, defaultHeaderOption), options.header);
13264
+ const footerOptions = __spreadValues(__spreadValues({}, defaultFooterOption), options.footer);
13053
13265
  const pageNumberOptions = __spreadValues(__spreadValues({}, defaultPageNumberOption), options.pageNumber);
13054
13266
  const waterMarkOptions = __spreadValues(__spreadValues({}, defaultWatermarkOption), options.watermark);
13055
13267
  const controlOptions = __spreadValues(__spreadValues({}, defaultControlOption), options.control);
@@ -13085,12 +13297,13 @@ class Editor {
13085
13297
  margins: [100, 120, 100, 120],
13086
13298
  pageMode: PageMode.PAGING,
13087
13299
  tdPadding: 5,
13088
- defaultTdHeight: 40,
13300
+ defaultTrMinHeight: 40,
13089
13301
  defaultHyperlinkColor: "#0000FF",
13090
13302
  paperDirection: PaperDirection.VERTICAL,
13091
13303
  inactiveAlpha: 0.6
13092
13304
  }, options), {
13093
13305
  header: headerOptions,
13306
+ footer: footerOptions,
13094
13307
  pageNumber: pageNumberOptions,
13095
13308
  watermark: waterMarkOptions,
13096
13309
  control: controlOptions,
@@ -13099,22 +13312,24 @@ class Editor {
13099
13312
  });
13100
13313
  let headerElementList = [];
13101
13314
  let mainElementList = [];
13315
+ let footerElementList = [];
13102
13316
  if (Array.isArray(data2)) {
13103
13317
  mainElementList = data2;
13104
13318
  } else {
13105
13319
  headerElementList = data2.header || [];
13106
13320
  mainElementList = data2.main;
13321
+ footerElementList = data2.footer || [];
13107
13322
  }
13108
- formatElementList(headerElementList, {
13109
- editorOptions
13110
- });
13111
- formatElementList(mainElementList, {
13112
- editorOptions
13323
+ [headerElementList, mainElementList, footerElementList].forEach((elementList) => {
13324
+ formatElementList(elementList, {
13325
+ editorOptions
13326
+ });
13113
13327
  });
13114
13328
  this.listener = new Listener();
13115
13329
  const draw = new Draw(container, editorOptions, {
13116
13330
  header: headerElementList,
13117
- main: mainElementList
13331
+ main: mainElementList,
13332
+ footer: footerElementList
13118
13333
  }, this.listener);
13119
13334
  this.command = new Command(new CommandAdapt(draw));
13120
13335
  const contextMenu = new ContextMenu(draw, this.command);
@@ -13131,5 +13346,5 @@ class Editor {
13131
13346
  };
13132
13347
  }
13133
13348
  }
13134
- export { BlockType, Command, ControlType, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, ImageDisplay, KeyMap, PageMode, PaperDirection, RowFlex, TableBorder, VerticalAlign, Editor as default };
13349
+ export { BlockType, Command, ControlType, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, ImageDisplay, KeyMap, MaxHeightRatio, PageMode, PaperDirection, RowFlex, TableBorder, VerticalAlign, Editor as default };
13135
13350
  //# sourceMappingURL=canvas-editor.es.js.map