repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/type.d.ts
packages/mermaid/src/type.d.ts
// eslint-disable-next-line no-var declare var injected: { version: string; includeLargeFeatures: boolean; };
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/mermaidAPI.spec.ts
packages/mermaid/src/mermaidAPI.spec.ts
import { assert, beforeEach, describe, expect, it, vi } from 'vitest'; import assignWithDepth from './assignWithDepth.js'; import type { MermaidConfig } from './config.type.js'; import mermaid from './mermaid.js'; import mermaidAPI, { appendDivSvgG, cleanUpSvgCode, createCssStyles, createUserStyles, putIntoI...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
true
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/internals.ts
packages/mermaid/src/internals.ts
import { getConfig } from './config.js'; import common from './diagrams/common/common.js'; import { log } from './logger.js'; import { insertCluster } from './rendering-util/rendering-elements/clusters.js'; import { insertEdge, insertEdgeLabel, positionEdgeLabel, } from './rendering-util/rendering-elements/edges....
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils.spec.ts
packages/mermaid/src/utils.spec.ts
import { expect, vi } from 'vitest'; import utils, { calculatePoint, cleanAndMerge, detectDirective } from './utils.js'; import assignWithDepth from './assignWithDepth.js'; import { detectType } from './diagram-api/detectType.js'; import { addDiagrams } from './diagram-api/diagram-orchestration.js'; import memoize from...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/config.spec.ts
packages/mermaid/src/config.spec.ts
import * as configApi from './config.js'; import type { MermaidConfig } from './config.type.js'; describe('when working with site config', () => { beforeEach(() => { // Resets the site config to default config configApi.setSiteConfig({}); }); it('should set site config and config properly', () => { c...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/dagre-wrapper/edgeMarker.spec.ts
packages/mermaid/src/dagre-wrapper/edgeMarker.spec.ts
/* eslint-disable @typescript-eslint/unbound-method */ import type { Mocked } from 'vitest'; import type { SVG } from '../diagram-api/types.js'; import { addEdgeMarkers } from './edgeMarker.js'; describe('addEdgeMarker', () => { const svgPath = { attr: vitest.fn(), } as unknown as Mocked<SVG>; const url = 'h...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/dagre-wrapper/blockArrowHelper.ts
packages/mermaid/src/dagre-wrapper/blockArrowHelper.ts
import type { Direction } from '../../src/diagrams/block/blockTypes.js'; const expandAndDeduplicateDirections = (directions: Direction[]) => { const uniqueDirections = new Set(); for (const direction of directions) { switch (direction) { case 'x': uniqueDirections.add('right'); uniqueDir...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/dagre-wrapper/edgeMarker.ts
packages/mermaid/src/dagre-wrapper/edgeMarker.ts
import type { SVG } from '../diagram-api/types.js'; import { log } from '../logger.js'; import type { EdgeData } from '../types.js'; /** * Adds SVG markers to a path element based on the arrow types specified in the edge. * * @param svgPath - The SVG path element to add markers to. * @param edge - The edge data obj...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/tests/util.ts
packages/mermaid/src/tests/util.ts
/* Used to convert jest's Tagged Template literals to object arrays as required by vitest. Example: Jest code ```ts it.each` str | expected ${'1d'} | ${dayjs.duration(1, 'd')} ${'2w'} | ${dayjs.duration(2, 'w')} `('should parse $str to $expected duration', ({ str, expected }) => { expect(yourFunction(str...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/imperativeState.spec.ts
packages/mermaid/src/utils/imperativeState.spec.ts
import { ImperativeState } from './imperativeState.js'; describe('createImperativeState', () => { it('should create state with values from initializer', () => { const baz = { flag: false, }; const state = new ImperativeState(() => ({ foo: undefined as number | undefined, bar: [] as str...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/base64.ts
packages/mermaid/src/utils/base64.ts
export function toBase64(str: string) { // ref: https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem const utf8Bytes = new TextEncoder().encode(str); const utf8Str = Array.from(utf8Bytes, (byte) => String.fromCodePoint(byte)).join(''); return btoa(utf8Str); }
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/subGraphTitleMargins.spec.ts
packages/mermaid/src/utils/subGraphTitleMargins.spec.ts
import { getSubGraphTitleMargins } from './subGraphTitleMargins.js'; import * as configApi from '../config.js'; describe('getSubGraphTitleMargins', () => { it('should get subgraph title margins after config has been set', () => { const config_0 = { flowchart: { subGraphTitleMargin: { top:...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/subGraphTitleMargins.ts
packages/mermaid/src/utils/subGraphTitleMargins.ts
import type { FlowchartDiagramConfig } from '../config.type.js'; export const getSubGraphTitleMargins = ({ flowchart, }: { flowchart: FlowchartDiagramConfig; }): { subGraphTitleTopMargin: number; subGraphTitleBottomMargin: number; subGraphTitleTotalMargin: number; } => { const subGraphTitleTopMargin = flow...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/lineWithOffset.ts
packages/mermaid/src/utils/lineWithOffset.ts
import type { EdgeData, Point } from '../types.js'; // We need to draw the lines a bit shorter to avoid drawing // under any transparent markers. // The offsets are calculated from the markers' dimensions. export const markerOffsets = { aggregation: 17.25, extension: 17.25, composition: 17.25, dependency: 6, ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/imperativeState.ts
packages/mermaid/src/utils/imperativeState.ts
/** * Resettable state storage. * @example * ``` * const state = new ImperativeState(() => ({ * foo: undefined as string | undefined, * bar: [] as number[], * baz: 1 as number | undefined, * })); * * state.records.foo = "hi"; * console.log(state.records.foo); // prints "hi"; * state.reset(); * consol...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/utils/sanitizeDirective.ts
packages/mermaid/src/utils/sanitizeDirective.ts
import { configKeys } from '../defaultConfig.js'; import { log } from '../logger.js'; /** * Sanitizes directive objects * * @param args - Directive's JSON */ export const sanitizeDirective = (args: any): void => { log.debug('sanitizeDirective called with', args); // Return if not an object if (typeof args !...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/types/cytoscape-cose-bilkent.d.ts
packages/mermaid/src/types/cytoscape-cose-bilkent.d.ts
declare module 'cytoscape-cose-bilkent' { const coseBilkent: any; export default coseBilkent; }
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/vite.config.ts
packages/mermaid/src/docs/vite.config.ts
import { defineConfig, searchForWorkspaceRoot } from 'vite'; import type { PluginOption, Plugin } from 'vite'; import path from 'path'; // @ts-expect-error This package has an incorrect export map. import { SearchPlugin } from 'vitepress-plugin-search'; import fs from 'fs'; import Components from 'unplugin-vue-componen...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/canonical-config.ts
packages/mermaid/src/docs/.vitepress/canonical-config.ts
import type { CanonicalUrlConfig } from './canonical-urls.js'; /** * Canonical URL configuration for Mermaid documentation * * This file contains the configuration for generating canonical URLs * for the Mermaid documentation site. */ export const canonicalConfig: CanonicalUrlConfig = { // Base URL for the Merm...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/config.ts
packages/mermaid/src/docs/.vitepress/config.ts
import type { MarkdownOptions } from 'vitepress'; import { defineConfig } from 'vitepress'; import packageJson from '../../../package.json' with { type: 'json' }; import { addCanonicalUrls } from './canonical-urls.js'; import MermaidExample from './mermaid-markdown-all.js'; const allMarkdownTransformers: MarkdownOptio...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/teamMembers.ts
packages/mermaid/src/docs/.vitepress/teamMembers.ts
/* eslint-disable @cspell/spellchecker */ export interface Contributor { name: string; avatar: string; } export interface SocialEntry { icon: string | { svg: string }; link: string; } export interface CoreTeam { name: string; // required to download avatars from GitHub github: string; avatar?: string;...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
import type { MarkdownRenderer } from 'vitepress'; const MermaidExample = (md: MarkdownRenderer) => { const defaultRenderer = md.renderer.rules.fence; if (!defaultRenderer) { throw new Error('defaultRenderer is undefined'); } md.renderer.rules.fence = (tokens, index, options, env, slf) => { const tok...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/contributors.ts
packages/mermaid/src/docs/.vitepress/contributors.ts
import contributorUsernamesJson from './contributor-names.json'; import type { CoreTeam } from './teamMembers.js'; import { knut, plainTeamMembers } from './teamMembers.js'; const contributorUsernames: string[] = contributorUsernamesJson; export const contributors = contributorUsernames.map((username) => { return {...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/canonical-urls.ts
packages/mermaid/src/docs/.vitepress/canonical-urls.ts
import type { PageData } from 'vitepress'; import { canonicalConfig } from './canonical-config.js'; /** * Configuration for canonical URL generation */ export interface CanonicalUrlConfig { /** Base URL for the site (e.g., 'https://mermaid.js.org') */ baseUrl: string; /** Whether to automatically generate cano...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/scripts/fetch-avatars.ts
packages/mermaid/src/docs/.vitepress/scripts/fetch-avatars.ts
/* eslint-disable no-console */ import { mkdir, writeFile, readFile } from 'node:fs/promises'; import { existsSync } from 'node:fs'; import { fileURLToPath } from 'url'; const pathContributors = new URL('../contributor-names.json', import.meta.url); const getAvatarPath = (name: string) => new URL(`../../public/user-...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts
packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts
/* eslint-disable no-console */ // Adapted from https://github.dev/vitest-dev/vitest/blob/991ff33ab717caee85ef6cbe1c16dc514186b4cc/scripts/update-contributors.ts#L6 import { writeFile } from 'node:fs/promises'; import { knut, plainTeamMembers } from '../teamMembers.js'; import { existsSync } from 'node:fs'; const pat...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/theme/mermaid.ts
packages/mermaid/src/docs/.vitepress/theme/mermaid.ts
import mermaid, { type MermaidConfig } from 'mermaid'; import zenuml from '../../../../../mermaid-zenuml/dist/mermaid-zenuml.core.mjs'; import tidyTreeLayout from '../../../../../mermaid-layout-tidy-tree/dist/mermaid-layout-tidy-tree.core.mjs'; import layouts from '../../../../../mermaid-layout-elk/dist/mermaid-layout-...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/theme/redirect.ts
packages/mermaid/src/docs/.vitepress/theme/redirect.ts
interface Redirect { path: string; id?: string; } /** * Extracts the base slug from the old URL. * @param link - The old URL. */ const getBaseFile = (url: URL): Redirect => { const [path, params, ...rest] = url.hash .toLowerCase() .replace('.md', '') .replace(/^#\/?/g, '') .replace(/^\.\//g, '...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts
packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts
// This file should be moved into .vitepress folder once https://github.com/vitest-dev/vitest/issues/2344 is resolved. // Update https://github.com/mermaid-js/mermaid/blob/18c27c6f1d0537a738cbd95898df301b83c38ffc/packages/mermaid/src/docs.mts#L246 once fixed import { expect, test } from 'vitest'; import { getRedirect ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/docs/.vitepress/theme/index.ts
packages/mermaid/src/docs/.vitepress/theme/index.ts
/* eslint-disable no-console */ import DefaultTheme from 'vitepress/theme'; import Contributors from '../components/Contributors.vue'; import EditorSelectionModal from '../components/EditorSelectionModal.vue'; import HomePage from '../components/HomePage.vue'; import TopBar from '../components/TopBar.vue'; import './cu...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/render.ts
packages/mermaid/src/rendering-util/render.ts
import type { SVG } from '../diagram-api/types.js'; import type { InternalHelpers } from '../internals.js'; import { internalHelpers } from '../internals.js'; import { log } from '../logger.js'; import type { LayoutData } from './types.js'; // console.log('MUST be removed, this only for keeping dev server working'); /...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/splitText.ts
packages/mermaid/src/rendering-util/splitText.ts
import type { CheckFitFunction, MarkdownLine, MarkdownWord, MarkdownWordType } from './types.js'; /** * Splits a string into graphemes if available, otherwise characters. */ export function splitTextToChars(text: string): string[] { if (Intl.Segmenter) { return [...new Intl.Segmenter().segment(text)].map((s) =...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/selectSvgElement.ts
packages/mermaid/src/rendering-util/selectSvgElement.ts
import { select } from 'd3'; import { getConfig } from '../diagram-api/diagramAPI.js'; import type { HTML, SVG } from '../diagram-api/types.js'; /** * Selects the SVG element using {@link id}. * * @param id - The diagram ID. * @returns The selected {@link SVG} element using {@link id}. */ export const selectSvgEl...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/handle-markdown-text.spec.ts
packages/mermaid/src/rendering-util/handle-markdown-text.spec.ts
import { markdownToLines, markdownToHTML } from './handle-markdown-text.js'; import { test, expect } from 'vitest'; test('markdownToLines - Basic test', () => { const input = `This is regular text Here is a new line There is some words **with a bold** section Here is a line *with an italic* section`; const expect...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/icons.ts
packages/mermaid/src/rendering-util/icons.ts
import type { ExtendedIconifyIcon, IconifyIcon, IconifyJSON } from '@iconify/types'; import type { IconifyIconCustomisations } from '@iconify/utils'; import { getIconData, iconToHTML, iconToSVG, replaceIDs, stringToIcon } from '@iconify/utils'; import { getConfig } from '../config.js'; import { sanitizeText } from '../...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/createText.spec.ts
packages/mermaid/src/rendering-util/createText.spec.ts
import { describe, expect, it } from 'vitest'; import { sanitizeText } from '../diagram-api/diagramAPI.js'; import mermaid from '../mermaid.js'; import { replaceIconSubstring } from './createText.js'; describe('replaceIconSubstring', () => { it('converts FontAwesome icon notations to HTML tags', async () => { co...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/handle-markdown-text.ts
packages/mermaid/src/rendering-util/handle-markdown-text.ts
import type { MarkedToken, Token } from 'marked'; import { marked } from 'marked'; import { dedent } from 'ts-dedent'; import type { MarkdownLine, MarkdownWordType } from './types.js'; import type { MermaidConfig } from '../config.type.js'; import { log } from '../logger.js'; /** * @param markdown - markdown to proce...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/setupViewPortForSVG.ts
packages/mermaid/src/rendering-util/setupViewPortForSVG.ts
import { configureSvgSize } from '../setupGraphViewbox.js'; import type { SVG } from '../diagram-api/types.js'; import { log } from '../logger.js'; export const setupViewPortForSVG = ( svg: SVG, padding: number, cssDiagram: string, useMaxWidth: boolean ) => { // Initialize the SVG element and set the diagram...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/splitText.spec.ts
packages/mermaid/src/rendering-util/splitText.spec.ts
import { splitTextToChars, splitLineToFitWidth, splitLineToWords } from './splitText.js'; import { describe, it, expect, vi } from 'vitest'; import type { CheckFitFunction, MarkdownLine, MarkdownWordType } from './types.js'; describe('when Intl.Segmenter is available', () => { describe('splitText', () => { it.ea...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/types.ts
packages/mermaid/src/rendering-util/types.ts
export type MarkdownWordType = 'normal' | 'strong' | 'em'; import type { MermaidConfig } from '../config.type.js'; import type { ClusterShapeID } from './rendering-elements/clusters.js'; import type { ShapeID } from './rendering-elements/shapes.js'; import type { Bounds, Point } from '../types.js'; export interface Mar...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/uid.ts
packages/mermaid/src/rendering-util/uid.ts
export class Uid { private static count = 0; id: string; href: string; public static next(name: string): Uid { return new Uid(name + ++Uid.count); } constructor(id: string) { this.id = id; this.href = `#${id}`; } toString(): string { return 'url(' + this.href + ')'; } }
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/createText.ts
packages/mermaid/src/rendering-util/createText.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ // @ts-nocheck TODO: Fix types import { select } from 'd3'; import type { MermaidConfig } from '../config.type.js'; import type { SVGGroup } from '../diagram-api/types.js'; import common, { hasKatex, renderKatexSanitized, sanitizeText } from '../diagrams/common/co...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/createGraph.ts
packages/mermaid/src/rendering-util/createGraph.ts
import { insertNode } from './rendering-elements/nodes.js'; import type { LayoutData, NonClusterNode } from './types.ts'; import type { Selection } from 'd3'; import { getConfig } from '../diagram-api/diagramAPI.js'; import * as graphlib from 'dagre-d3-es/src/graphlib/index.js'; // Update type: type D3Selection<T exte...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/cytoscape-setup.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/cytoscape-setup.ts
import cytoscape from 'cytoscape'; import coseBilkent from 'cytoscape-cose-bilkent'; import { select } from 'd3'; import { log } from '../../../logger.js'; import type { LayoutData, Node, Edge } from '../../types.js'; import type { CytoscapeLayoutConfig, PositionedNode, PositionedEdge } from './types.js'; // Inject th...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts
import type { InternalHelpers, LayoutData, RenderOptions, SVG, SVGGroup } from 'mermaid'; import { executeCoseBilkentLayout } from './layout.js'; import type { D3Selection } from '../../../types.js'; type Node = Record<string, unknown>; interface NodeWithPosition extends Node { x?: number; y?: number; domId?: s...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/cytoscape-setup.test.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/cytoscape-setup.test.ts
import { describe, it, expect, beforeEach, vi } from 'vitest'; import { addNodes, addEdges, extractPositionedNodes, extractPositionedEdges, } from './cytoscape-setup.js'; import type { Node, Edge } from '../../types.js'; // Mock cytoscape const mockCy = { add: vi.fn(), nodes: vi.fn(), edges: vi.fn(), }; ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/layout.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/layout.ts
import type { MermaidConfig } from '../../../config.type.js'; import { log } from '../../../logger.js'; import type { LayoutData } from '../../types.js'; import type { LayoutResult } from './types.js'; import { createCytoscapeInstance, extractPositionedNodes, extractPositionedEdges, } from './cytoscape-setup.js';...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/types.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/types.ts
/** * Positioned node after layout calculation */ export interface PositionedNode { id: string; x: number; y: number; [key: string]: unknown; // Allow additional properties } /** * Positioned edge after layout calculation */ export interface PositionedEdge { id: string; source: string; target: string...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/index.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/index.ts
import { render as renderWithCoseBilkent } from './render.js'; /** * Cose-Bilkent Layout Algorithm for Generic Diagrams * * This module provides a layout algorithm implementation using Cytoscape * with the cose-bilkent algorithm for positioning nodes and edges. * * The algorithm follows the unified rendering pat...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/layout.test.ts
packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/layout.test.ts
import { describe, it, expect, beforeEach, vi } from 'vitest'; import { validateLayoutData, executeCoseBilkentLayout } from './layout.js'; import type { LayoutResult } from './types.js'; import type { MindmapNode } from '../../../diagrams/mindmap/mindmapTypes.js'; import type { MermaidConfig } from '../../../config.typ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.spec.ts
packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.spec.ts
/* eslint-disable @typescript-eslint/unbound-method */ import type { SVG } from '../../diagram-api/types.js'; import type { Mocked } from 'vitest'; import { addEdgeMarkers } from './edgeMarker.js'; describe('addEdgeMarker', () => { const svgPath = { attr: vitest.fn(), } as unknown as Mocked<SVG>; const url =...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes.ts
import type { Entries } from 'type-fest'; import type { D3Selection, MaybePromise } from '../../types.js'; import type { Node, ShapeRenderOptions } from '../types.js'; import { anchor } from './shapes/anchor.js'; import { bowTieRect } from './shapes/bowTieRect.js'; import { card } from './shapes/card.js'; import { choi...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/nodes.ts
packages/mermaid/src/rendering-util/rendering-elements/nodes.ts
import { log } from '../../logger.js'; import { shapes } from './shapes.js'; import type { Node, NonClusterNode, ShapeRenderOptions } from '../types.js'; import type { SVGGroup } from '../../mermaid.js'; import type { D3Selection } from '../../types.js'; import type { graphlib } from 'dagre-d3-es'; type ShapeHandler =...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/nodes.spec.ts
packages/mermaid/src/rendering-util/rendering-elements/nodes.spec.ts
import { shapes } from './shapes.js'; import { describe, it, expect } from 'vitest'; describe('Test Alias for shapes', function () { // for each shape in docs/syntax/flowchart.md, along with its semantic name, short name, and alias name, add a test case // Process | rect | proc | rectangle it('should support ali...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.ts
packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.ts
import type { SVG } from '../../diagram-api/types.js'; import { log } from '../../logger.js'; import type { EdgeData } from '../../types.js'; /** * Adds SVG markers to a path element based on the arrow types specified in the edge. * * @param svgPath - The SVG path element to add markers to. * @param edge - The edge...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts
import type { Node } from '../../types.js'; import { select } from 'd3'; import { evaluate } from '../../../diagrams/common/common.js'; import { updateNodeBounds } from './util.js'; import createLabel from '../createLabel.js'; import intersect from '../intersect/index.js'; import { styles2String, userNodeOverrides } fr...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import { getIconSVG } from '../../icons.js'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { compileStyles, styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import { insertPolygonShape } from './insertPol...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts
import rough from 'roughjs'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import { updateNodeBounds } from './util.js'; import type { D3Selection } from '../../../types.js'; e...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses, generateFullSineWavePoints, } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import rough from 'roughjs'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import typ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/defaultMindmapNode.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/defaultMindmapNode.ts
import type { Bounds, D3Selection, Point } from '../../../types.js'; import type { Node } from '../../types.js'; import intersect from '../intersect/index.js'; import { styles2String } from './handDrawnShapeStyles.js'; import { getNodeClasses, labelHelper, updateNodeBounds } from './util.js'; export async function def...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts
import { labelHelper, getNodeClasses, updateNodeBounds } from './util.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import intersect from '../intersect/index.js'; import type { D3Selection } from '../../../type...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/mindmapCircle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/mindmapCircle.ts
import { circle } from './circle.js'; import type { Node, MindmapOptions } from '../../types.js'; import type { D3Selection } from '../../../types.js'; export async function mindmapCircle<T extends SVGGraphicsElement>( parent: D3Selection<T>, node: Node ) { const options = { padding: node.padding ?? 0, } a...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import { labelHelper, updateNodeBounds } from './util.js'; i...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/roundedRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/roundedRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import { getIconSVG } from '../../icons.js'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { compileStyles, styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts
import { updateNodeBounds } from './util.js'; import { getConfig } from '../../../diagram-api/diagramAPI.js'; import { select } from 'd3'; import type { Node } from '../../types.js'; import type { ClassNode } from '../../../diagrams/class/classTypes.js'; import rough from 'roughjs'; import { styles2String, userNodeOver...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts
import rough from 'roughjs'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { solidStateFill } from './handDrawnShapeStyles.js'; import { updateNodeBounds } from './util.js'; import type { D3Selection } from '../../../types.js'; export function sta...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/handDrawnShapeStyles.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/handDrawnShapeStyles.ts
import { getConfig } from '../../../diagram-api/diagramAPI.js'; import type { Node } from '../../types.js'; // Striped fill like start or fork nodes in state diagrams export const solidStateFill = (color: string) => { const { handDrawnSeed } = getConfig(); return { fill: color, hachureAngle: 120, // angle ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts
import { log } from '../../../logger.js'; import { updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import { handleUnd...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts
import rough from 'roughjs'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import { getNodeClasses, updateNodeBounds } from './util.js'; import type { D3Selection } from '../../...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts
import { labelHelper, getNodeClasses, updateNodeBounds } from './util.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import intersect from '../intersect/index.js'; import type { D3Selection } from '../../../type...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts
import { log } from '../../../logger.js'; import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; impor...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection } from '../../../type...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import { insertPolygonSha...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts
import { createText } from '../../createText.js'; import type { Node } from '../../types.js'; import { getConfig } from '../../../diagram-api/diagramAPI.js'; import { select } from 'd3'; import defaultConfig from '../../../defaultConfig.js'; import { evaluate, sanitizeText } from '../../../diagrams/common/common.js'; i...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import type { Bounds, D3Selection, Point } from '../../../types.js'; import { handleUndefinedAttr } from '../../../utils.js'; import type { Node } from '../../types.js'; import intersect from '../intersect/index.js'; import { styles2String, userNode...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/insertPolygonShape.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/insertPolygonShape.ts
import type { D3Selection } from '../../../types.js'; export function insertPolygonShape<T extends SVGGraphicsElement>( parent: D3Selection<T>, w: number, h: number, points: { x: number; y: number }[] ) { return parent .insert('polygon', ':first-child') .attr( 'points', points .ma...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/lightningBolt.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/lightningBolt.ts
import { log } from '../../../logger.js'; import { getNodeClasses, updateNodeBounds } from './util.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import intersect from '../intersect/index.js'; import { createPat...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts
import { labelHelper, insertLabel, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node, KanbanNode, ShapeRenderOptions } from '../../types.js'; import { createRoundedRectPathD } from './roundedRectPath.js'; import { userNodeOverrides, styles2String } fr...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts
import { log } from '../../../logger.js'; import { getNodeClasses, updateNodeBounds } from './util.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import intersect from '../intersect/index.js'; import type { D3Se...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node, RectOptions } from '../../types.js'; import { createRoundedRectPathD } from './roundedRectPath.js'; import { userNodeOverrides, styles2String } from './handDrawnShapeStyles.js'; ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/roundedRectPath.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/roundedRectPath.ts
export const createRoundedRectPathD = ( x: number, y: number, totalWidth: number, totalHeight: number, radius: number ) => [ 'M', x + radius, y, // Move to the first point 'H', x + totalWidth - radius, // Draw horizontal line to the beginning of the right corner 'A', radius, ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints, generateCirclePoints, } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'ro...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts
import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import rough from 'roughjs'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import { createPathFromPoints, getNodeClasses } from './util.js'; import type { D3Selection } from '../../../types.js'; e...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts
import { log } from '../../../logger.js'; import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; impor...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection } from '../../../type...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts
import { log } from '../../../logger.js'; import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; impor...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts
import { log } from '../../../logger.js'; import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; impor...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import { getIconSVG } from '../../icons.js'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { compileStyles, styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; ...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection } from '../../../type...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints, generateFullSineWavePoints, } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import rough from 'roughjs'; import { styles2String, userNodeOverrides } from './handDrawnSha...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import { insertPolygonShape } from './insertPo...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough from 'roughjs'; import type { D3Selection...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts
import { labelHelper, updateNodeBounds, getNodeClasses, createPathFromPoints, generateFullSineWavePoints, } from './util.js'; import intersect from '../intersect/index.js'; import type { Node } from '../../types.js'; import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js'; import rough fr...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false
mermaid-js/mermaid
https://github.com/mermaid-js/mermaid/blob/d5bc07dc0c23e496b5356880dc524ca988f2d3c3/packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts
packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts
import rough from 'roughjs'; import { log } from '../../../logger.js'; import { getIconSVG } from '../../icons.js'; import type { Node, ShapeRenderOptions } from '../../types.js'; import intersect from '../intersect/index.js'; import { createRoundedRectPathD } from './roundedRectPath.js'; import { compileStyles, styles...
typescript
MIT
d5bc07dc0c23e496b5356880dc524ca988f2d3c3
2026-01-04T15:25:31.872456Z
false