import RenderedMapShape from "./RenderedMapShape.js"; export default class RenderedEntrance extends RenderedMapShape{ constructor(attrs,scaleX,scaleY){ super({ x: attrs.x, y: attrs.y, width: attrs.width * scaleX, height: attrs.height * scaleY, fill: '#1c3cff', stroke: 'black', strokeWidth: 1, draggable: false, rotation: attrs.rotation, cornerRadius:3, zIndex: 0 }); this.info.name = attrs.obj_name; this.info.description = attrs.description; this.on("mouseenter",() => { console.log("HOVER ROOM IN", this.x()); console.log(this.info.name,"NAME"); this.stroke('purple'); }) this.on("mouseleave", () => { console.log("HOVER ROOM OUT"); this.opacity(1); this.stroke('black') }) this.initText() } }