diff --git a/index.html b/index.html index a26a833c..12315341 100644 --- a/index.html +++ b/index.html @@ -8383,124 +8383,193 @@

Processing actions

given action item, and action:

    -
  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 pointerType be equal to + action’s pointerType property. + +

  29. Run the substeps of the first matching value of pointerType -

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

    +
    "mouse" +
    +
      +
    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. +

    -
  31. 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. +

    "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. +

    -
  32. Set the azimuthAngle property of action - to azimuthAngle. +

    "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. +

    +
  33. Return success with data null.

@@ -8555,113 +8624,170 @@

Processing actions

  • Set the y property of action to y. -

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

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

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

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

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

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

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

  • 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. - -

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

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

  • 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. - -

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

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

  • 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. - -

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

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

  • 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. - -

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

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

  • 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. - -

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

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

  • 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. - -

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

  • Let pointerType be equal to + action’s pointerType property. + +

  • Run the substeps of the first matching value of pointerType -

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

    +
    "mouse" +
    +
      +
    1. Do nothing. +
    -
  • 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. +

    "touch" +
    +
      +
    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. +

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

    "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 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 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 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 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 azimuthAngle. +

    +
  • Return success with data null.