# tangram-cartocss

> Transform cartocss into a draw tangram object.

Latest version **0.9.11** (published 2018-02-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install tangram-cartocss
pnpm add tangram-cartocss
yarn add tangram-cartocss
bun add tangram-cartocss
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.11 |
| Published | 2018-02-02 |
| First published | 2016-11-07 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | CARTO |
| Maintainers | alonsogarciapablo, iagolast, cartodb, algunenano, sconde, ivanmalagon, jesus-arroyo, rubenmoya, dmanzanares, enekid, oleurud, piensenpixel, csubira, dgaubert, rochoa |
| Keywords | maps, graphics, rendering, visualization, WebGL, OpenStreetMap, cartocss, carto, yaml |

## Links

- npm: https://www.npmjs.com/package/tangram-cartocss
- Repository: https://github.com/cartodb/tangram-cartocss
- Homepage: https://github.com/cartodb/tangram-cartocss#readme
- Issues: https://github.com/cartodb/tangram-cartocss/issues
- npm.io page: https://npm.io/package/tangram-cartocss

## Dependencies (2)

- [carto](https://npm.io/package/carto.md) github:cartodb/carto#master
- [tangram-reference](https://npm.io/package/tangram-reference.md) ~2.1.0

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 0.9.11 (latest) — 2018-02-02
- 0.9.10 — 2017-11-14
- 0.9.9 — 2017-10-20
- 0.9.8 — 2017-10-20
- 0.9.7 — 2017-10-20
- 0.9.6 — 2017-10-19
- 0.9.5 — 2017-10-03
- 0.9.4 — 2017-09-26
- 0.9.3 — 2017-09-26
- 0.9.2 — 2017-09-13
- 0.9.1 — 2017-09-11
- 0.9.0 — 2017-09-08
- 0.8.6 — 2017-09-08
- 0.8.5 — 2017-09-07
- 0.8.4 — 2017-09-06
- … 31 more at https://npm.io/package/tangram-cartocss/versions

## README

# [DEPRECATED] Tangram-cartocss [![Build Status](https://travis-ci.org/CartoDB/tangram-cartocss.svg?branch=master)](https://travis-ci.org/CartoDB/tangram-cartocss) ![No Maintenance Intended](https://img.shields.io/badge/No%20Maintenance%20Intended-%E2%9C%95-red.svg)

This is no longer supported.

## Installation & usage

```bash
me$ npm i tangram-cartocss
// or
me$ yarn add tangram-cartocss
```

```javascript
import CCSS from 'tangram-cartocss';
```
## API

### *CCSS* object

#### `.carto2Draw`

```javascript
const Carto = require('carto');
const CartoCSSRenderer = new Carto.RendererJS({
    reference: tangramReference,
    strict: true
});
const css = `
  #layer {
    line-dasharray: 2,3
  }`;
const layers = CartoCSSRenderer.render(css).getLayers();
console.log('\nlayerToYAML:\n', JSON.stringify(layerToYAML(layers[1], 1), null, 4));
```

## Limitations

Currently, this doesn't support texts, although Tangram supports it.

There are other limitations, but they are imposed by Tangram and tangram-reference.

---
_Source: https://npm.io/package/tangram-cartocss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
