סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חסימה > isDuplicatable
שיטת Block.isDuplicatable()
בודקים אם אפשר לשכפל או לא. אם משכפלים את הבלוק הזה ואת הצאצאים, הבלוק הזה חורג מהקיבולת של סביבת העבודה ולא ניתן לשכפל אותו. אם משכפלים את הבלוק הזה, והצאצאים מציבים כל טיפוס מעל המכונות המקסימליות שלהם, לא ניתן לשכפל את הבלוק הזה.
Signature:
isDuplicatable(): boolean;
החזרות:
בוליאני
True אם יש כפילות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-10 (שעון UTC)."],[[["This method, `isDuplicatable()`, checks if a block can be duplicated without exceeding workspace capacity or type limits."],["It returns `true` if the block is safe to duplicate, otherwise it returns `false`."],["Duplication restrictions are based on the workspace's overall capacity and the maximum allowed instances of each block type."]]],["The `Block.isDuplicatable()` method determines if a block can be duplicated. It checks if duplicating the block and its descendants would exceed the workspace's capacity or any type's `maxInstances` limit. The method returns a boolean value: `true` if the block is duplicatable, and `false` otherwise. It has no parameters, and it is used to ensure the block duplication process stays within defined limits.\n"]]