This repository was archived by the owner on Aug 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
compact
paige edited this page Sep 25, 2023
·
1 revision
const cl = require('aepl');
// main class
let m = cl.init("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
m.newF("reverse", function() {
return this.data.reverse();
});
// layer class
let l = m.newC("Layer", class {
constructor() {
this.data = [4, 5, 6];
}
});
l.newF("reverse", function() {
return this.data.reverse();
});
l.newP("mainData", function() {
return this.parent.data;
});
// creates new main instance
let main = new Main();
console.log(main.data); // [1, 2, 3]
// creates a new layer instance
let layer = new main.Layer();
console.log(layer.data); // [4, 5, 6]
console.log(layer.mainData); // [1, 2, 3]
console.log(main.reverse()); // [3, 2, 1]
console.log(layer.reverse()); // [6, 5, 4]If you want to check out the different versions and changes check out the releases
For a look into the development side check out the src folder
init()
from()
inspect()
new()
addClass()
addFunc()
addProp()
addChore()
addAsyncChore()
addPreClass()
addPreFunc()
addPreProp()
addPreChore()
addPreAChore()
setName()
setInspect()
Subclass
Function
Property
Chore
AsyncChore
Preclass
PreFunction
PreProperty
PreChore
PreAsyncChore
compact
multiple-layers
event handler
alternate names
setting and getting inspects