vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import {presetShape} from '../src/openxml/drawing/presetShape';
import {shapeToSVG} from '../src/openxml/drawing/svg/shapeToSVG';
const container = document.getElementById('shapes')! as HTMLElement;
for (const shapeName in presetShape) {
// 临时测试用
if (shapeName !== 'smileyFace') {
// continue;
}
const shape = presetShape[shapeName];
console.log('render shape', shapeName);
const svg = shapeToSVG(shape, [], {}, 100, 100, {
fillColor: '#4472C4'
});
const div = document.createElement('div');
div.style.display = 'inline-block';
div.style.margin = '12px 40px';
div.style.width = '100px';
div.style.height = '120px';
div.style.boxSizing = 'border-box';
div.style.verticalAlign = 'top';
div.style.textAlign = 'center';
div.appendChild(svg);
const p = document.createElement('p');
p.innerText = shapeName;
div.appendChild(p);
container.appendChild(div);
}