This commit is contained in:
Andy Bunce 2012-09-18 23:09:17 +01:00
parent 8b96190322
commit 31e73b31d1
3 changed files with 806 additions and 15 deletions

View file

@ -0,0 +1,58 @@
// Generated by CoffeeScript 1.3.3
(function(jQuery) {
var createSvgWrapper, svgWrapper, svg_tag_names, tag_name, wrap_map, _i, _len;
createSvgWrapper = function(svg_tag_name) {
var key, obj, val, _fn, _ref;
obj = {
_svgEl: null
};
_ref = $("<svg><" + svg_tag_name + "/></svg>").find("" + svg_tag_name)[0];
_fn = function(key) {
if ((val != null) && (val.baseVal != null)) {
return Object.defineProperty(obj, key, {
get: function() {
return this._svgEl[key].baseVal;
},
set: function(value) {
return this._svgEl[key].baseVal = value;
}
});
} else {
return Object.defineProperty(obj, key, {
get: function() {
return this._svgEl[key];
},
set: function(value) {
return this._svgEl[key] = value;
}
});
}
};
for (key in _ref) {
val = _ref[key];
_fn(key);
}
return obj;
};
svg_tag_names = ['rect', 'circle', 'ellipse', 'line', 'polygon', 'polyline'];
wrap_map = {};
for (_i = 0, _len = svg_tag_names.length; _i < _len; _i++) {
tag_name = svg_tag_names[_i];
wrap_map[tag_name] = createSvgWrapper(tag_name);
}
svgWrapper = function(el) {
this._svgEl = el;
this.__proto__ = wrap_map[el.tagName];
return this;
};
return jQuery.fn.wrapSvg = function() {
return this.map(function(i, el) {
if (el.namespaceURI === "http://www.w3.org/2000/svg" && (!("_svgEl" in el))) {
return new svgWrapper(el);
} else {
return el;
}
});
};
})(window.jQuery);

View file

@ -0,0 +1,601 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="1600" height="1600" id="7-demicube_t0_D7.svg">
<!-- Point overlap:1 2 4 -->
<g style="stroke:#000000;stroke-width:6.0;stroke-opacity:0.50;">
<line x1="1531.275" y1="800.000" x2="1165.637" y2="1433.302"/>
<line x1="1531.275" y1="800.000" x2="1067.665" y2="1263.609"/>
<line x1="1531.275" y1="800.000" x2="897.972" y2="1165.637"/>
<line x1="1531.275" y1="800.000" x2="1067.665" y2="1067.665"/>
<line x1="1531.275" y1="800.000" x2="897.972" y2="969.693"/>
<line x1="1531.275" y1="800.000" x2="800.000" y2="800.000"/>
<line x1="1531.275" y1="800.000" x2="1165.637" y2="897.972"/>
<line x1="1531.275" y1="800.000" x2="995.944" y2="800.000"/>
<line x1="1531.275" y1="800.000" x2="897.972" y2="630.307"/>
<line x1="1531.275" y1="800.000" x2="897.972" y2="434.363"/>
<line x1="1531.275" y1="800.000" x2="1335.330" y2="800.000"/>
<line x1="1531.275" y1="800.000" x2="1165.637" y2="702.028"/>
<line x1="1531.275" y1="800.000" x2="1067.665" y2="532.335"/>
<line x1="1531.275" y1="800.000" x2="1067.665" y2="336.391"/>
<line x1="1531.275" y1="800.000" x2="1165.637" y2="166.698"/>
<line x1="1531.275" y1="800.000" x2="1433.302" y2="1165.637"/>
<line x1="1531.275" y1="800.000" x2="1263.609" y2="1067.665"/>
<line x1="1531.275" y1="800.000" x2="1263.609" y2="532.335"/>
<line x1="1531.275" y1="800.000" x2="1433.302" y2="434.363"/>
<line x1="1165.637" y1="1433.302" x2="1067.665" y2="1263.609"/>
<line x1="1165.637" y1="1433.302" x2="897.972" y2="1165.637"/>
<line x1="1165.637" y1="1433.302" x2="1067.665" y2="1067.665"/>
<line x1="1165.637" y1="1433.302" x2="897.972" y2="969.693"/>
<line x1="1165.637" y1="1433.302" x2="434.363" y2="1433.302"/>
<line x1="1165.637" y1="1433.302" x2="1165.637" y2="897.972"/>
<line x1="1165.637" y1="1433.302" x2="995.944" y2="800.000"/>
<line x1="1165.637" y1="1433.302" x2="532.335" y2="1263.609"/>
<line x1="1165.637" y1="1433.302" x2="532.335" y2="1067.665"/>
<line x1="1165.637" y1="1433.302" x2="1335.330" y2="800.000"/>
<line x1="1165.637" y1="1433.302" x2="1165.637" y2="702.028"/>
<line x1="1165.637" y1="1433.302" x2="702.028" y2="1165.637"/>
<line x1="1165.637" y1="1433.302" x2="702.028" y2="969.693"/>
<line x1="1165.637" y1="1433.302" x2="800.000" y2="800.000"/>
<line x1="1165.637" y1="1433.302" x2="1433.302" y2="1165.637"/>
<line x1="1165.637" y1="1433.302" x2="1263.609" y2="1067.665"/>
<line x1="1165.637" y1="1433.302" x2="800.000" y2="1531.275"/>
<line x1="1165.637" y1="1433.302" x2="800.000" y2="1335.330"/>
<line x1="1067.665" y1="1263.609" x2="897.972" y2="1165.637"/>
<line x1="1067.665" y1="1263.609" x2="1067.665" y2="1067.665"/>
<line x1="1067.665" y1="1263.609" x2="800.000" y2="800.000"/>
<line x1="1067.665" y1="1263.609" x2="434.363" y2="1433.302"/>
<line x1="1067.665" y1="1263.609" x2="1165.637" y2="897.972"/>
<line x1="1067.665" y1="1263.609" x2="897.972" y2="630.307"/>
<line x1="1067.665" y1="1263.609" x2="532.335" y2="1263.609"/>
<line x1="1067.665" y1="1263.609" x2="434.363" y2="897.972"/>
<line x1="1067.665" y1="1263.609" x2="1335.330" y2="800.000"/>
<line x1="1067.665" y1="1263.609" x2="1067.665" y2="532.335"/>
<line x1="1067.665" y1="1263.609" x2="702.028" y2="1165.637"/>
<line x1="1067.665" y1="1263.609" x2="604.056" y2="800.000"/>
<line x1="1067.665" y1="1263.609" x2="702.028" y2="630.307"/>
<line x1="1067.665" y1="1263.609" x2="1433.302" y2="1165.637"/>
<line x1="1067.665" y1="1263.609" x2="800.000" y2="1531.275"/>
<line x1="1067.665" y1="1263.609" x2="800.000" y2="995.944"/>
<line x1="1067.665" y1="1263.609" x2="969.693" y2="897.972"/>
<line x1="897.972" y1="1165.637" x2="897.972" y2="969.693"/>
<line x1="897.972" y1="1165.637" x2="800.000" y2="800.000"/>
<line x1="897.972" y1="1165.637" x2="434.363" y2="1433.302"/>
<line x1="897.972" y1="1165.637" x2="995.944" y2="800.000"/>
<line x1="897.972" y1="1165.637" x2="897.972" y2="630.307"/>
<line x1="897.972" y1="1165.637" x2="532.335" y2="1263.609"/>
<line x1="897.972" y1="1165.637" x2="264.670" y2="800.000"/>
<line x1="897.972" y1="1165.637" x2="1165.637" y2="702.028"/>
<line x1="897.972" y1="1165.637" x2="1067.665" y2="532.335"/>
<line x1="897.972" y1="1165.637" x2="702.028" y2="1165.637"/>
<line x1="897.972" y1="1165.637" x2="434.363" y2="702.028"/>
<line x1="897.972" y1="1165.637" x2="532.335" y2="532.335"/>
<line x1="897.972" y1="1165.637" x2="1263.609" y2="1067.665"/>
<line x1="897.972" y1="1165.637" x2="1165.637" y2="897.972"/>
<line x1="897.972" y1="1165.637" x2="800.000" y2="1531.275"/>
<line x1="897.972" y1="1165.637" x2="532.335" y2="1067.665"/>
<line x1="897.972" y1="1165.637" x2="630.307" y2="897.972"/>
<line x1="1067.665" y1="1067.665" x2="897.972" y2="969.693"/>
<line x1="1067.665" y1="1067.665" x2="800.000" y2="800.000"/>
<line x1="1067.665" y1="1067.665" x2="434.363" y2="1433.302"/>
<line x1="1067.665" y1="1067.665" x2="1165.637" y2="897.972"/>
<line x1="1067.665" y1="1067.665" x2="897.972" y2="434.363"/>
<line x1="1067.665" y1="1067.665" x2="532.335" y2="1067.665"/>
<line x1="1067.665" y1="1067.665" x2="434.363" y2="897.972"/>
<line x1="1067.665" y1="1067.665" x2="1335.330" y2="800.000"/>
<line x1="1067.665" y1="1067.665" x2="1067.665" y2="336.391"/>
<line x1="1067.665" y1="1067.665" x2="702.028" y2="969.693"/>
<line x1="1067.665" y1="1067.665" x2="604.056" y2="800.000"/>
<line x1="1067.665" y1="1067.665" x2="702.028" y2="434.363"/>
<line x1="1067.665" y1="1067.665" x2="1433.302" y2="1165.637"/>
<line x1="1067.665" y1="1067.665" x2="1165.637" y2="702.028"/>
<line x1="1067.665" y1="1067.665" x2="800.000" y2="1335.330"/>
<line x1="1067.665" y1="1067.665" x2="702.028" y2="1165.637"/>
<line x1="1067.665" y1="1067.665" x2="969.693" y2="702.028"/>
<line x1="897.972" y1="969.693" x2="800.000" y2="800.000"/>
<line x1="897.972" y1="969.693" x2="434.363" y2="1433.302"/>
<line x1="897.972" y1="969.693" x2="995.944" y2="800.000"/>
<line x1="897.972" y1="969.693" x2="897.972" y2="434.363"/>
<line x1="897.972" y1="969.693" x2="532.335" y2="1067.665"/>
<line x1="897.972" y1="969.693" x2="264.670" y2="800.000"/>
<line x1="897.972" y1="969.693" x2="1165.637" y2="702.028"/>
<line x1="897.972" y1="969.693" x2="1067.665" y2="336.391"/>
<line x1="897.972" y1="969.693" x2="702.028" y2="969.693"/>
<line x1="897.972" y1="969.693" x2="434.363" y2="702.028"/>
<line x1="897.972" y1="969.693" x2="532.335" y2="336.390"/>
<line x1="897.972" y1="969.693" x2="1263.609" y2="1067.665"/>
<line x1="897.972" y1="969.693" x2="800.000" y2="1335.330"/>
<line x1="897.972" y1="969.693" x2="630.307" y2="702.028"/>
<line x1="897.972" y1="969.693" x2="800.000" y2="604.056"/>
<line x1="800.000" y1="800.000" x2="434.363" y2="1433.302"/>
<line x1="800.000" y1="800.000" x2="897.972" y2="630.307"/>
<line x1="800.000" y1="800.000" x2="897.972" y2="434.363"/>
<line x1="800.000" y1="800.000" x2="434.363" y2="897.972"/>
<line x1="800.000" y1="800.000" x2="264.670" y2="800.000"/>
<line x1="800.000" y1="800.000" x2="1067.665" y2="532.335"/>
<line x1="800.000" y1="800.000" x2="1067.665" y2="336.391"/>
<line x1="800.000" y1="800.000" x2="604.056" y2="800.000"/>
<line x1="800.000" y1="800.000" x2="434.363" y2="702.028"/>
<line x1="800.000" y1="800.000" x2="434.363" y2="166.698"/>
<line x1="800.000" y1="800.000" x2="1165.637" y2="897.972"/>
<line x1="800.000" y1="800.000" x2="1165.637" y2="702.028"/>
<line x1="800.000" y1="800.000" x2="702.028" y2="1165.637"/>
<line x1="800.000" y1="800.000" x2="532.335" y2="1067.665"/>
<line x1="800.000" y1="800.000" x2="532.335" y2="532.335"/>
<line x1="800.000" y1="800.000" x2="702.028" y2="434.363"/>
<line x1="434.363" y1="1433.302" x2="532.335" y2="1263.609"/>
<line x1="434.363" y1="1433.302" x2="532.335" y2="1067.665"/>
<line x1="434.363" y1="1433.302" x2="434.363" y2="897.972"/>
<line x1="434.363" y1="1433.302" x2="264.670" y2="800.000"/>
<line x1="434.363" y1="1433.302" x2="702.028" y2="1165.637"/>
<line x1="434.363" y1="1433.302" x2="702.028" y2="969.693"/>
<line x1="434.363" y1="1433.302" x2="604.056" y2="800.000"/>
<line x1="434.363" y1="1433.302" x2="434.363" y2="702.028"/>
<line x1="434.363" y1="1433.302" x2="68.725" y2="800.000"/>
<line x1="434.363" y1="1433.302" x2="800.000" y2="1531.275"/>
<line x1="434.363" y1="1433.302" x2="800.000" y2="1335.330"/>
<line x1="434.363" y1="1433.302" x2="166.698" y2="1165.637"/>
<line x1="434.363" y1="1433.302" x2="336.390" y2="1067.665"/>
<line x1="1165.637" y1="897.972" x2="995.944" y2="800.000"/>
<line x1="1165.637" y1="897.972" x2="897.972" y2="630.307"/>
<line x1="1165.637" y1="897.972" x2="532.335" y2="1263.609"/>
<line x1="1165.637" y1="897.972" x2="897.972" y2="434.363"/>
<line x1="1165.637" y1="897.972" x2="532.335" y2="1067.665"/>
<line x1="1165.637" y1="897.972" x2="434.363" y2="897.972"/>
<line x1="1165.637" y1="897.972" x2="1335.330" y2="800.000"/>
<line x1="1165.637" y1="897.972" x2="1165.637" y2="166.698"/>
<line x1="1165.637" y1="897.972" x2="702.028" y2="630.307"/>
<line x1="1165.637" y1="897.972" x2="702.028" y2="434.363"/>
<line x1="1165.637" y1="897.972" x2="1433.302" y2="1165.637"/>
<line x1="1165.637" y1="897.972" x2="1263.609" y2="532.335"/>
<line x1="1165.637" y1="897.972" x2="800.000" y2="995.944"/>
<line x1="1165.637" y1="897.972" x2="1067.665" y2="532.335"/>
<line x1="995.944" y1="800.000" x2="897.972" y2="630.307"/>
<line x1="995.944" y1="800.000" x2="532.335" y2="1263.609"/>
<line x1="995.944" y1="800.000" x2="897.972" y2="434.363"/>
<line x1="995.944" y1="800.000" x2="532.335" y2="1067.665"/>
<line x1="995.944" y1="800.000" x2="264.670" y2="800.000"/>
<line x1="995.944" y1="800.000" x2="1165.637" y2="702.028"/>
<line x1="995.944" y1="800.000" x2="1165.637" y2="166.698"/>
<line x1="995.944" y1="800.000" x2="800.000" y2="800.000"/>
<line x1="995.944" y1="800.000" x2="532.335" y2="532.335"/>
<line x1="995.944" y1="800.000" x2="532.335" y2="336.390"/>
<line x1="995.944" y1="800.000" x2="1263.609" y2="1067.665"/>
<line x1="995.944" y1="800.000" x2="1263.609" y2="532.335"/>
<line x1="995.944" y1="800.000" x2="630.307" y2="897.972"/>
<line x1="995.944" y1="800.000" x2="630.307" y2="702.028"/>
<line x1="897.972" y1="630.307" x2="532.335" y2="1263.609"/>
<line x1="897.972" y1="630.307" x2="897.972" y2="434.363"/>
<line x1="897.972" y1="630.307" x2="434.363" y2="897.972"/>
<line x1="897.972" y1="630.307" x2="264.670" y2="800.000"/>
<line x1="897.972" y1="630.307" x2="1067.665" y2="532.335"/>
<line x1="897.972" y1="630.307" x2="1165.637" y2="166.698"/>
<line x1="897.972" y1="630.307" x2="702.028" y2="630.307"/>
<line x1="897.972" y1="630.307" x2="532.335" y2="532.335"/>
<line x1="897.972" y1="630.307" x2="434.363" y2="166.698"/>
<line x1="897.972" y1="630.307" x2="1263.609" y2="532.335"/>
<line x1="897.972" y1="630.307" x2="800.000" y2="995.944"/>
<line x1="897.972" y1="630.307" x2="630.307" y2="897.972"/>
<line x1="897.972" y1="630.307" x2="800.000" y2="264.670"/>
<line x1="532.335" y1="1263.609" x2="532.335" y2="1067.665"/>
<line x1="532.335" y1="1263.609" x2="434.363" y2="897.972"/>
<line x1="532.335" y1="1263.609" x2="264.670" y2="800.000"/>
<line x1="532.335" y1="1263.609" x2="702.028" y2="1165.637"/>
<line x1="532.335" y1="1263.609" x2="800.000" y2="800.000"/>
<line x1="532.335" y1="1263.609" x2="702.028" y2="630.307"/>
<line x1="532.335" y1="1263.609" x2="532.335" y2="532.335"/>
<line x1="532.335" y1="1263.609" x2="68.725" y2="800.000"/>
<line x1="532.335" y1="1263.609" x2="800.000" y2="1531.275"/>
<line x1="532.335" y1="1263.609" x2="800.000" y2="995.944"/>
<line x1="532.335" y1="1263.609" x2="630.307" y2="897.972"/>
<line x1="532.335" y1="1263.609" x2="166.698" y2="1165.637"/>
<line x1="897.972" y1="434.363" x2="532.335" y2="1067.665"/>
<line x1="897.972" y1="434.363" x2="434.363" y2="897.972"/>
<line x1="897.972" y1="434.363" x2="264.670" y2="800.000"/>
<line x1="897.972" y1="434.363" x2="1067.665" y2="336.391"/>
<line x1="897.972" y1="434.363" x2="1165.637" y2="166.698"/>
<line x1="897.972" y1="434.363" x2="702.028" y2="434.363"/>
<line x1="897.972" y1="434.363" x2="532.335" y2="336.390"/>
<line x1="897.972" y1="434.363" x2="434.363" y2="166.698"/>
<line x1="897.972" y1="434.363" x2="1165.637" y2="702.028"/>
<line x1="897.972" y1="434.363" x2="1263.609" y2="532.335"/>
<line x1="897.972" y1="434.363" x2="630.307" y2="702.028"/>
<line x1="897.972" y1="434.363" x2="532.335" y2="532.335"/>
<line x1="897.972" y1="434.363" x2="800.000" y2="68.725"/>
<line x1="532.335" y1="1067.665" x2="434.363" y2="897.972"/>
<line x1="532.335" y1="1067.665" x2="264.670" y2="800.000"/>
<line x1="532.335" y1="1067.665" x2="702.028" y2="969.693"/>
<line x1="532.335" y1="1067.665" x2="702.028" y2="434.363"/>
<line x1="532.335" y1="1067.665" x2="532.335" y2="336.390"/>
<line x1="532.335" y1="1067.665" x2="68.725" y2="800.000"/>
<line x1="532.335" y1="1067.665" x2="800.000" y2="1335.330"/>
<line x1="532.335" y1="1067.665" x2="630.307" y2="702.028"/>
<line x1="532.335" y1="1067.665" x2="166.698" y2="1165.637"/>
<line x1="532.335" y1="1067.665" x2="434.363" y2="702.028"/>
<line x1="434.363" y1="897.972" x2="264.670" y2="800.000"/>
<line x1="434.363" y1="897.972" x2="604.056" y2="800.000"/>
<line x1="434.363" y1="897.972" x2="702.028" y2="630.307"/>
<line x1="434.363" y1="897.972" x2="702.028" y2="434.363"/>
<line x1="434.363" y1="897.972" x2="434.363" y2="166.698"/>
<line x1="434.363" y1="897.972" x2="68.725" y2="800.000"/>
<line x1="434.363" y1="897.972" x2="702.028" y2="1165.637"/>
<line x1="434.363" y1="897.972" x2="800.000" y2="995.944"/>
<line x1="434.363" y1="897.972" x2="532.335" y2="532.335"/>
<line x1="434.363" y1="897.972" x2="166.698" y2="1165.637"/>
<line x1="434.363" y1="897.972" x2="336.390" y2="532.335"/>
<line x1="264.670" y1="800.000" x2="434.363" y2="702.028"/>
<line x1="264.670" y1="800.000" x2="532.335" y2="532.335"/>
<line x1="264.670" y1="800.000" x2="532.335" y2="336.390"/>
<line x1="264.670" y1="800.000" x2="434.363" y2="166.698"/>
<line x1="264.670" y1="800.000" x2="68.725" y2="800.000"/>
<line x1="264.670" y1="800.000" x2="630.307" y2="897.972"/>
<line x1="264.670" y1="800.000" x2="630.307" y2="702.028"/>
<line x1="264.670" y1="800.000" x2="166.698" y2="1165.637"/>
<line x1="264.670" y1="800.000" x2="166.697" y2="434.363"/>
<line x1="1335.330" y1="800.000" x2="1165.637" y2="702.028"/>
<line x1="1335.330" y1="800.000" x2="1067.665" y2="532.335"/>
<line x1="1335.330" y1="800.000" x2="702.028" y2="1165.637"/>
<line x1="1335.330" y1="800.000" x2="1067.665" y2="336.391"/>
<line x1="1335.330" y1="800.000" x2="702.028" y2="969.693"/>
<line x1="1335.330" y1="800.000" x2="604.056" y2="800.000"/>
<line x1="1335.330" y1="800.000" x2="1165.637" y2="166.698"/>
<line x1="1335.330" y1="800.000" x2="800.000" y2="800.000"/>
<line x1="1335.330" y1="800.000" x2="702.028" y2="630.307"/>
<line x1="1335.330" y1="800.000" x2="702.028" y2="434.363"/>
<line x1="1335.330" y1="800.000" x2="1433.302" y2="1165.637"/>
<line x1="1335.330" y1="800.000" x2="1433.302" y2="434.363"/>
<line x1="1335.330" y1="800.000" x2="969.693" y2="897.972"/>
<line x1="1335.330" y1="800.000" x2="969.693" y2="702.028"/>
<line x1="1165.637" y1="702.028" x2="1067.665" y2="532.335"/>
<line x1="1165.637" y1="702.028" x2="702.028" y2="1165.637"/>
<line x1="1165.637" y1="702.028" x2="1067.665" y2="336.391"/>
<line x1="1165.637" y1="702.028" x2="702.028" y2="969.693"/>
<line x1="1165.637" y1="702.028" x2="434.363" y2="702.028"/>
<line x1="1165.637" y1="702.028" x2="1165.637" y2="166.698"/>
<line x1="1165.637" y1="702.028" x2="532.335" y2="532.335"/>
<line x1="1165.637" y1="702.028" x2="532.335" y2="336.390"/>
<line x1="1165.637" y1="702.028" x2="1263.609" y2="1067.665"/>
<line x1="1165.637" y1="702.028" x2="1433.302" y2="434.363"/>
<line x1="1165.637" y1="702.028" x2="800.000" y2="604.056"/>
<line x1="1067.665" y1="532.335" x2="702.028" y2="1165.637"/>
<line x1="1067.665" y1="532.335" x2="1067.665" y2="336.391"/>
<line x1="1067.665" y1="532.335" x2="604.056" y2="800.000"/>
<line x1="1067.665" y1="532.335" x2="434.363" y2="702.028"/>
<line x1="1067.665" y1="532.335" x2="1165.637" y2="166.698"/>
<line x1="1067.665" y1="532.335" x2="702.028" y2="630.307"/>
<line x1="1067.665" y1="532.335" x2="532.335" y2="532.335"/>
<line x1="1067.665" y1="532.335" x2="434.363" y2="166.698"/>
<line x1="1067.665" y1="532.335" x2="1433.302" y2="434.363"/>
<line x1="1067.665" y1="532.335" x2="969.693" y2="897.972"/>
<line x1="1067.665" y1="532.335" x2="702.028" y2="434.363"/>
<line x1="1067.665" y1="532.335" x2="800.000" y2="264.670"/>
<line x1="702.028" y1="1165.637" x2="702.028" y2="969.693"/>
<line x1="702.028" y1="1165.637" x2="604.056" y2="800.000"/>
<line x1="702.028" y1="1165.637" x2="434.363" y2="702.028"/>
<line x1="702.028" y1="1165.637" x2="702.028" y2="630.307"/>
<line x1="702.028" y1="1165.637" x2="532.335" y2="532.335"/>
<line x1="702.028" y1="1165.637" x2="68.725" y2="800.000"/>
<line x1="702.028" y1="1165.637" x2="800.000" y2="1531.275"/>
<line x1="702.028" y1="1165.637" x2="969.693" y2="897.972"/>
<line x1="702.028" y1="1165.637" x2="336.390" y2="1067.665"/>
<line x1="1067.665" y1="336.391" x2="702.028" y2="969.693"/>
<line x1="1067.665" y1="336.391" x2="604.056" y2="800.000"/>
<line x1="1067.665" y1="336.391" x2="434.363" y2="702.028"/>
<line x1="1067.665" y1="336.391" x2="1165.637" y2="166.698"/>
<line x1="1067.665" y1="336.391" x2="702.028" y2="434.363"/>
<line x1="1067.665" y1="336.391" x2="532.335" y2="336.390"/>
<line x1="1067.665" y1="336.391" x2="434.363" y2="166.698"/>
<line x1="1067.665" y1="336.391" x2="1433.302" y2="434.363"/>
<line x1="1067.665" y1="336.391" x2="969.693" y2="702.028"/>
<line x1="1067.665" y1="336.391" x2="800.000" y2="604.056"/>
<line x1="1067.665" y1="336.391" x2="800.000" y2="68.725"/>
<line x1="702.028" y1="969.693" x2="604.056" y2="800.000"/>
<line x1="702.028" y1="969.693" x2="434.363" y2="702.028"/>
<line x1="702.028" y1="969.693" x2="800.000" y2="800.000"/>
<line x1="702.028" y1="969.693" x2="702.028" y2="434.363"/>
<line x1="702.028" y1="969.693" x2="532.335" y2="336.390"/>
<line x1="702.028" y1="969.693" x2="68.725" y2="800.000"/>
<line x1="702.028" y1="969.693" x2="800.000" y2="1335.330"/>
<line x1="702.028" y1="969.693" x2="969.693" y2="702.028"/>
<line x1="702.028" y1="969.693" x2="800.000" y2="604.056"/>
<line x1="702.028" y1="969.693" x2="336.390" y2="1067.665"/>
<line x1="604.056" y1="800.000" x2="434.363" y2="702.028"/>
<line x1="604.056" y1="800.000" x2="702.028" y2="630.307"/>
<line x1="604.056" y1="800.000" x2="702.028" y2="434.363"/>
<line x1="604.056" y1="800.000" x2="434.363" y2="166.698"/>
<line x1="604.056" y1="800.000" x2="68.725" y2="800.000"/>
<line x1="604.056" y1="800.000" x2="969.693" y2="897.972"/>
<line x1="604.056" y1="800.000" x2="969.693" y2="702.028"/>
<line x1="604.056" y1="800.000" x2="336.390" y2="1067.665"/>
<line x1="604.056" y1="800.000" x2="336.390" y2="532.335"/>
<line x1="434.363" y1="702.028" x2="532.335" y2="532.335"/>
<line x1="434.363" y1="702.028" x2="532.335" y2="336.390"/>
<line x1="434.363" y1="702.028" x2="434.363" y2="166.698"/>
<line x1="434.363" y1="702.028" x2="68.725" y2="800.000"/>
<line x1="434.363" y1="702.028" x2="800.000" y2="604.056"/>
<line x1="434.363" y1="702.028" x2="702.028" y2="434.363"/>
<line x1="434.363" y1="702.028" x2="336.390" y2="1067.665"/>
<line x1="434.363" y1="702.028" x2="166.697" y2="434.363"/>
<line x1="1165.637" y1="166.698" x2="800.000" y2="800.000"/>
<line x1="1165.637" y1="166.698" x2="702.028" y2="630.307"/>
<line x1="1165.637" y1="166.698" x2="532.335" y2="532.335"/>
<line x1="1165.637" y1="166.698" x2="702.028" y2="434.363"/>
<line x1="1165.637" y1="166.698" x2="532.335" y2="336.390"/>
<line x1="1165.637" y1="166.698" x2="434.363" y2="166.698"/>
<line x1="1165.637" y1="166.698" x2="1263.609" y2="532.335"/>
<line x1="1165.637" y1="166.698" x2="1433.302" y2="434.363"/>
<line x1="1165.637" y1="166.698" x2="800.000" y2="264.670"/>
<line x1="1165.637" y1="166.698" x2="800.000" y2="68.725"/>
<line x1="800.000" y1="800.000" x2="702.028" y2="630.307"/>
<line x1="800.000" y1="800.000" x2="532.335" y2="336.390"/>
<line x1="800.000" y1="800.000" x2="68.725" y2="800.000"/>
<line x1="702.028" y1="630.307" x2="532.335" y2="532.335"/>
<line x1="702.028" y1="630.307" x2="702.028" y2="434.363"/>
<line x1="702.028" y1="630.307" x2="434.363" y2="166.698"/>
<line x1="702.028" y1="630.307" x2="68.725" y2="800.000"/>
<line x1="702.028" y1="630.307" x2="800.000" y2="995.944"/>
<line x1="702.028" y1="630.307" x2="969.693" y2="897.972"/>
<line x1="702.028" y1="630.307" x2="800.000" y2="264.670"/>
<line x1="702.028" y1="630.307" x2="336.390" y2="532.335"/>
<line x1="532.335" y1="532.335" x2="532.335" y2="336.390"/>
<line x1="532.335" y1="532.335" x2="434.363" y2="166.698"/>
<line x1="532.335" y1="532.335" x2="68.725" y2="800.000"/>
<line x1="532.335" y1="532.335" x2="630.307" y2="897.972"/>
<line x1="532.335" y1="532.335" x2="800.000" y2="264.670"/>
<line x1="532.335" y1="532.335" x2="166.697" y2="434.363"/>
<line x1="702.028" y1="434.363" x2="532.335" y2="336.390"/>
<line x1="702.028" y1="434.363" x2="434.363" y2="166.698"/>
<line x1="702.028" y1="434.363" x2="68.725" y2="800.000"/>
<line x1="702.028" y1="434.363" x2="969.693" y2="702.028"/>
<line x1="702.028" y1="434.363" x2="800.000" y2="68.725"/>
<line x1="702.028" y1="434.363" x2="336.390" y2="532.335"/>
<line x1="532.335" y1="336.390" x2="434.363" y2="166.698"/>
<line x1="532.335" y1="336.390" x2="68.725" y2="800.000"/>
<line x1="532.335" y1="336.390" x2="630.307" y2="702.028"/>
<line x1="532.335" y1="336.390" x2="800.000" y2="604.056"/>
<line x1="532.335" y1="336.390" x2="800.000" y2="68.725"/>
<line x1="532.335" y1="336.390" x2="166.697" y2="434.363"/>
<line x1="434.363" y1="166.698" x2="68.725" y2="800.000"/>
<line x1="434.363" y1="166.698" x2="800.000" y2="264.670"/>
<line x1="434.363" y1="166.698" x2="800.000" y2="68.725"/>
<line x1="434.363" y1="166.698" x2="336.390" y2="532.335"/>
<line x1="434.363" y1="166.698" x2="166.697" y2="434.363"/>
<line x1="68.725" y1="800.000" x2="166.698" y2="1165.637"/>
<line x1="68.725" y1="800.000" x2="336.390" y2="1067.665"/>
<line x1="68.725" y1="800.000" x2="336.390" y2="532.335"/>
<line x1="68.725" y1="800.000" x2="166.697" y2="434.363"/>
<line x1="1433.302" y1="1165.637" x2="1263.609" y2="1067.665"/>
<line x1="1433.302" y1="1165.637" x2="800.000" y2="1531.275"/>
<line x1="1433.302" y1="1165.637" x2="1165.637" y2="702.028"/>
<line x1="1433.302" y1="1165.637" x2="800.000" y2="1335.330"/>
<line x1="1433.302" y1="1165.637" x2="702.028" y2="1165.637"/>
<line x1="1433.302" y1="1165.637" x2="1263.609" y2="532.335"/>
<line x1="1433.302" y1="1165.637" x2="897.972" y2="1165.637"/>
<line x1="1433.302" y1="1165.637" x2="800.000" y2="995.944"/>
<line x1="1433.302" y1="1165.637" x2="800.000" y2="800.000"/>
<line x1="1433.302" y1="1165.637" x2="1433.302" y2="434.363"/>
<line x1="1433.302" y1="1165.637" x2="969.693" y2="897.972"/>
<line x1="1433.302" y1="1165.637" x2="969.693" y2="702.028"/>
<line x1="1433.302" y1="1165.637" x2="1067.665" y2="532.335"/>
<line x1="1263.609" y1="1067.665" x2="1165.637" y2="897.972"/>
<line x1="1263.609" y1="1067.665" x2="800.000" y2="1531.275"/>
<line x1="1263.609" y1="1067.665" x2="800.000" y2="1335.330"/>
<line x1="1263.609" y1="1067.665" x2="532.335" y2="1067.665"/>
<line x1="1263.609" y1="1067.665" x2="1263.609" y2="532.335"/>
<line x1="1263.609" y1="1067.665" x2="630.307" y2="897.972"/>
<line x1="1263.609" y1="1067.665" x2="630.307" y2="702.028"/>
<line x1="1263.609" y1="1067.665" x2="1433.302" y2="434.363"/>
<line x1="1263.609" y1="1067.665" x2="1067.665" y2="1067.665"/>
<line x1="1263.609" y1="1067.665" x2="800.000" y2="800.000"/>
<line x1="1263.609" y1="1067.665" x2="800.000" y2="604.056"/>
<line x1="1263.609" y1="1067.665" x2="897.972" y2="434.363"/>
<line x1="1165.637" y1="897.972" x2="800.000" y2="1531.275"/>
<line x1="1165.637" y1="897.972" x2="1165.637" y2="702.028"/>
<line x1="1165.637" y1="897.972" x2="702.028" y2="1165.637"/>
<line x1="1165.637" y1="897.972" x2="630.307" y2="897.972"/>
<line x1="1165.637" y1="897.972" x2="532.335" y2="532.335"/>
<line x1="1165.637" y1="897.972" x2="1433.302" y2="434.363"/>
<line x1="1165.637" y1="897.972" x2="969.693" y2="897.972"/>
<line x1="1165.637" y1="897.972" x2="800.000" y2="264.670"/>
<line x1="800.000" y1="1531.275" x2="800.000" y2="1335.330"/>
<line x1="800.000" y1="1531.275" x2="532.335" y2="1067.665"/>
<line x1="800.000" y1="1531.275" x2="800.000" y2="995.944"/>
<line x1="800.000" y1="1531.275" x2="630.307" y2="897.972"/>
<line x1="800.000" y1="1531.275" x2="166.698" y2="1165.637"/>
<line x1="800.000" y1="1531.275" x2="1067.665" y2="1067.665"/>
<line x1="800.000" y1="1531.275" x2="969.693" y2="897.972"/>
<line x1="800.000" y1="1531.275" x2="800.000" y2="800.000"/>
<line x1="800.000" y1="1531.275" x2="336.390" y2="1067.665"/>
<line x1="800.000" y1="1531.275" x2="434.363" y2="897.972"/>
<line x1="1165.637" y1="702.028" x2="800.000" y2="1335.330"/>
<line x1="1165.637" y1="702.028" x2="532.335" y2="1067.665"/>
<line x1="1165.637" y1="702.028" x2="1263.609" y2="532.335"/>
<line x1="1165.637" y1="702.028" x2="630.307" y2="702.028"/>
<line x1="1165.637" y1="702.028" x2="969.693" y2="702.028"/>
<line x1="1165.637" y1="702.028" x2="702.028" y2="434.363"/>
<line x1="1165.637" y1="702.028" x2="800.000" y2="68.725"/>
<line x1="800.000" y1="1335.330" x2="702.028" y2="1165.637"/>
<line x1="800.000" y1="1335.330" x2="897.972" y2="1165.637"/>
<line x1="800.000" y1="1335.330" x2="800.000" y2="800.000"/>
<line x1="800.000" y1="1335.330" x2="630.307" y2="702.028"/>
<line x1="800.000" y1="1335.330" x2="166.698" y2="1165.637"/>
<line x1="800.000" y1="1335.330" x2="969.693" y2="702.028"/>
<line x1="800.000" y1="1335.330" x2="800.000" y2="604.056"/>
<line x1="800.000" y1="1335.330" x2="336.390" y2="1067.665"/>
<line x1="800.000" y1="1335.330" x2="434.363" y2="702.028"/>
<line x1="702.028" y1="1165.637" x2="532.335" y2="1067.665"/>
<line x1="702.028" y1="1165.637" x2="800.000" y2="995.944"/>
<line x1="702.028" y1="1165.637" x2="166.698" y2="1165.637"/>
<line x1="702.028" y1="1165.637" x2="969.693" y2="702.028"/>
<line x1="702.028" y1="1165.637" x2="702.028" y2="434.363"/>
<line x1="702.028" y1="1165.637" x2="336.390" y2="532.335"/>
<line x1="532.335" y1="1067.665" x2="630.307" y2="897.972"/>
<line x1="532.335" y1="1067.665" x2="532.335" y2="532.335"/>
<line x1="532.335" y1="1067.665" x2="800.000" y2="604.056"/>
<line x1="532.335" y1="1067.665" x2="336.390" y2="1067.665"/>
<line x1="532.335" y1="1067.665" x2="166.697" y2="434.363"/>
<line x1="1263.609" y1="532.335" x2="897.972" y2="1165.637"/>
<line x1="1263.609" y1="532.335" x2="800.000" y2="995.944"/>
<line x1="1263.609" y1="532.335" x2="630.307" y2="897.972"/>
<line x1="1263.609" y1="532.335" x2="800.000" y2="800.000"/>
<line x1="1263.609" y1="532.335" x2="630.307" y2="702.028"/>
<line x1="1263.609" y1="532.335" x2="532.335" y2="532.335"/>
<line x1="1263.609" y1="532.335" x2="1433.302" y2="434.363"/>
<line x1="1263.609" y1="532.335" x2="1067.665" y2="532.335"/>
<line x1="1263.609" y1="532.335" x2="800.000" y2="264.670"/>
<line x1="1263.609" y1="532.335" x2="800.000" y2="68.725"/>
<line x1="897.972" y1="1165.637" x2="800.000" y2="995.944"/>
<line x1="897.972" y1="1165.637" x2="630.307" y2="702.028"/>
<line x1="897.972" y1="1165.637" x2="166.698" y2="1165.637"/>
<line x1="897.972" y1="1165.637" x2="1067.665" y2="1067.665"/>
<line x1="897.972" y1="1165.637" x2="897.972" y2="434.363"/>
<line x1="897.972" y1="1165.637" x2="434.363" y2="897.972"/>
<line x1="800.000" y1="995.944" x2="630.307" y2="897.972"/>
<line x1="800.000" y1="995.944" x2="800.000" y2="800.000"/>
<line x1="800.000" y1="995.944" x2="532.335" y2="532.335"/>
<line x1="800.000" y1="995.944" x2="166.698" y2="1165.637"/>
<line x1="800.000" y1="995.944" x2="969.693" y2="897.972"/>
<line x1="800.000" y1="995.944" x2="1067.665" y2="532.335"/>
<line x1="800.000" y1="995.944" x2="800.000" y2="264.670"/>
<line x1="800.000" y1="995.944" x2="336.390" y2="532.335"/>
<line x1="630.307" y1="897.972" x2="630.307" y2="702.028"/>
<line x1="630.307" y1="897.972" x2="166.698" y2="1165.637"/>
<line x1="630.307" y1="897.972" x2="800.000" y2="800.000"/>
<line x1="630.307" y1="897.972" x2="897.972" y2="434.363"/>
<line x1="630.307" y1="897.972" x2="800.000" y2="264.670"/>
<line x1="630.307" y1="897.972" x2="434.363" y2="897.972"/>
<line x1="630.307" y1="897.972" x2="166.697" y2="434.363"/>
<line x1="800.000" y1="800.000" x2="630.307" y2="702.028"/>
<line x1="800.000" y1="800.000" x2="166.698" y2="1165.637"/>
<line x1="800.000" y1="800.000" x2="969.693" y2="702.028"/>
<line x1="800.000" y1="800.000" x2="800.000" y2="68.725"/>
<line x1="800.000" y1="800.000" x2="336.390" y2="532.335"/>
<line x1="630.307" y1="702.028" x2="532.335" y2="532.335"/>
<line x1="630.307" y1="702.028" x2="166.698" y2="1165.637"/>
<line x1="630.307" y1="702.028" x2="800.000" y2="604.056"/>
<line x1="630.307" y1="702.028" x2="800.000" y2="68.725"/>
<line x1="630.307" y1="702.028" x2="434.363" y2="702.028"/>
<line x1="630.307" y1="702.028" x2="166.697" y2="434.363"/>
<line x1="532.335" y1="532.335" x2="166.698" y2="1165.637"/>
<line x1="532.335" y1="532.335" x2="702.028" y2="434.363"/>
<line x1="532.335" y1="532.335" x2="800.000" y2="68.725"/>
<line x1="532.335" y1="532.335" x2="336.390" y2="532.335"/>
<line x1="166.698" y1="1165.637" x2="336.390" y2="1067.665"/>
<line x1="166.698" y1="1165.637" x2="434.363" y2="702.028"/>
<line x1="166.698" y1="1165.637" x2="336.390" y2="532.335"/>
<line x1="166.698" y1="1165.637" x2="166.697" y2="434.363"/>
<line x1="1433.302" y1="434.363" x2="1067.665" y2="1067.665"/>
<line x1="1433.302" y1="434.363" x2="969.693" y2="897.972"/>
<line x1="1433.302" y1="434.363" x2="800.000" y2="800.000"/>
<line x1="1433.302" y1="434.363" x2="969.693" y2="702.028"/>
<line x1="1433.302" y1="434.363" x2="800.000" y2="604.056"/>
<line x1="1433.302" y1="434.363" x2="702.028" y2="434.363"/>
<line x1="1433.302" y1="434.363" x2="897.972" y2="434.363"/>
<line x1="1433.302" y1="434.363" x2="800.000" y2="264.670"/>
<line x1="1433.302" y1="434.363" x2="800.000" y2="68.725"/>
<line x1="1067.665" y1="1067.665" x2="969.693" y2="897.972"/>
<line x1="1067.665" y1="1067.665" x2="800.000" y2="604.056"/>
<line x1="1067.665" y1="1067.665" x2="336.390" y2="1067.665"/>
<line x1="1067.665" y1="1067.665" x2="1067.665" y2="532.335"/>
<line x1="1067.665" y1="1067.665" x2="434.363" y2="702.028"/>
<line x1="969.693" y1="897.972" x2="800.000" y2="800.000"/>
<line x1="969.693" y1="897.972" x2="969.693" y2="702.028"/>
<line x1="969.693" y1="897.972" x2="702.028" y2="434.363"/>
<line x1="969.693" y1="897.972" x2="336.390" y2="1067.665"/>
<line x1="969.693" y1="897.972" x2="800.000" y2="264.670"/>
<line x1="969.693" y1="897.972" x2="434.363" y2="897.972"/>
<line x1="969.693" y1="897.972" x2="336.390" y2="532.335"/>
<line x1="800.000" y1="800.000" x2="800.000" y2="604.056"/>
<line x1="800.000" y1="800.000" x2="336.390" y2="1067.665"/>
<line x1="800.000" y1="800.000" x2="800.000" y2="264.670"/>
<line x1="800.000" y1="800.000" x2="166.697" y2="434.363"/>
<line x1="969.693" y1="702.028" x2="800.000" y2="604.056"/>
<line x1="969.693" y1="702.028" x2="336.390" y2="1067.665"/>
<line x1="969.693" y1="702.028" x2="1067.665" y2="532.335"/>
<line x1="969.693" y1="702.028" x2="800.000" y2="68.725"/>
<line x1="969.693" y1="702.028" x2="434.363" y2="702.028"/>
<line x1="969.693" y1="702.028" x2="336.390" y2="532.335"/>
<line x1="800.000" y1="604.056" x2="702.028" y2="434.363"/>
<line x1="800.000" y1="604.056" x2="336.390" y2="1067.665"/>
<line x1="800.000" y1="604.056" x2="897.972" y2="434.363"/>
<line x1="800.000" y1="604.056" x2="800.000" y2="68.725"/>
<line x1="800.000" y1="604.056" x2="166.697" y2="434.363"/>
<line x1="702.028" y1="434.363" x2="336.390" y2="1067.665"/>
<line x1="702.028" y1="434.363" x2="800.000" y2="264.670"/>
<line x1="702.028" y1="434.363" x2="166.697" y2="434.363"/>
<line x1="336.390" y1="1067.665" x2="434.363" y2="897.972"/>
<line x1="336.390" y1="1067.665" x2="336.390" y2="532.335"/>
<line x1="336.390" y1="1067.665" x2="166.697" y2="434.363"/>
<line x1="1067.665" y1="532.335" x2="897.972" y2="434.363"/>
<line x1="1067.665" y1="532.335" x2="434.363" y2="897.972"/>
<line x1="1067.665" y1="532.335" x2="800.000" y2="68.725"/>
<line x1="1067.665" y1="532.335" x2="336.390" y2="532.335"/>
<line x1="897.972" y1="434.363" x2="800.000" y2="264.670"/>
<line x1="897.972" y1="434.363" x2="434.363" y2="702.028"/>
<line x1="897.972" y1="434.363" x2="166.697" y2="434.363"/>
<line x1="800.000" y1="264.670" x2="434.363" y2="897.972"/>
<line x1="800.000" y1="264.670" x2="800.000" y2="68.725"/>
<line x1="800.000" y1="264.670" x2="336.390" y2="532.335"/>
<line x1="800.000" y1="264.670" x2="166.697" y2="434.363"/>
<line x1="434.363" y1="897.972" x2="434.363" y2="702.028"/>
<line x1="434.363" y1="897.972" x2="166.697" y2="434.363"/>
<line x1="800.000" y1="68.725" x2="434.363" y2="702.028"/>
<line x1="800.000" y1="68.725" x2="336.390" y2="532.335"/>
<line x1="800.000" y1="68.725" x2="166.697" y2="434.363"/>
<line x1="434.363" y1="702.028" x2="336.390" y2="532.335"/>
<line x1="336.390" y1="532.335" x2="166.697" y2="434.363"/>
</g>
<g style="stroke:#000000;stroke-width:3.0;fill:#ff0000">
<circle cx="1531.275" cy="800.000" r="30.2"/>
<circle cx="1165.637" cy="1433.302" r="30.2"/>
<circle cx="1067.665" cy="1263.609" r="30.2"/>
<circle cx="897.972" cy="969.693" r="30.2"/>
<circle cx="434.363" cy="1433.302" r="30.2"/>
<circle cx="995.944" cy="800.000" r="30.2"/>
<circle cx="897.972" cy="630.307" r="30.2"/>
<circle cx="532.335" cy="1263.609" r="30.2"/>
<circle cx="264.670" cy="800.000" r="30.2"/>
<circle cx="1335.330" cy="800.000" r="30.2"/>
<circle cx="1067.665" cy="336.391" r="30.2"/>
<circle cx="702.028" cy="969.693" r="30.2"/>
<circle cx="604.056" cy="800.000" r="30.2"/>
<circle cx="1165.637" cy="166.698" r="30.2"/>
<circle cx="702.028" cy="630.307" r="30.2"/>
<circle cx="532.335" cy="336.390" r="30.2"/>
<circle cx="434.363" cy="166.698" r="30.2"/>
<circle cx="68.725" cy="800.000" r="30.2"/>
<circle cx="1433.302" cy="1165.637" r="30.2"/>
<circle cx="1263.609" cy="1067.665" r="30.2"/>
<circle cx="800.000" cy="1531.275" r="30.2"/>
<circle cx="800.000" cy="1335.330" r="30.2"/>
<circle cx="1263.609" cy="532.335" r="30.2"/>
<circle cx="800.000" cy="995.944" r="30.2"/>
<circle cx="630.307" cy="897.972" r="30.2"/>
<circle cx="630.307" cy="702.028" r="30.2"/>
<circle cx="166.698" cy="1165.637" r="30.2"/>
<circle cx="1433.302" cy="434.363" r="30.2"/>
<circle cx="969.693" cy="897.972" r="30.2"/>
<circle cx="969.693" cy="702.028" r="30.2"/>
<circle cx="800.000" cy="604.056" r="30.2"/>
<circle cx="336.390" cy="1067.665" r="30.2"/>
<circle cx="800.000" cy="264.670" r="30.2"/>
<circle cx="800.000" cy="68.725" r="30.2"/>
<circle cx="336.390" cy="532.335" r="30.2"/>
<circle cx="166.697" cy="434.363" r="30.2"/>
</g>
<g style="stroke:#000000;stroke-width:3.0;fill:#ff7f00">
<circle cx="897.972" cy="1165.637" r="30.2"/>
<circle cx="1067.665" cy="1067.665" r="30.2"/>
<circle cx="1165.637" cy="897.972" r="30.2"/>
<circle cx="897.972" cy="434.363" r="30.2"/>
<circle cx="532.335" cy="1067.665" r="30.2"/>
<circle cx="434.363" cy="897.972" r="30.2"/>
<circle cx="1165.637" cy="702.028" r="30.2"/>
<circle cx="1067.665" cy="532.335" r="30.2"/>
<circle cx="702.028" cy="1165.637" r="30.2"/>
<circle cx="434.363" cy="702.028" r="30.2"/>
<circle cx="532.335" cy="532.335" r="30.2"/>
<circle cx="702.028" cy="434.363" r="30.2"/>
</g>
<g style="stroke:#000000;stroke-width:3.0;fill:#ffff00">
<circle cx="800.000" cy="800.000" r="30.2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 35 KiB

View file

@ -1,17 +1,86 @@
<!DOCTYPE html>
<!DOCTYPE html5>
<html>
<head id="head">
<meta charset="utf-8">
<title id="title">svg loader</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#load").on("click",getsvg);
$("#svgbox").bind('mouseup', handleMouseUp)
.bind('mousedown', handleMouseDown)
.bind('mouseenter', handleMouseEnter)
.bind('mouseleave', handleMouseLeave);
if ($.browser.webkit) {
window.addEventListener('mousewheel', handleMouseWheel, false); // Chrome/Safari
} else if ($.browser.mozilla) {
window.addEventListener('DOMMouseScroll', handleMouseWheel, false); // Firefox
} else {
window.addEventListener('mousewheel', handleMouseWheel, false); // others (Opera, Explorer9)
}
});
var handleMouseUp=function(evt){
console.log("handleMouseUp")
};
var handleMouseDown=function(evt){
console.log("handleMouseDown")
};
var handleMouseEnter=function(evt){
if (!isMouseOverElem) {
isMouseOverElem = true;
}
console.log("handleMouseEnter")
};
var handleMouseLeave=function(evt){
if (isMouseOverElem) {
isMouseOverElem = false;
}
console.log("handleMouseLeave")
};
/**
* Handle mouse wheel event.
*/
var handleMouseWheel = function (evt) {
if (!enableZoom) {
return;
}
if (!isMouseOverElem) {
return;
}
if (evt.preventDefault) {
evt.preventDefault();
}
evt.returnValue = false;
recentOffset = $root.offset();
var delta = evt.wheelDelta ? evt.wheelDelta / 360 : evt.detail / -9,
z = Math.pow(1 + zoomScale, delta),
g = svgRoot,
p = getEventPoint(evt),
k;
p = p.matrixTransform(g.getCTM().inverse());
// Compute new scale matrix in current mouse position
k = root.createSVGMatrix().translate(p.x, p.y).scale(z).translate(-p.x, -p.y);
setCTM(g, g.getCTM().multiply(k));
if (typeof stateTf === "undefined") {
stateTf = g.getCTM().inverse();
}
stateTf = stateTf.multiply(k.inverse());
};
var isMouseOverElem = false;
var enableZoom=true;
function getsvg(){
var f=$("#src").val();
alert("hi: "+f);
$.ajax({
type:"GET",
url:f,
@ -27,28 +96,41 @@ $.ajax({
$("#cuthere").empty().append(n);
}
},
error:function(jqXHR, textStatus, errorThrown){
alert("ajax error: "+textStatus + errorThrown);
}
});
};
</script>
</head>
<body>
<body>
<div>
<input id="src" value="hedge.svg"/>
<input id="src" list="svgtest" autofocus="autofocus"/>
<datalist id="svgtest">
<option value="hedge.svg"/>
<option value="multiple.svg"/>
<option value="http://open1-apb.rhcloud.com/restxq/hedge/svg?hedge=a%28bcd%28ef%29%29"/>
<option value="7-demicube_t0_D7.svg"/>
</datalist>
<button id="load">load</button>
</div>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" onload="init(evt)" onmousemove="show_coords(evt)"
xmlns:xlink="http://www.w3.org/1999/xlink" onload="init(evt)" onmousemove="show_coords(evt)" id="svgbox"
style="border:5px solid red;overflow:scroll;"
viewBox="0 0 400 400" version="1.1" width="500px" height="300px" preserveAspectRatio="xMidYMid meet">
<script type="text/ecmascript" xlink:href="../viewbox/ViewBox.js"/>
<script type="text/ecmascript"><![CDATA[
var svgns = "http://www.w3.org/2000/svg";
var svgRoot;
var pTrans;
var viewBox;
var cursor;
var coords;
function init(e) {
if ( window.svgDocument == null )
svgDocument = e.target.ownerDocument;
@ -57,34 +139,84 @@ $.ajax({
// viewBox = new ViewBox(svgRoot);
tspans =svgRoot.getElementById("coords").getElementsByTagNameNS(svgns, "tspan");
pTrans = svgRoot.createSVGPoint();pTrans.x=pTrans.y=0;scale=1;
var cuthere=document.getElementById("cuthere");
cuthere.addEventListener ( 'DOMNodeInserted', onNodeInsert, false );
};
function onNodeInsert(e){
console.log("loaded: ",cuthere.getBBox().height,cuthere.getBBox().width);
};
function translate(dx,dy){
pTrans.x+=dx;pTrans.y+=dy
update();
};
function update(){
cuthere.setAttribute("transform", "translate("+pTrans.x+","+pTrans.y+") scale("+scale+")");
};
function reset(){
pTrans.x=0;pTrans.y=0;scale=1;
update();
console.log(cuthere.getBBox().height,cuthere.getBBox().width);
};
function show_coords(e) {
var parent = e.currentTarget;
var p1 = svgRoot.createSVGPoint();
p1.x = e.clientX;
p1.y = e.clientY;
//http://stackoverflow.com/questions/2930625/svg-from-window-coordinates-to-viewbox-coordinates
p1.x = e.pageX;
p1.y = e.pageY;
var ctm = e.target.getScreenCTM();
if (ctm = ctm.inverse()){
p1 = p1.matrixTransform(ctm);
}else{
alert("no inservse");
}
// Show the results
tspans.item(1).firstChild.data = e.clientX;
tspans.item(3).firstChild.data = e.clientY;
tspans.item(5).firstChild.data = Math.round(p1.x*100) / 100;
tspans.item(7).firstChild.data = Math.round(p1.y*100) / 100;
tspans.item(9).firstChild.data = pTrans.x;
tspans.item(11).firstChild.data = pTrans.y;;
}
]]></script>
<rect x="0" y="0" width="100%" height="100%" fill="yellow" />
<g id="cuthere">
<g id="cuthere" >
</g>
<rect x="10" y="10" width="250" height="40" fill="blue" opacity="0.6"/>
<text id="coords" fill="white" transform="translate(20,10)"
<rect x="0" y="0" width="100%" height="100%" fill="transparent" />
<g id="hud" transform="translate(10,10)">
<rect x="0" y="0" width="400" height="40" fill="blue" opacity="0.6"/>
<rect x="1" y="2" width="12" height="12" fill="red" onclick="translate(5,5)">
<title>move +</title>
</rect>
<rect x="14" y="2" width="12" height="12" fill="green" onclick="translate(-5,-5)">
<title>move -</title>
</rect>
<rect x="1" y="14" width="12" height="12" fill="orange" onclick="scale=1.1*scale;update()">
<title>scale +</title>
</rect>
<rect x="14" y="14" width="12" height="12" fill="orange" onclick="scale=0.9*scale;update()">
<title>scale -</title>
</rect>
<rect x="0" y="28" width="12" height="12" fill="orange" onclick="reset()">
<title>reset</title>
</rect>
<text id="coords" fill="white" transform="translate(25,5)"
pointer-events="none">
<tspan x="0" dy="10pt">Client X = </tspan><tspan> </tspan>
<tspan x="0" dy="10pt">Client Y = </tspan><tspan> </tspan>
<tspan x="120" dy="-10pt">User X = </tspan><tspan> </tspan>
<tspan x="120" dy="10pt">User Y = </tspan><tspan> </tspan>
<tspan x="140" dy="-10pt">User X = </tspan><tspan> </tspan>
<tspan x="140" dy="10pt">User Y = </tspan><tspan> </tspan>
<tspan x="260" dy="-10pt">pTransX = </tspan><tspan> </tspan>
<tspan x="260" dy="10pt">pTransY = </tspan><tspan> </tspan>
</text>
</g>
</svg>
<div id="svgdiv" style="width:400px;height:300px" >hi</div>
</body>