Skip to content

Commit

Permalink
keep d3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Nov 5, 2024
1 parent 44587d6 commit f1f0cee
Show file tree
Hide file tree
Showing 12 changed files with 666 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-charts-vendor/.babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ module.exports = {
// - 'node_modules/d3-interpolate/src/rgb.js'
// - 'lib-vendor/d3-interpolate/src/rgb.js'
// and have an import transform like:
// - `d3-interpolate`
// - `../../d3-interpolate`
// - `d3-color` (d3 color is imported by d3-interpolate)
// - `../../d3-color`
const currentFileVendor = currentFile.replace(/^node_modules/, 'lib-vendor');
const relPathToPkg = path
.relative(path.dirname(currentFileVendor), vendorPkg)
Expand Down
5 changes: 5 additions & 0 deletions packages/x-charts-vendor/d3-color.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

// `x-charts-vendor/d3-color` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-color";
7 changes: 7 additions & 0 deletions packages/x-charts-vendor/d3-color.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

// `x-charts-vendor/d3-color` (CommonJS)
// See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-color");
6 changes: 6 additions & 0 deletions packages/x-charts-vendor/es/d3-color.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

// `x-charts-vendor/d3-color` (ESM)
// See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
//
// Our ESM package uses the underlying installed dependencies of `node_modules/d3-color`
export * from "d3-color";
13 changes: 13 additions & 0 deletions packages/x-charts-vendor/lib-vendor/d3-color/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2010-2022 Mike Bostock

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
Loading

0 comments on commit f1f0cee

Please sign in to comment.