Josh Matthews
0e8ac3fdac
Formatting.
2023-05-28 23:54:02 -04:00
Josh Matthews
dbff26bce0
Support arbitrary protos when wrapping DOM objects with constructors.
2023-05-28 23:23:12 -04:00
Josh Matthews
f79e1e327d
Make GlobalScope.get_cx a static method.
2023-05-20 11:05:09 -04:00
Martin Robinson
423cc34cb0
Bump euclid to 0.22
...
- Also updates raqote to latest with an upgrade of font-kit to 0.11
applied on as a patch
- Update lyon_geom to the latest version
Major change:
- All matrices are now stored in row major order. This means that
parameters to rotation functions no longer should be negated.
- `post_...()` functions are now named `then()`. `pre_transform()` is removed,
so `then()` is used and the order of operations changed.
2023-01-26 08:59:21 +01:00
Alan Jeffrey
c611e46381
Remove WebVR
2020-04-08 20:23:41 -05:00
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30
marmeladema
88cacfb009
Modify *::get_cx methods to return a safe JSContext instead of a raw one
2019-07-24 09:53:10 +01:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
Emilio Cobos Álvarez
3d57c22e9c
Update euclid.
...
There are a few canvas2d-related dependencies that haven't updated, but they
only use euclid internally so that's not blocking landing the rest of the
changes.
Given the size of this patch, I think it's useful to get this landed as-is.
2019-07-23 23:09:55 +02:00
Manish Goregaokar
036b495cb2
Error on invalid rotation values in XRRigidTransform constructor
2019-07-11 11:12:59 -07:00
Manish Goregaokar
8780edb165
Hook webxr data into XRFrame/XRView/XRSpace
2019-07-11 11:12:59 -07:00
bors-servo
670a32c9e9
Auto merge of #23292 - Manishearth:input, r=asajeffrey
...
Add support for XRInputSource and target ray spaces
Untested, but compiles.
r? @jdm or @asajeffrey
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23292 )
<!-- Reviewable:end -->
2019-05-07 19:23:55 -04:00
Manish Goregaokar
f17f066495
Fix orientation getter in XRRigidTransform
2019-05-07 13:21:42 +02:00
Josh Matthews
57d2b5a92d
Remove mozjs dep from malloc_size_of.
2019-05-02 09:30:03 -04:00
Manish Goregaokar
cdbc08b911
Set transform.inverse.inverse == transform
...
https://github.com/immersive-web/webxr/issues/576
2019-04-05 20:18:35 -07:00
Manish Goregaokar
e73920ee97
Add XRRigidTransform.matrix
2019-04-03 23:55:33 -07:00
Manish Goregaokar
646647e8d9
Add XRView.transform
2019-04-03 23:55:33 -07:00
Manish Goregaokar
eb837d1ed7
XRRigidTransform.inverse is now a lazy attribute
2019-04-03 23:55:33 -07:00
Manish Goregaokar
fcec93ae16
Consistently use GlobalScope in XR code
2019-04-03 23:55:33 -07:00
Manish Goregaokar
08079c4d28
Switch XRSpace code to using rigid transforms
2019-04-03 23:55:33 -07:00
Manish Goregaokar
1f3f37225f
Validate the position passed to XRRigidTransform
...
Added in https://github.com/immersive-web/webxr/pull/568
2019-04-03 23:55:33 -07:00
Manish Goregaokar
e296185c53
Make XRRigidTransform.position/orientation lazy, default to using euclid things
2019-04-03 23:55:33 -07:00
Manish Goregaokar
feb3517ad5
Move XRRigidTransform to using RigidTransform3D
2019-04-03 23:55:33 -07:00
Manish Goregaokar
4f128e47e5
Add XRRigidTransform::Inverse
2019-03-26 00:09:15 -07:00
Manish Goregaokar
6fda2f28a6
Precompute XRRigidTransform's matrices
2019-03-26 00:09:15 -07:00
Manish Goregaokar
d1d8e97c30
Add XRSpace::get_viewer_pose()
2019-03-25 15:35:20 -07:00
Manish Goregaokar
ffacb1179e
Add originOffset to XRReferenceSpace
2019-03-18 16:26:48 -07:00
Manish Goregaokar
503ea3d943
Add XRRigidTransform attributes
2019-03-18 16:26:31 -07:00
Manish Goregaokar
c775820a79
Add XRRigidTransform constructor
2019-03-18 16:26:13 -07:00
Manish Goregaokar
c3b93a967d
Silence unused warnings
2019-01-03 23:53:50 -08:00
Manish Goregaokar
520bb23048
Basic XRRigidTransform interface
2018-12-19 16:50:27 -08:00