mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 22:18:54 +08:00
refactor(editor): add gfx entry in bs global package (#10612)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { Color } from '@blocksuite/affine-model';
|
||||
import { on, once, stopPropagation } from '@blocksuite/affine-shared/utils';
|
||||
import { clamp, SignalWatcher, WithDisposable } from '@blocksuite/global/utils';
|
||||
import { clamp } from '@blocksuite/global/gfx';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/global/utils';
|
||||
import { batch, computed, signal } from '@preact/signals-core';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// https://www.w3.org/TR/css-color-4/
|
||||
|
||||
import type { Color, ColorScheme } from '@blocksuite/affine-model';
|
||||
import { clamp } from '@blocksuite/global/utils';
|
||||
import { clamp } from '@blocksuite/global/gfx';
|
||||
|
||||
import { COLORS, FIRST_COLOR } from './consts.js';
|
||||
import type {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { clamp, WithDisposable } from '@blocksuite/global/utils';
|
||||
import { clamp } from '@blocksuite/global/gfx';
|
||||
import { WithDisposable } from '@blocksuite/global/utils';
|
||||
import { isSameDay, isSameMonth, isToday } from 'date-fns';
|
||||
import {
|
||||
html,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Rect } from '@blocksuite/global/utils';
|
||||
import { type Rect } from '@blocksuite/global/gfx';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { property, state } from 'lit/decorators.js';
|
||||
import { styleMap } from 'lit/directives/style-map.js';
|
||||
|
||||
@@ -14,8 +14,9 @@ import {
|
||||
} from '@blocksuite/block-std';
|
||||
import { SurfaceBlockModel } from '@blocksuite/block-std/gfx';
|
||||
import { createIdentifier } from '@blocksuite/global/di';
|
||||
import type { IVec } from '@blocksuite/global/utils';
|
||||
import { Point, throttle } from '@blocksuite/global/utils';
|
||||
import type { IVec } from '@blocksuite/global/gfx';
|
||||
import { Point } from '@blocksuite/global/gfx';
|
||||
import { throttle } from '@blocksuite/global/utils';
|
||||
import type { BlockModel, ExtensionType } from '@blocksuite/store';
|
||||
import { computed, signal } from '@preact/signals-core';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user