
Security News
The AI Industry Is Betting on Open Weights
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.
@aico-test/execel-table-renderer
Advanced tools
A web-based(canvas) JavaScript Table Renderer
npm install
npm install @wolf-table/table-renderer@0.0.1
import TableRenderer, { Cell, Canvas } from "@wolf-table/table-renderer";
const longText = {
value: 'you are a good boy, a very good boy-------!!!',
style: 0,
};
function cellText(ri: number, ci: number): string | Cell {
if (ri === 8 && ci === 1) return longText;
const value = `${ri}-${ci}`;
if (ri <= 14 && ri >= 13 && ci <= 12 && ci >= 9) {
return { value, style: 1 };
}
if (ri === 4 && ci === 4) return { type: 'select', value };
if (ri === 4 && ci === 8) return { type: 'bool', value };
return value;
}
function cellRenderer(canvas: Canvas, { x, y, width, height }, cell) {
const type = (cell && cell.type) || '';
if (type === 'bool') {
canvas
.prop({ strokeStyle: '#0069c2', lineWidth: 2 })
.roundRect((width - 12) / 2, height / 2 - 5, 10, 10, 2)
.stroke();
} else if (type === 'select') {
canvas
.prop({ fillStyle: '#0069c2' })
.beginPath()
.moveTo(width - 12, 2)
.lineTo(width - 2, 2)
.lineTo(width - 7, 10)
.closePath()
.fill();
}
return true;
}
TableRender.create('#table', 1400, 800)
.scale(1)
.bgcolor('#fff')
.colHeader({
height: 50,
rows: 2,
merges: ['A1:C1', 'D1:D2'],
cellRenderer: (canvas, { x, y, width, height }) => {
canvas
.prop({ fillStyle: '#0069c2' })
.beginPath()
.moveTo(width - 12, 2)
.lineTo(width - 2, 2)
.lineTo(width - 7, 10)
.closePath()
.fill();
return true;
},
})
.merges(['I10:J11', 'B9:D10', 'G21:H22', 'J22:L23', 'I3:K4'])
.borders([
['G3', 'all', 'dashed', '#188038'],
['B9', 'outside', 'thick', '#188038'],
['M4:N10', 'all', 'medium', '#188038'],
['H9:K12', 'inside', 'thick', 'red'],
['E14:J16', 'all', 'dotted', 'red'],
['E19:M24', 'all', 'thick', '#188038'],
])
// .startRow(1)
.rows(50)
.styles([{ bold: true }, { bgcolor: '#ffc107' }])
.col((index) => (index == 5 ? { width: 100, hide: true } : undefined))
.freeze('C6')
.scrollRows(2)
.scrollCols(1)
.cell((ri, ci) => cellText(ri, ci))
.cellRenderer(cellRenderer)
.render();
git clone https://github.com/wolf-table/table-renderer.git
cd table-renderer
npm install
npm run dev
Open your browser and visit http://127.0.0.1:8080.
Modern browsers(chrome, firefox, Safari).
MIT
Copyright (c) 2022-present, myliang
FAQs
a based-canvas table renderer
We found that @aico-test/execel-table-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.