Bug report
When exporting a diagram as a PDF, hidden shapes still visible.
Reproduction of the problem
1. Run this dojo - https://dojo.telerik.com/oRUPUHOb/4
2. Click on "Mask" button
3. Click on "Save as PDF"
4. Open the exported PDF file
The shape State 1 must not be present on the exported PDF
The Typescript definitions for Kendo UI define the connections() method which is part of the kendo.dataviz.diagram.Shape interface as follows:
connections(type: string): void;
The documentation (https://docs.telerik.com/kendo-ui/api/javascript/dataviz/diagram/shape/methods/connections) however, specifies:
Returns the connections attached to the shape. You can optionally specify to return only the incoming or outgoing connections.
Therefore, connections() should not be of type void and the type parameter should be optional.
To solve this issue, we currently cast both the parameter and the result.