Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
getTotalLength() は SVGPathElement インターフェイスのメソッドで、このパスの全長のユーザーエージェントの計算値を、ユーザー単位で返します。
なし。
ユーザー単位でのこのパスの全長を示す数値です。
この例では、2 つのパス(基本の直線とハート形)の合計長を取得します。
| SVG Paths # __svg__SVGPathElement__getTotalLength |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年12月4日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.