kawasima / axebomber-clj Goto Github PK
View Code? Open in Web Editor NEWThe generator for Excel grid sheet (so-called Excel方眼紙).
The generator for Excel grid sheet (so-called Excel方眼紙).
お世話になっております。
弊社にて、当ソフトウェアを使用させて頂きましたところ、
以下のような事象が発生致しました。
rowspan使用時かつ行折り返しが発生した場合、rowspanのサイズが折り返しで増加した行数に追従しない。
https://gist.github.com/sambatriste/b2f4b5a3c6c7bb35ee78#file-wrap_and_rowspan-clj
(ns axebomber.wrap_and_rowspan
(:require [clojure.java.io :as io])
(:use [axebomber usermodel]
[axebomber.renderer excel]
[axebomber.style :only [create-style]]
[midje.sweet]))
(fact "折り返しとrowspanが混ざるとrowspanが足りない?"
(let [wb (create-workbook) sheet (to-grid (.createSheet wb "otameshi"))]
(render sheet {:x 0 :y 0}
[:table
[:tr
[:td {:style "background-color: grey25" :data-width 15} "親項目"]
[:td {:style "background-color: grey25" :data-width 21} "子項目1"]
[:td {:style "background-color: grey25" :data-width 15} "子項目2"] ;; ここの幅を広くするか
]
[:tr
[:td {:rowspan 2} "この下の罫線がへんなかんじ↓"]
[:td "ほげほげ"]
[:td "ふがふが"]
]
[:tr
[:td "もげもげ"]
[:td "ここが折り返されるとrowspanとずれるのではないだろうか?"] ;; これを短くして折り返さないようにすると期待通りの動きになります。
]
]
)
(with-open [out (io/output-stream "target/wrap_and_rowspan.xlsx")]
(.write wb out))))
ソースコードをつまびらかに見ていないので即答しかねるのですが、
折り返し発生時にrowspanの計算がされていないのではないかと危惧しております。
本事象のため、折角の美しい方眼紙に余分な罫線が含まれてしまい、
現場では手動で罫線を消すという惨事が発生しております。
何卒ご検討のほど宜しくお願い致します。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.