diff --git a/doc/RFC.md b/doc/RFC.md index f39db8a..aa3b935 100644 --- a/doc/RFC.md +++ b/doc/RFC.md @@ -14,9 +14,13 @@ # XR Fragments (key/value params) -| param | type | category | notes | -|---------|---------------|-------------------------|-------------------------| -| prio | int (-10..1) | Asset loading / linking | \#static allow client to ignore lower-prio objects in the renderloop, to compensate frame-drop/cpu/gpu-overload scenario’soc/notes/prio.md | +``` +⛁ = fragment in 3D asset-file (custom property) +⚂ = fragment in navigator URI (`document.location.href` e.g.) +``` +| param | type | scope | navigator override |category | notes | +|---------|---------------|-------|--------------------|-------------------------| +| prio | int (-10..1) | ⛁ | Asset loading / linking | \#static allow client to ignore lower-prio objects in the renderloop, to compensate frame-drop/cpu/gpu-overload scenario’soc/notes/prio.md | | pos | 3D vector | HREF navigation/portals | | diff --git a/src/xrfragment/Parser.hx b/src/xrfragment/Parser.hx index 07fe858..4b4fa2f 100644 --- a/src/xrfragment/Parser.hx +++ b/src/xrfragment/Parser.hx @@ -5,12 +5,14 @@ package xrfragment; class Parser { // # XR Fragments (key/value params) public static var error:String = ""; // - - @:keep + // ``` + // ⛁ = fragment in 3D asset-file (custom property) + // ⚂ = fragment in navigator URI (`document.location.href` e.g.) + @:keep // ``` public static function parse(key:String,value:String,resultMap:haxe.DynamicAccess):Bool { - var Frag:Map = new Map(); // | param | type | category | notes | - // |---------|---------------|-------------------------|-------------------------| - Frag.set("prio", Type.isInt); // | prio | int (-10..1) | Asset loading / linking | #include doc/notes/prio.md | + var Frag:Map = new Map(); // | param | type | scope | navigator override |category | notes | + // |---------|---------------|-------|--------------------|-------------------------| + Frag.set("prio", Type.isInt); // | prio | int (-10..1) | ⛁ | Asset loading / linking | #include doc/notes/prio.md | Frag.set("pos", Type.isVector); // | pos | 3D vector | HREF navigation/portals | | //