Skip to content

netless-io/appliance-auto-draw-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appliance-auto-draw-plugin

A dependent on @netless/appliance-plugin automatic associations used line drawing plugin.

Install

npm add @netless/appliance-auto-draw-plugin

Usage

Register to appliance-plugin by calling the appliance.usePlugin(plugin) method.

    import { ApplianceMultiPlugin } from '@netless/appliance-plugin';
    import { AutoDrawPlugin } from '@netless/appliance-auto-draw-plugin';

    const appliancePlugin = await ApplianceMultiPlugin.getInstance(...);
    const autoDrawPlugin = new AutoDrawPlugin({
        // Mount the dom node
        container: document.getElementById('container'),
        // Handwritten stick figure Lenovo service address
        hostServer: 'https://autodraw-white-backup-hk-hkxykbfofr.cn-hongkong.fcapp.run',
        // How long is the delay after handwriting notes are drawn to start association
        delay: 2000
    });
    appliancePlugin.usePligiun(autoDrawPlugin);
    // turn on
    autoDrawPlugin.mount();
    // turn off
    autoDrawPlugin.unMount();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published