Download node_modules/d3-geo/src/transform.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/transform.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-geo/src/transform.js
-
curl -L -o transform.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-geo/src/transform.js
701 Bytes
| export default function(methods) { | |
| return { | |
| stream: transformer(methods) | |
| }; | |
| } | |
| export function transformer(methods) { | |
| return function(stream) { | |
| var s = new TransformStream; | |
| for (var key in methods) s[key] = methods[key]; | |
| s.stream = stream; | |
| return s; | |
| }; | |
| } | |
| function TransformStream() {} | |
| TransformStream.prototype = { | |
| constructor: TransformStream, | |
| point: function(x, y) { this.stream.point(x, y); }, | |
| sphere: function() { this.stream.sphere(); }, | |
| lineStart: function() { this.stream.lineStart(); }, | |
| lineEnd: function() { this.stream.lineEnd(); }, | |
| polygonStart: function() { this.stream.polygonStart(); }, | |
| polygonEnd: function() { this.stream.polygonEnd(); } | |
| }; | |