@myoc/math 0.19.503 → 0.19.504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
  2. package/dist/types/element/src/linearElementEditor.d.ts +1 -1
  3. package/dist/types/element/src/types.d.ts +1 -1
  4. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  5. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  6. package/dist/types/excalidraw/actions/actionCanvas.d.ts +16 -16
  7. package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
  8. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
  9. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  10. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  11. package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  12. package/dist/types/excalidraw/actions/actionExport.d.ts +12 -12
  13. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  14. package/dist/types/excalidraw/actions/actionFrame.d.ts +2 -2
  15. package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
  16. package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
  17. package/dist/types/excalidraw/actions/actionMenu.d.ts +2 -2
  18. package/dist/types/excalidraw/actions/actionProperties.d.ts +5 -5
  19. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -3
  20. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  21. package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -4
  22. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
  23. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
  24. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
  25. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
  26. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
  27. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
  28. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
  29. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  30. package/dist/types/excalidraw/appState.d.ts +7 -7
  31. package/dist/types/excalidraw/components/App.d.ts +2 -1
  32. package/dist/types/excalidraw/data/blob.d.ts +12 -12
  33. package/dist/types/excalidraw/data/json.d.ts +6 -6
  34. package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
  35. package/dist/types/excalidraw/types.d.ts +21 -0
  36. package/package.json +2 -2
  37. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  38. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  39. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  40. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  41. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  42. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  43. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  44. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  45. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  46. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +0 -29
  47. package/dist/types/excalidraw/index.d.ts +0 -64
  48. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,64 +0,0 @@
1
- import React from "react";
2
- import Footer from "./components/footer/FooterCenter";
3
- import LiveCollaborationTrigger from "./components/live-collaboration/LiveCollaborationTrigger";
4
- import MainMenu from "./components/main-menu/MainMenu";
5
- import WelcomeScreen from "./components/welcome-screen/WelcomeScreen";
6
- import { useOnAppStateChange as _useOnAppStateChange } from "./hooks/useAppStateValue";
7
- import "./css/app.scss";
8
- import "./css/styles.scss";
9
- import "./fonts/fonts.css";
10
- import type { AppState, ExcalidrawProps } from "./types";
11
- /**
12
- * Stateless provider that allows `useExcalidrawAPI()` (and hooks built
13
- * on it, such as `useAppStateValue()` and `useOnAppStateChange()`) to work
14
- * outside the <Excalidraw> component tree.
15
- */
16
- export declare const ExcalidrawAPIProvider: ({ children, }: {
17
- children: React.ReactNode;
18
- }) => import("react/jsx-runtime").JSX.Element;
19
- export declare const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => import("react/jsx-runtime").JSX.Element>;
20
- export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements, } from "@excalidraw/element";
21
- export { getTextFromElements } from "@excalidraw/element";
22
- export { isInvisiblySmallElement } from "@excalidraw/element";
23
- export { defaultLang, useI18n, languages } from "./i18n";
24
- export { restoreAppState, restoreElement, restoreElements, restoreLibraryItems, } from "./data/restore";
25
- export { reconcileElements } from "./data/reconcile";
26
- export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw/utils/export";
27
- export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
28
- export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
29
- export { mergeLibraryItems, getLibraryItemsHash } from "./data/library";
30
- export { isLinearElement } from "@excalidraw/element";
31
- export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, normalizeLink, sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, getFormFactor, throttleRAF, } from "@excalidraw/common";
32
- export { mutateElement, newElementWith, bumpVersion, } from "@excalidraw/element";
33
- export { CaptureUpdateAction } from "@excalidraw/element";
34
- export { parseLibraryTokensFromUrl, useHandleLibrary } from "./data/library";
35
- export { Sidebar } from "./components/Sidebar/Sidebar";
36
- export { Button } from "./components/Button";
37
- export { Footer };
38
- export { MainMenu };
39
- export { Ellipsify } from "./components/Ellipsify";
40
- export { useEditorInterface, useStylesPanelMode, useExcalidrawAPI, ExcalidrawAPIContext, } from "./components/App";
41
- export { WelcomeScreen };
42
- export { LiveCollaborationTrigger };
43
- export { Stats } from "./components/Stats";
44
- export { DefaultSidebar } from "./components/DefaultSidebar";
45
- export { zoomToFitBounds } from "./actions/actionCanvas";
46
- export { getCommonBounds, getVisibleSceneBounds, convertToExcalidrawElements, } from "@excalidraw/element";
47
- export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@excalidraw/utils/withinBounds";
48
- export { DiagramToCodePlugin } from "./components/DiagramToCodePlugin/DiagramToCodePlugin";
49
- export { getDataURL } from "./data/blob";
50
- export { isElementLink } from "@excalidraw/element";
51
- export { Fonts } from "./fonts/Fonts";
52
- export { setCustomTextMetricsProvider } from "@excalidraw/element";
53
- export { CommandPalette } from "./components/CommandPalette/CommandPalette";
54
- export { renderSpreadsheet, tryParseSpreadsheet, isSpreadsheetValidForChartType, } from "./charts";
55
- /**
56
- * hook that subscribes to specific appState prop(s)
57
- *
58
- * @param prop - appState prop(s) to subscribe to, or a selector function.
59
- * NOTE `prop/selector` is memoized and will not change after initial render
60
- */
61
- export declare function useExcalidrawStateValue<K extends keyof AppState>(prop: K): AppState[K] | undefined;
62
- export declare function useExcalidrawStateValue<T extends keyof AppState>(props: T[]): AppState | undefined;
63
- export declare function useExcalidrawStateValue<T>(selector: (appState: AppState) => T): T | undefined;
64
- export { _useOnAppStateChange as useOnExcalidrawStateChange };
@@ -1,2 +0,0 @@
1
- declare const polyfill: () => void;
2
- export default polyfill;