แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > WorkspaceSvg > setScale
เมธอด WorkspaceSvg.setScale()
กำหนดปัจจัยการซูมของพื้นที่ทำงาน
ลายเซ็น:
setScale(newScale: number): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
newScale |
ตัวเลข |
ปัจจัยการซูม หน่วย: (พิกเซล / workspaceUnit) |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-11 UTC
[null,null,["อัปเดตล่าสุด 2024-10-11 UTC"],[[["Sets the zoom level of the workspace, controlling how large or small blocks and other elements appear."],["Takes a single argument, `newScale`, which represents the zoom factor as a ratio of pixels to workspace units."],["Modifies the workspace's zoom directly and doesn't return any value."],["`setScale` method belongs to the `WorkspaceSvg` class within the Blockly library and is used to dynamically adjust the visual scale of the workspace."]]],[]]