Skip to content

Commit

Permalink
more tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Feb 12, 2024
1 parent 49b25b8 commit b581302
Show file tree
Hide file tree
Showing 56 changed files with 24 additions and 334 deletions.
2 changes: 1 addition & 1 deletion src/chrome/src/devtools/panel/panel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Panel from '@lib/src/pages/index';
import Panel from '@lib/pages/index';
import { createRoot } from 'react-dom/client';

type BridgeFn = <T>(code: string) => Promise<T>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { flattenTree } from 'react-accessible-treeview';
import { PixiSceneObjectType } from './utils/getPixiType';
import { properties } from './properties/properties';
import { Prop } from './properties/propertyTypes';
import { MessageType } from '@shared/index';
import { MessageType } from '../messageUtils';

export interface Pixi {
pixi: () => typeof import('pixi.js');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MessageType, convertPostMessageData } from '@shared/index';
import { MessageType, convertPostMessageData } from '../messageUtils';
import { getPixiWrapper, resetPixiState } from './devtool';
import { sceneGraphMap, updateSceneGraph } from './updateSceneGraph';
import { updateSceneStats } from './updateSceneStats';
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/src/inject/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@lib/src/detection';
import './entry';
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Container, Matrix, ObservablePoint, Point, Rectangle } from 'pixi.js';
import { PropertyPlugin } from './propertyTypes';
import { SliderProps } from '@lib/src/components/properties/slider/Slider';
import { SliderProps } from '@lib/components/properties/slider/Slider';
import { getPixiWrapper } from '../devtool';
import { Vector2Props } from '@lib/src/components/properties/number/Vector2';
import { TextProps } from '@lib/src/components/properties/text/Text';
import { SelectProps } from '@lib/src/components/properties/select/Select';
import { VectorXProps } from '@lib/src/components/properties/number/VectorX';
import { Vector2Props } from '@lib/components/properties/number/Vector2';
import { TextProps } from '@lib/components/properties/text/Text';
import { SelectProps } from '@lib/components/properties/select/Select';
import { VectorXProps } from '@lib/components/properties/number/VectorX';

export const ContainerPropsPlugin: PropertyPlugin = {
getPropValue: function (container, prop) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Mesh } from 'pixi.js';
import { ContainerPropsPlugin } from './ContainerPropsPlugin';
import { PropertyPlugin } from './propertyTypes';
import { SwitchProps } from '@lib/src/components/properties/switch/Switch';
import { SwitchProps } from '@lib/components/properties/switch/Switch';

export const MeshPropsPlugin: PropertyPlugin<Mesh> = {
...ContainerPropsPlugin,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Sprite } from 'pixi.js';
import { ContainerPropsPlugin } from './ContainerPropsPlugin';
import { PropertyPlugin } from './propertyTypes';
import { Vector2Props } from '@lib/src/components/properties/number/Vector2';
import { Vector2Props } from '@lib/components/properties/number/Vector2';

export const SpritePropsPlugin: PropertyPlugin<Sprite> = {
...ContainerPropsPlugin,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TilingSprite } from 'pixi.js';
import { ContainerPropsPlugin } from './ContainerPropsPlugin';
import { PropertyPlugin } from './propertyTypes';
import { Vector2Props } from '@lib/src/components/properties/number/Vector2';
import { Vector2Props } from '@lib/components/properties/number/Vector2';

export const TilingSpritePropsPlugin: PropertyPlugin<TilingSprite> = {
...ContainerPropsPlugin,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BasePropertyProps } from '@lib/src/components/properties/BaseProperty';
import { PropertyProps } from '@lib/src/components/properties/Properties';
import { NumberProps } from '@lib/src/components/properties/number/Number';
import { SliderProps } from '@lib/src/components/properties/slider/Slider';
import { SwitchProps } from '@lib/src/components/properties/switch/Switch';
import { BasePropertyProps } from '@lib/components/properties/BaseProperty';
import { PropertyProps } from '@lib/components/properties/Properties';
import { NumberProps } from '@lib/components/properties/number/Number';
import { SliderProps } from '@lib/components/properties/slider/Slider';
import { SwitchProps } from '@lib/components/properties/switch/Switch';
import type { Container } from 'pixi.js';

export type OmitValueChange<T extends BasePropertyProps> = Omit<T, 'value' | 'onChange'>;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Container, Text } from 'pixi.js';
import { PixiState, getPixiWrapper } from './devtool';
import { getPixiType } from './utils/getPixiType';
import { PixiState, getPixiWrapper } from './devtool';

enum RenderMode {
Bitmap = 'bitmap',
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MessageType, convertPostMessage } from '@shared/index';
import { MessageType, convertPostMessage } from '../../messageUtils';
import { getPixiWrapper } from '../devtool';

let pixiPollingInterval: number | undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<title>Pixi Example</title>
</head>
<body>
<script type="module" src="./src/main.ts"></script>
<script type="module" src="./index.ts"></script>
</body>
</html>
File renamed without changes.
12 changes: 0 additions & 12 deletions src/example/interactivity.html

This file was deleted.

106 changes: 0 additions & 106 deletions src/example/src/interactivity.ts

This file was deleted.

84 changes: 0 additions & 84 deletions src/example/src/text.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/example/text.html

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { usePixiStore } from '@lib/src/pages';
import { usePixiStore } from '@lib/pages';
import React from 'react';
import { SectionContainer, SectionHeader, Title, TitleGroup } from '../Container';
import CollapsibleComponent from '../collapsible/Collapsible';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { usePixiStore } from '@lib/src/pages';
import { usePixiStore } from '@lib/pages';
import React, { useEffect } from 'react';
import { SectionContainer, SectionHeader, Title, TitleGroup } from '../Container';
import SmoothieComponent, { TimeSeries } from '../smooth-charts/SmoothieComponent';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'react-icons/fa6';
import { SectionHeader, Title, TitleGroup } from '../Container';

import { usePixiStore } from '@lib/src/pages';
import { usePixiStore } from '@lib/pages';
import { TreeDirectory, TreeWrapper } from './styles';

type FlattenTreeData = ReturnType<typeof flattenTree>;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/src/pages/index.tsx → src/lib/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useEffect } from 'react';
import { create } from 'zustand';
import { Container } from '../components/Container';
import { SceneComponent } from '../components/scene/SceneComponent';
import { PixiState } from '../detection/devtool';
import { PixiState } from '../../chrome/src/inject/devtool';
import { checkDiff } from '../utils/checkDiff';
import './index.css';
import { Content, List, Root, Trigger } from './styles';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b581302

Please sign in to comment.