Neverending Puppy Marathon

    @cropper/element
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0-beta • Public • Published

    @cropper/element

    An abstract class for constructing Cropper elements.

    Main npm package files

    dist/
    ├── element.js         (UMD, bundled)
    ├── element.min.js     (UMD, bundled, compressed)
    ├── element.raw.js     (UMD, unbundled, default)
    ├── element.esm.js     (ECMAScript Module, bundled)
    ├── element.esm.min.js (ECMAScript Module, bundled, compressed)
    ├── element.esm.raw.js (ECMAScript Module, unbundled)
    └── element.d.ts       (TypeScript Declaration File)
    

    Getting started

    Installation

    npm install @cropper/element

    Usage

    import { CropperElement } from 'cropperjs';
    // Or
    // import CropperElement from '@cropper/element';
    
    class MyCropperElement extends CropperElement {
      myStringProperty = '';
      myNumberProperty = NaN;
      myBooleanProperty = false;
    
      static get observedAttributes(): string[] {
        return super.observedAttributes.concat([
          'my-boolean-property',
          'my-number-property',
          'my-string-property',
        ]);
      }
    
      // ...
    }
    
    MyCropperElement.$define();
    <my-cropper-element my-string-property="foo" my-number-property="1" my-boolean-property></my-cropper-element>

    Versioning

    Maintained under the Semantic Versioning guidelines.

    License

    MIT

    Install

    npm i @cropper/element

    DownloadsWeekly Downloads

    1,677

    Version

    2.0.0-beta

    License

    MIT

    Unpacked Size

    54.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • chenfengyuan