mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Remove unnecessary double-spaces.
This commit is contained in:
parent
56d5b3b323
commit
98fc51319f
6 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,7 @@
|
||||||
<script type="text/javascript" src="../../dist/paper-full.js"></script>
|
<script type="text/javascript" src="../../dist/paper-full.js"></script>
|
||||||
<script type="text/javascript" src="http://paperjs.org/assets/js/rhill-voronoi-core.js"></script>
|
<script type="text/javascript" src="http://paperjs.org/assets/js/rhill-voronoi-core.js"></script>
|
||||||
<script type="text/paperscript" canvas="canvas">
|
<script type="text/paperscript" canvas="canvas">
|
||||||
var voronoi = new Voronoi();
|
var voronoi = new Voronoi();
|
||||||
var sites = generateBeeHivePoints(view.size / 200, true);
|
var sites = generateBeeHivePoints(view.size / 200, true);
|
||||||
var bbox, diagram;
|
var bbox, diagram;
|
||||||
var oldSize = view.size;
|
var oldSize = view.size;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function createWheel(center, radius, steps, lightness) {
|
function createWheel(center, radius, steps, lightness) {
|
||||||
var hUnit = 360 / steps.hue;
|
var hUnit = 360 / steps.hue;
|
||||||
for (var h = 0; h < steps.hue; h++) {
|
for (var h = 0; h < steps.hue; h++) {
|
||||||
var hue = h * hUnit;
|
var hue = h * hUnit;
|
||||||
var vector = new Point({
|
var vector = new Point({
|
||||||
|
|
|
@ -76,7 +76,7 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
|
||||||
var user = self.navigator.userAgent.toLowerCase(),
|
var user = self.navigator.userAgent.toLowerCase(),
|
||||||
// Detect basic platforms, only mac internally required for now.
|
// Detect basic platforms, only mac internally required for now.
|
||||||
os = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user)||[])[0],
|
os = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user)||[])[0],
|
||||||
platform = os === 'darwin' ? 'mac' : os,
|
platform = os === 'darwin' ? 'mac' : os,
|
||||||
agent = proto.agent = proto.browser = { platform: platform };
|
agent = proto.agent = proto.browser = { platform: platform };
|
||||||
if (platform)
|
if (platform)
|
||||||
agent[platform] = true;
|
agent[platform] = true;
|
||||||
|
|
|
@ -2339,8 +2339,8 @@ new function() { // PostScript-style drawing commands
|
||||||
ry = abs(radius.height),
|
ry = abs(radius.height),
|
||||||
rxSq = rx * rx,
|
rxSq = rx * rx,
|
||||||
rySq = ry * ry,
|
rySq = ry * ry,
|
||||||
xSq = x * x,
|
xSq = x * x,
|
||||||
ySq = y * y;
|
ySq = y * y;
|
||||||
// "...ensure radii are large enough"
|
// "...ensure radii are large enough"
|
||||||
var factor = Math.sqrt(xSq / rxSq + ySq / rySq);
|
var factor = Math.sqrt(xSq / rxSq + ySq / rySq);
|
||||||
if (factor > 1) {
|
if (factor > 1) {
|
||||||
|
|
|
@ -145,7 +145,7 @@ var PathIterator = Base.extend({
|
||||||
|
|
||||||
drawPart: function(ctx, from, to) {
|
drawPart: function(ctx, from, to) {
|
||||||
var start = this._get(from),
|
var start = this._get(from),
|
||||||
end = this._get(to);
|
end = this._get(to);
|
||||||
for (var i = start.index, l = end.index; i <= l; i++) {
|
for (var i = start.index, l = end.index; i <= l; i++) {
|
||||||
var curve = Curve.getPart(this.curves[i],
|
var curve = Curve.getPart(this.curves[i],
|
||||||
i === start.index ? start.time : 0,
|
i === start.index ? start.time : 0,
|
||||||
|
|
|
@ -67,7 +67,7 @@ new function() {
|
||||||
var childNode = exportSVG(child, options);
|
var childNode = exportSVG(child, options);
|
||||||
if (childNode) {
|
if (childNode) {
|
||||||
if (child.isClipMask()) {
|
if (child.isClipMask()) {
|
||||||
var clip = SvgElement.create('clipPath');
|
var clip = SvgElement.create('clipPath');
|
||||||
clip.appendChild(childNode);
|
clip.appendChild(childNode);
|
||||||
setDefinition(child, clip, 'clip');
|
setDefinition(child, clip, 'clip');
|
||||||
SvgElement.set(node, {
|
SvgElement.set(node, {
|
||||||
|
|
Loading…
Reference in a new issue