1import CanvasSeatMapController from "controllers/canvas_seat_map_controller" 2 3// ä¼å ´ã®ã座å¸è¡¨ãã¬ãã¥ã¼ãã¿ããè³¼å ¥ç»é¢ï¼o/cart_performancesï¼ã¨ã¾ã£ããåã 4// canvas_seat_map_controller ã§æããå®éã«ã客æ§ãè¦ã座å¸è¡¨ãä¼å ´åä½ã§ç¢ºèªããã 5// å ¬æ¼ãæããªãã®ã§è²©å£²ç¶æ³ã¯ç¡ããå ¨å¸ããè³¼å ¥å¯ãã®ç¶æ ã§æãã 6// 確èªç¨ãªã®ã§åº§å¸ã®é¸æã»ç·¨éã¯ã§ããªãã 7export default class extends CanvasSeatMapController { 8 // STATUS.VACANTï¼è³¼å ¥å¯ï¼ãä¼å ´ã«ã¯è²©å£²ç¶æ³ãç¡ãã®ã§å ¨å¸ãã®ç¶æ ã§æã 9 applyStates() { 10 this.seats.forEach(seat => { seat.status = 1 }) 11 } 12 13 // è³¼å ¥ç»é¢ã®ã«ã¼ã飿ºã¯ç¡ãã®ã§ã鏿ã¾ããã¯ä½ãããªã 14 updateSelection() {} 15 16 selectAt() {} 17 18 hoverCursor() { 19 return "" 20 } 21 22 draw() { 23 super.draw() 24 this.updateScaleLabel() 25 } 26 27 updateScaleLabel() { 28 const label = this.element.querySelector("[data-manage-scale]") 29 if (!label || !this.scale) return 30 const text = `${Math.round(this.scale * 100)}%` 31 if (label.textContent !== text) label.textContent = text 32 } 33 34 35 // è²©å£²ä¾¡æ ¼ã¯ä¼å ´ã ãã§ã¯æ±ºã¾ããªãã®ã§ãå¸ã®å¼ã³åã ãåºã 36 showTooltip(seat, clientX, clientY) { 37 const tooltip = this.tooltipTarget 38 const title = document.createElement("div") 39 title.className = "fw-bold" 40 title.textContent = this.seatName(seat) 41 tooltip.replaceChildren(title) 42 tooltip.classList.remove("d-none") 43 const viewport = this.viewportTarget.getBoundingClientRect() 44 tooltip.style.left = `${Math.max(8, Math.min(clientX - viewport.left + 12, viewport.width - tooltip.offsetWidth - 8))}px` 45 tooltip.style.top = `${Math.max(8, Math.min(clientY - viewport.top + 12, viewport.height - tooltip.offsetHeight - 8))}px` 46 } 47}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.