סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
העברה
אפשר להזיז את סביבת העבודה הראשית ב-Blockly בשלוש שיטות שונות: סרגלי גלילה, העכבר או גלגל העכבר.
הגדרות ההעברה נקבעות על ידי אובייקט שהוא חלק מההגדרה שלBlockly. לדוגמה:
var workspace = Blockly.inject('blocklyDiv',
{move:{
scrollbars: {
horizontal: true,
vertical: true
},
drag: true,
wheel: false}
});
המדיניות קובעת אם בסביבת העבודה יהיו פסי גלילה אנכיים או אופקיים. הפונקציה לוקחת
אובייקט שבו המאפיין horizontal
קובע אם גלילה אופקית מופעלת
והמאפיין vertical
קובע אם הגלילה האנכית מופעלת.
אם ערך בוליאני מועבר, הערך הוא שווה ערך להעברה של אובייקט עם הערך הזה שמוגדר בו המאפיין horizontal
וגם המאפיין vertical
. ברירת המחדל היא true
(גם הגלילה האופקית וגם הגלילה האנכית מופעלת) אם בסביבת העבודה יש קטגוריות.
גרירה
המדיניות הזו קובעת אם אפשר לגרור את סביבת העבודה באמצעות העכבר. תמיד false
אם
scrollbars
הוא false
(לפחות בניתוח האפשרויות). ברירת המחדל היא true
אם הערך של scrollbars
הוא true
.
גלגל
המדיניות הזו קובעת אם אפשר לגלול את סביבת העבודה באמצעות גלגל העכבר. תמיד false
אם scrollbars
הוא false
(לפחות בניתוח האפשרויות). ברירת המחדל היא false
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[null,null,["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["Blockly workspaces can be navigated using scrollbars, mouse dragging, and mouse wheel scrolling."],["These navigation options are configurable through Blockly's initialization options using the `move` property and its sub-properties: `scrollbars`, `drag`, and `wheel`."],["Scrollbars can be individually enabled or disabled for horizontal and vertical scrolling, while dragging and wheel scrolling are enabled or disabled with boolean values."]]],["Blockly's workspace movement is configured via the `move` object within its settings. This configuration allows defining the behavior of scrollbars, mouse dragging, and mouse wheel scrolling. `scrollbars` enables horizontal and/or vertical scrolling. `drag` enables mouse dragging, dependent on scrollbars being enabled. `wheel` enables mouse wheel scrolling, also dependent on scrollbars. Default settings include both scrollbars enabled and mouse dragging enabled, but mouse wheel disabled. If scrollbars are false then drag and wheel will be false as well.\n"]]