Skip to content

Commit

Permalink
Merge pull request #1 from emackey/gltf-1.99
Browse files Browse the repository at this point in the history
Merge master into glTF 2.0
  • Loading branch information
moneimne authored Jun 22, 2017
2 parents 8cde025 + 635775b commit 646aef4
Show file tree
Hide file tree
Showing 721 changed files with 64,506 additions and 4,992 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[package.json]
indent_size = 2
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Apps/HelloWorld.html
Apps/Sandcastle/ThirdParty/**
Build/**
Documentation/**
Source/Shaders/**
Source/ThirdParty/**
Source/Workers/cesiumWorkerBootstrapper.js
ThirdParty/**
Tools/**
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./Tools/eslint-config-cesium/browser.js",
"rules": {
"no-unused-vars": ["error", {"vars": "all", "args": "none"}]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/cesium-*.tgz
.DS_Store
Thumbs.db
.eslintcache

/Apps/CesiumViewer/Gallery/gallery-index.js

Expand All @@ -16,11 +17,13 @@ Thumbs.db
/Source/Shaders/*.js
/Source/Shaders/*/*.js
/Source/Shaders/*/*/*.js
/Source/ThirdParty/Shaders/*.js

/Specs/SpecList.js

/node_modules
npm-debug.log
npm-debug.log.*

# WebStorm user-specific
.idea/workspace.xml
Expand Down
2 changes: 1 addition & 1 deletion .idea/cesium.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/Run_tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 0 additions & 62 deletions .jshintrc

This file was deleted.

1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/.project
/.settings
/.travis.yml
/.vscode
/Apps
/Build/minifyShaders.state
/Build/Stubs
Expand Down
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ script:
- npm run deploy-status -- --status pending --message 'Waiting for build'
- echo -en 'travis_fold:end:script.deployPending\\r'

- echo 'jsHint' && echo -en 'travis_fold:start:script.jsHint\\r'
- npm run jsHint -- --failTaskOnError
- echo -en 'travis_fold:end:script.jsHint\\r'
- echo 'eslint' && echo -en 'travis_fold:start:script.eslint\\r'
- npm run eslint
- echo -en 'travis_fold:end:script.eslint\\r'

- echo 'test webgl-stub' && echo -en 'travis_fold:start:script.test\\r'
- npm run build
- npm run test -- --browsers Electron --webgl-stub --failTaskOnError --suppressPassed
- echo -en 'travis_fold:end:script.test\\r'

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.detectIndentation": false,
"jshint.enable": true,
"eslint.enable": true,
"javascript.format.insertSpaceAfterCommaDelimiter": true,
"javascript.format.insertSpaceAfterSemicolonInForStatements": true,
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
Expand Down
62 changes: 60 additions & 2 deletions Apps/.jshintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,62 @@
{
"extends": "../.jshintrc",
"jasmine": false
"bitwise": false,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"latedef": false,
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"plusplus": false,
"quotmark": false,
"undef": true,
"unused": "vars",
"strict": true,
"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"esnext": false,
"moz": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"multistr": true,
"noyield": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"shadow": false,
"sub": false,
"supernew": false,
"validthis": false,
"browser": true,
"browserify": false,
"couch": false,
"devel": true,
"dojo": false,
"jasmine": false,
"jquery": false,
"mocha": true,
"mootools": false,
"node": false,
"nonstandard": false,
"prototypejs": false,
"qunit": false,
"rhino": false,
"shelljs": false,
"worker": false,
"wsh": false,
"yui": false
}
4 changes: 2 additions & 2 deletions Apps/CesiumViewer/CesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ define([
var message = formatError(exception);
console.error(message);
if (!document.querySelector('.cesium-widget-errorPanel')) {
window.alert(message);
window.alert(message); //eslint-disable-line no-alert
}
return;
}
Expand Down Expand Up @@ -166,6 +166,7 @@ define([
}
}

var camera = viewer.camera;
function saveCamera() {
var position = camera.positionCartographic;
var hpr = '';
Expand All @@ -178,7 +179,6 @@ define([

var updateTimer;
if (endUserOptions.saveCamera !== 'false') {
var camera = viewer.camera;
camera.moveStart.addEventListener(function() {
if (!defined(updateTimer)) {
updateTimer = window.setInterval(saveCamera, 1000);
Expand Down
1 change: 1 addition & 0 deletions Apps/CesiumViewer/CesiumViewerStartup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*global require*/
/*eslint-disable strict*/
require({
baseUrl : '.',
paths : {
Expand Down
2 changes: 1 addition & 1 deletion Apps/SampleData/kml/facilities/facilities.kml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Apps/Sandcastle/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "../../.eslintrc.json",
"globals": {
"JSON": true,
"require": true,
"console": true,
"Sandcastle": true,
"Cesium": true
},
"rules": {
"no-alert": ["off"],
"no-implicit-globals": "off",
"no-unused-vars": ["off"]
}
}
8 changes: 0 additions & 8 deletions Apps/Sandcastle/CesiumSandcastle.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,6 @@ html, body {
border: none;
width: 100%;
height: 100%;
-moz-transition-property: -moz-transform;
-moz-transition-duration: 0.5s;
-moz-transform-origin: 200px 150px;
-webkit-transition-property: -webkit-transform;
-webkit-transition-duration: 0.5s;
-webkit-transform-origin: 200px 150px;
transition-property: transform;
transition-duration: 0.5s;
transform-origin: 200px 150px;
Expand All @@ -150,8 +144,6 @@ html, body {
.makeThumbnail {
width: 900px;
height: 600px;
-moz-transform: scale(0.25);
-webkit-transform: scale(0.25);
transform: scale(0.25);
}

Expand Down
20 changes: 9 additions & 11 deletions Apps/Sandcastle/CesiumSandcastle.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ require({
var subtabs = {};
var docError = false;
var galleryError = false;
var notFound = false;
var deferredLoadError = false;
var galleryTooltipTimer;
var activeGalleryTooltipDemo;
var demoTileHeightRule = findCssStyle('.demoTileThumbnail');
Expand Down Expand Up @@ -367,6 +367,7 @@ require({
}
// make a copy of the options, JSHint modifies the object it's given
var options = JSON.parse(JSON.stringify(sandcastleJsHintOptions));
/*eslint-disable new-cap*/
if (!JSHINT(getScriptFromEditor(false), options)) {
var hints = JSHINT.errors;
for (i = 0, len = hints.length; i < len; ++i) {
Expand All @@ -378,6 +379,7 @@ require({
}
}
}
/*eslint-enable new-cap*/
}

function scheduleHint() {
Expand Down Expand Up @@ -695,7 +697,7 @@ require({
}

function loadFromGallery(demo) {
notFound = false;
deferredLoadError = false;
document.getElementById('saveAsFile').download = demo.name + '.html';
registry.byId('description').set('value', decodeHTML(demo.description).replace(/\\n/g, '\n'));
registry.byId('label').set('value', decodeHTML(demo.label).replace(/\\n/g, '\n'));
Expand Down Expand Up @@ -806,8 +808,8 @@ require({
if (galleryError) {
appendConsole('consoleError', 'Error loading gallery, please run the build script.', true);
}
if (notFound) {
appendConsole('consoleLog', 'Unable to load demo named ' + queryObject.src.replace('.html', '') + '\n', true);
if (deferredLoadError) {
appendConsole('consoleLog', 'Unable to load demo named ' + queryObject.src.replace('.html', '') + '. Redirecting to HelloWorld.\n', true);
}
}
} else if (Cesium.defined(e.data.log)) {
Expand Down Expand Up @@ -883,6 +885,8 @@ require({
scheduleHintNoChange();
});

var searchContainer;

function hideSearchContainer() {
if (dom.byId('searchContainer')) {
var innerPanel = registry.byId('innerPanel');
Expand Down Expand Up @@ -1060,15 +1064,10 @@ require({
url : 'gallery/' + name + '.html',
handleAs : 'text',
error : function(error) {
if (error.status === 404) {
loadFromGallery(gallery_demos[hello_world_index])
.then(function() {
notFound = true;
deferredLoadError = true;
});
} else {
galleryError = true;
appendConsole('consoleError', error, true);
}
}
});
}
Expand Down Expand Up @@ -1294,7 +1293,6 @@ require({
});
}

var searchContainer;
when(promise).then(function() {
dom.byId('searchDemos').appendChild(galleryErrorMsg);
searchContainer = registry.byId('searchContainer');
Expand Down
Loading

0 comments on commit 646aef4

Please sign in to comment.