Browse Source

NPM support

pull/633/head
Ekoo20 8 years ago
parent
commit
2d04b53511
7 changed files with 3137 additions and 3 deletions
  1. +5
    -1
      .gitignore
  2. +15
    -0
      build/RequestAnimationFrame.js
  3. +11
    -0
      build/index.js
  4. +1046
    -0
      build/libpannellum.js
  5. +2039
    -0
      build/pannellum.js
  6. +9
    -2
      package.json
  7. +12
    -0
      src/js/index.js

+ 5
- 1
.gitignore View File

@@ -1,8 +1,12 @@
# Ignore builds
build/**
# temporal disabled for git instalation
#build/**

# Ignore OS X stuff
.DS_Store

# Ignore generated docs
utils/doc/generated_docs

#Ignode npm build
/node_modules/

+ 15
- 0
build/RequestAnimationFrame.js View File

@@ -0,0 +1,15 @@
/**
* Provides requestAnimationFrame in a cross browser way.
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
*/

if (!window.requestAnimationFrame) {

window.requestAnimationFrame = function () {

return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function ( /* function FrameRequestCallback */callback, /* DOMElement Element */element) {

window.setTimeout(callback, 1000 / 60);
};
}();
}

+ 11
- 0
build/index.js View File

@@ -0,0 +1,11 @@
'use strict';

require("./requestAnimationFrame");
require("./libpannellum");
require("./pannellum");

Object.defineProperty(exports, "__esModule", {
value: true
});

exports.default = pannellum;

+ 1046
- 0
build/libpannellum.js
File diff suppressed because it is too large
View File


+ 2039
- 0
build/pannellum.js
File diff suppressed because it is too large
View File


+ 9
- 2
package.json View File

@@ -13,11 +13,18 @@
"type": "git",
"url": "https://github.com/mpetroff/pannellum.git"
},
"scripts": {
"build": "babel -d build/ src/js",
"prepublish": "npm run build"
},
"license": "MIT",
"homepage": "https://pannellum.org/",
"main": "build/pannellum.js",
"main": "build/index.js",
"keywords": [
"panorama",
"viewer"
]
],
"devDependencies": {
"babel-cli": "^6.7.5"
}
}

+ 12
- 0
src/js/index.js View File

@@ -0,0 +1,12 @@
'use strict';

require("./requestAnimationFrame");
require("./libpannellum");
require("./pannellum");

Object.defineProperty(exports, "__esModule", {
value: true
});


exports.default = pannellum;

Loading…
Cancel
Save