Open this page in the API Guide

Canvas.getDesignPlaygroundSize Method

Gets the design playground width and height.