New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dompack-overlays

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dompack-overlays

Support for overlays which are user editable

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

dompack-overlay

Usage

To integrate into your project:

Select a class, eg 'myoverlays', to use for the overlays

The JavaScript part:

import * as dompack from "dompack";
import OverlayManager from "dompack-overlays";

// .....

let overlaymgr = new OverlayManager(mynode, "myoverlay");
overlaymgr.add({ left: 5, top: 50, width: 50, height: 150 });

The SCSS part

@import "~dompack-overlays/styles/mixins";

.myoverlay
{
  @include dompack-overlays;
  @include dompack-overlays-example-styling;
}

API

OverlayManager.add(options)

Add a new overlay. Returns a ResizableOverlay

OverlayManager.getSelection()

Returns the currently selected ResizableOverlays

Events

dompack:overlay-selectionchange

  • bubbles: true
  • cancelable: false

fired when the currently selected ResizableOverlay changes

Development

To run the tests, see https://github.com/WebHare/dompack/blob/develop/doc/testframework.md

FAQs

Package last updated on 06 Dec 2017

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