연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > blockRendering > RenderInfo > 측정
블록 렌더링.RenderInfo.measure() 메서드
블록을 그리는 데 필요한 모든 크기 정보로 이 객체를 채웁니다.
이 측정 패스는 변경사항을 블록에 전파하지 않습니다 (단, 필드는 getSize()가 호출될 때 다시 렌더링되도록 선택할 수 있음). 그러나 반복적으로 호출하면 비용이 많이 들 수 있습니다.
서명:
measure(): void;
반환:
void
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[null,null,["최종 업데이트: 2024-08-21(UTC)"],[[["The `blockRendering.RenderInfo.measure()` method calculates and stores the dimensions required to render a block."],["This method populates the RenderInfo object with sizing data without directly updating the block's visual representation, though it may trigger field rerendering."],["While crucial for rendering, repeatedly calling `measure()` can impact performance due to its computational cost."]]],["The `measure()` method within the `blockRendering.RenderInfo` class calculates and stores the necessary sizing data for rendering a block. This process doesn't alter the block itself, although fields might rerender upon size retrieval. It's important to note that repeated calls to `measure()` can be resource-intensive. The method takes no parameters and returns nothing (void). Its primary function is to determine and populate the sizing information required for block drawing.\n"]]