summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2022-03-22 11:19:40 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2022-03-22 11:20:32 +0200
commitf08ef765a60501efd40a7264b78a8dbd5f2926d3 (patch)
tree755acaa963352b2681820d3792649426032a45b4
parent1d58b179ab51bdc8d3af4e6e75309b87e24e45d7 (diff)
downloadpf4j-f08ef765a60501efd40a7264b78a8dbd5f2926d3.tar.gz
pf4j-f08ef765a60501efd40a7264b78a8dbd5f2926d3.zip
Create FUNDING.yml
-rw-r--r--.github/FUNDING.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..4634966
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+github: decebals
l.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
SVG.bench.describe('Generate 10000 pathArrays bbox', function(bench) {
  var data = '209,153 389,107 547,188 482,289 374,287 91,254 407,243 391,185 166,226 71,177 65,52 234,50 107,136 163,199 158,131 323,45 218,145 305,190 374,143 174,216 296,241'

  var dataArr = [[209,153],[389,107],[547,188],[482,289],[374,287],[91,254],[407,243],[391,185],[166,226],[71,177],[65,52],[234,50],[107,136],[163,199],[158,131],[323,45],[218,145],[305,190],[374,143],[174,216],[296,241]]


  bench.test('using SVG.js v3.0.0', function() {
    for (var i = 0; i < 10000; i++) {
      SVG.parser.poly.setAttribute('points', data)
      SVG.parser.poly.getBBox()
    }
  })
  

  bench.test('using SVG.js v3.0.0 without parser', function() {
    for (var i = 0; i < 10000; i++) {
      var maxX = -Infinity, maxY = -Infinity, minX = Infinity, minY = Infinity
      dataArr.forEach(function(el) {
        maxX = Math.max(el[0], maxX)
        maxY = Math.max(el[1], maxY)
        minX = Math.min(el[0], minX)
        minY = Math.min(el[1], minY)
      })
      var a = {x: minX, y: minY, width: maxX-minX, height: maxY-minY}
    }
      //new SVG.Path().attr('d', data).addTo(draw).bbox()
  })

})