Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Conversation

@d9m0n4
Copy link
Contributor

@d9m0n4 d9m0n4 commented Feb 16, 2025

No description provided.

@vercel
Copy link

vercel bot commented Feb 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xieffect ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 1:49pm

export const Board: React.FC = () => {
// Выбранный инструмент
const [selectedTool, setSelectedTool] = useState<ToolType>('pen');
const [stagePos, setStagePos] = useState<StagePositionT>({ x: 0, y: 0 });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не стоит ли вынести в стор? (Я сам не уверен)


const handleWheel = useWheelZoom(stageRef);

const debouncedSetStagePos = useDebounce((x, y) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вообще у нас где-то был этот хук, может стоит поискать, или вынести в общий пакет

};

export const BackgroundLayer = ({ stagePos, scaleValue }: BackgroundLayerPropsT) => {
const gridStep = 40;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выглядит как константа, которую надо вынести вне компонента


export const BackgroundLayer = ({ stagePos, scaleValue }: BackgroundLayerPropsT) => {
const gridStep = 40;
const [viewport, setViewport] = useState({ width: 0, height: 0 });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тоже насчёт стора

"private": true,
"scripts": {
"dev": "next dev --turbopack --port 3000",
"dev": "next dev --port 3000",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему тут исчез turbopack?

@unknownproperty unknownproperty merged commit 1522bbf into staging Feb 21, 2025
6 checks passed
@unknownproperty unknownproperty deleted the 45495229 branch February 21, 2025 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants