คลาสตัวเลือก
แยกวิเคราะห์ตัวเลือกที่ผู้ใช้ระบุ โดยใช้ค่าเริ่มต้นที่สมเหตุสมผลโดยไม่ได้ระบุลักษณะการทำงาน
ลายเซ็น:
export declare class Options
ผู้ผลิต
ผู้ผลิต | ตัวปรับแต่ง | คำอธิบาย |
---|---|---|
(เครื่องมือสร้าง)(ตัวเลือก) | สร้างอินสแตนซ์ใหม่ของคลาส Options |
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ตัวปรับแต่ง | Type | คำอธิบาย |
---|---|---|---|
ยุบ | boolean | ||
ความคิดเห็น | boolean | ||
ปิดใช้ | boolean | ||
getMetrics? | () => เมตริก | (ไม่บังคับ) ฟังก์ชันที่แสดงผลออบเจ็กต์เมตริกที่อธิบายพื้นที่ทำงานปัจจุบัน | |
gridOptions | GridOptions | ||
gridPattern | SVGElement | null | องค์ประกอบ SVG สำหรับรูปแบบตารางกริด สร้างระหว่างการแทรก | |
hasCategories | boolean | ||
hasCss | boolean | ||
hasScrollbars | boolean | ||
hasSounds | boolean | ||
hasTrashcan | boolean | ||
horizontalLayout | boolean | ||
languageTree | toolbox.ToolboxInfo | null | ||
maxBlocks | ตัวเลข | ||
maxInstances | { [key: string]: number; } | null | ||
maxTrashcanContents | ตัวเลข | ||
modalInputs | boolean | ||
moveOptions | MoveOptions | ||
oneBasedIndex | boolean | ||
parentWorkspace | WorkspaceSvg | null | ||
pathToMedia | สตริง | ||
ปลั๊กอิน | { [คีย์: string]: (ใหม่ (...p1: ใดๆ[]) => ใดๆ) | สตริง; } | ||
readOnly | boolean | ||
ผู้แสดงผล | สตริง | ||
rendererOverrides | { [rendererConstant: string]: Any; } | ไม่มีข้อมูล | ||
RTL | boolean | ||
setMetrics | (p1: { x?: number; y?: number; }) => void | (ไม่บังคับ) หากตั้งค่าไว้ ให้กำหนดคำแปลของพื้นที่ทำงานให้ตรงกับแถบเลื่อน ฟังก์ชันที่กำหนดการแปลพื้นที่ทำงานให้ตรงกับแถบเลื่อน อาร์กิวเมนต์ ประกอบด้วยคุณสมบัติ x และ/หรือ y ซึ่งเป็นแบบลอยที่อยู่ระหว่าง 0 ถึง 1 ที่ระบุระดับของการเลื่อน | |
ธีม | ธีม | ||
toolboxPosition | toolbox.Position | ||
zoomOptions | ZoomOptions |