Giter Club home page Giter Club logo

leaflet-ant-path's Introduction

Leaflet Ant Path

leaflet-ant-path logo
Build Status NPM Downloads Codacy Badge npm version Bower version Greenkeeper badge

Creates a leaflet polyline with a 'ant-path' animated flux

Live demo here
example of the animation

Installing

Via NPM:

 npm install --save leaflet-ant-path 

Via Yarn:

 yarn add leaflet-ant-path

Via Bower:

 bower install leaflet-ant-path

Or just download this source code

Requirements

  • Leaflet >= 1

Browsers support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Samsung
Samsung
Opera
Opera
IE10-11, Edge => 12 >= 3 >= 8 >= 6 >= 6 >= 4 >= 10

*This list is based on the feature SVG filter

UMD compatible

Can be used with asynchronous module loaders and CommonJS packers

Using the plugin

It's just like a polyline:

    // Using the constructor...
    let antPolyline = new L.Polyline.AntPath(latlngs, options);
    
    // ... or use the factory
    antPolyline = L.polyline.antPath(latlngs, options);
    
    antPolyline.addTo(map);

Update: Using more Vectors

On this version you now can use diferent vector other than polyline, passing the factory to the option.use. Currently tested support:

// Using a polygon
const antPolygon = antPath([
  [51.509, -0.08],
  [51.503, -0.06],
  [51.51, -0.047]
], { use: L.polygon, fillColor: "red" });

// Using a circle
const antCircle = antPath(
  [51.508, -0.11],
  {
    use: L.circle
    color: 'red',
    fillColor: '#f03',
    fillOpacity: 0.5,
    radius: 500
  }
);

// Using a curve (Leaflet.curve plugin)
const antCurve = antPath([
  "M",
  [50.54136296522163, 28.520507812500004],
  
  "C",
  [52.214338608258224, 28.564453125000004],
  [48.45835188280866, 33.57421875000001],
  [50.680797145321655, 33.83789062500001],
  
  "V",
  [48.40003249610685],
  
  "L",
  [47.45839225859763, 31.201171875],
  [48.40003249610685, 28.564453125000004],
  
  "Z"
  ],
  {use: L.curve, color: "red", fill: true })

Importing

Using with ES6 imports

    import { AntPath, antPath } from 'leaflet-ant-path';
    
    // Usethe constructor...
    let antPolyline = new AntPath(latlngs, options);
    
    // ... or use the factory
    antPolyline = antPath(latlngs, options);   
    
    antPolyline.addTo(map);

Using with AMD:

require(['leaflet-ant-path'], function(AntPathModule) {
    // Use the constructor ...
    let antPolyline = new AntPathModule.AntPath(latlngs, options);
    
    // ... or use the factory
    antPolyline = AntPathModule.antPath(latlngs, options);
    
    antPolyline.addTo(map);
});

Using with browserify:

    const { AntPath, antPath } = require('leaflet-ant-path');

Parameters

The AntPath extends from the FeatureGroup and implements the Path interface. Initialise with the same options of a common Polyline, with some extra options, like the flux color.

name type example description
latlngs L.LatLng[] or Array[number, number] [ [0, 10], [-20, 0], ... ] A path (depends on vector used, default as in polyline constructor )
options Object {color: 'red', weight: 5, ...} Same as the vector choosen (default to polyline ) plus the extra options bellow
options.use Vector Layer factory Vector to use (default to L.polyline) The vector to enhance with the ant-path animation (check the compatibilty)
options.paused boolean true/false Starts with the animation paused (default: false)
options.reverse boolean true/false Defines if the flow follows or not the path order
options.hardwareAccelerated boolean true/false Makes the animation run with hardware acceleration (default: false)
options.pulseColor string #FF00FF Adds a color to the dashed flux (default: 'white')
options.delay string 120 Add a delay to the animation flux (default: 400)
options.dashArray [number, number] or string [15, 30] The size of the animated dashes (default: "10, 20"). See also the pattern

Methods

name returns description
pause() boolean Stops the animation
resume() booelan Resume the animation
reverse() this instance Reverses the animation flow
map(callback) new AntPath or extended class Iterates over the latlngs

Also have the same as the L.Polyline API and with the same behaviour. See it here.


Extras!

ES6/ES2015 features

Thinking in the new features of JavaScript, and its new way of programing, AntPath has some nicely features to work with ES6.

spreadable

When spread the path, you will receive it lat/lngs array;

    //...
    const antPathLayer = new AntPath(path, options);
    const anotherAntPath = new AntPath(path2, options);
    
    const latLngs = [...antPathLayer, ...anotherAntPath];

iterable

Use a for ... of ... to iterate over the path coordinates

for(let latLng of antPath) {
    // do something with it latLngs ...
}

extensible

You can create you custom 'class' based on the AntPath:

class CustomAntPath extends AntPath {
    //...
}

map method

AntPath has a map method as the Array, returning a new instance of AntPath (or the child class which extends it, because of its Functor property):

//New path with translated path
const newAnthPath = myAntPath.map(pos => latLng(pos.lat + 1, pos.lng + 1));

With or without polyfills

The module provide two bundles, the full one, with some es6 polyfills (loaded by default when importing) and the lighter one without the polyfills. If you're already uses the following polyfills in your project:

  • core-js/es6/symbol
  • core-js/es6/reflect

Just use the lighter version (leaflet-ant-path.es6.js). If not, just use the full bundle.

Contributing

Find any bug? Open a issue or make a PR!
Also, see the guide on how to contribute.

License

This project is under the MIT LICENSE

leaflet-ant-path's People

Contributors

banzo avatar braandl avatar dependabot[bot] avatar ebrensi avatar greenkeeper[bot] avatar ivany4 avatar moklick avatar rubenspgcavalcante avatar samanabo avatar sghaskell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet-ant-path's Issues

There is no dist version of this package

There is no dist version of this package installed by npm or downloaded from GitHub...
so that I have to run gulp pack by myself.

Thank your nice code but please release a dist. Thanks

AntPath not working on Cordova

Hi there, i have a problem with this awesome plugin, my problem show in the debugg app of monaca for android.

In the Monaca Cloud IDE the plugin works fine as you can see in this image: https://drive.google.com/open?id=0B3tg8rd1hJTcT0ViQ012dzJBX2c

But the problem is in the debugg app for android, you can see that in this image: https://drive.google.com/open?id=0B3tg8rd1hJTcOXNHVk9yQjN6Vk0

In the App Log you can see this error: https://drive.google.com/open?id=0B3tg8rd1hJTcdGljUkI2Y1lzUHM

I don't know what im doing wrong because the plugin works fine in the Cloud IDE, can you help me?

Add code snippets to the demo page

Hi, is it possible to add a simple html example page like the other leaflet plugins do? I am batteling with which javascript and css files I need to use. They all seem to be nested and referenced to each other. Also, the leaflet-ant-path-master\dev-env\index.html page doesn't seem to work.

Plugin is looking great, love to use it. Thanks

Use with bringToBack()

Hi, I would like to have a regular polyline and an antPath on the same overlay. The antPath has to be added later and should be "behind" the polyline. Here is a minimal example of what I'm trying to achieve.

var L = require('leaflet');
var antPath = require('leaflet-ant-path').AntPath;

var map = L.map('map').setView([48.8245,2.4355], 11);

var points_1 = [[48.87013489622034,2.305755615234375],[48.89180956320587,2.338714599609375],[48.87555444355432,2.379913330078125],[48.850258199721495,2.399139404296875],[48.829469576885984,2.3345947265625],[48.81048112472012,2.418365478515625],[48.8737479930069,2.4334716796875]];

var points_2 = [[48.86855408432749,2.4066925048828125],[48.88007028454358,2.3713302612304688],[48.862682060035624,2.38128662109375],[48.87758662245016,2.3191452026367188],[48.8473212003792,2.3263549804687496],[48.827661462789415,2.2528839111328125]];

var p1 = L.polyline(points_1, {color: 'red', weight: 2});

var p2 = L.polyline.antPath(points_2, {color: 'blue',
                                       opacity: 0.8,
                                       weight: 5,
                                       delay: 400,
                                       dashArray: "10, 20",
                                       pulseColor: '#FFFFFF'});

var myGroup = L.featureGroup([p1]).addTo(map);

myGroup.addLayer(p2);

// p2.bringToBack();

So far so good, the animation is working fine but the antPath is above the polyline, and as soon as I uncomment that last line, the antPath is behind all right but looses the animation.

I'm using leaflet 1.0.3 and leaflet-ant-path 0.5.0 with Firefox 52.0.1

Installation using npm

Hi,

I just tried to install this plugin using 'npm install' command.

When I test this line : 'var ant = require('leaflet-ant-path')' the build failed cause the module is not found.

After investigation :
The npm command install a built leaflet-ant-path.js in the dist directory
The package.json refer to "main":"src/plugin/main.js" which is not existing in the npm version.

At this time, i don't know if it's an issue on your side or just something that i don't understand :)

--

To make it work for testing, i replaced "main":"src/plugin/main.js" with "main": "dist/leaflet-ant-path.js" in package.json

--

Etienne

is there a leaflet.antpath.js file that vanilla JS folks like me can use?

Type:

  • question

Environment:

  • OS: Ubuntu 16.04
  • Browser: Chromium (similar to chrome)
  • Library Version: v1.0.1

I'm going to open a PR:

  • no

Description:
Hi, apologies but I'm from the vanilla JS days, and the place where I want to publish my map with your awesome plugin animating the line, is also not going to have npm etc installed. Is there a .js file that I can include in my HTML, like <script src="leaflet.antpath.js" type="text/javascript"></script> to make this work? I looked up your demo's source code but it befuddles me. I've been using leaflet and several other plugins too since a long time and there's a clear .js file to use in the other cases.

If there is one, could you put a mention of it in the readme?
Great work btw.

NPM install outdated

This plugin's version on the npm repo is a bit old, would it be possible to update it?

AntPath doesn't animate

Hi,

I'm new on AntPath, I find it really great and I want to thank you for it.
I'm not a high level Leaflet Developper, but I have a problem to animate the AntPath.

Here is a simple test I made to check if it works before coding my whole script :
`<script type="text/javascript" src="assets/js/leaflet.v2.js"></script>

<script type="text/javascript" src="assets/js/leaflet-ant-path.js"></script>

var map = L.map('mapid').setView([[48.837953,2.495499], [48.831214,2.493777]],15);

var antPolyline = new L.polyline.antPath([[48.837953,2.495499], [48.831214,2.493777]],{"delay":100,"dashArray":[5,10],"weight":5,"color":"#ff0000","pulseColor":"#FFFFFF","paused":false,"reverse":true}).addTo(map);
`

With this code, the AntPath is correctly printed, but there is no animation.
Is there something wrong ?

Thanks !

setStyle does not inherit options from antPath

Type:

  • [ x ] bug
  • feature
  • enhancement
  • question

Environment:

  • OS: macOS 10.13.6
  • Browser: Chrome Version 74.0.3729.157 (Official Build) (64-bit)
  • Library Version: 1.2.0

I'm going to open a PR:

  • [ x ] yes
  • no

Description:
When calling setStyle with no options, defaults are assigned to pause, delay and reverse instead of inheriting options from the antPath instance. This can lead to unwanted behavior.

Creating an antPath instance with the following options and calling setStyle() will reset delay to 400, reverse to false and paused to false for all layers.

const path = L.polyline.antPath(route, {
  "delay": 1000,
  "dashArray": [
    10,
    20
  ],
  "weight": 5,
  "color": "#0000FF",
  "pulseColor": "#FFFFFF",
  "paused": true,
  "reverse": true,
  "hardwareAccelerated": true
});

path.setStyle()

setStyle should inherit delay, pause and reverse from the antPath featureGroup.

delay didn't work at initial mount

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Windows N/A
  • Version: 0.6.X

Going to open a PR:

  • yes
  • no

Description:
Hi,

I'm using factory way to write antPath. With previous version 0.4.X, the delay option work well.
But when I upgrade to 0.6.X, delay didn't work at initial mount. It worked after render again.

It seems like a bug.

const antPolyline = L.polyline.antPath(latlngs, {delay : 1000});

Does anyone have this problem?

Pattern is re-adjusted when one moves the map

When the map is moved, so that not the entire path is seen on it, the pattern gets readjusted.
This has weird effects on the animation when moving the map around, or having an automated movement animation bound to the map.

I just found out, that it is dependend with the clipping of line segments.
Adding noClip: true fixes this, even though it seems dirty.

Ant animation does not support in IE browser.

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Window 10
  • Browser: IE version 11
  • Library Version: Leaflet [1.3.1], leaflet-ant-path version 2.5.6(more latest version)

I'm going to open a PR:

  • yes
  • no

Description:
[ Hi, I found that IE browser don't support antpath.js. The ant path animation do not work. May I know any solutions i can make for this bug?]

Only one flux animates at a time

I'll apologize in advance, I don't have time right now to do a full issue writeup, however I am using leaflet 0.7.3, and adding antpaths via layers, using L.polyline.antPath(); Only the first line added animates. any additional lines added via user interaction (my scripts), are still. They still render with the pulse colors, just not animating. The same function is used to create each antPath.

Curved Ant-Path

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Ubuntu 18.04 LTS
  • Browser: Firefox Quantum 61.0.1
  • Library Version: 1.1.2

I'm going to open a PR:

  • yes
  • no

Description:
Is it possible to create curved ant-paths? If not, this would be a nice feature, I tried to integrate it Ant-Path with Leaflet.Curve but never got the result I would like to have.

resume() method does not work

resume() calls _calculateAnimationSpeed(), which returns immediately if options.paused == true, so resume() doesn't work.

Test on Leaflet 1.0.0

Leaflet 0.7.x will (hopefully) be deprecated soon. Check compatibility with Leaflet 1.0.0 and optionally provide different flavours of the plugin for 0.7.x and 1.0.0.

Polyline Manipulation Support

I use polylines on my map with realtime start and endpoint moving animated through jQuery easings, this just works fine and i like the antpath for styling, however, as it extends from FeatureGroup, it does not allow modifications like the polyline to (getLatLngs, setLatLngs, latLngSplice).

I see this plugin internally draws two polylines. I could wrap the required polyline methods and apply the changes to all internal polylines. Is this a good approach or do you have a better idea?

Chris

Adding browser compatibility to the docs

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS:
  • Browser:
  • Library Version:

I'm going to open a PR:

  • yes
  • no

Description:
As discussed on #71 , some old browsers like IE11- and some Edge builds don't support CSS filter/animations on SVGs.
The idea is add this section on the docs to warn the users of the plugin, together with some information about how many users can be affected with data from https://caniuse.com

Typo in package.json

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: All
  • Browser: All
  • Library Version: 1.1.0

I'm going to open a PR:

  • yes
  • no

Description:
It seems that there's a typo in package.json (key named perDependencie instead of peerDependencies). As a result, npm does not ask to install peer packages.

Check the possibility to run over a map using preferCanvas

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: any
  • Browser: any
  • Library Version: 1.0.1

I'm going to open a PR:

  • yes
  • no

Description:
Check the possibility to run the animation inside a canvas (when using the leaflet map with the preferCanvas option).

Additional options

Add more options to:

  • Specify the speed of the crawling
  • Specify the length of the segments

Support for panes

Type:

  • bug
  • feature
  • [ x ] enhancement
  • question

Environment:

  • OS: macOS 10.13.6
  • Browser: Chrome Version 74.0.3729.157 (Official Build) (64-bit)
  • Library Version: 1.2.0

I'm going to open a PR:

  • [ x ] yes
  • no

Description:
Enhancement to add support for panes. Creating an antPath instance initializes with a default svg renderer, rendering all paths to the overlayPane. It would be ideal to pass an options object with a pane key to render in other panes. This is useful when creating panes with a custom zIndex to group/layer paths.

Remove 'dist' files from repo

Implement the well-known convention of not keeping built/compiled files in a version control system (git repo), automate builds of the code when users pull the project via npm install.

Also make sure that package.json has the right dependencies for automatically building when installing, and the built filepaths match the main section of package.json.

Reverse animation behaves incorrectly

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Any
  • Browser: Any

I'm going to open a PR:

  • yes
  • no

Description:
Initially reversed path has a class leaflet-ant-path__reverse, while toggling the reverse tries to operate class reverse, which does not exist. reverse does not affect animation, since sass is configured for leaflet-ant-path__reverse too.

Change karma for mocha and fix the tests

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS:
  • Browser:
  • Library Version:

I'm going to open a PR:

  • yes
  • no

Description:
After updating webpack to v4, and other following deps, the tests started to broke.
After analysing, I'm willing to remove karma+jasmine as the test frameworks and use mocha+chai+sinon in exchange.

Reverse animation method/option

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: All
  • Browser: All

I'm going to open a PR:

  • yes
  • no

Description:
Create a reverse-animation method and option to change the animation direction without redrawing the element in the map.

help

hi,I'm not good at english and i'm a chinese new js coder,but this plugin is amazing.i think must use it, so i think i need some help from you. The thing is i'm not good at nodejs and webpack,and when i install them,there are lots of error i'm closing crazy...,so i just want some js files for script tag in html and some APIs... no npm no webpack... so do you have some js files for me?
i kown this is too much but i really need this, so could you help me? thank you very much

Leaflet coding conventions

There are a couple of Leaflet coding conventions not followed here:

  • Subclasses of Leaflet classes should bo into the subclass namespace. i.e. instead of L.AntWalk it should be L.FeatureGroup.AntWalk (or even L.PolyLine.AntWalk since its options resemble a PolyLine more closely)
  • Add a factory function, i.e. L.featureGroup.antWalk() (note lowercase)

Amination speed varies with map width

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Windows 10
  • Browser: Chrome
  • Library Version: 1.1.2

I'm going to open a PR:

  • yes
  • no

Description:
The animation speed varies with the width of the map. Is this supposed to happen?
If you change the browser width on your example page you can see this effect.

no aniation when zoom<=0

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

I'm going to open a PR:

  • yes
  • no

Description:
When zooming out to <= 0 the animation freezes.
Zooming back to >0 the animation unfreezes.

Zoom <= 0 is useful especially when using an ImageOverlay map together with CRS.Simple coordinates.

"core " global variable is a too generic name

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: All
  • Browser: All
  • Library Version: 0.6.4

I'm going to open a PR:

  • yes
  • no

Description:
The component set "core" as a global variable override my app core global variable, it could be better to not use such a generic variable name

Cannot find module when added into HTML file.

I just run the gulp pack to get dist files and add <script src="node_modules/leaflet-ant-path/dist/leaflet-ant-path.js"></script> into my HTML, but caught an error..

some info:

  • leaflet version: 0.7.7
  • leaflet-ant-path version: 0.1.5

screen shot 2016-07-29 at 01 20 40

Continuar longitude mapa seguinte

Olá Rubens, parabéns pelo seu trabalho.
É possível com seu plugin continuar escrevendo a linha da longitude no mapa ao lado? Exemplo, tenho [54, -50], [60, 150], [70, -10]... quando chega no -10 retorna e desenha no mapa atual. Gostaria de continuar no mapa seguinte(ou em todos), como este exemplo com a linha amarela da órbita, http://www.n2yo.com/?s=28057

Obrigado,

Path dashArray is expected to be a string (Leaflet 1.0.2)

The leaflet documentation specifies that dashArray is a string (eg "5,10"), but leaflet-ant-path uses an array (eg. [5,10] ).
http://leafletjs.com/reference-1.0.2.html#path-dasharray

Using an array works in leaflet with the default (SVG) renderer but canvas renderer Canvas.js _updateDashArray throws an error when it tries to split the string. Animation doesn't work with Canvas renderer yet but it might in the future so we should make sure the settings are consistent.

polyline.antPath remove method not working

The "remove" method is not working. I can not find a way to delete a polyline with ant path. I have no errors in the javascript console to help me understand what is going on.
Leaflet 1.0.1

var myLayer= L.polyline.antPath(obj.path, 
                                        {   color: obj.strokeColor,
                                            opacity: obj.strokeOpacity,
                                            weight: obj.strokeWeight                                            
                                            ,pulseColor: obj.colorPulse,
                                            delay: obj.delay                                            
                                        }).addTo(myMap);

myLayer.pause();      // Found!
myLayer.remove();   // No found :(

"Reflect" cause problems with Internet Explorer

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Windows
  • Version: N/A

Going to open a PR:

  • yes
  • no

Description:
IE11 says that 'Reflect' is undefined and this causes fatal stop of running script.
as I know Reflect is not supported in IE
can there be workarounds?

leaflet-ant-path does not work on Safari browser for iOS

This is the error given in the Safari developer tab for the ant-path demo:

[Error] Error: o[Symbol.iterator] is not a function. (In 'o[Symbol.iterator]()', 'o[Symbol.iterator]' is undefined)
value@http://rubenspgcavalcante.github.io/leaflet-ant-path/dist/leaflet-ant-path.js:1:4761
value@http://rubenspgcavalcante.github.io/leaflet-ant-path/dist/leaflet-ant-path.js:1:3756
_layerAdd@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:2778
whenReady@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:298
addLayer@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:3115
http://rubenspgcavalcante.github.io/leaflet-ant-path/gh-src/ant-path-example.directive.js:28:33
processQueue@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:14634:30
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:14650:39
$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:15689:36
$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:15986:31
done@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10511:53
completeRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10683:15
requestLoaded@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10624:24
        (anonymous function) (angular.js:9203)
        processQueue (angular.js:14642)
        (anonymous function) (angular.js:14650)
        $digest (angular.js:15689)
        $apply (angular.js:15986)
        done (angular.js:10511)
        completeRequest (angular.js:10683)
        requestLoaded (angular.js:10624)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (favicon.ico, line 0)

I'd love to submit a fix for this myself but I don't understand ES6. But I will try anyway if nobody else does.

Possible to Apply this to Polygon Borders?

Really like this extension! It would be great to see this functionality applied to the borders of a polygon. Not sure if that is a ton of work (it probably is...) but it would be very useful to highlight a specific area.

Change Direction

Hi,

Before anything else thanks for the plugin, I would like to ask is it possible to change the direction of the animation?, I haven't see in the example that allows me to do this, thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.