Giter Site home page Giter Site logo

d3-canvas-transition's People

Contributors

lsbardel avatar nikitaulshin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

d3-canvas-transition's Issues

Webpack bundling

Is there a way to bundle this plugin with d3 using Webpack?

I found a way to import some of the functions through:

import * as d3base from 'd3';
import { getSize, resolution, selectCanvas } from 'd3-canvas-transition';

const d3 = Object.assign(d3base, { getSize, resolution, selectCanvas });

But some can't be imported, because they applied to selection.prototype directly.

And I keep getting an error in the console ....attr(...).canvasResolution is not a function

clip-path not working

I have code like this:
let plot = visibleArea
.append("g")
.attr("clip-path", "url(#clip)");
visibleArea
.append("g")
.append("clipPath")
.attr("id", "clip")
.append("rect")
.attr("x", margin)
.attr("y", margin)
.attr("width", width - margin - 2axisWidth + 5)
.attr("height", height - margin - 2
axisWidth + 5);

I've found that it doesn't work when I use d3-canvas-transition and rendering to canvas.

Can it be fixed? Or maybe there is some workaround for this problem?

transition bug

There is a bug in the transition handling.
The Sobol block does not work on canvas when transition is switched on.

Wrong use Path2D fill

In src/tag/path.js
line 15 - if (fill) ctx.fill(); - this is wrong. For filling Path2D in method fill need pass current instance Path2D

Allow to select by id

Currently, selection only works with tag name and class. It does not work for ids.

zoom transfrom is not correct

After zooming, the position is offset rather than zoomed in or out according to the mouse position.
Finally using svg...

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.