diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js index fb85f0a..88636f0 100644 --- a/docs/assets/hierarchy.js +++ b/docs/assets/hierarchy.js @@ -1 +1 @@ -window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg==" \ No newline at end of file +window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzwMKVNfWAgCbHgqm" \ No newline at end of file diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index 21144be..f2addb5 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -13,8 +13,10 @@ --dark-hl-5: #9CDCFE; --light-hl-6: #008000; --dark-hl-6: #6A9955; - --light-hl-7: #0070C1; - --dark-hl-7: #4FC1FF; + --light-hl-7: #267F99; + --dark-hl-7: #4EC9B0; + --light-hl-8: #0070C1; + --dark-hl-8: #4FC1FF; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -28,6 +30,7 @@ --hl-5: var(--light-hl-5); --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); --code-background: var(--light-code-background); } } @@ -40,6 +43,7 @@ --hl-5: var(--dark-hl-5); --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); --code-background: var(--dark-code-background); } } @@ -52,6 +56,7 @@ --hl-5: var(--light-hl-5); --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); --code-background: var(--light-code-background); } @@ -64,6 +69,7 @@ --hl-5: var(--dark-hl-5); --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); --code-background: var(--dark-code-background); } @@ -75,4 +81,5 @@ .hl-5 { color: var(--hl-5); } .hl-6 { color: var(--hl-6); } .hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } pre, code { background: var(--code-background); } diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 67300f7..f33d860 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "eJyNkE0LgkAQhv/LnC3TiMpznhSCDkGIxOYOuKRr7E5ihP89MtK1D/Q4w/M+8zLRHQgrAg+E5FiBBRdGKXiQF/yaobab9TSlPAMLzkJy8FwLklRkXKEEL2oFgaAunmRM6zYeCOorHHdVx7XVZul2QW3rlCnkk2b4btKsjyYzqpafCyJUfonS6Pc6+ENp4h/+2XrpLFyjdSg0oUQ1QvtGh5Q71MVVJbhhxEZoTXxIvT+E205ZMiXY6c9fn2hfN3fruI4fjhm/NQ==" \ No newline at end of file +window.navigationData = "eJyNkssKwjAQRf8l6/qqiNqtulJQXAgiIjEdbDBNSzIpFem/GyvW+KJdzsy9Z+6Q7K4EIUcSEC5DyIlHUoqRLeMkNAJ0p2y3I4yFnZ1tRQLfIyziIlQgSbCrAHOOLzsTVOvKbkfviJ4/KvaFV3nxklqxjqiCsFUW30nK9sHVNIo1izkiqFkG0sn3WPgD6co/+N3xsDfwndT2rJUwJy4nidSoDMNENVjxy1a3asE1goQm+Ke0DrkGnRjFYEqRNsC68jr0ZrtYvpAZVZwe/zzhXfqO6/v2a+xva2LlkQ==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 18034d1..d0fddf6 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "eJytl8tu2zAQRf9lsmUdjyRbj3WzCBK0RRcFCsEIVIt2iMiSQcluA8P/XlAPkwzpiLGzk6i5Z4bk5UMH4NXfGpL0AC+szCHxCJTZhkICrMzpPyCw4wUksKnyXUHr27Z18txsCiCwLLK6pjUkAEdiEprXLa1v6+eM0/xL+2Lg2tYnNeR99jQOcSYz3G1Y01B+t6dlc2J3aS1kNdqShsA24wJkrfx8ET9pXe34kn7Nmmy8CDX6iiJw6gWnCnjPvM9p2bAVo/yCOm6ensSXgcVUlmuBOrUDnit6xQr6TTxeX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TshbwicVeLq0D6yqaW4znX3kJ/rqO6t/Zdtnln8t8qout8u6sCjEpLqiqABEQd10XV7CzZFgvV7GSRDleaK6xz8PP4+17ZKSJU9nOgyPvObVcyN5jY45O1TXIvHO+zna/iovvx9JzXcQfNPFvEPnsecylPSZW7ZsZ3coVx+96aMvzPpMa7uEGPhpuSrrZNXl2YrBRyqueJZitRrENyEX8ita951xcLYwtpRiBzPOnc7r0z3Z0bJiOBFT4o68UYwK/MJkKd+BkL6VF+t1+zlPi+W2+Tnvwh4pf/15cBt9OybObOy4wSj2o/ncmfXi5kZzoWeIK40QcAQORKMgCh23+6EQQCOAQnBx5JlSu5rQVYQejnyT0NOEniL0cRSYhL4m9BVhgKOJSRhowkARTnAUmoQTTThRhCGOIpMw1IShIoxwFJuEkSaMFGHMF9RohVhTxqoVuDMATFLQbQQnPmqM5BrFBgepFgJuDDCaCHQXgWoj4OYAo5FAdxKoVgJuEDCaCXQ3gWon4CYBo6FAdxSolgJuFDCaCnRXgWor4GYBo7FAd1Z3qWk/2Hdqmt63bQi7R78R2ZNF15vivhfuSYR/DgfRiXAkNSN+j+eh7WmCtmcPAfIEyLUCiW2sgEwEJLCCSN9LQQFfYNABH+JUCiiQQL4VqDs+CsZYIMaWBKZMrNiJYhFghXg9IYBEsCsCCe18LOVNuEBGghhaAbPjkUJAQgGZWEGab730XBIALAmqUSS/gZ3hTneEEkx6A8DuFej3E2lzhBYoyb929jWdXgVOcrGdidWtjvSI0rKD3bp3//8QDNnN9oTuUKIU81HQ7i0rFID0asbDBGyoG7ahGctRMZsfDv8B42P/qg=="; \ No newline at end of file diff --git a/docs/classes/index.Kit.html b/docs/classes/index.Kit.html index 475b7e6..cc7d39c 100644 --- a/docs/classes/index.Kit.html +++ b/docs/classes/index.Kit.html @@ -1,24 +1,24 @@ -
Static
getStatic
getStatic
initStatic
offRemoves an event listener.
+Static
getStatic
getStatic
initInitialize the Kit class with plugins.
+An array of plugins to initialize.
+Static
offRemoves an event listener.
The plugin namespace.
The event name.
The listener to remove.
-Static
onListen for an event.
+Static
onStatic
registerStatic
setStatic
registerRegister a plugin with the Kit class.
+The plugin to register.
+Static
setimport { Plugin } from 'custom-plugin';
// Initialize an array of plugins.
Kit.init([Plugin]);
// or you can just register one plugin
Kit.registerPlugin(Plugin);
-const listener = (pEvent) => {
const { data, timestamp } = pEvent;
// Here you can use the data that the event sent down.
}
// Here you listen for an event from the plugin: `Plugin`, under the event name of `eventName`
Kit.on('Plugin', 'eventName', listener);
// You can also stop listening for an event
Kit.off('Plugin', 'eventName', listener);
+Listening for plugin events
const listener = (pEvent: EventEmitter) => {
const { data, timestamp } = pEvent;
// Here you can use the data that the event sent down.
}
// Here you listen for an event from the plugin: `Plugin`, under the event name of `eventName`
Kit.on('Plugin', 'eventName', listener);
// You can also stop listening for an event
Kit.off('Plugin', 'eventName', listener);
Gets a plugin by name.
-