Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nextgis/paint

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextgis/paint - npm Package Compare versions

Comparing version 0.32.0 to 1.0.0-alpha.0

index.js

46

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [0.32.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.31.0...v0.32.0) (2020-06-03)
# [1.0.0-alpha.0](https://github.com/nextgis/nextgis_frontend/compare/v0.32.0...v1.0.0-alpha.0) (2020-07-24)

@@ -15,8 +15,16 @@ **Note:** Version bump only for package @nextgis/paint

# [0.31.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.30.2...v0.31.0) (2020-05-13)
# [0.32.0](https://github.com/nextgis/nextgis_frontend/compare/v0.31.0...v0.32.0) (2020-06-03)
**Note:** Version bump only for package @nextgis/paint
# [0.31.0](https://github.com/nextgis/nextgis_frontend/compare/v0.30.2...v0.31.0) (2020-05-13)
### Features
* **cesium:** extrude3d paint option ([c4ce679](https://github.com/nextgis/nextgisweb_frontend/commit/c4ce679cd15bbc87e362048dc007a85ce42516fd))
* **cesium:** extrude3d paint option ([c4ce679](https://github.com/nextgis/nextgis_frontend/commit/c4ce679cd15bbc87e362048dc007a85ce42516fd))

@@ -27,3 +35,3 @@

## [0.30.1](https://github.com/nextgis/nextgisweb_frontend/compare/v0.30.0...v0.30.1) (2020-04-30)
## [0.30.1](https://github.com/nextgis/nextgis_frontend/compare/v0.30.0...v0.30.1) (2020-04-30)

@@ -33,3 +41,3 @@

* **ngw-kit:** extensibility increased ([77bdaf7](https://github.com/nextgis/nextgisweb_frontend/commit/77bdaf7df43124811a8847cad348fe6bdae6d1ed))
* **ngw-kit:** extensibility increased ([77bdaf7](https://github.com/nextgis/nextgis_frontend/commit/77bdaf7df43124811a8847cad348fe6bdae6d1ed))

@@ -40,3 +48,3 @@

# [0.30.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.11...v0.30.0) (2020-04-23)
# [0.30.0](https://github.com/nextgis/nextgis_frontend/compare/v0.29.11...v0.30.0) (2020-04-23)

@@ -49,3 +57,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.11](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.10...v0.29.11) (2020-04-22)
## [0.29.11](https://github.com/nextgis/nextgis_frontend/compare/v0.29.10...v0.29.11) (2020-04-22)

@@ -58,3 +66,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.5](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.4...v0.29.5) (2020-04-15)
## [0.29.5](https://github.com/nextgis/nextgis_frontend/compare/v0.29.4...v0.29.5) (2020-04-15)

@@ -67,3 +75,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.4](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.3...v0.29.4) (2020-04-10)
## [0.29.4](https://github.com/nextgis/nextgis_frontend/compare/v0.29.3...v0.29.4) (2020-04-10)

@@ -76,3 +84,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.3](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.2...v0.29.3) (2020-04-02)
## [0.29.3](https://github.com/nextgis/nextgis_frontend/compare/v0.29.2...v0.29.3) (2020-04-02)

@@ -85,3 +93,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.2](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.1...v0.29.2) (2020-04-01)
## [0.29.2](https://github.com/nextgis/nextgis_frontend/compare/v0.29.1...v0.29.2) (2020-04-01)

@@ -94,3 +102,3 @@ **Note:** Version bump only for package @nextgis/paint

## [0.29.1](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.0...v0.29.1) (2020-03-30)
## [0.29.1](https://github.com/nextgis/nextgis_frontend/compare/v0.29.0...v0.29.1) (2020-03-30)

@@ -100,3 +108,3 @@

* **build:** control-container extract css ([05d96c8](https://github.com/nextgis/nextgisweb_frontend/commit/05d96c8a4f4861a666244139a5903b2deb34194b))
* **build:** control-container extract css ([05d96c8](https://github.com/nextgis/nextgis_frontend/commit/05d96c8a4f4861a666244139a5903b2deb34194b))

@@ -107,3 +115,3 @@

# [0.29.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.28.3...v0.29.0) (2020-03-22)
# [0.29.0](https://github.com/nextgis/nextgis_frontend/compare/v0.28.3...v0.29.0) (2020-03-22)

@@ -113,3 +121,3 @@

* build; eslint ([97e3b07](https://github.com/nextgis/nextgisweb_frontend/commit/97e3b07da07b57373e6861ab6e2d6f9b60a6ec2c))
* build; eslint ([97e3b07](https://github.com/nextgis/nextgis_frontend/commit/97e3b07da07b57373e6861ab6e2d6f9b60a6ec2c))

@@ -125,3 +133,3 @@

## [0.28.3](https://github.com/nextgis/nextgisweb_frontend/compare/v0.28.2...v0.28.3) (2020-03-19)
## [0.28.3](https://github.com/nextgis/nextgis_frontend/compare/v0.28.2...v0.28.3) (2020-03-19)

@@ -131,4 +139,4 @@

* **cesium:** pin paint implementation for geojson layer ([7fadb6d](https://github.com/nextgis/nextgisweb_frontend/commit/7fadb6d6f6a7ae8dfc0449ded1c1595ebba476ed))
* **paint:** implement of `match`-decision expression ([cc92624](https://github.com/nextgis/nextgisweb_frontend/commit/cc92624c45819334b6b815dc84aed9978b784b3a))
* add library `@nextgis/paint` ([99391ec](https://github.com/nextgis/nextgisweb_frontend/commit/99391ec1ac9fd80508816417d9eb2ae0fd734340))
* **cesium:** pin paint implementation for geojson layer ([7fadb6d](https://github.com/nextgis/nextgis_frontend/commit/7fadb6d6f6a7ae8dfc0449ded1c1595ebba476ed))
* **paint:** implement of `match`-decision expression ([cc92624](https://github.com/nextgis/nextgis_frontend/commit/cc92624c45819334b6b815dc84aed9978b784b3a))
* add library `@nextgis/paint` ([99391ec](https://github.com/nextgis/nextgis_frontend/commit/99391ec1ac9fd80508816417d9eb2ae0fd734340))

@@ -1,4 +0,107 @@

export * from './interfaces';
export * from './typeHelpers';
export * from './fromPaintExpression';
export * from './preparePaint';
import { Feature } from 'geojson';
import { PropertiesFilter } from '@nextgis/properties-filter';
declare interface BaesePaintTypes {
type?: PaintType;
}
export declare interface BasePaint extends BaesePaintTypes {
color?: string | Expression;
opacity?: number | Expression;
fill?: boolean;
fillColor?: string | Expression;
fillOpacity?: number | Expression;
stroke?: boolean;
strokeColor?: string | Expression;
strokeOpacity?: number | Expression;
/** stroke width TODO: rename to width **/
weight?: number | Expression;
extrude3d?: number | Expression;
}
export declare interface CirclePaint extends BasePaint {
type?: 'circle';
radius?: number | Expression;
}
export declare function createExpressionCallback(paint: VectorAdapterLayerPaint): GetPaintCallback | undefined;
export declare type Expression = [ExpressionName, ...any[]];
export declare type ExpressionName = 'get' | 'match';
export declare type GeometryPaint = PathPaint & CirclePaint & PinPaint;
export declare interface GetCustomPaintOptions extends BaesePaintTypes {
type: 'get-paint';
from: string | GetPaintFunction;
options?: any;
}
export declare interface GetPaintCallback<F = Feature> {
type?: PaintType;
(feature: F): VectorAdapterLayerPaint;
}
export declare type GetPaintFunction = (opt?: any) => VectorAdapterLayerPaint;
/**
* @deprecated use IconPaint instead
*/
export declare type IconOptions = IconPaint | PinPaint;
export declare interface IconPaint extends BaesePaintTypes {
type: 'icon';
className?: string;
html?: string;
svg?: HTMLElement;
iconSize?: [number, number];
iconAnchor?: [number, number];
}
export declare function isBasePaint(paint: Paint): paint is GeometryPaint;
export declare function isExpression(value: unknown): value is Expression;
export declare function isIcon(paint: IconOptions): paint is IconPaint;
export declare function isPaint(paint: Paint): paint is VectorAdapterLayerPaint;
export declare function isPaintCallback(paint: Paint): paint is GetPaintCallback;
export declare function isPropertiesPaint(paint: Paint): paint is PropertiesPaint;
export declare type Paint = VectorAdapterLayerPaint | GetPaintCallback | PropertiesPaint;
export declare type PaintType = 'circle' | 'path' | 'pin' | 'icon' | 'get-paint';
export declare interface PathPaint extends BasePaint {
type?: 'path';
}
export declare interface PinPaint extends BasePaint {
type?: 'pin';
size?: number | Expression;
symbol?: string | Expression;
/**
* TODO: make a selection of fonts with icons
* Place font to assets and set ASSET_PATH local or from cdn
*
* https://github.com/CesiumGS/cesium/blob/master/Source/Core/PinBuilder.js
* @defaultValue maki
*/
iconfont?: 'maki' | 'mdi' | 'md' | 'fa';
icon?: string | Expression | IconPaint;
}
export declare function preparePaint(paint: Paint, defaultPaint?: GeometryPaint, getPaintFunctions?: {
[name: string]: GetPaintFunction;
}): Paint;
export declare type PropertiesPaint = [VectorAdapterLayerPaint | undefined, ...PropertyPaint[]];
export declare type PropertyPaint = [PropertiesFilter, VectorAdapterLayerPaint];
export declare type VectorAdapterLayerPaint = CirclePaint | PathPaint | IconOptions | PinPaint | GetCustomPaintOptions;
export { }
{
"name": "@nextgis/paint",
"version": "0.32.0",
"version": "1.0.0-alpha.0",
"description": "Create style for vector layer",
"main": "lib/paint.js",
"unpkg": "lib/paint.js",
"main": "index.js",
"module": "lib/paint.esm-bundler.js",
"unpkg": "lib/paint.global.prod.js",
"jsdelivr": "lib/paint.global.prod.js",
"types": "lib/index.d.ts",
"dependencies": {
"@nextgis/properties-filter": "^0.32.0",
"@nextgis/properties-filter": "^1.0.0-alpha.0",
"geojson": "^0.5.0"
},
"devDependencies": {
"@nextgis/build-tools": "^0.32.0"
"@nextgis/build-tools": "^1.0.0-alpha.0"
},
"buildOptions": {
"name": "Paint",
"formats": [
"esm-bundler",
"esm-browser",
"cjs",
"global"
]
},
"scripts": {
"clean": "rimraf ./lib",
"dev": "npm run clean && webpack --config ./webpack.config.js --progress",
"build": "npm run dev -- --mode=production",
"prod": "npm run build",
"dev": "node ../build-tools/lib/build.js",
"prod": "npm run dev -- --release",
"lint": "eslint ./src/**/*.ts --fix --c ../../.eslintrc",

@@ -28,20 +38,16 @@ "watch": "npm run dev -- --watch"

"author": "NextGIS",
"directories": {
"lib": "lib"
},
"files": [
"index.js",
"lib"
],
"license": "LGPL-3.0",
"publishConfig": {
"registry": "http://registry.npmjs.org/"
},
"homepage": "https://github.com/nextgis/nextgis_frontend/tree/master/packages/paint#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/nextgis/nextgisweb_frontend.git"
"url": "git+https://github.com/nextgis/nextgis_frontend.git"
},
"bugs": {
"url": "https://github.com/nextgis/nextgisweb_frontend/issues"
"url": "https://github.com/nextgis/nextgis_frontend/issues"
},
"gitHead": "1aad86f16ee21b2ea87a5bfce98ecf9dad74e01f"
"gitHead": "ef19464a2682daf2ce99a1a41996eb68f4426a41"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc