Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-scaler

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-scaler

A Cordova plugin that controls the scaling of the WebView on iOS

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-scaler

This plugin controls the scaling of the WebView on iOS.

Supported Cordova Platforms

  • iOS 7 and above

Methods

The plugin is exposed on the window object as Scaler. Although it is in the global scope, it is not available until after the deviceready event. There are two API calls available:

Scaler.viewportZoom

Zooms the scroll view to the size of the viewport (essentially, this is the same as <meta name="viewport" content="initial-scale=1">).

Scaler.viewportZoom({ animate: true })

Scaler.zoom

Allows zooming the scroll view to any arbitrary rectangular area.

Scaler.zoom({ x: 50, y: 50, width: 300, height: 700, animate: false })

iOS will not follow the width and height strictly if they do not match the viewport aspect ratio.

Keywords

FAQs

Package last updated on 24 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc