This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useMemo } from "react"; | |
| import { GetLineSegmentsConfig } from "../util/getSplitLineSegments"; | |
| import { line } from "../util/D3ShapeFactories"; | |
| import { LinePathConfig } from "../types"; | |
| export type SplitLinePathRenderer = (renderProps: { | |
| index: number; | |
| segment: { x: number; y: number }[]; | |
| styles?: Omit<React.SVGProps<SVGPathElement>, "x" | "y" | "children">; | |
| }) => React.ReactNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { LinePathConfig } from "@visx/shape"; | |
| import { line } from "@visx/shape"; | |
| import clsx from "clsx"; | |
| import { getClosest } from "migrated/shared/helpers/getClosest"; | |
| import * as React from "react"; | |
| type PrySplitLinePathRenderer = (renderProps: { | |
| index: number; | |
| path: string; | |
| styles: Omit<React.SVGProps<SVGPathElement>, "x" | "y" | "children">; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState } from "react"; | |
| import { uniq } from "lodash"; | |
| import "./App.css"; | |
| function uniqSet(arr: unknown[]) { | |
| return Array.from(new Set(arr)); | |
| } | |
| function getRandomInt(min: number, max: number) { | |
| min = Math.ceil(min); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { LinePath, line } from "@visx/shape"; | |
| import { SplitLinePathProps } from "@visx/shape/lib/shapes/SplitLinePath"; | |
| import { Fragment } from "react"; | |
| type PerformantSplitLinePathRenderer = (renderProps: { | |
| index: number; | |
| path: string; | |
| styles?: Omit<React.SVGProps<SVGPathElement>, "x" | "y" | "children">; | |
| }) => React.ReactNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "$id": "https://zed.dev/schema/themes/v0.2.1.json", | |
| "title": "ThemeFamilyContent", | |
| "description": "The content of a serialized theme family.", | |
| "type": "object", | |
| "required": ["author", "name", "themes"], | |
| "properties": { | |
| "author": { | |
| "type": "string" |
OlderNewer