🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

slidev-component-zoom

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slidev-component-zoom

Zoom commands for Slidev

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
10
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

slidev-component-zoom

NPM version

Zoom commands for Slidev.

Feature

By default slidev always scale the slide to fit the browser viewport.

This is nice, but you can't use the zoom feature of the browser anymore, the slide will automatically rescale to fit the viewport.

This library adds zoom buttons in the control bar to increase or decrease the font size.

For chrome and edge you can also use the native zoom feature of the browser, this will be catched by the plugin, and the font will be increased or decreased accordingly.

There is a little drawback to this: opening the devtools on the right or the left can trigger the zoom recalculation.

And if it happen, you can still click on the "Reset Zoom" button in the control bar to reset the zoom.

Installation

npm i slidev-component-zoom

Configuration

Define this package into your slidev addons.

In your slides metadata (using frontmatter):

---
addons:
  - slidev-component-zoom
---

Or in your package.json:

{
  "slidev": {
    "addons": [
      "slidev-component-zoom"
    ]
  }
}

Usage

Create a ./custom-nav-controls.vue file in your Slidev project and use the component:

<template>
  <Zoom/>
</template>

Components

Zoom

Component for the zoom feature:

<Zoom/>

Keywords

vuejs

FAQs

Package last updated on 02 Apr 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