From 3dc6edd65b00ce5e19b03d33e26cfea8f6f387db Mon Sep 17 00:00:00 2001 From: Randolf Jung Date: Mon, 4 Mar 2024 13:26:27 +0100 Subject: [PATCH] Delegate pointer defaults to pointer spec --- index.html | 703 ++++++++++++++++++++++------------------------------- 1 file changed, 290 insertions(+), 413 deletions(-) diff --git a/index.html b/index.html index 1daa6b3e..2d0f05f8 100644 --- a/index.html +++ b/index.html @@ -8402,220 +8402,173 @@

Processing actions

  • Set the button property of action to button. + -

  • Set the width property of action - to 1. +

    "touch" +
    +
      +
    1. Set the button property of action + to 0. +

    2. Let width be the result + of getting the property width + from action item. + +

    3. If width is not undefined + and width is not a Number greater than or + equal to 0 return error with error code + invalid argument. + +

    4. Set the width property of action + to width. + +

    5. Let height be the result + of getting the property height + from action item. + +

    6. If height is not undefined + and height is not a Number greater than or + equal to 0 return error with error code + invalid argument. +

    7. Set the height property of action - to 1. - -

    8. If action's subtype property is - "pointerDown", set the pressure property of - action to 0.5. Otherwise, set the pressure property of - action to 0. + to height. -

    9. Set the tangentialPressure property of action - to 0. +

    10. Let pressure be the result + of getting the property pressure + from action item. + +

    11. If pressure is not undefined + and pressure is not a Number greater than or + equal to 0 and less than or equal to 1 return error with + error code invalid argument. + +

    12. Set the pressure property of action + to pressure. +

    +
    "pen" +
    +
      +
    1. Let button be the result + of getting the property button + from action item. + +

    2. If button is not an Integer greater than or + equal to 0 return error with error code + invalid argument. + +

    3. Set the button property of action + to button. + +

    4. Let width be the result + of getting the property width + from action item. + +

    5. If width is not undefined + and width is not a Number greater than or + equal to 0 return error with error code + invalid argument. + +

    6. Set the width property of action + to width. + +

    7. Let height be the result + of getting the property height + from action item. + +

    8. If height is not undefined + and height is not a Number greater than or + equal to 0 return error with error code + invalid argument. + +

    9. Set the height property of action + to height. + +

    10. Let pressure be the result + of getting the property pressure + from action item. + +

    11. If pressure is not undefined + and pressure is not a Number greater than or + equal to 0 and less than or equal to 1 return error with + error code invalid argument. + +

    12. Set the pressure property of action + to pressure. + +

    13. Let tangentialPressure be the result + of getting the property tangentialPressure + from action item. + +

    14. If tangentialPressure is not undefined + and tangentialPressure is not a Number greater + than or equal to -1 and less than or equal to 1 return error + with error code invalid argument. + +

    15. Set the tangentialPressure property of action + to tangentialPressure. + +

    16. Let tiltX be the result + of getting the property tiltX + from action item. + +

    17. If tiltX is not undefined + and tiltX is not an Integer greater than or + equal to -90 and less than or equal to 90 return error with + error code invalid argument. +

    18. Set the tiltX property of action - to 0. - + to tiltX. + +

    19. Let tiltY be the result + of getting the property tiltY + from action item. + +

    20. If tiltY is not undefined + and tiltY is not an Integer greater than or + equal to -90 and less than or equal to 90 return error with + error code invalid argument. +

    21. Set the tiltY property of action - to 0. - + to tiltY. + +

    22. Let twist be the result + of getting the property twist + from action item. + +

    23. If twist is not undefined + and twist is not an Integer greater than or + equal to 0 and less than or equal to 359 return error with + error code invalid argument. +

    24. Set the twist property of action - to 0. - + to twist. + +

    25. Let altitudeAngle be the result + of getting the property altitudeAngle + from action item. + +

    26. If altitudeAngle is not undefined + and altitudeAngle is not a Number greater than + or equal to 0 and less than or equal to π/2 return error with + error code invalid argument. +

    27. Set the altitudeAngle property of action - to π/2. - + to altitudeAngle. + +

    28. Let azimuthAngle be the result + of getting the property azimuthAngle + from action item. + +

    29. If azimuthAngle is not undefined + and azimuthAngle is not a Number greater than + or equal to 0 and less than or equal to 2π return error with + error code invalid argument. +

    30. Set the azimuthAngle property of action - to 0. + to azimuthAngle.

    - -
    "touch" -
    -
      -
    1. Set the button property of action - to 0. - -

    2. Let width be the result - of getting the property width - from action item. - -

    3. If width is not undefined - and width is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    4. Set the width property of action - to width. - -

    5. Let height be the result - of getting the property height - from action item. - -

    6. If height is not undefined - and height is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    7. Set the height property of action - to height. - -

    8. Let pressure be the result - of getting the property pressure - from action item. - -

    9. If pressure is not undefined - and pressure is not a Number greater than or - equal to 0 and less than or equal to 1 return error with - error code invalid argument. - -

    10. Set the pressure property of action - to pressure. - -

    11. Set the tangentialPressure property of action - to 0. - -

    12. Set the tiltX property of action - to 90. - -

    13. Set the tiltY property of action - to 0. - -

    14. Set the twist property of action - to 0. - -

    15. Set the altitudeAngle property of action - to 0. - -

    16. Set the azimuthAngle property of action - to 0. -

    - -
    "pen" -
    -
      -
    1. Let button be the result - of getting the property button - from action item. - -

    2. If button is not an Integer greater than or - equal to 0 return error with error code - invalid argument. - -

    3. Set the button property of action - to button. - -

    4. Let width be the result - of getting the property width - from action item. - -

    5. If width is not undefined - and width is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    6. Set the width property of action - to width. - -

    7. Let height be the result - of getting the property height - from action item. - -

    8. If height is not undefined - and height is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    9. Set the height property of action - to height. - -

    10. Let pressure be the result - of getting the property pressure - from action item. - -

    11. If pressure is not undefined - and pressure is not a Number greater than or - equal to 0 and less than or equal to 1 return error with - error code invalid argument. - -

    12. Set the pressure property of action - to pressure. - -

    13. Let tangentialPressure be the result - of getting the property tangentialPressure - from action item. - -

    14. If tangentialPressure is not undefined - and tangentialPressure is not a Number greater - than or equal to -1 and less than or equal to 1 return error - with error code invalid argument. - -

    15. Set the tangentialPressure property of action - to tangentialPressure. - -

    16. Let tiltX be the result - of getting the property tiltX - from action item. - -

    17. If tiltX is not undefined - and tiltX is not an Integer greater than or - equal to -90 and less than or equal to 90 return error with - error code invalid argument. - -

    18. Set the tiltX property of action - to tiltX. - -

    19. Let tiltY be the result - of getting the property tiltY - from action item. - -

    20. If tiltY is not undefined - and tiltY is not an Integer greater than or - equal to -90 and less than or equal to 90 return error with - error code invalid argument. - -

    21. Set the tiltY property of action - to tiltY. - -

    22. Let twist be the result - of getting the property twist - from action item. - -

    23. If twist is not undefined - and twist is not an Integer greater than or - equal to 0 and less than or equal to 359 return error with - error code invalid argument. - -

    24. Set the twist property of action - to twist. - -

    25. Let altitudeAngle be the result - of getting the property altitudeAngle - from action item. - -

    26. If altitudeAngle is not undefined - and altitudeAngle is not a Number greater than - or equal to 0 and less than or equal to π/2 return error with - error code invalid argument. - -

    27. Set the altitudeAngle property of action - to altitudeAngle. - -

    28. Let azimuthAngle be the result - of getting the property azimuthAngle - from action item. - -

    29. If azimuthAngle is not undefined - and azimuthAngle is not a Number greater than - or equal to 0 and less than or equal to 2π return error with - error code invalid argument. - -

    30. Set the azimuthAngle property of action - to azimuthAngle. -

  • Return success with data null. @@ -8677,233 +8630,157 @@

    Processing actions

  • Run the substeps of the first matching value of pointerType

    -
    "mouse" +
    "touch"
      -
    1. Let button be the result - of getting the property button +

    2. Let width be the result + of getting the property width from action item. -

    3. If button is not an Integer greater than or +

    4. If width is not undefined + and width is not a Number greater than or equal to 0 return error with error code invalid argument. -

    5. Set the button property of action - to button. -

    6. Set the width property of action - to 1. - + to width. + +

    7. Let height be the result + of getting the property height + from action item. + +

    8. If height is not undefined + and height is not a Number greater than or + equal to 0 return error with error code + invalid argument. +

    9. Set the height property of action - to 1. - -

    10. If action's subtype property is - "pointerDown", set the pressure property of - action to 0.5. Otherwise, set the pressure property of - action to 0. + to height. -

    11. Set the tangentialPressure property of action - to 0. +

    12. Let pressure be the result + of getting the property pressure + from action item. + +

    13. If pressure is not undefined + and pressure is not a Number greater than or + equal to 0 and less than or equal to 1 return error with + error code invalid argument. + +

    14. Set the pressure property of action + to pressure. +

    +
    "pen" +
    +
      +
    1. Let width be the result + of getting the property width + from action item. + +

    2. If width is not undefined + and width is not a Number greater than or + equal to 0 return error with error code + invalid argument. + +

    3. Set the width property of action + to width. + +

    4. Let height be the result + of getting the property height + from action item. + +

    5. If height is not undefined + and height is not a Number greater than or + equal to 0 return error with error code + invalid argument. + +

    6. Set the height property of action + to height. + +

    7. Let pressure be the result + of getting the property pressure + from action item. + +

    8. If pressure is not undefined + and pressure is not a Number greater than or + equal to 0 and less than or equal to 1 return error with + error code invalid argument. + +

    9. Set the pressure property of action + to pressure. + +

    10. Let tangentialPressure be the result + of getting the property tangentialPressure + from action item. + +

    11. If tangentialPressure is not undefined + and tangentialPressure is not a Number greater + than or equal to -1 and less than or equal to 1 return error + with error code invalid argument. + +

    12. Set the tangentialPressure property of action + to tangentialPressure. + +

    13. Let tiltX be the result + of getting the property tiltX + from action item. + +

    14. If tiltX is not undefined + and tiltX is not an Integer greater than or + equal to -90 and less than or equal to 90 return error with + error code invalid argument. +

    15. Set the tiltX property of action - to 0. - + to tiltX. + +

    16. Let tiltY be the result + of getting the property tiltY + from action item. + +

    17. If tiltY is not undefined + and tiltY is not an Integer greater than or + equal to -90 and less than or equal to 90 return error with + error code invalid argument. +

    18. Set the tiltY property of action - to 0. - + to tiltY. + +

    19. Let twist be the result + of getting the property twist + from action item. + +

    20. If twist is not undefined + and twist is not an Integer greater than or + equal to 0 and less than or equal to 359 return error with + error code invalid argument. +

    21. Set the twist property of action - to 0. - + to twist. + +

    22. Let altitudeAngle be the result + of getting the property altitudeAngle + from action item. + +

    23. If altitudeAngle is not undefined + and altitudeAngle is not a Number greater than + or equal to 0 and less than or equal to π/2 return error with + error code invalid argument. +

    24. Set the altitudeAngle property of action - to π/2. - + to altitudeAngle. + +

    25. Let azimuthAngle be the result + of getting the property azimuthAngle + from action item. + +

    26. If azimuthAngle is not undefined + and azimuthAngle is not a Number greater than + or equal to 0 and less than or equal to 2π return error with + error code invalid argument. +

    27. Set the azimuthAngle property of action - to 0. + to azimuthAngle.

    - -
    "touch" -
    -
      -
    1. Set the button property of action - to 0. - -

    2. Let width be the result - of getting the property width - from action item. - -

    3. If width is not undefined - and width is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    4. Set the width property of action - to width. - -

    5. Let height be the result - of getting the property height - from action item. - -

    6. If height is not undefined - and height is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    7. Set the height property of action - to height. - -

    8. Let pressure be the result - of getting the property pressure - from action item. - -

    9. If pressure is not undefined - and pressure is not a Number greater than or - equal to 0 and less than or equal to 1 return error with - error code invalid argument. - -

    10. Set the pressure property of action - to pressure. - -

    11. Set the tangentialPressure property of action - to 0. - -

    12. Set the tiltX property of action - to 90. - -

    13. Set the tiltY property of action - to 0. - -

    14. Set the twist property of action - to 0. - -

    15. Set the altitudeAngle property of action - to 0. - -

    16. Set the azimuthAngle property of action - to 0. -

    - -
    "pen" -
    -
      -
    1. Let button be the result - of getting the property button - from action item. - -

    2. If button is not an Integer greater than or - equal to 0 return error with error code - invalid argument. - -

    3. Set the button property of action - to button. - -

    4. Let width be the result - of getting the property width - from action item. - -

    5. If width is not undefined - and width is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    6. Set the width property of action - to width. - -

    7. Let height be the result - of getting the property height - from action item. - -

    8. If height is not undefined - and height is not a Number greater than or - equal to 0 return error with error code - invalid argument. - -

    9. Set the height property of action - to height. - -

    10. Let pressure be the result - of getting the property pressure - from action item. - -

    11. If pressure is not undefined - and pressure is not a Number greater than or - equal to 0 and less than or equal to 1 return error with - error code invalid argument. - -

    12. Set the pressure property of action - to pressure. - -

    13. Let tangentialPressure be the result - of getting the property tangentialPressure - from action item. - -

    14. If tangentialPressure is not undefined - and tangentialPressure is not a Number greater - than or equal to -1 and less than or equal to 1 return error - with error code invalid argument. - -

    15. Set the tangentialPressure property of action - to tangentialPressure. - -

    16. Let tiltX be the result - of getting the property tiltX - from action item. - -

    17. If tiltX is not undefined - and tiltX is not an Integer greater than or - equal to -90 and less than or equal to 90 return error with - error code invalid argument. - -

    18. Set the tiltX property of action - to tiltX. - -

    19. Let tiltY be the result - of getting the property tiltY - from action item. - -

    20. If tiltY is not undefined - and tiltY is not an Integer greater than or - equal to -90 and less than or equal to 90 return error with - error code invalid argument. - -

    21. Set the tiltY property of action - to tiltY. - -

    22. Let twist be the result - of getting the property twist - from action item. - -

    23. If twist is not undefined - and twist is not an Integer greater than or - equal to 0 and less than or equal to 359 return error with - error code invalid argument. - -

    24. Set the twist property of action - to twist. - -

    25. Let altitudeAngle be the result - of getting the property altitudeAngle - from action item. - -

    26. If altitudeAngle is not undefined - and altitudeAngle is not a Number greater than - or equal to 0 and less than or equal to π/2 return error with - error code invalid argument. - -

    27. Set the altitudeAngle property of action - to altitudeAngle. - -

    28. Let azimuthAngle be the result - of getting the property azimuthAngle - from action item. - -

    29. If azimuthAngle is not undefined - and azimuthAngle is not a Number greater than - or equal to 0 and less than or equal to 2π return error with - error code invalid argument. - -

    30. Set the azimuthAngle property of action - to azimuthAngle. -

  • Return success with data null.