mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-05 05:14:08 +01:00
build(types): disable preserveSymlinks in tsconfig
PNPM uses symlinks by default for `node_modules` (see the [`node-linker`][1] options), which doesn't work with [TypeScript's `preserveSymlinks: true`][2] setting. This meant that the `d3-transition` types were not applying properly in our code. [1]: https://pnpm.io/npmrc#node-linker [2]: https://www.typescriptlang.org/tsconfig/#preserveSymlinks
This commit is contained in:
@@ -389,7 +389,6 @@ const setupToolTips = function (element: Element) {
|
||||
// @ts-ignore - getBoundingClientRect is not part of the d3 type definition
|
||||
const rect = this.getBoundingClientRect();
|
||||
|
||||
// @ts-expect-error - Incorrect types
|
||||
tooltipElem.transition().duration(200).style('opacity', '.9');
|
||||
tooltipElem
|
||||
.text(el.attr('title'))
|
||||
@@ -399,7 +398,6 @@ const setupToolTips = function (element: Element) {
|
||||
el.classed('hover', true);
|
||||
})
|
||||
.on('mouseout', function () {
|
||||
// @ts-expect-error - Incorrect types
|
||||
tooltipElem.transition().duration(500).style('opacity', 0);
|
||||
const el = select(this);
|
||||
el.classed('hover', false);
|
||||
|
||||
Reference in New Issue
Block a user