Working with the Glow Effect of Shape or Chart with Node.js via C++

Possible Usage Scenarios

Aspose.Cells provides the Shape.getGlow() method along with the GlowEffect class to work with the glow effect of a shape or chart. The GlowEffect class contains the following properties, which can be set to achieve different results according to application requirements.

Working with the Glow Effect of Shape or Chart

The following sample code loads the source Excel file (5115407.xlsx), accesses the first shape in the first worksheet, sets the sub‑properties of the Shape.getGlow() method, and then saves the workbook in an output Excel file (5115414.xlsx).

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sample.xlsx");

// Load your source Excel file
const workbook = new AsposeCells.Workbook(filePath);

// Access first worksheet
const worksheet = workbook.getWorksheets().get(0);

// Access first shape
const shape = worksheet.getShapes().get(0);

// Set the glow effect of the shape, set its Size and Transparency properties
const glowEffect = shape.getGlow();
glowEffect.setSize(30);
glowEffect.setTransparency(0.4);

// Save the workbook in XLSX format
workbook.save(path.join(dataDir, "output_out.xlsx"));