import { Component } from "../component"; import { ShapeDefinition } from "../shape_definition"; export class HubComponent extends Component { static getId() { return "Hub"; } constructor() { super(); /** * Shape definitions in queue to be analyzed and counted towards the goal * @type {Array} */ this.definitionsToAnalyze = []; } /** * @param {ShapeDefinition} definition */ queueShapeDefinition(definition) { this.definitionsToAnalyze.push(definition); } }