-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
35 lines (34 loc) · 1.15 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Created and maintained by SrGobi
const Canvacard = require("./src/Canvacard");
const Canvas = require("@napi-rs/canvas");
module.exports = {
Canvas: Canvacard,
Canvacard,
ConvolutionMatrix: Canvacard.CONVOLUTION_MATRIX,
Rank: require("./src/Rank"),
Spotify: require("./src/Spotify"),
WelcomeLeave: require("./src/WelcomeLeave"),
FortniteShop: require("./src/FortniteShop"),
Plugins: require("./src/Plugins"),
Assets: require("./src/AssetsFactory"),
MSX: {
Brightness: require("./libs/Brightness"),
Convolute: require("./libs/Convolute"),
Darkness: require("./libs/Darkness"),
Greyscale: require("./libs/Greyscale"),
Invert: require("./libs/Invert"),
Sepia: require("./libs/Sepia"),
Threshold: require("./libs/Threshold"),
Trigger: require("./libs/Trigger")
},
registerFont: (filePath, nameAlias) => {
try {
Canvas.GlobalFonts.registerFromPath(filePath, nameAlias); // Registrar la fuente usando la biblioteca canvas
} catch (error) {
console.error(`Error al registrar la fuente: ${error}`);
}
},
write: Canvacard.write,
author: "SrGobi",
version: require("./package.json").version
};