diff --git a/carto.js/.editorconfig b/carto.js/.editorconfig deleted file mode 100644 index 0d1e358..0000000 --- a/carto.js/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -# EditorConfig is awesome: http://EditorConfig.org - -# top-most EditorConfig file -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -# Javascript and json files are formated with 2 spaces with ut8 encoding -[*.{js,json}] -charset = utf-8 -indent_style = space -indent_size = 2 diff --git a/carto.js/.eslintignore b/carto.js/.eslintignore deleted file mode 100644 index e0cc02a..0000000 --- a/carto.js/.eslintignore +++ /dev/null @@ -1,7 +0,0 @@ -/dist -/doc -/docs -/examples -/grunt -/themes -/vendor diff --git a/carto.js/.eslintrc.json b/carto.js/.eslintrc.json deleted file mode 100644 index a61b185..0000000 --- a/carto.js/.eslintrc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "semistandard", - "env": { - "es6": true, - "browser": true, - "jasmine": true - }, - "globals": { - "__ENV__": true - }, - "rules": { - "no-useless-escape": "off" - } -} diff --git a/carto.js/.github/ISSUE_TEMPLATE.md b/carto.js/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 5d3ac42..0000000 --- a/carto.js/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,29 +0,0 @@ -### Context -*Please explain here below what you were doing when the issue happened* - - - -### Steps to Reproduce -*Please break down here below all the needed steps to reproduce the issue* - -1. -2. -3. - -### Current Result -*Please describe here below the current result you got* - - - -### Expected result -*Please describe here below what should be the expected behaviour* - - -### Browser and version -*What internet browser (Chrome, Firefox, etc) and version was you using and version* - - - -### Additional info -*Please add any information of interest here below* - diff --git a/carto.js/.github/stale.yml b/carto.js/.github/stale.yml deleted file mode 100644 index ec12eb6..0000000 --- a/carto.js/.github/stale.yml +++ /dev/null @@ -1,53 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 365 - -# Number of days of inactivity before a stale Issue or Pull Request is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 14 - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -# exemptLabels: -# - pinned -# - security -# - "[Status] Maybe Later" - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Label to use when marking as stale -staleLabel: stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. - -# Comment to post when removing the stale label. -unmarkComment: false - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: false - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 10 - -# Limit to only `issues` or `pulls` -# only: issues - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -# pulls: -# daysUntilStale: 30 -# markComment: > -# This pull request has been automatically marked as stale because it has not had -# recent activity. It will be closed if no further activity occurs. Thank you -# for your contributions. - -# issues: -# exemptLabels: -# - confirmed \ No newline at end of file diff --git a/carto.js/.gitignore b/carto.js/.gitignore deleted file mode 100644 index 18135ac..0000000 --- a/carto.js/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -.DS_store -.idea/ -.grunt -.rvmrc -.tmp -.vscode -*.swp -dist -docs/public -docs/internal -Gemfile.lock -node_modules -npm-debug.log -secrets.json -secrets.v3.json -secrets.v4.json -test/SpecRunner*.html -themes/css/all.css -themes/css/cartodb.ie.css -themes/css/cartodb.css -yarn.lock -.sass-cache \ No newline at end of file diff --git a/carto.js/.hound.yml b/carto.js/.hound.yml deleted file mode 100644 index 107a98d..0000000 --- a/carto.js/.hound.yml +++ /dev/null @@ -1,5 +0,0 @@ -scss: - enabled: true - config_file: .scss-lint.yml -javascript: - enabled: false diff --git a/carto.js/.npmrc b/carto.js/.npmrc deleted file mode 100644 index e92a3ea..0000000 --- a/carto.js/.npmrc +++ /dev/null @@ -1 +0,0 @@ -message = "Bump version to %s" diff --git a/carto.js/.scss-lint.yml b/carto.js/.scss-lint.yml deleted file mode 100644 index dcd34b4..0000000 --- a/carto.js/.scss-lint.yml +++ /dev/null @@ -1,184 +0,0 @@ -scss_files: 'themes/scss/**/*.scss' -exclude: - - 'themes/scss/common/reset.scss' - - 'themes/scss/map/cartodb-map-light.scss' - - 'themes/scss/tooltip/*.scss' - - 'themes/scss/vendor/*.scss' - - 'vendor/**/*.scss' -linters: - BangFormat: - enabled: true - space_before_bang: true - space_after_bang: false - BemDepthf: - enabled: true - max_elements: 3 - BorderZero: - enabled: false - convention: zero - ColorKeyword: - enabled: true - severity: warning - ColorVariable: - enabled: false - severity: warning - Comment: - enabled: false - DebugStatement: - enabled: true - DeclarationOrder: - enabled: true - DisableLinterReason: - enabled: false - DuplicateProperty: - enabled: true - ElsePlacement: - enabled: true - style: same_line - EmptyLineBetweenBlocks: - enabled: false - EmptyRule: - enabled: true - FinalNewline: - enabled: true - present: true - HexLength: - enabled: true - style: short - HexNotation: - enabled: true - style: uppercase - HexValidation: - enabled: true - IdSelector: - enabled: true - ImportantRule: - enabled: true - ImportPath: - enabled: true - leading_underscore: false - filename_extension: false - Indentation: - enabled: true - allow_non_nested_indentation: false - character: space - width: 2 - severity: warning - LeadingZero: - enabled: true - style: include_zero - MergeableSelector: - enabled: true - force_nesting: false - NameFormat: - enabled: true - # Valid cases - # - hello - # - helloMates - # - hello-buddy - # - hello-buddyOne - convention: '([a-z]*)([A-Z]+[a-z]*)*-{0,2}([a-z]([a-z]*[A-Z]*[a-z]*))(\.[a-z]+-[a-z]*[A-Z]*[a-z]*)?(:.*)*' - NestingDepth: - enabled: true - max_depth: 3 - severity: warning - PlaceholderInExtend: - enabled: false - PropertyCount: - enabled: true - include_nested: false - max_properties: 18 - severity: warning - PropertySortOrder: - enabled: true - order: smacss - ignore_unspecified: true - severity: warning - separate_groups: false - PropertySpelling: - enabled: true - extra_properties: [] - PropertyUnits: - global: ['em', 'rem', '%', 'px', 's', 'ms', 'vh'] # Allow relative units globally - properties: - border: ['px'] - line-height: ['px', ''] - margin: ['em', 'px', '%'] - QualifyingElement: - enabled: true - allow_element_with_attribute: true - allow_element_with_class: false - allow_element_with_id: false - severity: warning - SelectorDepth: - enabled: true - max_depth: 3 - severity: warning - SelectorFormat: - enabled: true - # Valid cases - # - 0..100% - # - i | em | strong | div | span | ... - # - CDB-Logo - # - CDB-LogoWadus - # - CDB-Logo--cartofante - # - CDB-LogoWadus--cartofante - # - CDB-Logo--cartofantePleased - # - CDB-Logo--cartofanteURL - # - CDB-Logo-oh - # - CDB-Logo-oh:hover - # - CDB-Logo:after - # - CDB-Logo.is-state - convention: '([0-9]+%)|([a-z]+(:.*)*)|CDB-([A-Z]+[a-z]*)([A-Z]+[a-z]*)*-{0,2}([a-z]([a-z]*[A-Z]*[a-z]*))(\.[a-z]+-[a-z]*[A-Z]*[a-z]*)?(:.*)*' - ignored_types: ['id'] - Shorthand: - enabled: true - severity: warning - SingleLinePerProperty: - enabled: true - allow_single_line_rule_sets: false - SingleLinePerSelector: - enabled: true - SpaceAfterComma: - enabled: true - SpaceAfterPropertyColon: - enabled: true - style: one_space - SpaceAfterPropertyName: - enabled: true - SpaceAfterVariableName: - enabled: true - SpaceAroundOperator: - enabled: true - style: one_space - SpaceBeforeBrace: - enabled: true - style: space - allow_single_line_padding: false - SpaceBetweenParens: - enabled: true - spaces: 0 - StringQuotes: - enabled: true - style: single_quotes - TrailingSemicolon: - enabled: true - severity: warning - TrailingZero: - enabled: true - UnnecessaryMantissa: - enabled: true - UnnecessaryParentReference: - enabled: true - UrlFormat: - enabled: true - UrlQuotes: - enabled: true - VariableForProperty: - enabled: false - properties: [] - VendorPrefixes: - enabled: false - ZeroUnit: - enabled: true - severity: warning diff --git a/carto.js/.travis.yml b/carto.js/.travis.yml deleted file mode 100644 index 24bf894..0000000 --- a/carto.js/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: false -cache: false -language: node_js -node_js: - - 6.9.2 -install: - - npm install -before_script: - - cp secrets.example.json secrets.json - - npm install -g grunt-cli -script: - - npm test -after_success: - - bash scripts/deploy-docs-examples.sh -notifications: - email: - on_success: never - on_failure: change -env: - global: - secure: lcdjTpuv2imFSgcYWMLV4odyZ4jOTjJhyViGg9hOFzggoPGFAjplz6bPgNJsxq20ZsFDw4UN6UlZ8lPGlByIUBhf2OXs0cEJDcNSoYAV7CuTMSdZsLDb+TrWQvjtSZMBEkeVENfJjyfiJo7PCt2/cIQXSVSnhZ5Uiir+Eus5x/s= diff --git a/carto.js/CHANGELOG.md b/carto.js/CHANGELOG.md deleted file mode 100644 index 37bd272..0000000 --- a/carto.js/CHANGELOG.md +++ /dev/null @@ -1,199 +0,0 @@ -# Changelog - -CARTO.js is a JavaScript library that interacts with different CARTO APIs. It is part of the CARTO Engine ecosystem. - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## 4.2 - 2019-12-26 -### Added -- Improve Overview guide with npm info [2230](https://github.com/CartoDB/carto.js/issues/2230) -- New dataview filters: circle & polygon [2242](https://github.com/CartoDB/carto.js/pull/2242) - -### Fixed -- Support options dead link [2240](https://github.com/CartoDB/carto.js/issues/2240) -- Replace uglify with terser to fix internal build [2242](https://github.com/CartoDB/carto.js/pull/2242) -- Fix scroll in gradient legends [2244](https://github.com/CartoDB/carto.js/issues/2244) - -### Changed -- Update eslint [2242](https://github.com/CartoDB/carto.js/pull/2242) - - -## 4.1.11 - 2019-02-13 -### Changed -- Using Google Maps v3.35 on examples [2227](https://github.com/CartoDB/carto.js/pull/2227) - -## 4.1.10 - 2019-01-18 - -### Fixed -- Trigger view update after search [2219](https://github.com/CartoDB/carto.js/pull/2219) -- Filters: parse dates properly in the `between` filter. - -## 4.1.9 - 2019-01-09 - -### Added -- TomTom geocoder service [#2213](https://github.com/CartoDB/carto.js/issues/2213) - -### Fixed -- Histogram: fix wrong selection in last bucket. - -### Changed -- Improve examples. [#2211](https://github.com/CartoDB/carto.js/pull/2211) - -## 4.1.8 - 2018-10-29 -### Fixed -- Moved 'browserify-shim' to devDependencies, fixing a potential problem with npm shrinkwrap. - -## 4.1.7 - 2018-10-18 -### Fixed -- Client: Fix `serverUrl` parameter: `{username}` replacement, validation and documentation. - -## 4.1.6 - 2018-09-07 -### Fixed -- Source Filters: Fix return in get-object-value that was causing unintended behaviors in parameters validation. - -## 4.1.5 - 2018-09-05 -### Added -- Source Filters: allow subqueries in `eq`, `notEq` in Category filter, and `lt`, `lte`, `gt`, `gte` in Range Filter. - -## 4.1.4 - 2018-09-03 -### Added -- Source Filters: allow to filter category columns by subquery. [#2186](https://github.com/CartoDB/carto.js/issues/2186) -- Source Filters: reset filter conditions with .resetFilters(). [#2186](https://github.com/CartoDB/carto.js/issues/2186) - -### Fixed -- Source Filters: allow to combine empty filters. [#2186](https://github.com/CartoDB/carto.js/issues/2186) - -## 4.1.3 - 2018-08-09 -### Fixed -- Fix safari drag problem. [#2184](https://github.com/CartoDB/carto.js/pull/2184) - -## 4.1.2 - 2018-07-31 -### Fixed -- Fix `Promise is undefined` in IE11. [#2180](https://github.com/CartoDB/carto.js/issues/2180) - -## 4.1.1 - 2018-07-17 -### Fixed -- Fix popups/featureClick positions when scrolled. [#2179](https://github.com/CartoDB/carto.js/pull/2179) - -### Changed -- Improve examples. [#2177](https://github.com/CartoDB/carto.js/pull/2177) - -## 4.1.0 - 2018-07-13 -### Added -- Docs: Add performance tips guide. [#2168](https://github.com/CartoDB/carto.js/issues/2168) - -## 4.0.18 - 2018-07-12 -### Added -- Histogram: added `start` and `end` options to modify the histogram range. [#2142](https://github.com/CartoDB/carto.js/issues/2142) - -## 4.0.17 - 2018-07-12 -### Added -- Layers: added `visible` to options. [#2004](https://github.com/CartoDB/carto.js/issues/2004) - -### Changed -- Docs: Update 01-quickstart.md. [#2133](https://github.com/CartoDB/carto.js/pull/2133) - -### Fixed -- Fix API key in quickstart example. [#2171](https://github.com/CartoDB/carto.js/pull/2171) - -### Removed -- Remove Gemfile (compass). [#1909](https://github.com/CartoDB/carto.js/issues/1909) - -## 4.0.16 - 2018-07-10 -### Added -- Source filters: added new feature for filtering sources. [#2141](https://github.com/CartoDB/carto.js/issues/2141) - -## 4.0.15 - 2018-07-06 -### Fixed -- Allow multiple CARTO.js clients using Google Maps. [#2132](https://github.com/CartoDB/carto.js/issues/2132) - -## 4.0.14 - 2018-07-06 -### Fixed -- Dataviews: fix removeDataview not stopping fetching data [#2119](https://github.com/CartoDB/carto.js/issues/2119) - -## 4.0.13 - 2018-07-06 -### Added -- Add metrics to map instantiation. [#2139](https://github.com/CartoDB/carto.js/issues/2139) - -## 4.0.12 - 2018-07-05 -### Changed -- Debounced map instantiation. [#2140](https://github.com/CartoDB/carto.js/issues/2140) - -## 4.0.11 - 2018-07-05 -### Fixed -- Fix interactivity when only 'cartodb_id' is selected. [#2089](https://github.com/CartoDB/carto.js/issues/2089) - -## 4.0.10 - 2018-07-04 -### Added -- Dataviews: added century and millennium aggregations. [#2162](https://github.com/CartoDB/carto.js/issues/2162) -- Document new time series aggregations. [#2163](https://github.com/CartoDB/carto.js/issues/2163) - -## 4.0.9 - 2018-07-02 -### Added -- Add options as input argument to the getLeafletLayer() method. [#2125](https://github.com/CartoDB/carto.js/issues/2125) -- Add hexagon aggregation example. [#2151](https://github.com/CartoDB/carto.js/pull/2151) -- Improve structure of contents. [#2137](https://github.com/CartoDB/carto.js/pull/2137) - -### Fixed -- Docs: fix Getting Started links. [#2144](https://github.com/CartoDB/carto.js/pull/2144) -- Docs: replace 'YOUR_API_KEY' with 'default_public' in examples. [#2136](https://github.com/CartoDB/carto.js/pull/2136) -- Docs: update CDN URL in reference documentation. [#2128](https://github.com/CartoDB/carto.js/pull/2128) - -## 4.0.8 - 2018-06-04 -### Fixed -- Google Maps examples were not working on iOS. [#1995](https://github.com/CartoDB/carto.js/issues/1995) - -## 4.0.7 - 2018-06-04 -### Changed -- Update gmaps to v3.32 in v4. [#2126](https://github.com/CartoDB/carto.js/pull/2126) - -### Fixed -- Remove upper limit on Google Maps dependency. -- Small typo fixes for dev center docs. [#2124](https://github.com/CartoDB/carto.js/pull/2124) - -## 4.0.6 - 2018-05-11 -### Fixed -- Fix remove layers. [#2116](https://github.com/CartoDB/carto.js/pull/2116) - -## 4.0.5 - 2018-05-10 -- Internal fixes. - -## 4.0.4 - 2018-05-09 -- Internal fixes. - -## 4.0.3 - 2018-05-04 -### Changed -- Update zera version. [#2109](https://github.com/CartoDB/carto.js/pull/2109) - -## 4.0.2 - 2018-04-27 -### Fixed -- Add missing dependencies to release package. [#2108](https://github.com/CartoDB/carto.js/pull/2108) -- Ugrade zera to fix fractional zoom levels. [#2104](https://github.com/CartoDB/carto.js/pull/2104) - -## 4.0.1 - 2018-04-25 -### Changed -- Upgrading carto.js to gmaps v3.31. [#2067](https://github.com/CartoDB/carto.js/issues/2067) - -## 4.0.0 - 2018-04-17 -First public release of CARTO.js library -### Added -- New programmatic API -- New sources: Dataset, SQL -- New styles: CartoCSS -- New layers: Layer (Tile Layer) -- New metadata: Buckets, Categories -- New dataviews: Formula, Category, Histogram, TimeSeries -- New filters: BoundingBox, BoundingBoxLeaflet, BoundingBoxGoogleMaps -- Server aggregation options for layers -- Multiple clients support -- Return native Leaflet and Google Maps layers -- Manage layers interactivity -- Granular error management -- Publish to npm and CDN -- Public documentation within the repo -- Examples and documentation diff --git a/carto.js/CHANGELOG_INTERNAL.md b/carto.js/CHANGELOG_INTERNAL.md deleted file mode 100644 index b217ffe..0000000 --- a/carto.js/CHANGELOG_INTERNAL.md +++ /dev/null @@ -1,160 +0,0 @@ -# Changelog internal - -This file contains all the changes in the **internal bundle** (used by Builder). Each change corresponds to a **pre-release version**. - -All the changes that affects the public bundle should be released as *patch* or *minor* and be included in the main Changelog. - -## 4.1.12-1 - 2019-08-06 -- Attributions widget: prevent autocollapsing and fix button bug [#2236](https://github.com/CartoDB/carto.js/pull/2236) - -## 4.1.12-0 - 2019-08-02 -- Change attribution character and toggle widget based on container [#2235](https://github.com/CartoDB/carto.js/pull/2235) - -## 4.1.11-0 - 2019-01-22 -- Enable search box geocoder provider selection [#2224](https://github.com/CartoDB/carto.js/pull/2224) - -## 4.1.10-0 - 2019-01-16 -- Change Mapbox geocoder URL to permanent one [#2221](https://github.com/CartoDB/carto.js/pull/2221) - -## 4.1.1-0 - 2018-07-13 -- Use setView instead of flyTo to improve zoom transitions. [#2178](https://github.com/CartoDB/carto.js/pull/2178) - -## 4.0.18-0 - 2018-07-12 -- Fix torque layers when analysis are applied. [#2175](https://github.com/CartoDB/carto.js/pull/2175) - -## 4.0.11-1 - 2018-07-05 -- Transpile ES6 code through Babel in Webpack 4. [#2155](https://github.com/CartoDB/carto.js/pull/2155) - -## 4.0.11-0 - 2018-07-05 -- Fix gradient legends margin. [#2166](https://github.com/CartoDB/carto.js/pull/2166) - -## 4.0.9-2 - 2018-06-29 -- Add new CARTO logo. [#2159](https://github.com/CartoDB/carto.js/pull/2159) - -## 4.0.9-1 - 2018-06-29 -- Fix choropleth legends margin. [#2157](https://github.com/CartoDB/carto.js/pull/2157) - -## 4.0.9-0 - 2018-06-19 -- Fix margins on legends. [#2143](https://github.com/CartoDB/carto.js/pull/2143) - -## 4.0.7-3 - 2018-05-24 -- Send empty string when url can not be build. [#2122](https://github.com/CartoDB/carto.js/issues/2122) - -## 4.0.7-2 - 2018-05-21 -- Avoid problems with cancelled requests in dataviews. [#2118](https://github.com/CartoDB/carto.js/pull/2118) - -## 4.0.7-1 - 2018-05-21 -- Fix legends paddings / margins. [#2121](https://github.com/CartoDB/carto.js/pull/2121) - -## 4.0.7-0 - 2018-05-17 -- Rename package to internal-carto.js. [#2120](https://github.com/CartoDB/carto.js/pull/2120) - -## 4.0.5 - 2018-05-10 -- Add new methods to cartoDB layer. [#2111](https://github.com/CartoDB/carto.js/pull/2111) - -## 4.0.4 - 2018-05-09 -- Fix layer legends margin. [#2112](https://github.com/CartoDB/carto.js/pull/2112) - -## 4.0.1-1 - 2018-04-24 -- Better popups with just images on IE and Edge. [#2105](https://github.com/CartoDB/carto.js/pull/2105) - -## 4.0.0-2 - 2018-04-24 -- Fix embed legends margin -- Enable stale bot - -## 4.0.0-beta.41 - 2018-04-17 -- Adapt to Auth API errors -- Change API menu GIF. -- Add usage box to CARTO.js examples - -## 4.0.0-beta.40 - 2018-04-12 -- Minor adjustments to legends style -- V4 docs final review -- add tip about authorization system -- Update README and CHANGELOG - -## 4.0.0-beta.39 - 2018-03-28 -- Added example for the url server parameter -- Unify engine mock - -## 4.0.0-beta.38 - 2018-03-23 -- Move template2x decision to leaflet rendering - -## 4.0.0-beta.37 - 2018-03-23 -- Propagate API keys to dataviews in public API - -## 4.0.0-beta.35 - 2018-03-19 -- Add hasBeenFetched flag to histogram - -## 4.0.0-beta.34 - 2018-03-14 -- Re-render legends when layers order is changed - -## 4.0.0-beta.33 - 2018-03-05 -- Suppress horizontal scroll in legends. Fixes IE11 - -## 4.0.0-beta.32 - 2018-02-26 -- Fix legends - -## 4.0.0-beta.31 - 2018-02-23 -- Hot size legends are broken. - -## 4.0.0-beta.29 - 2018-02-23 -- prepare shield-placement-keyword CartoCSS property - -## 4.0.0-beta.28 - 2018-02-21 -- 2046 move docs - -## 4.0.0-beta.27 - 2018-02-21 -- Adjust styles mobile view embed maps [WIP] - -## 4.0.0-beta.26 - 2018-02-20 -- add marker size to layer cartocss props to reinstantiate torque map - -## 4.0.0-beta.24 - 2018-02-15 -- Freeze GMaps script version -- Warn instead of error if no API key -- Fix popup examples for polygons -- Revert "Hide aggregation from public api" (#2029) -- Added server aggregation validation #2032 -- Check parameters when creating bounding box filters. #2003 - -## 4.0.0-beta.23 - 2018-02-06 -- Update all examples to Leaflet1.3.1 -- remove unnecessary`sync_on_data_change` #2036 - -## 4.0.0-beta.22 - 2018-02-01 -- Use retina url in high resolution screens - -## 4.0.0-beta.21 - 2018-02-01 -- Set Leaflet zoomAnimationThreshold to 1000 (internal only) -- Define layers order - -## 4.0.0-beta.20 - 2018-02-01 -- Remove tangram support - -## 4.0.0-beta.19 - 2018-02-01 -- Examples feedback -- 2011 autogenerate changelog - -## 4.0.0-beta.18 - 2018-01-31 -- Override scrollwheel if it's boolean - -## 4.0.0-beta.17 - 2018-01-30 -- 5067 add mapbox geocoder - -## 4.0.0-beta.16 - 2018-01-30 -- Append legends view if js-embed-legends is found - -## 4.0.0-beta.15 - 2018-01-29 -- Remove category value stringify - -## 4.0.0-beta.14 - 2018-01-19 -- Merge pull request #2017 from CartoDB/11341-add-dblclick-event -- 11341 add dblclick event - -## 4.0.0-beta.13 - 2018-01-18 -- add layer zoom options (#2002) -- Add aggregation options to layer constructor (#2010) - -## 4.0.0-beta.12 - 2018-01-18 -- Allow custom IDs in layers (#2000) diff --git a/carto.js/Gruntfile.js b/carto.js/Gruntfile.js deleted file mode 100644 index 4f06b43..0000000 --- a/carto.js/Gruntfile.js +++ /dev/null @@ -1,155 +0,0 @@ -var _ = require('underscore'); -var jasmineCfg = require('./grunt/tasks/jasmine'); - -function getTargetDiff () { - // Detect changed files. If no changes return '.' (all files) - var target = require('child_process').execSync('(git diff --name-only --relative || true;)' + - '| grep \'\\.js\\?$\' || true').toString(); - if (target.length === 0) { - target = ['.']; - } else { - target = target.split('\n'); - target.splice(-1, 1); - } - return target; -} - -/** - * Grunfile runner file for CARTO.js - * framework - * - */ -module.exports = function (grunt) { - require('load-grunt-tasks')(grunt); - require('time-grunt')(grunt); - var semver = require('semver'); - - var version = grunt.file.readJSON('package.json').version; - - if (!version || !semver.valid(version)) { - grunt.fail.fatal('package.json version is not valid', 1); - } - - grunt.initConfig({ - secrets: {}, - dist: 'dist', - tmp: '.tmp', - version: version, - gitinfo: {}, - browserify: require('./grunt/tasks/browserify').task(), - exorcise: require('./grunt/tasks/exorcise').task(), - s3: require('./grunt/tasks/s3').task(version), - fastly: require('./grunt/tasks/fastly').task(), - sass: require('./grunt/tasks/scss').task(), - watch: require('./grunt/tasks/watch').task(), - connect: require('./grunt/tasks/connect').task(), - copy: require('./grunt/tasks/copy').task(), - clean: require('./grunt/tasks/clean').task(), - concat: require('./grunt/tasks/concat').task(), - terser: require('./grunt/tasks/terser').task(), - usebanner: require('./grunt/tasks/usebanner').task(), - cssmin: require('./grunt/tasks/cssmin').task(), - imagemin: require('./grunt/tasks/imagemin').task(), - jasmine: jasmineCfg, - eslint: { target: getTargetDiff() } - }); - - grunt.registerTask('publish_s3', function (target) { - if (!grunt.file.exists('secrets.json')) { - grunt.fail.fatal('secrets.json file does not exist, copy secrets.example.json and rename it', 1); - } - - // Read secrets - grunt.config.set('secrets', grunt.file.readJSON('secrets.json')); - - if (!grunt.config('secrets') || - !grunt.config('secrets').AWS_USER_S3_KEY || - !grunt.config('secrets').AWS_USER_S3_SECRET || - !grunt.config('secrets').AWS_S3_BUCKET - ) { - grunt.fail.fatal('S3 keys not specified in secrets.json', 1); - } - - grunt.task.run([ - 's3' - ]); - }); - - grunt.registerTask('invalidate', function () { - if (!grunt.file.exists('secrets.json')) { - grunt.fail.fatal('secrets.json file does not exist, copy secrets.example.json and rename it', 1); - } - - // Read secrets - grunt.config.set('secrets', grunt.file.readJSON('secrets.json')); - - if (!grunt.config('secrets') || - !grunt.config('secrets').FASTLY_API_KEY || - !grunt.config('secrets').FASTLY_CARTODB_SERVICE - ) { - grunt.fail.fatal('Fastly keys not specified in secrets.json', 1); - } - - grunt.task.run([ - 'fastly' - ]); - }); - - grunt.registerTask('preWatch', function () { - grunt.config('doWatchify', true); // required for browserify to use watch files instead - }); - - grunt.registerTask('build-jasmine-specrunners', _ - .chain(jasmineCfg) - .keys() - .map(function (name) { - return ['jasmine', name, 'build'].join(':'); - }) - .value()); - - // Define tasks order for each step as if run in isolation, - // when registering the actual tasks _.uniq is used to discard duplicate tasks from begin run - var allDeps = [ - 'clean:dist_internal', - 'gitinfo', - 'copy:fonts' - ]; - var css = allDeps - .concat([ - 'sass', - 'concat', - 'cssmin', - 'imagemin' - ]); - var js = allDeps - .concat([ - 'browserify', - 'build-jasmine-specrunners' - ]); - var buildJS = allDeps - .concat(js) - .concat([ - 'exorcise', - 'terser', - 'usebanner' - ]); - var devJS = allDeps - .concat('preWatch') - .concat(js); - var watch = [ - 'connect', - 'watch' - ]; - - grunt.registerTask('default', [ 'build' ]); - grunt.registerTask('build', _.uniq(buildJS.concat(css))); - grunt.registerTask('build:js', _.uniq(buildJS)); - grunt.registerTask('build:css', _.uniq(css)); - grunt.registerTask('test', _.uniq(js.concat([ - 'eslint', - 'jasmine' - ]))); - grunt.registerTask('dev', _.uniq(css.concat(devJS).concat(watch))); - grunt.registerTask('dev:css', _.uniq(css.concat(watch))); - grunt.registerTask('dev:js', _.uniq(devJS.concat(watch))); -}; diff --git a/carto.js/LICENSE b/carto.js/LICENSE deleted file mode 100644 index ce08618..0000000 --- a/carto.js/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, CARTO -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/carto.js/README.md b/carto.js/README.md deleted file mode 100644 index dcae05e..0000000 --- a/carto.js/README.md +++ /dev/null @@ -1,113 +0,0 @@ -# 调试 - -``` -rm -rf node_modules/internal-carto.js/ && npm i && bundle exec grunt - -``` - - -# CARTO.js 4 - -CARTO.js is a JavaScript library to create custom location intelligence applications that leverage the power of [CARTO](https://carto.com/). It is the library that powers [Builder](https://carto.com/builder/) and it is part of the [Engine](https://carto.com/pricing/engine/) ecosystem. - -## Getting Started - -The best way to get started is to navigate through the CARTO.js documentation site: - -- [Guide](https://carto.com/developers/carto-js/guides/quickstart/) will give you a good overview of the library. -- [API Reference](https://carto.com/developers/carto-js/reference/) will help you use a particular class or method. -- [Examples](https://carto.com/developers/carto-js/examples/) will demo some specific features. -- [Support](https://carto.com/developers/carto-js/support/) might answer some of your questions. - -## Versioning - -We use [SemVer](http://semver.org/) for versioning. - -Please refer to [CHANGELOG.md](CHANGELOG.md) for a list of notables changes for each version of the library. - -You can also see the [tags on this repository](https://github.com/CartoDB/carto.js/tags). - -## Submitting Contributions - -You will need to sign a Contributor License Agreement (CLA) before making a submission. [Learn more here.](https://carto.com/contributions/) - -## License - -This project is licensed under the BSD 3-clause "New" or "Revised" License - see the [LICENSE.txt](LICENSE.txt) file for details. - -## Documentation - -### API Reference - -Run `npm run docs` to build the API reference documentation from jsdoc annotations. - -Once the task is done, you can visit `docs/public/index.html` to check the reference - -### General documentation - -You can read the general documentation that is published at [https://carto.com/developers/carto-js/](https://carto.com/developers/carto-js/) also in this repo. They are written in Markdown. - -Warning: internal links in these documents don't work. They are replaced when the documentation is published in [https://carto.com/](https://carto.com/developers/carto-js/) - - -#### Guides - -The folder `docs/guides` contains general information about the CARTO.js library. - -- Quickstart: get started quickly following this tutorial. -- Upgrade considerations: if you have experience with previous versions of CARTO.js, this is the place to learn the differences between the former library and the newest one. -- Glossary: terms that appear throughout the documentation. - -#### Examples - -In the folder `examples/public` you can find several folders with example for every feature of CARTO.js. - -#### Reference topics - -The document `docs/reference/topics.md` contains general considerations when working with CARTO.js. It's advisable to read them before diving in the API reference. - -#### Support - -The folder `docs/support` contains several document with support documentation: support options, FAQs, error messages... - -## Development - -### Run the tests - -``` -npm test -``` - -### Build the library - -``` -npm run build -``` - -To watch the files - -``` -npm run build:watch -``` - -### Generate the docs - -``` -npm run docs -``` - -### Release version - -``` -npm run bump -``` - -To publish a release to the `CDN` and `npm` - -``` -npm run release -``` - - -## Looking for the previous version? -Previous version cartodb.js v3 it's available [here](https://github.com/CartoDB/carto.js/tree/develop) diff --git a/carto.js/SECURITY-POLICY.md b/carto.js/SECURITY-POLICY.md deleted file mode 100644 index 5c45bbe..0000000 --- a/carto.js/SECURITY-POLICY.md +++ /dev/null @@ -1,3 +0,0 @@ -Please read [security.txt](https://github.com/CartoDB/carto.js/blob/master/security.txt) to report any security vulnerabilities. We will acknowledge receipt of your vulnerability report and strive to send you regular updates about our progress. If you're curious about the status of your disclosure please feel free to email us again. - -Please refrain from requesting compensation for reporting vulnerabilities. If you want we will publicly acknowledge your responsible disclosure, once the issue is fixed. diff --git a/carto.js/config/jsdoc/index.html b/carto.js/config/jsdoc/index.html deleted file mode 100644 index f473411..0000000 --- a/carto.js/config/jsdoc/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - -
- -