svg-polygon-decorator
Advanced tools
Comparing version 1.0.5 to 1.0.7
@@ -12,46 +12,2 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.svgCloud = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
// let lineSegmentIntersection = (circle, radius, pointA, pointB) => { | ||
// const xShift = circle.x; | ||
// const yShift = circle.y; | ||
// | ||
// //Recet circle to (0,0) coordinate | ||
// circle.x = 0; | ||
// circle.y = 0; | ||
// pointA.x -= xShift; | ||
// pointA.y -= yShift; | ||
// pointB.x -= xShift; | ||
// pointB.y -= yShift; | ||
// | ||
// let k = (pointB.y - pointA.y) / (pointB.x - pointA.x); | ||
// let b = pointA.y - pointA.x * (pointB.y - pointA.y) / | ||
// (pointB.x - pointA.x); | ||
// | ||
// const A = 1 + k * k; | ||
// const B = 2 * k * b; | ||
// const C = b * b - radius * radius; | ||
// const D = B * B - 4 * A * C; | ||
// | ||
// let x1 = null; | ||
// let x2 = null; | ||
// let y1 = null; | ||
// let y2 = null; | ||
// | ||
// if (0 < D) { | ||
// console.log('2 points intersects'); | ||
// x1 = (-B + Math.sqrt(D)) / (2 * A); | ||
// x2 = (-B - Math.sqrt(D)) / (2 * A); | ||
// | ||
// if (pointA.x < x1 && pointB.x > x1) { | ||
// return [x1 + xShift, (x1 * k + b) + yShift]; | ||
// } | ||
// } else if (0 === D) { | ||
// console.log('1 point intersect'); | ||
// x1 = x2 = (-B + Math.sqrt(D)) / (2 * A); | ||
// } else { | ||
// console.log('0 points intersect'); | ||
// } | ||
// | ||
// return null !== x2 ? [x2 + xShift, (x2 * k + b) + yShift] : null; | ||
// }; | ||
var X = 0; | ||
@@ -89,3 +45,3 @@ var Y = 1; | ||
var cloudALine = function cloudALine(line, radius, inward) { | ||
var cloudALine = function cloudALine(line, radius, inward, swapping) { | ||
var point = getIntersection(line, radius * 2); | ||
@@ -103,2 +59,6 @@ var remainingLine = line; | ||
point = getIntersection(remainingLine, radius * 2); | ||
if (true === swapping) { | ||
sweep ^= 1; | ||
lArc ^= 1; | ||
} | ||
} | ||
@@ -116,14 +76,17 @@ | ||
var svgCloud = function svgCloud(polyline, radius, closed, inward) { | ||
var cloud = ''; | ||
var svgCloud = function svgCloud(polyline, radius, closed, inward, swapping) { | ||
var cloud = []; | ||
var ind = 1; | ||
var line = void 0; | ||
var r = 0 < radius ? radius : 1; | ||
var cnt = polyline.length; | ||
var fittedRadius = void 0; | ||
for (; ind < cnt; ++ind) { | ||
if (0 >= ind) { | ||
cloud += ' '; | ||
line = [polyline[ind - 1], polyline[ind]]; | ||
fittedRadius = fixRadiusToFitLine(line, r); | ||
if (true === swapping) { | ||
fittedRadius /= 2; | ||
} | ||
line = [polyline[ind - 1], polyline[ind]]; | ||
cloud += cloudALine(line, fixRadiusToFitLine(line, radius), inward); | ||
cloud.push(cloudALine(line, fittedRadius, inward, swapping)); | ||
} | ||
@@ -134,7 +97,11 @@ | ||
line = [polyline[ind - 1], polyline[0]]; | ||
cloud += ' ' + cloudALine(line, fixRadiusToFitLine(line, radius), inward); | ||
fittedRadius = fixRadiusToFitLine(line, r); | ||
if (true === swapping) { | ||
fittedRadius /= 2; | ||
} | ||
cloud.push(cloudALine(line, fittedRadius, inward, swapping)); | ||
} | ||
// SVG complains about empty path strings | ||
return cloud || 'M0,0'; | ||
return 0 === cloud.length ? 'M0,0' : cloud.join(' ').trim(); | ||
}; | ||
@@ -141,0 +108,0 @@ |
{ | ||
"name": "svg-polygon-decorator", | ||
"version": "1.0.5", | ||
"version": "1.0.7", | ||
"description": "Svg polygon decorator (cloud)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -10,46 +9,2 @@ * Generates svg cloud for polygon | ||
// let lineSegmentIntersection = (circle, radius, pointA, pointB) => { | ||
// const xShift = circle.x; | ||
// const yShift = circle.y; | ||
// | ||
// //Recet circle to (0,0) coordinate | ||
// circle.x = 0; | ||
// circle.y = 0; | ||
// pointA.x -= xShift; | ||
// pointA.y -= yShift; | ||
// pointB.x -= xShift; | ||
// pointB.y -= yShift; | ||
// | ||
// let k = (pointB.y - pointA.y) / (pointB.x - pointA.x); | ||
// let b = pointA.y - pointA.x * (pointB.y - pointA.y) / | ||
// (pointB.x - pointA.x); | ||
// | ||
// const A = 1 + k * k; | ||
// const B = 2 * k * b; | ||
// const C = b * b - radius * radius; | ||
// const D = B * B - 4 * A * C; | ||
// | ||
// let x1 = null; | ||
// let x2 = null; | ||
// let y1 = null; | ||
// let y2 = null; | ||
// | ||
// if (0 < D) { | ||
// console.log('2 points intersects'); | ||
// x1 = (-B + Math.sqrt(D)) / (2 * A); | ||
// x2 = (-B - Math.sqrt(D)) / (2 * A); | ||
// | ||
// if (pointA.x < x1 && pointB.x > x1) { | ||
// return [x1 + xShift, (x1 * k + b) + yShift]; | ||
// } | ||
// } else if (0 === D) { | ||
// console.log('1 point intersect'); | ||
// x1 = x2 = (-B + Math.sqrt(D)) / (2 * A); | ||
// } else { | ||
// console.log('0 points intersect'); | ||
// } | ||
// | ||
// return null !== x2 ? [x2 + xShift, (x2 * k + b) + yShift] : null; | ||
// }; | ||
const X = 0; | ||
@@ -91,3 +46,3 @@ const Y = 1; | ||
const cloudALine = (line, radius, inward) => { | ||
const cloudALine = (line, radius, inward, swapping) => { | ||
let point = getIntersection(line, radius * 2); | ||
@@ -97,4 +52,4 @@ let remainingLine = line; | ||
const cloud = [`M${line[0][X]},${line[0][Y]}`]; | ||
const sweep = true === inward ? 0 : 1; | ||
const lArc = true === inward ? 0 : 1; | ||
let sweep = true === inward ? 0 : 1; | ||
let lArc = true === inward ? 0 : 1; | ||
@@ -106,2 +61,6 @@ while (point) { | ||
point = getIntersection(remainingLine, radius * 2); | ||
if (true === swapping) { | ||
sweep ^= 1; | ||
lArc ^= 1; | ||
} | ||
} | ||
@@ -121,14 +80,17 @@ | ||
const svgCloud = (polyline, radius, closed, inward) => { | ||
let cloud = ''; | ||
const svgCloud = (polyline, radius, closed, inward, swapping) => { | ||
let cloud = []; | ||
let ind = 1; | ||
let line; | ||
const r = 0 < radius ? radius : 1; | ||
const cnt = polyline.length; | ||
let fittedRadius; | ||
for (; ind < cnt; ++ind) { | ||
if (0 >= ind) { | ||
cloud += ' '; | ||
line = [polyline[ind - 1], polyline[ind]]; | ||
fittedRadius = fixRadiusToFitLine(line, r); | ||
if (true === swapping) { | ||
fittedRadius /= 2; | ||
} | ||
line = [polyline[ind - 1], polyline[ind]]; | ||
cloud += cloudALine(line, fixRadiusToFitLine(line, radius), inward); | ||
cloud.push(cloudALine(line, fittedRadius, inward, swapping)); | ||
} | ||
@@ -139,7 +101,11 @@ | ||
line = [polyline[ind - 1], polyline[0]]; | ||
cloud += ' ' + cloudALine(line, fixRadiusToFitLine(line, radius), inward); | ||
fittedRadius = fixRadiusToFitLine(line, r); | ||
if (true === swapping) { | ||
fittedRadius /= 2; | ||
} | ||
cloud.push(cloudALine(line, fittedRadius, inward, swapping)); | ||
} | ||
// SVG complains about empty path strings | ||
return cloud || 'M0,0'; | ||
return 0 === cloud.length ? 'M0,0' : cloud.join(' ').trim(); | ||
}; | ||
@@ -146,0 +112,0 @@ |
@@ -16,3 +16,3 @@ [ | ||
"polyline": [[10,120],[180,120],[230,180]], | ||
"cloud": "M10,120 A12.142857142857142,12.142857142857142 0 1,1 34.285714285714285,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 58.57142857142857,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 82.85714285714286,120 A12.142857142857142,12.142857142857142 0 1,1 107.14285714285715,120 A12.142857142857142,12.142857142857142 0 1,1 131.42857142857144,120 A12.142857142857142,12.142857142857142 0 1,1 155.71428571428572,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 180,120M180,120 A13.017082793177757,13.017082793177757 0 1,1 196.66666666666666,140 A13.017082793177757,13.017082793177757 0 1,1 213.33333333333334,160.00000000000003 A13.017082793177757,13.017082793177757 0 1,1 230,180 M230,180 A12.668615834434867,12.668615834434867 0 1,1 205.55555555555554,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 181.1111111111111,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 156.66666666666663,160 A12.668615834434867,12.668615834434867 0 1,1 132.22222222222217,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 107.77777777777771,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 83.33333333333327,139.99999999999997 A12.668615834434867,12.668615834434867 0 1,1 58.88888888888883,133.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 34.444444444444386,126.66666666666663 A12.668615834434867,12.668615834434867 0 1,1 10,120" | ||
"cloud": "M10,120 A12.142857142857142,12.142857142857142 0 1,1 34.285714285714285,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 58.57142857142857,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 82.85714285714286,120 A12.142857142857142,12.142857142857142 0 1,1 107.14285714285715,120 A12.142857142857142,12.142857142857142 0 1,1 131.42857142857144,120 A12.142857142857142,12.142857142857142 0 1,1 155.71428571428572,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 180,120 M180,120 A13.017082793177757,13.017082793177757 0 1,1 196.66666666666666,140 A13.017082793177757,13.017082793177757 0 1,1 213.33333333333334,160.00000000000003 A13.017082793177757,13.017082793177757 0 1,1 230,180 M230,180 A12.668615834434867,12.668615834434867 0 1,1 205.55555555555554,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 181.1111111111111,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 156.66666666666663,160 A12.668615834434867,12.668615834434867 0 1,1 132.22222222222217,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 107.77777777777771,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 83.33333333333327,139.99999999999997 A12.668615834434867,12.668615834434867 0 1,1 58.88888888888883,133.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 34.444444444444386,126.66666666666663 A12.668615834434867,12.668615834434867 0 1,1 10,120" | ||
}, | ||
@@ -25,9 +25,9 @@ { | ||
"polyline": [[10,120],[180,120],[230,180]], | ||
"cloud": "M10,120 A12.142857142857142,12.142857142857142 0 1,1 34.285714285714285,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 58.57142857142857,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 82.85714285714286,120 A12.142857142857142,12.142857142857142 0 1,1 107.14285714285715,120 A12.142857142857142,12.142857142857142 0 1,1 131.42857142857144,120 A12.142857142857142,12.142857142857142 0 1,1 155.71428571428572,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 180,120M180,120 A13.017082793177757,13.017082793177757 0 1,1 196.66666666666666,140 A13.017082793177757,13.017082793177757 0 1,1 213.33333333333334,160.00000000000003 A13.017082793177757,13.017082793177757 0 1,1 230,180 M230,180 A12.668615834434867,12.668615834434867 0 1,1 205.55555555555554,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 181.1111111111111,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 156.66666666666663,160 A12.668615834434867,12.668615834434867 0 1,1 132.22222222222217,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 107.77777777777771,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 83.33333333333327,139.99999999999997 A12.668615834434867,12.668615834434867 0 1,1 58.88888888888883,133.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 34.444444444444386,126.66666666666663 A12.668615834434867,12.668615834434867 0 1,1 10,120" | ||
"cloud": "M10,120 A12.142857142857142,12.142857142857142 0 1,1 34.285714285714285,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 58.57142857142857,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 82.85714285714286,120 A12.142857142857142,12.142857142857142 0 1,1 107.14285714285715,120 A12.142857142857142,12.142857142857142 0 1,1 131.42857142857144,120 A12.142857142857142,12.142857142857142 0 1,1 155.71428571428572,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 180,120 M180,120 A13.017082793177757,13.017082793177757 0 1,1 196.66666666666666,140 A13.017082793177757,13.017082793177757 0 1,1 213.33333333333334,160.00000000000003 A13.017082793177757,13.017082793177757 0 1,1 230,180 M230,180 A12.668615834434867,12.668615834434867 0 1,1 205.55555555555554,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 181.1111111111111,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 156.66666666666663,160 A12.668615834434867,12.668615834434867 0 1,1 132.22222222222217,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 107.77777777777771,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 83.33333333333327,139.99999999999997 A12.668615834434867,12.668615834434867 0 1,1 58.88888888888883,133.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 34.444444444444386,126.66666666666663 A12.668615834434867,12.668615834434867 0 1,1 10,120" | ||
}, | ||
{"name":"case_1","radius":14,"closed":true,"inward":false,"polyline":[[20,300],[180,300],[200,330],[190,360],[140,420],[70,380]],"cloud":"M20,300 A13.333333333333334,13.333333333333334 0 1,1 46.66666666666667,300 A13.333333333333334,13.333333333333334 0 1,1 73.33333333333334,300 A13.333333333333334,13.333333333333334 0 1,1 100.00000000000001,299.99999999999994 A13.333333333333334,13.333333333333334 0 1,1 126.66666666666669,299.99999999999994 A13.333333333333334,13.333333333333334 0 1,1 153.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 180,300M180,300 A9.013878188659973,9.013878188659973 0 1,1 190,315 A9.013878188659973,9.013878188659973 0 1,1 200,330M200,330 A7.905694150420948,7.905694150420948 0 1,1 195,345 A7.905694150420948,7.905694150420948 0 1,1 190,360M190,360 A13.017082793177757,13.017082793177757 0 1,1 173.33333333333334,380 A13.017082793177757,13.017082793177757 0 1,1 156.66666666666669,400 A13.017082793177757,13.017082793177757 0 1,1 140,420M140,420 A13.437096247164249,13.437096247164249 0 1,1 116.66666666666667,406.6666666666667 A13.437096247164249,13.437096247164249 0 1,1 93.33333333333336,393.33333333333337 A13.437096247164249,13.437096247164249 0 1,1 70,380 M70,380 A11.792476415070755,11.792476415070755 0 1,1 57.50000000000001,360 A11.792476415070755,11.792476415070755 0 1,1 45.00000000000001,340 A11.792476415070755,11.792476415070755 0 1,1 32.5,320 A11.792476415070755,11.792476415070755 0 1,1 20,300"}, | ||
{"name":"case_2","radius":14,"closed":true,"inward":false,"polyline":[[460,120],[290,120],[240,180]],"cloud":"M460,120 A12.142857142857142,12.142857142857142 0 1,1 435.71428571428567,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 411.42857142857133,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 387.14285714285705,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 362.8571428571428,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 338.57142857142844,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 314.28571428571416,120 A12.142857142857142,12.142857142857142 0 1,1 290,120M290,120 A13.017082793177757,13.017082793177757 0 1,1 273.3333333333333,140 A13.017082793177757,13.017082793177757 0 1,1 256.6666666666667,160 A13.017082793177757,13.017082793177757 0 1,1 240,180 M240,180 A12.668615834434867,12.668615834434867 0 1,1 264.44444444444446,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 288.8888888888889,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 313.33333333333337,160 A12.668615834434867,12.668615834434867 0 1,1 337.7777777777778,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 362.22222222222223,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 386.6666666666667,140 A12.668615834434867,12.668615834434867 0 1,1 411.11111111111114,133.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 435.5555555555556,126.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 460,120"}, | ||
{"name":"case_3","radius":14,"closed":true,"inward":false,"polyline":[[450,300],[290,300],[270,330],[280,360],[330,420],[400,380]],"cloud":"M450,300 A13.333333333333334,13.333333333333334 0 1,1 423.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 396.6666666666667,300 A13.333333333333334,13.333333333333334 0 1,1 370.00000000000006,300 A13.333333333333334,13.333333333333334 0 1,1 343.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 316.66666666666674,300 A13.333333333333334,13.333333333333334 0 1,1 290,300M290,300 A9.013878188659973,9.013878188659973 0 1,1 280,315 A9.013878188659973,9.013878188659973 0 1,1 270,330M270,330 A7.905694150420948,7.905694150420948 0 1,1 275,345 A7.905694150420948,7.905694150420948 0 1,1 280,360M280,360 A13.017082793177757,13.017082793177757 0 1,1 296.6666666666667,380 A13.017082793177757,13.017082793177757 0 1,1 313.33333333333337,400.00000000000006 A13.017082793177757,13.017082793177757 0 1,1 330,420M330,420 A13.437096247164249,13.437096247164249 0 1,1 353.3333333333333,406.6666666666667 A13.437096247164249,13.437096247164249 0 1,1 376.66666666666663,393.33333333333337 A13.437096247164249,13.437096247164249 0 1,1 400,380 M400,380 A11.792476415070755,11.792476415070755 0 1,1 412.5,360 A11.792476415070755,11.792476415070755 0 1,1 425,340 A11.792476415070755,11.792476415070755 0 1,1 437.5,320 A11.792476415070755,11.792476415070755 0 1,1 450,300"}, | ||
{"name":"case_1","radius":14,"closed":true,"inward":false,"polyline":[[20,300],[180,300],[200,330],[190,360],[140,420],[70,380]],"cloud":"M20,300 A13.333333333333334,13.333333333333334 0 1,1 46.66666666666667,300 A13.333333333333334,13.333333333333334 0 1,1 73.33333333333334,300 A13.333333333333334,13.333333333333334 0 1,1 100.00000000000001,299.99999999999994 A13.333333333333334,13.333333333333334 0 1,1 126.66666666666669,299.99999999999994 A13.333333333333334,13.333333333333334 0 1,1 153.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 180,300 M180,300 A9.013878188659973,9.013878188659973 0 1,1 190,315 A9.013878188659973,9.013878188659973 0 1,1 200,330 M200,330 A7.905694150420948,7.905694150420948 0 1,1 195,345 A7.905694150420948,7.905694150420948 0 1,1 190,360 M190,360 A13.017082793177757,13.017082793177757 0 1,1 173.33333333333334,380 A13.017082793177757,13.017082793177757 0 1,1 156.66666666666669,400 A13.017082793177757,13.017082793177757 0 1,1 140,420 M140,420 A13.437096247164249,13.437096247164249 0 1,1 116.66666666666667,406.6666666666667 A13.437096247164249,13.437096247164249 0 1,1 93.33333333333336,393.33333333333337 A13.437096247164249,13.437096247164249 0 1,1 70,380 M70,380 A11.792476415070755,11.792476415070755 0 1,1 57.50000000000001,360 A11.792476415070755,11.792476415070755 0 1,1 45.00000000000001,340 A11.792476415070755,11.792476415070755 0 1,1 32.5,320 A11.792476415070755,11.792476415070755 0 1,1 20,300"}, | ||
{"name":"case_2","radius":14,"closed":true,"inward":false,"polyline":[[460,120],[290,120],[240,180]],"cloud":"M460,120 A12.142857142857142,12.142857142857142 0 1,1 435.71428571428567,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 411.42857142857133,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 387.14285714285705,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 362.8571428571428,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 338.57142857142844,119.99999999999999 A12.142857142857142,12.142857142857142 0 1,1 314.28571428571416,120 A12.142857142857142,12.142857142857142 0 1,1 290,120 M290,120 A13.017082793177757,13.017082793177757 0 1,1 273.3333333333333,140 A13.017082793177757,13.017082793177757 0 1,1 256.6666666666667,160 A13.017082793177757,13.017082793177757 0 1,1 240,180 M240,180 A12.668615834434867,12.668615834434867 0 1,1 264.44444444444446,173.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 288.8888888888889,166.66666666666669 A12.668615834434867,12.668615834434867 0 1,1 313.33333333333337,160 A12.668615834434867,12.668615834434867 0 1,1 337.7777777777778,153.33333333333331 A12.668615834434867,12.668615834434867 0 1,1 362.22222222222223,146.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 386.6666666666667,140 A12.668615834434867,12.668615834434867 0 1,1 411.11111111111114,133.33333333333334 A12.668615834434867,12.668615834434867 0 1,1 435.5555555555556,126.66666666666666 A12.668615834434867,12.668615834434867 0 1,1 460,120"}, | ||
{"name":"case_3","radius":14,"closed":true,"inward":false,"polyline":[[450,300],[290,300],[270,330],[280,360],[330,420],[400,380]],"cloud":"M450,300 A13.333333333333334,13.333333333333334 0 1,1 423.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 396.6666666666667,300 A13.333333333333334,13.333333333333334 0 1,1 370.00000000000006,300 A13.333333333333334,13.333333333333334 0 1,1 343.33333333333337,300 A13.333333333333334,13.333333333333334 0 1,1 316.66666666666674,300 A13.333333333333334,13.333333333333334 0 1,1 290,300 M290,300 A9.013878188659973,9.013878188659973 0 1,1 280,315 A9.013878188659973,9.013878188659973 0 1,1 270,330 M270,330 A7.905694150420948,7.905694150420948 0 1,1 275,345 A7.905694150420948,7.905694150420948 0 1,1 280,360 M280,360 A13.017082793177757,13.017082793177757 0 1,1 296.6666666666667,380 A13.017082793177757,13.017082793177757 0 1,1 313.33333333333337,400.00000000000006 A13.017082793177757,13.017082793177757 0 1,1 330,420 M330,420 A13.437096247164249,13.437096247164249 0 1,1 353.3333333333333,406.6666666666667 A13.437096247164249,13.437096247164249 0 1,1 376.66666666666663,393.33333333333337 A13.437096247164249,13.437096247164249 0 1,1 400,380 M400,380 A11.792476415070755,11.792476415070755 0 1,1 412.5,360 A11.792476415070755,11.792476415070755 0 1,1 425,340 A11.792476415070755,11.792476415070755 0 1,1 437.5,320 A11.792476415070755,11.792476415070755 0 1,1 450,300"}, | ||
{"name":"case_4","radius":14,"closed":true,"inward":false,"polyline":[[10,10],[230,10]],"cloud":"M10,10 A13.75,13.75 0 1,1 37.5,10 A13.75,13.75 0 1,1 64.99999999999999,9.999999999999998 A13.75,13.75 0 1,1 92.49999999999999,9.999999999999998 A13.75,13.75 0 1,1 120,9.999999999999998 A13.75,13.75 0 1,1 147.5,10 A13.75,13.75 0 1,1 175,10 A13.75,13.75 0 1,1 202.5,10 A13.75,13.75 0 1,1 230,10 M230,10 A13.75,13.75 0 1,1 202.5,10 A13.75,13.75 0 1,1 174.99999999999997,9.999999999999998 A13.75,13.75 0 1,1 147.49999999999997,9.999999999999998 A13.75,13.75 0 1,1 119.99999999999997,9.999999999999998 A13.75,13.75 0 1,1 92.49999999999997,9.999999999999998 A13.75,13.75 0 1,1 64.99999999999997,9.999999999999998 A13.75,13.75 0 1,1 37.49999999999998,10 A13.75,13.75 0 1,1 10,10"}, | ||
{"name":"case_5","radius":14,"closed":true,"inward":false,"polyline":[[450,10],[240,10]],"cloud":"M450,10 A13.125,13.125 0 1,1 423.75,10 A13.125,13.125 0 1,1 397.5,9.999999999999998 A13.125,13.125 0 1,1 371.25,9.999999999999998 A13.125,13.125 0 1,1 345,9.999999999999998 A13.125,13.125 0 1,1 318.75,10 A13.125,13.125 0 1,1 292.5,10 A13.125,13.125 0 1,1 266.25,10 A13.125,13.125 0 1,1 240,10 M240,10 A13.125,13.125 0 1,1 266.25,10 A13.125,13.125 0 1,1 292.5,9.999999999999998 A13.125,13.125 0 1,1 318.75,9.999999999999998 A13.125,13.125 0 1,1 345,9.999999999999998 A13.125,13.125 0 1,1 371.25,10 A13.125,13.125 0 1,1 397.5,10 A13.125,13.125 0 1,1 423.75,10 A13.125,13.125 0 1,1 450,10"} | ||
] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38636
277