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

zoom-image-data

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoom-image-data

zoom-image-data

  • 2.0.2
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
0
Weekly downloads
 
Created
Source

zoom-image-data

Installation

Install with npm:

npm install zoom-image-data

class ZoomImageData

Constructor

new ZoomImageData(param: param) => ZoomImageData

  • param
    • inData: ArrayBuffer Input Data
    • inw: number Width of input data
    • inh: number Height of input data
    • outData: ArrayBuffer Output Data
    • outw: number Width of output data
    • outh: number Height of output data
    • cellRatio?: number (defalut: 1) Ratio = cellW / cellH
    • cellWH?: number (defalut: 10) Base cell size
    • splitCell?: boolean (defalut: false) Split Cell
    • splitCellSize?: number (defalut: 2) Split Cell Size

Instance Function

.update() Update outputData.

.translate(dx: number, dy: number, silent?: boolean) Translate on outdata.

  • param
    • silent (optional) Defaults to false, Whether update outData.

.zoom(cx: number, cy: number, ratio: number, silent?: boolean) Scale ratio multiple at position(cx,cy) on outdata

.resize(silent?: boolean)

.updateMatrix(scale: number, dx: number, dy: number, silent?: boolean) Update the transformation matrix.

.inCoorIsIn(x: number, y: number): boolean

.outCoorIsIn(x: number, y: number): boolean

.transInToOut(coors: number[])

.transOutToIn(coors: number[])

Keywords

FAQs

Package last updated on 21 Aug 2024

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