d3-3d icon indicating copy to clipboard operation
d3-3d copied to clipboard

Typings (@types)

Open ruipimentel opened this issue 6 years ago • 4 comments

Hi! First of all, thank you for the amazing lib! It's the perfect companion for D3.

I've been using the latter in an Angular 6 project and it has its Typings available at:

npm install --save-dev @types/d3

Now, it's time to turn my charts into 3D. :chart_with_upwards_trend: Is there a way to obtain Typings for D3-3D also?

Thanks in advance!

ruipimentel avatar Jul 24 '18 14:07 ruipimentel

@ruipimentel Hi, did you eventually get the types for typescript?

MariDani avatar Sep 19 '18 16:09 MariDani

@MariDani Hi!

Unfortunately I did not. Had to take a break at that project, even though I still search a solution for it from time to time.

If you ever get to find the types, please let people know about it here, ok? :D

Thanks in advance!

ruipimentel avatar Sep 19 '18 16:09 ruipimentel

Even though I still haven't found @types for D3-3D, at least I found a way to import it inside of an Angular 6 project without getting errors.

import { _3d } from 'd3-3d';

Then, instead of using it as shown on the repo's homepage (d3._3d()), just proceed to call _3d() directly.

ruipimentel avatar Oct 01 '18 19:10 ruipimentel