chore(svelte): cleanup examples
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
type Edge,
|
type Edge,
|
||||||
type Connection
|
type Connection
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
import { CustomNode } from './CustomNode';
|
import CustomNode from './CustomNode.svelte';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodeTypes: NodeTypes = {
|
const nodeTypes: NodeTypes = {
|
||||||
colorNode: CustomNode
|
colorNode: CustomNode
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export { default as CustomNode } from './Custom.svelte';
|
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
import Sidebar from './Sidebar.svelte';
|
import Sidebar from './Sidebar.svelte';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodes = writable([
|
const nodes = writable([
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
MarkerType
|
MarkerType
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodes = writable([
|
const nodes = writable([
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
SelectionMode
|
SelectionMode
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const onPaneContextMenu = (e: any) => {
|
const onPaneContextMenu = (e: any) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log('context menu');
|
console.log('context menu');
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
type Edge
|
type Edge
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodes = writable([
|
const nodes = writable([
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
type Edge
|
type Edge
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const yNodes = 25;
|
const yNodes = 25;
|
||||||
const xNodes = 25;
|
const xNodes = 25;
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
type Node
|
type Node
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
import { DebugNode } from './DebugNode';
|
import '../../styles/style.css';
|
||||||
|
|
||||||
|
import DebugNode from './DebugNode.svelte';
|
||||||
|
|
||||||
const nodeTypes: NodeTypes = {
|
const nodeTypes: NodeTypes = {
|
||||||
default: DebugNode
|
default: DebugNode
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Handle, Position, type NodeProps } from '../../../lib/index';
|
import { Handle, Position, type NodeProps } from '../../lib/index';
|
||||||
|
|
||||||
type $$Props = NodeProps;
|
type $$Props = NodeProps;
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export { default as DebugNode } from './DebugNode.svelte';
|
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
import Sidebar from './Sidebar.svelte';
|
import Sidebar from './Sidebar.svelte';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodes = writable([
|
const nodes = writable([
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
Position
|
Position
|
||||||
} from '../../lib/index';
|
} from '../../lib/index';
|
||||||
|
|
||||||
|
import '../../styles/style.css';
|
||||||
|
|
||||||
const nodeDefaults = {
|
const nodeDefaults = {
|
||||||
sourcePosition: Position.Right,
|
sourcePosition: Position.Right,
|
||||||
targetPosition: Position.Left
|
targetPosition: Position.Left
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xyflow/system",
|
"name": "@xyflow/system",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"description": "xyflow core system that powers React Flow and Svelte Flow.",
|
"description": "xyflow core system that powers React Flow and Svelte Flow.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"node-based UI",
|
"node-based UI",
|
||||||
|
|||||||
Reference in New Issue
Block a user