import { Shark } from "../Shark";
import RenderableJaw from "./RenderableJaw";
/**
* The Class to extend to create Component classes.
*
* @constructor
* @param {string} jawId - The internal id taht will identify the Component class.
* @param {object} jawDefinition - An object with method to assign to this class. <strong>This parameter is deprecated and will be removed. Still exisists for back-compatibility reason.</strong>
* The <code>jawDefinition</code> parameter is deprecated and will be removed. Still exisists for back-compatibility reason.
*/
class Component extends RenderableJaw {
constructor (jawId, jawDefinition) {
super(jawId, jawDefinition);
Object.defineProperty(this, "type", {
configurable: false,
enumerable: true,
value: "component",
writable: false,
});
Shark.registerComponent(this);
}
}
export default Component;