Ver código fonte

NPM support

pull/633/head
Ekoo20 8 anos atrás
pai
commit
2d04b53511
7 arquivos alterados com 3137 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2039
- 0
build/pannellum.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 9
- 2
package.json Ver arquivo

@@ -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 Ver arquivo

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

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

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


exports.default = pannellum;

Carregando…
Cancelar
Salvar