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

ol-ext

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-ext - npm Package Compare versions

Comparing version 3.2.27 to 3.2.28

10

interaction/DrawHole.js

@@ -24,3 +24,3 @@ /* Copyright (c) 2017 Jean-Marc VIGLINO,

* @param {Array<ol.layer.Vector> | function | undefined} options.layers A list of layers from which polygons should be selected. Alternatively, a filter function can be provided. default: all visible layers
* @param {Array<ol.Feature> | ol.Collection<ol.Feature> | function | undefined} options.features An array or a collection of features the interaction applies on or a function that takes a feature and a layer and returns true if the feature is a candidate
* @param {Array<ol.Feature> | ol.Collection<ol.Feature> | function | undefined} options.featureFilter An array or a collection of features the interaction applies on or a function that takes a feature and a layer and returns true if the feature is a candidate
* @param { ol.style.Style | Array<ol.style.Style> | StyleFunction | undefined } Style for the selected features, default: default edit style

@@ -64,6 +64,6 @@ */

// Features to apply on
if (typeof(options.features) === 'function') {
this._features = options.features;
} else if (options.features) {
var features = options.features;
if (typeof(options.featureFilter) === 'function') {
this._features = options.featureFilter;
} else if (options.featureFilter) {
var features = options.featureFilter;
this._features = function(f) {

@@ -70,0 +70,0 @@ if (features.indexOf) {

@@ -20,2 +20,3 @@ /* Copyright (c) 2016 Jean-Marc VIGLINO,

* @param {any} options
* @param {function} [options.filter] a function that takes a feature and a layer and return true if the feature can be modified
* @param {ol.layer.Vector | Array<ol.layer.Vector>} options.layers list of feature to transform

@@ -38,2 +39,3 @@ * @param {ol.Collection.<ol.Feature>} options.features collection of feature to transform

this._filter = options.filter;
// Collection of feature to transform

@@ -77,2 +79,3 @@ this.features_ = options.features;

var current;
if (self._filter && !self._filter(feature, layer)) return false;
// feature belong to a layer

@@ -79,0 +82,0 @@ if (self.layers_) {

@@ -29,3 +29,3 @@ /* Copyright (c) 2016 Jean-Marc VIGLINO,

* @param {string|undefined} options.cursor cursor name to display when hovering an objet
* @param {function|undefined} opttion.filter a filter that takes a feature and return true if it can be clipped, default always split.
* @param {function|undefined} options.filter a filter that takes a feature and return true if it can be clipped, default always split.
* @param ol_style_Style | Array<ol_style_Style> | false | undefined} options.featureStyle Style for the selected features, choose false if you don't want feature selection. By default the default edit style is used.

@@ -32,0 +32,0 @@ * @param {ol_style_Style | Array<ol_style_Style> | undefined} options.sketchStyle Style for the sektch features.

{
"name": "ol-ext",
"version": "3.2.27",
"version": "3.2.28",
"description": "A set of cool extensions for OpenLayers (ol) in node modules structure",

@@ -5,0 +5,0 @@ "main": "dist/ol-ext.js",

@@ -129,3 +129,3 @@ /* Copyright (c) 2019 Jean-Marc VIGLINO,

ctx.strokeStyle = ol_color_asString(this.getStroke().getColor());
ctx.strokeWidth = this.getStroke().getWidth();
ctx.lineWidth = this.getStroke().getWidth();

@@ -132,0 +132,0 @@ var p0 = geom[0];

Sorry, the diff of this file is too big to display

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