/** * Creates a {@link Canvas} element with the specified {@link Canvas#width(Object)} and * {@link Canvas#height(Object)} attributes. * * @param width The {@link Canvas#width(Object)} attribute. * @param height The {@link Canvas#height(Object)} attribute. * @return The new element. */ public static final Canvas canvas(Number width, Number height) { return canvas().width(width).height(height); }
/** * Creates a {@link Canvas} element with the specified {@link Canvas#width(Object)} and * {@link Canvas#height(Object)} attributes. * * @param width The {@link Canvas#width(Object)} attribute. * @param height The {@link Canvas#height(Object)} attribute. * @return The new element. */ public static final Canvas canvas(Number width, Number height) { return canvas().width(width).height(height); }
/** * Creates a {@link Canvas} element with the specified {@link Canvas#width(Object)} and * {@link Canvas#height(Object)} attributes. * * @param width The {@link Canvas#width(Object)} attribute. * @param height The {@link Canvas#height(Object)} attribute. * @return The new element. */ public static final Canvas canvas(Number width, Number height) { return canvas().width(width).height(height); }