SpreadJS provides support for adding custom shapes in worksheets based on specific requirements. You can customize the shape model to draw a shape of your choice just like the way graphics are drawn onto a canvas.
Shared below is a screenshot that depicts a custom shape added to the worksheet.
This example shows how to add custom shape in the worksheet.
JavaScript |
Copy Code
|
---|---|
// Adding a custom shape to the worksheet window.onload = function () { // Define a model to create custom shape { { { { //Add defined custom shape to sheet |
Note: SpreadJS doesn't support the following scenarios while integrating custom shapes: