From 766dc2e9e41deaf30623b668aa80db7c2dd5e79f Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Thu, 6 Apr 2023 18:31:07 +0200 Subject: [PATCH] update documentation --- doc/RFC.md | 6 ++++-- src/xrfragment/URI.hx | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/RFC.md b/doc/RFC.md index 3f69b19..fe58014 100644 --- a/doc/RFC.md +++ b/doc/RFC.md @@ -4,7 +4,7 @@ > version 1.0.0 -date: 2023-04-06T18:30:33+0200
+date: 2023-04-06T18:31:05+0200
[![Actions Status](https://github.com/coderofsalvation/xrfragment/workflows/test/badge.svg)](https://github.com/coderofsalvation/xrfragment/actions) # XRFragment Grammar @@ -18,7 +18,9 @@ date: 2023-04-06T18:30:33+0200
> Example: `://foo.com/my3d.asset#pos=1,0,0&prio=-5&t=0,100|100,200` -
Explanation:
+
+| Explanation | | +|-|-| | `x=1,2,3` | vector/coordinate argument e.g. | | `x=foo\|bar\|1\,2,3\|1.0` | the `\|` character is used for:
1.specifying `n` arguments for xrfragment `x`
2. fallback urls (`src=https://x.co/f.gltf\|xyz://f.gltf`)
3. roundrobin of values (in case provided arguments exceeds `n` of `x` for #1) when triggered by browser URI (clicking `href` e.g.)| | `.mygroup` | query-alias for `class:mygroup` | diff --git a/src/xrfragment/URI.hx b/src/xrfragment/URI.hx index 2bd01ca..df91779 100644 --- a/src/xrfragment/URI.hx +++ b/src/xrfragment/URI.hx @@ -22,7 +22,9 @@ import xrfragment.Parser; * * > Example: `://foo.com/my3d.asset#pos=1,0,0&prio=-5&t=0,100|100,200` * - *
Explanation:
+ *
+ * | Explanation | | + * |-|-| * | `x=1,2,3` | vector/coordinate argument e.g. | * | `x=foo\|bar\|1\,2,3\|1.0` | the `\|` character is used for:
1.specifying `n` arguments for xrfragment `x`
2. fallback urls (`src=https://x.co/f.gltf\|xyz://f.gltf`)
3. roundrobin of values (in case provided arguments exceeds `n` of `x` for #1) when triggered by browser URI (clicking `href` e.g.)| * | `.mygroup` | query-alias for `class:mygroup` |