Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150782 | Jan 20,2020 05:49 AM UTC | Jan 22,2020 07:14 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Diagram |
//disable zoom initially
public constraints: DiagramConstraints = DiagramConstraints.Default &~DiagramConstraints.Zoom;
//zoom operation at runtime
ZoomIn() {
let zoomOptions: ZoomOptions = {
type: "ZoomIn",
//Sets the factor by which we can zoom in or zoom out
zoomFactor: 0.5
}
//zoomin the diagram
this.diagram.zoomTo(zoomOptions)
}
ZoomOut() {
let zoomOptions: ZoomOptions = {
type: "ZoomOut",
//Sets the factor by which we can zoom in or zoom out
zoomFactor: 0.5
}
//zoomout the diagram
this.diagram.zoomTo(zoomOptions)
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.