Stay organized with collections Save and categorize content based on your preferences.

blockly > Events > ViewportChange

Events.ViewportChange class

Class for a viewport change event.

Signature:

export declare class ViewportChange extends UiBase 

Extends: UiBase

Constructors

Constructor Modifiers Description
(constructor)(opt_top, opt_left, opt_scale, opt_workspaceId, opt_oldScale) Constructs a new instance of the ViewportChange class

Properties

Property Modifiers Type Description
oldScale? number (Optional)
scale? number (Optional)
type string
viewLeft? number (Optional)
viewTop? number (Optional)

Methods

Method Modifiers Description
fromJson(json) Decode the JSON event.
toJson() Encode the event as JSON.