연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > 차단 > isDuplicatable
Block.isDuplicatable() 메서드
차단의 중복 가능 여부를 가져옵니다. 이 블록과 하위 요소를 복제하는 경우 이 블록이 작업공간의 용량을 초과하게 되면 이 블록은 중복될 수 없습니다. 이 블록과 하위 요소가 maxInstances보다 우선 적용되는 경우 이 블록은 중복되지 않습니다.
서명:
isDuplicatable(): boolean;
반환:
부울
중복 가능한 경우 true입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]