-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Data URL as a supported value type for gltf-model component #5629
Conversation
docs/components/gltf-model.md
Outdated
|----------|---------------------------------------------| | ||
| selector | Selector to an `<a-asset-item>` | | ||
| string | `url()`-enclosed path to a glTF file | | ||
| Data URL | data:application/octet-stream;base64,<data> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The official model/gltf-binary
mime type can be used as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed, let's use that one in the table. The application/octet-stream is a generic mimetype for any binary files. I also added a paragraph how to create a Data URL.
86854af
to
dbe5cb6
Compare
docs/components/gltf-model.md
Outdated
@@ -78,6 +78,16 @@ file. | |||
|----------|--------------------------------------| | |||
| selector | Selector to an `<a-asset-item>` | | |||
| string | `url()`-enclosed path to a glTF file | | |||
| Data URL | data:model/gltf-binary;base64,<data> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is <data>
a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a typo, it's a placeholder, it means you replace it by the actually content of the base64 data of your model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's confusing to me it will be confusing to others too. above there is <a-asset-item>
, yours doesn't refer to HTML. Can we put it in a wat it's not ambiguous?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I replaced by "..."
dbe5cb6
to
703ff48
Compare
Thanks! |
Description:
Discussed in #5619, Data URL is supported for gltf-model component but not currently documented.
Changes proposed: