Wondering what’s next for npm?Check out our public roadmap! »

    visualne-selection-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    visualne-selection-plugin

    VisualNE plugin to select multiple nodes at once.

    Capture

    Usage

    Install

    npm i visualne-selection-plugin --save

    Basic

    import { SelectionPlugin } from 'visualne-selection-plugin'
    editor.use<Plugin, SelectionParams>(SelectionPlugin, { enabled: true })

    Advanced

    export interface SelectionParams {
      /**
       * selection area's className for style
       */
      selectionArea?: {
        className?: string;
      };
      /**
       * selection mode's className for style
       */
      selectionMode?: {
        className?: string;
      };
      /**
       * enabled or disable selection
       * default false
       */
      enabled?: boolean;
      /**
       * mode text
       */
      mode?: [string, string];
    }
    
    import SelectionPlugin from 'visualne-selection-plugin'
    editor.use(SelectionPlugin, {
      enabled: true,
      selectionMode: {
        className: 'text-weight-light custom-selection-pos'
      },
      mode: [
        'Single selection mode (press ctrl to enter [multiple selection mode])', 
        'Multiple selection mode (release ctrl to enter [single selection mode])'
      ]
    })

    Keywords

    none

    Install

    npm i visualne-selection-plugin

    DownloadsWeekly Downloads

    3

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    49.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar