Comments (2)
ps: this applies to the "Enhancement" label but i'm too dumb to know how to apply it to the issue in order to mark it properly :P
from pathtopoints.
Hi there,
With a bit of JS that you put into the console you can do things like that :
$.each($(".bellows__content"), function() {
var arr = $(this).text().split('\r');
var strBuilder = "[";
arr.forEach(elem => {
var point = elem.split(',')
strBuilder += "[" + point[0] + ", " + point[1] +"],"
});
strBuilder += "]";
console.log(strBuilder.replace(/.$/,";"))
});
Which gives you a double array like : [[5.5292969, 68.99009051541901],[5.529296899999999, 58.99008968793175],[5.5292969, 48.993633556390485],[5.5292969, 38.9941609771525],[5.5292969, 28.998012414359945],[5.5292969, 19.003545975035802],[11.130794540568527, 14.597656],[21.134214350096226, 14.597656],[31.12165581628418, 14.783071676696776],[40.60570978253174, 17.425324311935427],[46.38971528167724, 25.36039187963867],[46.87949616430664, 35.27697303320313],[42.233416109863285, 43.93639123141479],[33.28850051342773, 47.988494483993534],[23.310764462068438, 48.478516],[16.513672, 51.684997875],[16.513672, 61.69265063299507],[13.826591555682056, 69],[16.513672, 25.511847164076332],[16.513672, 35.5012928727684],[22.777426235977178, 39.23795540986633],[32.541931729736326, 37.720765323486326],[35.49511804496765, 28.908156050628662],[27.58216764868164, 23.938582263183594],[17.58754978739929, 23.800781],[, undefined],;
Change it a bit to fix the last index and to suit it to the programming language of your choice and you are good to go.
See ya.
from pathtopoints.
Related Issues (4)
- Use this via npm HOT 1
- Lines don't work
- Does not seem to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathtopoints.