TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scaling SVG Elements

120 pointsby wattenbergerover 5 years ago

5 comments

akerstenover 5 years ago
Cool visualization! Any plans to do more examples of SVG? There's lots of functionality in the format and it would be neat to see it documented in an interactive style like this.
评论 #21643435 未加载
adamchover 5 years ago
This is a really beautiful way to demo this feature. Thanks!
kjhughesover 5 years ago
For a constant height, why do width values between 0 and 100 cause (x axis) <i>displacement</i>, but width values above 100 cause <i>scale reduction</i> in both dimensions?<p>(A similar phenomena can be observed for a constant width while varying the height values.)
评论 #21637970 未加载
Zaskodaover 5 years ago
I&#x27;m current using Vue to manipulate a complex SVG as the foundation of my current game engine. It&#x27;s not super snappy but it&#x27;s effective and interesting. I&#x27;ve taken the concept pretty far and, thus far, I haven&#x27;t see anyone else manipulating SVGs with Vue (or React or whatever) in this way before. Its surprising because it feels extremely intuitive.
评论 #21631007 未加载
评论 #21632749 未加载
评论 #21643464 未加载
评论 #21632302 未加载
评论 #21633156 未加载
评论 #21632921 未加载
svnpennover 5 years ago
Dont use site<p>Moving those sliders will nuke your CPU<p>probably because the entire &lt;body&gt; is essentially just:<p><pre><code> &lt;script src=&quot;&#x2F;prism.js&quot;&gt;&lt;&#x2F;script&gt; &lt;script src=&quot;&#x2F;static&#x2F;js&#x2F;20.c80b9d97.chunk.js&quot;&gt;&lt;&#x2F;script&gt; &lt;script src=&quot;&#x2F;static&#x2F;js&#x2F;main.635019b5.chunk.js&quot;&gt;&lt;&#x2F;script&gt; &lt;script src=&quot;https:&#x2F;&#x2F;d3js.org&#x2F;d3.v5.min.js&quot;&gt;&lt;&#x2F;script&gt; &lt;script src=&quot;https:&#x2F;&#x2F;d3js.org&#x2F;d3-array.v2.min.js&quot;&gt;&lt;&#x2F;script&gt;</code></pre>
评论 #21631591 未加载
评论 #21632184 未加载
评论 #21630845 未加载
评论 #21631426 未加载
评论 #21631070 未加载
评论 #21630643 未加载
评论 #21643447 未加载
评论 #21631857 未加载
评论 #21636046 未加载
评论 #21631409 未加载
评论 #21630633 未加载