@snap-engine/snapsort-svelte 0.1.0 → 0.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@snap-engine/snapsort-svelte",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/tfukaza/SnapEngineJS",
7
+ "directory": "assets/snapsort/svelte"
8
+ },
4
9
  "description": "Svelte components for drag-and-drop system",
5
10
  "type": "module",
6
11
  "svelte": "./src/index.ts",
@@ -20,7 +25,7 @@
20
25
  "author": "Tomoki Fukazawa",
21
26
  "license": "MIT",
22
27
  "dependencies": {
23
- "@snap-engine/snapsort": "^0.1.0"
28
+ "@snap-engine/snapsort": "^0.2.0"
24
29
  },
25
30
  "files": [
26
31
  "src",
@@ -14,6 +14,7 @@
14
14
  itemContainer.locked = locked;
15
15
  itemContainer.metadata = metadata;
16
16
  container = itemContainer;
17
+ const justifyContent = $derived(config.mainAxisAlign === "center" ? "center" : "flex-start");
17
18
  // If there's a parent container context, register this container as an item in it
18
19
  const parent: ItemContainer | Item = getContext("container");
19
20
  setContext("container", itemContainer);
@@ -35,7 +36,7 @@
35
36
 
36
37
  <div
37
38
  class="snapsort-container {className}"
38
- style="flex-direction: {config.direction}"
39
+ style="flex-direction: {config.direction}; justify-content: {justifyContent}"
39
40
  bind:this={itemContainer.element}
40
41
  >
41
42
  {@render children?.()}