Scales a single child element to fill the available space without resizing it. This control reacts to changes in the size of the container as well as changes in size of the child element. For example, a media query may result in a change in aspect ratio.
Initializes a new instance of the ViewBox control.
The DOM element that functions as the scaling box. This element fills 100% of the width and height allotted to it.
The set of options to be applied initially to the ViewBox control. There are currently no options on this control, and any options included in this parameter are ignored.
Gets the DOM element that functions as the scaling box.
Adds an event handler for the specified event.
The name of the event to handle.
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Releases resources held by this ViewBox. Call this method when the ViewBox is no longer needed. After calling this method, the ViewBox becomes unusable.
Forces the ViewBox to update its layout. Use this function when making the ViewBox visible again after its style.display property had been set to "none".
Removes an event handler that the addEventListener method registered.
The name of the event that the event handler is registered for.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.