mirror of
https://gitee.com/sli97/behavior-eden-coco-plugin.git
synced 2024-12-25 19:29:08 +00:00
30 lines
836 B
JavaScript
30 lines
836 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.unload = exports.load = exports.methods = void 0;
|
|
// @ts-ignore
|
|
const package_json_1 = __importDefault(require("../package.json"));
|
|
/**
|
|
* @en
|
|
* @zh 为扩展的主进程的注册方法
|
|
*/
|
|
exports.methods = {
|
|
openPanel() {
|
|
Editor.Panel.open(package_json_1.default.name);
|
|
},
|
|
};
|
|
/**
|
|
* @en Hooks triggered after extension loading is complete
|
|
* @zh 扩展加载完成后触发的钩子
|
|
*/
|
|
function load() { }
|
|
exports.load = load;
|
|
/**
|
|
* @en Hooks triggered after extension uninstallation is complete
|
|
* @zh 扩展卸载完成后触发的钩子
|
|
*/
|
|
function unload() { }
|
|
exports.unload = unload;
|