luiguild / aframe-svg-extruder Goto Github PK
View Code? Open in Web Editor NEWA-Frame component to extrude your SVG's files and use in WebVR scenes like magic ๐
Home Page: https://luiguild.github.io/aframe-svg-extruder/
License: MIT License
A-Frame component to extrude your SVG's files and use in WebVR scenes like magic ๐
Home Page: https://luiguild.github.io/aframe-svg-extruder/
License: MIT License
Hi, Great component, I am having problems getting it to work however.
When I include this script;
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>
It stops the page from loading correctly (its just a blank white screen). If I can get to the inspector (which I cannot always) it seems to be causing problems as the body tag is empty. The page eventually becomes unresponsive and I have to kill it.
I am trying to use it with the following spec
A-frame 8.2
in Glitch Editor
Chrome browser (Version 67.0.3396.87 (Official Build) (64-bit)) on a Mac (10.11.16)
Please find a below a link that will allow you to edit the glitch project to see what I am experiencing.
https://glitch.com/edit/#!/join/7b61d922-97ae-48f4-b856-9afd6efefc39
As far as I can tell the script itself is the issue as commenting anything else out causes the same issues, only removing the script solves the problem.
Am I doing something wrong? Is this a glitch issue? Do I have to export the SVG at a particular spec?
Thanks for any advice, please let me know if you need any more info.
Hi!
I'm trying to use this component with React Icons.
React Icons renders the icon as an SVG in the page, i.e.
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="alert" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line></svg>
I'm now trying to render this in aframe with this component i.e.
svg: {src: '#alert'}
but get this error:
TypeError: Cannot read property 'value' of undefined
from
279 | this.update(oldData);
in src/core/component.js
I see you are using the Aframe asset manager which I am not, but I tried adding the asset to the THREE.Cache before using it here and that made no difference.
Any idea if it can be used in this way?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.