Giter Club home page Giter Club logo

Comments (8)

nick-kl4us avatar nick-kl4us commented on May 29, 2024 1

I also didn't get a response to the fact that you're using a deprecated method.

from d3-selection.

Fil avatar Fil commented on May 29, 2024 1

have you tried reproducing

I have tried and it worked for me.

from d3-selection.

Fil avatar Fil commented on May 29, 2024

what version of d3-selection are you trying to import from? pointer was added in version 2.

from d3-selection.

mbostock avatar mbostock commented on May 29, 2024

Assume this is referring to an older version, since the export is here:

export {default as pointer} from "./pointer.js";

from d3-selection.

nick-kl4us avatar nick-kl4us commented on May 29, 2024

I'm on v3, the latest you have on npm.

from d3-selection.

nick-kl4us avatar nick-kl4us commented on May 29, 2024

@mbostock have you tried reproducing before closing?
Do I need to create a plunkr for you to give this attention? @Fil

from d3-selection.

nick-kl4us avatar nick-kl4us commented on May 29, 2024

@Fil how are you importing? what syntax?

from d3-selection.

Fil avatar Fil commented on May 29, 2024

Exactly the same as your question. Maybe you're doing it in a different environment in which it doesn't work.

To be complete:

❯ cat index.mjs
import {pointer} from 'd3-selection'
console.warn(pointer);

❯ cat package.json
{
  "dependencies": {"d3-selection": "3"}
}

❯ yarn
yarn install v1.22.19
…
✨  Done in 0.03s.

❯ node index.mjs
[Function: default]

from d3-selection.

Related Issues (20)

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.