海报编辑功能
<pre><code class="language-plantuml">skinparam backgroundColor #FCFCFC
class poster2c {
canvas
posterbg
posterW
posterH
scaleMultiplier
render(id,data)
addTeamdate()
removeTeamdate()
getSimpleJson()
toDataUrl(data)
}
</code></pre>
<h4>渲染图片</h4>
<pre><code class="language-plantuml">skinparam backgroundColor #FCFCFC
:创建隐藏的画布staticCanvas;
:加载数据库取出的json;
:设置画布尺寸
canvas.setWidth()
canvas.setHeight();
:canvas.renderAllcanvas();
:canvas.toDataUrl();
:清空画布
canvas.clear();
</code></pre>