Skip to content

Commit

Permalink
add browserify dev dependency and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNickBarry committed Jun 27, 2024
1 parent 8c123ab commit b430053
Show file tree
Hide file tree
Showing 3 changed files with 1,229 additions and 24 deletions.
48 changes: 25 additions & 23 deletions dist/hyperbolic_canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,31 +900,33 @@
5: [
function (require, module, exports) {
(function (global) {
const HyperbolicCanvas =
(module.exports =
global.HyperbolicCanvas =
{});

// modules attach themselves to HyperbolicCanvas and do not include exports
require('./angle.js');
require('./point.js');
require('./line.js');
require('./circle.js');
require('./polygon.js');
require('./canvas.js');

HyperbolicCanvas.create = function (selector) {
return new HyperbolicCanvas.Canvas({
el:
document.querySelector(selector) ||
document.createElement('div'),
});
};
(function () {
const HyperbolicCanvas =
(module.exports =
global.HyperbolicCanvas =
{});

// modules attach themselves to HyperbolicCanvas and do not include exports
require('./angle.js');
require('./point.js');
require('./line.js');
require('./circle.js');
require('./polygon.js');
require('./canvas.js');

HyperbolicCanvas.create = function (selector) {
return new HyperbolicCanvas.Canvas({
el:
document.querySelector(selector) ||
document.createElement('div'),
});
};

HyperbolicCanvas.INFINITY = 1e12;
HyperbolicCanvas.ZERO = 1e-6;
HyperbolicCanvas.INFINITY = 1e12;
HyperbolicCanvas.ZERO = 1e-6;

Math.TAU = 2 * Math.PI;
Math.TAU = 2 * Math.PI;
}).call(this);
}).call(
this,
typeof global !== 'undefined'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"homepage": "https://github.com/itsnickbarry/hyperbolic-canvas#readme",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"browserify": "^17.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2"
Expand Down
Loading

0 comments on commit b430053

Please sign in to comment.