open-index/open-npm huggingface dataset:
npm package: @mapd/mapd-draw
Description: A Utility Library for drawing and interacting with shapes using canvas
Author: MapD Technologies
Latest version: 1.1.0

# mapd-draw

### Table of Contents
- [Quick Start](#quick-start)
- [Synopsis](#synopsis)
- [Installation](#installation)
- [Testing and Linting](#testing-and-linting)
- [Contributing](.github/CONTRIBUTING.md)
- [License](LICENSE)

# Quick Start
```bash
npm run clean
npm install
npm run build
npm test
```

# Synopsis
2d shape drawing and interaction library using an HTML canvas 2d rendering context. Basis for lasso tool in MapD Immerse.

# Installation
```bash
npm install
npm run build
```

# Testing and Linting

Contributions to the MapD Draw library should be unit-tested and linted.

The linter can be invoked manually with

```
npm run lint
```

You can find our test suite in `/test`. Our tests are run with
```
npm test
```
npm package: @mapedispo/primeng
Description: [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/
Latest version: 16.0.3


[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng)
[![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng)
[![Actions CI](https://github.com/primefaces/primeng/workflows/NodeJS%20CI/badge.svg)](https://github.com/primefaces/primeng/actions/workflows/node.js.yml)
[![Discord Chat](https://img.shields.io/discord/557940238991753223.svg?color=7289da&label=chat&logo=discord)](https://discord.gg/gzKFYnpmCY)

[![PrimeNG Hero](https://www.primefaces.org/wp-content/uploads/2022/09/primeng-gh-readme.jpg)](https://primeng.org)

### Website

Visit the [PrimeNG Website](https://primeng.org) for general information, demos and documentation.
npm package: @mapeditor/tiled-api
Description: TypeScript definitions for the Tiled scripting API
Latest version: 1.11.0

# tiled-api

This package includes TypeScript definitions for the Tiled scripting API which
(depending on your editor support) also allow you to write simple JavaScript
scripts with automatic code completion.

## Online documentation

See: https://www.mapeditor.org/docs/scripting

## Writing a Tiled plugin with code completion in VS Code

Create a new project:

```bash
mkdir example-tiled-ts-plugin
cd example-tiled-ts-plugin
npm init
```

Install the Tiled definitions:
```bash
npm install @mapeditor/tiled-api --save-dev
```

Write your plugin and enjoy code-completion:
```js
/// <reference types="@mapeditor/tiled-api" />

const action = tiled.registerAction("CustomAction", function(action) {
    tiled.log(action.text + " was " + (action.checked ? "checked" : "unchecked"))
})

action.text = "My Custom Action"
action.checkable = true
action.shortcut = "Ctrl+K"

tiled.extendMenu("Edit", [
    { action: "CustomAction", before: "SelectAll" },
    { separator: true }
]);
```

Of course, when writing TypeScript code instead of JavaScript you also get
compilation errors instead of only syntax highlighting.
npm package: @mapeo/core
Description: Offline p2p mapping library
Latest version: 9.0.0-alpha.25

# Mapeo Core

> A local-first library for collaborating on mapping projects.

## ⚠️ Early development

This is the next version of @mapeo/core, hosted in its own repo for ease of testing.

This library isn't ready for direct use yet!

## About

Mapeo Core is a library used by the [mobile](https://github.com/digidem/mapeo-mobile) and [desktop](https://github.com/digidem/mapeo-desktop) Mapeo apps that provides the core features needed for offline-first peer to peer collaboration on mapping projects.

## Docs

To learn more about Mapeo Core see the [docs](docs/) section of this repo.

## Change log

The changes in each version are described in the [change log](CHANGELOG.md).

## Install

> **⚠️ Warning:** this package is not ready for use!

```shell
npm i digidem/mapeo-core-next
```

## Contributing

Read the [code of conduct](CODE_OF_CONDUCT.md) and the [contributing guide](CONTRIBUTING.md)

## License

[MIT](LICENSE.md)
npm package: @mapeo/mock-data
Description: Module and CLI to generate mock data for Mapeo
Author: Andrew Chou
Latest version: 5.0.0

# Mapeo Mock Data

Module and CLI to generate fake data for CoMapeo

## Installation

```sh
npm install @mapeo/mock-data
```

## Usage

### Command line API

#### `list-mapeo-schemas`

Lists the available Mapeo schemas and the corresponding available versions for each.

```sh
npx list-mapeo-schemas
```

example output:

```json
{
  "role": ["v1"],
  "projectSettings": ["v1"],
  "preset": ["v2"],
  "observation": ["v5"],
  "icon": ["v2"],
  "field": ["v2"],
  "deviceInfo": ["v1"],
  "coreOwnership": ["v1"]
}
```

#### `generate-mapeo-data`

Generates JSON-formatted Mapeo data based on [`@comapeo/schema`](https://github.com/digidem/comapeo-schema/).

- `--schema, -s`: specifies the schema to generate data for. Use the `list-mapeo-schemas` command to learn which ones are available.
- `--version, -v`: (_optional_) specifies the schema version to use for `--schema`. Uses latest version by default.
- `--count, -c`: (_optional_) specifies the number of entries to generate. Uses `1` by default.
- `--output, -o`: (_optional_) specifies a path relative to the current working directory to write the generated data to. Logs to stdout by default.

```sh
# Generate data for the specified schema
npx generate-mapeo-data --schema observation

# Generate 10 entries of data
npx generate-mapeo-data --schema observation --count 10

# Generate data using a specific schema version
npx generate-mapeo-data --schema observation --version v4

# Generate data and write to the specified output file
npx generate-mapeo-data --schema observation --output observations.json
```

### Programmatic API

#### `mapeoMockData.generate`

`(schemaName: string, opts?: { version?: string, count?: number }) => Array<MapeoDoc>`

Returns mocked data for the specified `schemaName`, where `MapeoDoc` adheres to the schema definition associated with `schemaName`. Accepts the following `opts`:

- `version`: specify the schema version to use
- `count`: specify the number of records to generate

#### `mapeoMockData.listSchemas`

`() => { [name: string]: Array<string> }`

Returns the available schemas to generate from and the corresponding versions that are available for each. Example value may look like this:

```js
{
  role: [ 'v1' ],
  projectSettings: [ 'v1' ],
  preset: [ 'v2' ],
  observation: [ 'v5' ],
  icon: [ 'v2' ],
  field: [ 'v2' ],
  deviceInfo: [ 'v1' ],
  coreOwnership: [ 'v1' ]
}
```
npm package: @mapeo/settings
Description: Settings management for Mapeo
Author: Karissa McKelvey
Latest version: 2.1.3

# @mapeo/settings

Settings manager for Mapeo.

[![Build
Status](https://travis-ci.org/digidem/mapeo-settings.svg?branch=master)](https://travis-ci.org/digidem/mapeo-settings)

```
npm install @mapeo/settings
```

### Usage

```js
var Settings = require('@mapeo/settings')

var settings = new Settings(userDataPath)
settings.importSettings(settingsFile, function (err) {
  if (err) throw err
  console.log('Settings imported!')
  var presets = settings.getSettings('presets')
  var icons = settings.getSettings('icons')
  //etc..
})
```

### API

## ```instance.getSettings(type)```

One of 'css', 'icons', 'presets', 'imagery', or 'metadata'.

## ```instance.getEncryptionKey()```

Shorthand for getting the `projectKey` from the metadata.

### Creating a Mapeo Settings file

See [Mapeo Settings Builder](https://github.com/digidem/mapeo-settings-builder)

### License

MIT