Skip to content

Commit

Permalink
fix: sync PointerEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Nov 23, 2024
1 parent 874afda commit 8cd77f6
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/lesson_006/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_007/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_008/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_009/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_010/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_012/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down
10 changes: 10 additions & 0 deletions packages/lesson_013/src/events/FederatedPointerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export class FederatedPointerEvent
*/
preventClick: boolean;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/altitudeAngle
*/
altitudeAngle: number;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/azimuthAngle
*/
azimuthAngle: number;

// Only included for completeness for now
getCoalescedEvents(): PointerEvent[] {
if (
Expand Down

0 comments on commit 8cd77f6

Please sign in to comment.