Niekes / d3-3d

d3-3d is a powerful JavaScript library designed for 3D visualizations, specifically tailored to work seamlessly with d3.js. This library enables the projection of 3D data onto web browsers, making it an essential tool for developers interested in creating immersive and dynamic visualizations.
BSD 3-Clause "New" or "Revised" License
351 stars 34 forks source link

Typings (@types) #8

Open ruipimentel opened 6 years ago

ruipimentel commented 6 years ago

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!

MariDani commented 5 years ago

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

ruipimentel commented 5 years ago

@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 commented 5 years ago

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.

aminya commented 1 month ago

I created a pull request that fixes the issue https://github.com/Niekes/d3-3d/pull/29

aminya commented 1 week ago

I upstreamed my pull request to @types. The types is available under @types/d3-3d.

https://www.npmjs.com/package/@types/d3-3d

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70087