config

Basic Configuration

pluginNamerequired

  • Type: String

The name of the plugin. This is a required option, the length cannot exceed 30 characters.

    
    {
        "pluginName":"Wise Toys"
    }
    

descriptionrequired

  • Type: String

Plug-in description, concisely explain the role of this plug-in

    
    {
        "description":"Plugin description"
    }
    

mainrequired

  • Type: String

An index file of the plugin, must be a HTML file

    
    {
        "main":"index.html"
    }
    

versionrequired

  • Type: String

The version of the plugin. The regular form is: major. minor. Revision. E.g., 1.0.1

    
    {
        "version":"0.0.1"
    }
    

logorequired

  • Type: String

The icon of the plugin, supports svg, png, jpg.

    
    {
        "logo":"logo.svg"
    }
    

platform

  • Type: Array
  • Optional values: win32,darwin,linux

The platform supported by the plugin, the default is full platform support.

    
    {
        "darwin":" ["win32", "darwin", "linux"]"
    }
    

preload

  • Type: String

You can call the API provided by Wise Tools, nodejs, and electron in this file.

    
    {
        "preload":"preload.js"
    }
    

Plugin Configuration

pluginSetting

  • Type: Object

The settings of a plugin.

    
     "pluginSetting":{
     }
    

pluginSetting.width

  • Type: Number

The width of the plug-in window.

    
     "pluginSetting":{
        "width":1000
     }
    

pluginSetting.height

  • Type: Number

The height of the plug-in window.

    
     "pluginSetting":{
        "height":600
     }
    
L O A D I N G