Skip to content

Commit

Permalink
linting, no bower_components in tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Jan 12, 2019
1 parent a865e3a commit deb0b10
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ examples
js

*.zip

bower_components/
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/Esri/cedar.svg?branch=v0.x)](https://travis-ci.org/Esri/cedar)

> **NOTE:** You're looking at the documentation for v0.x, but v1.x is in beta. For more info, see [the v1.x (beta) documentation](https://github.com/Esri/cedar)
> **NOTE:** You're looking at the documentation for v0.x, but v1.x is in beta. For more info, see [the v1.x documentation](https://github.com/Esri/cedar)
Cedar is a library for crafting, sharing and data visualizations powered by ArcGIS Services. Built with D3 and the Vega graphics grammar, Cedar extends them with bindings for making templated chart graphics that can be re-used with different datasets.

Expand Down Expand Up @@ -172,7 +172,7 @@ For more information on SemVer, please visit <http://semver.org/>.


### Licensing
Copyright 2015 Esri
Copyright &copy; 2015 Esri Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -187,6 +187,3 @@ See the License for the specific language governing permissions and
limitations under the License.

A copy of the license is available in the repository's [LICENSE](./LICENSE) file.

[](Esri Tags: Visualization)
[](Esri Language: JavaScript)
4 changes: 2 additions & 2 deletions src/cedar.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ export default class Cedar {
});
}

/**
/**
* EVENT LOGIC HERE
*
*
Expand Down Expand Up @@ -857,7 +857,7 @@ export default class Cedar {
return items;
}

/**
/**
* Removes highlighted chart items
*
* If "options" are used, only clear specific items, otherwise clears all highlights.
Expand Down
42 changes: 21 additions & 21 deletions src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,27 @@ export function createFeatureServiceRequest (dataset, queryFromSpec) {
}]);
}

// iterate the mappings keys to check for sort
// -----------------------------------------------------------------
// This approach would seem 'clean' but if there are multiple fields
// to sort by, the order would be determined by how javascript decides to
// iterate the mappings property hash.
// Thus, using mappings.sort gives the developer explicit control
// -----------------------------------------------------------------
// var sort = [];
// for (var property in dataset.mappings) {
// if (dataset.mappings.hasOwnProperty(property)) {
// if(dataset.mappings[property].sort){
// //ok - build up the sort
// sort.push(dataset.mappings[property].field + ' ' + dataset.mappings[property].sort);
// }
// }
// }
// if(sort.length > 0){
// mergedQuery.orderByFields = sort.join(',');
// }
// -----------------------------------------------------------------
// check for a sort passed directly in
// iterate the mappings keys to check for sort
// -----------------------------------------------------------------
// This approach would seem 'clean' but if there are multiple fields
// to sort by, the order would be determined by how javascript decides to
// iterate the mappings property hash.
// Thus, using mappings.sort gives the developer explicit control
// -----------------------------------------------------------------
// var sort = [];
// for (var property in dataset.mappings) {
// if (dataset.mappings.hasOwnProperty(property)) {
// if(dataset.mappings[property].sort){
// //ok - build up the sort
// sort.push(dataset.mappings[property].field + ' ' + dataset.mappings[property].sort);
// }
// }
// }
// if(sort.length > 0){
// mergedQuery.orderByFields = sort.join(',');
// }
// -----------------------------------------------------------------
// check for a sort passed directly in

if (dataset.mappings.sort) {
mergedQuery.orderByFields = dataset.mappings.sort;
Expand Down
12 changes: 6 additions & 6 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function getTokenValue (tokens, tokenName) {
return tmpTokens;
}

/**
/**
* Helper function that validates that the
* mappings hash contains values for all
* the inputs
Expand All @@ -95,7 +95,7 @@ export function validateMappings (inputs, mappings) {
});
}

/**
/**
* Validate that the incoming data has the fields expected
* in the mappings
* @access private
Expand All @@ -117,7 +117,7 @@ export function validateData (data, mappings) {
return missingInputs;
}

/**
/**
* TODO does nothing, must figure out.
* Centralize and abstract the computation of
* expected field names, based on the mapping name
Expand All @@ -127,9 +127,9 @@ export function getMappingFieldName (mappingName, fieldName) {
// this function why?

let name = fieldName;
// if(mappingName.toLowerCase() === 'count'){
// name = fieldName + '_SUM';
// }
// if(mappingName.toLowerCase() === 'count'){
// name = fieldName + '_SUM';
// }
return name;
}

Expand Down

0 comments on commit deb0b10

Please sign in to comment.