• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web 开发技术
  2. Web API 接口参考
  3. DOMPoint
  4. DOMPoint.w
  • Change language
  • View in English

Table of contents

  • 语法
  • 规范
  • 浏览器兼容性
  • 相关链接

DOMPoint.w

DOMPoint 的 w 属性表示该点的空间透视值。

语法

var perspective = DOMPoint.w;

值

双精度浮点值,表示该点的空间透视值。这个值的类型并没有严格限制,意味着它可以是 NaN 或 ±Infinity。 默认值为 1.0。

规范

Specification Status Comment
Geometry Interfaces Module Level 1
w
Candidate Recommendation Initial definition

浏览器兼容性

BCD tables only load in the browser

相关链接

  • 其他坐标属性:x,y,z.

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 14, 2021, by MDN contributors

Change your language

Related Topics

  1. Document Object Model
  2. DOMPoint
  3. Constructor
    1. DOMPoint()
  4. 属性
    1. w
    2. x
    3. y
    4. z
  5. 方法
    1. fromPoint()
  6. 继承
    1. DOMPointReadOnly
  7. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. AbstractRange
    4. Attr
    5. ByteString
    6. CDATASection
    7. CSSPrimitiveValue
    8. CSSValue
    9. CSSValueList
    10. CharacterData
    11. ChildNode
    12. Comment
    13. CustomEvent
    14. DOMConfiguration
    15. DOMError
    16. DOMErrorHandler
    17. DOMException
    18. DOMImplementation
    19. DOMImplementationList
    20. DOMImplementationRegistry
    21. DOMImplementationSource
    22. DOMLocator
    23. DOMObject
    24. DOMParser
    25. DOMPointInit
    26. DOMPointReadOnly
    27. DOMRect
    28. DOMString
    29. DOMTimeStamp
    30. DOMTokenList
    31. DOMUserData
    32. Document
    33. DocumentFragment
    34. DocumentType
    35. Element
    36. ElementTraversal
    37. Entity
    38. EntityReference
    39. Event
    40. EventTarget
    41. HTMLCollection
    42. MutationObserver
    43. Node
    44. NodeFilter
    45. NodeIterator
    46. NodeList
    47. ProcessingInstruction
    48. PromiseResolver
    49. Range
    50. StaticRange
    51. Text
    52. TextDecoder
    53. TextEncoder
    54. TimeRanges
    55. TreeWalker
    56. TypeInfo
    57. USVString
    58. UserDataHandler
    59. XMLDocument
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies