Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 463 Bytes

2.7 Statistical tool.md

File metadata and controls

10 lines (8 loc) · 463 Bytes

WAXML can give a report on the number of each element type in the configuration. It's only available through the [Javascript API] and it consists of only one getter: "statistics".

Ex: Read the statistical report from WAXML and display the result in the console.

Object.entries(waxml.statistics.elementCount).forEach(([nodeName, cnt]) => {
  console.log(nodeName, cnt]);
});