webamp/modern/src/runtime/Region.js
Jordan Eldredge 2790a2995b Stub Out Missing Methods (#887)
* Add fixable rule to report missing Maki methods

* Stub out missing methods

These were auto-generated with the ESLint rule

* Don't lint on too many params, when the params are defined by Maki

* Improve objects tests now that all maki methods are stubbed out

Now we can assume all methods exist and we can also start a list of unimplemented methods
2019-11-30 13:42:53 -08:00

69 lines
1.1 KiB
JavaScript

import MakiObject from "./MakiObject";
import { unimplementedWarning } from "../utils";
class Region extends MakiObject {
/**
* getclassname()
*
* Returns the class name for the object.
* @ret The class name.
*/
getclassname() {
return "Region";
}
loadfrommap(regionmap, threshold, reversed) {
unimplementedWarning("loadFromMap");
}
offset(x, y) {
unimplementedWarning("offset");
}
add(reg) {
unimplementedWarning("add");
return;
}
sub(reg) {
unimplementedWarning("sub");
return;
}
stretch(r) {
unimplementedWarning("stretch");
return;
}
copy(reg) {
unimplementedWarning("copy");
return;
}
loadfrombitmap(bitmapid) {
unimplementedWarning("loadfrombitmap");
return;
}
getboundingboxx() {
unimplementedWarning("getboundingboxx");
return;
}
getboundingboxy() {
unimplementedWarning("getboundingboxy");
return;
}
getboundingboxw() {
unimplementedWarning("getboundingboxw");
return;
}
getboundingboxh() {
unimplementedWarning("getboundingboxh");
return;
}
}
export default Region;