# grapesjs-zoom-plugin

> Grapesjs Zoom Plugin

Latest version **1.0.5** (published 2023-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install grapesjs-zoom-plugin
pnpm add grapesjs-zoom-plugin
yarn add grapesjs-zoom-plugin
bun add grapesjs-zoom-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-07-15 |
| First published | 2023-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gxanshu |
| Keywords | grapesjs, plugin |

## Links

- npm: https://www.npmjs.com/package/grapesjs-zoom-plugin
- Repository: https://github.com/gxnanshu/grapesjs-zoom-plugin
- Homepage: https://codenanshu.in/projects/grapesjs-zoom-plugin
- Issues: https://github.com/gxnanshu/grapesjs-zoom-plugin/issues
- npm.io page: https://npm.io/package/grapesjs-zoom-plugin

## Recent versions

- 1.0.5 (latest) — 2023-07-15
- 1.0.3 — 2023-07-15
- 1.0.1 — 2023-07-15

## README

# Grapesjs Zoom Plugin

[DEMO](https://codesandbox.io/s/sharp-haslett-dwcpvt?file=/src/index.js)

### HTML
```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/grapesjs-zoom-plugin"></script>

<div id="gjs"></div>
```

### JS
```js
const editor = grapesjs.init({
	container: '#gjs',
  height: '100%',
  fromElement: true,
  storageManager: false,
  plugins: ['grapesjs-zoom-plugin'],
});
```

### CSS
```css
body, html {
  margin: 0;
  height: 100%;
}
```


## Summary

* Plugin name: `grapesjs-zoom-plugin`
super simple plugin for canvas zoom in zoom out. this plugin works with the api of canvas of the grapesjs.



## Download

* CDN
  * `https://unpkg.com/grapesjs-zoom-plugin`
* NPM
  * `npm i grapesjs-zoom-plugin`
* GIT
  * `git clone https://github.com/gxnanshu/grapesjs-zoom-plugin.git`



## Usage

Directly in the browser
```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-zoom-plugin.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container: '#gjs',
      // ...
      plugins: ['grapesjs-zoom-plugin'],
      pluginsOpts: {
        'grapesjs-zoom-plugin': { /* options */ }
      }
  });
</script>
```

Modern javascript
```js
import grapesjs from 'grapesjs';
import plugin from 'grapesjs-zoom-plugin';
import 'grapesjs/dist/css/grapes.min.css';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [plugin],
  pluginsOpts: {
    [plugin]: { /* options */ }
  }
  // or
  plugins: [
    editor => plugin(editor, { /* options */ }),
  ],
});
```



## Development

Clone the repository

```sh
$ git clone https://github.com/gxnanshu/grapesjs-zoom-plugin.git
$ cd grapesjs-zoom-plugin
```

Install dependencies

```sh
$ npm i
```

Start the dev server

```sh
$ npm start
```

Build the source

```sh
$ npm run build
```



## License

MIT

---
_Source: https://npm.io/package/grapesjs-zoom-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
