@fringeworks/style-layouts 0.0.0-stage → 0.8.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/LICENSE +21 -0
- package/README.ja.md +331 -0
- package/README.md +331 -3
- package/_constants.cjs +327 -0
- package/_constants.d.cts +237 -0
- package/_constants.d.mts +237 -0
- package/_constants.mjs +275 -0
- package/_internal/applyGap.cjs +30 -0
- package/_internal/applyGap.d.cts +12 -0
- package/_internal/applyGap.d.mts +13 -0
- package/_internal/applyGap.mjs +30 -0
- package/_internal/applyItemCount.cjs +20 -0
- package/_internal/applyItemCount.d.cts +5 -0
- package/_internal/applyItemCount.d.mts +6 -0
- package/_internal/applyItemCount.mjs +20 -0
- package/_internal/applyItemRatio.cjs +21 -0
- package/_internal/applyItemRatio.d.cts +11 -0
- package/_internal/applyItemRatio.d.mts +12 -0
- package/_internal/applyItemRatio.mjs +21 -0
- package/_internal/applyItemSize.cjs +21 -0
- package/_internal/applyItemSize.d.cts +5 -0
- package/_internal/applyItemSize.d.mts +6 -0
- package/_internal/applyItemSize.mjs +21 -0
- package/_internal/hasValue.cjs +15 -0
- package/_internal/hasValue.d.cts +8 -0
- package/_internal/hasValue.d.mts +9 -0
- package/_internal/hasValue.mjs +14 -0
- package/_internal/mergeClassName.cjs +11 -0
- package/_internal/mergeClassName.d.cts +3 -0
- package/_internal/mergeClassName.d.mts +4 -0
- package/_internal/mergeClassName.mjs +10 -0
- package/_internal/mergeLayoutResults.cjs +16 -0
- package/_internal/mergeLayoutResults.d.cts +5 -0
- package/_internal/mergeLayoutResults.d.mts +6 -0
- package/_internal/mergeLayoutResults.mjs +16 -0
- package/_internal/unit.cjs +9 -0
- package/_internal/unit.d.cts +11 -0
- package/_internal/unit.d.mts +12 -0
- package/_internal/unit.mjs +8 -0
- package/_styles.scss.cjs +1 -0
- package/_styles.scss.d.cts +1 -0
- package/_styles.scss.d.mts +1 -0
- package/_styles.scss.mjs +3 -0
- package/_types.cjs +0 -0
- package/_types.d.cts +115 -0
- package/_types.d.mts +115 -0
- package/_types.mjs +1 -0
- package/_virtual/_rolldown/runtime.cjs +29 -0
- package/balance/balance.cjs +37 -0
- package/balance/balance.d.cts +13 -0
- package/balance/balance.d.mts +14 -0
- package/balance/balance.mjs +35 -0
- package/balance/index.cjs +3 -0
- package/balance/index.d.cts +3 -0
- package/balance/index.d.mts +3 -0
- package/balance/index.mjs +3 -0
- package/balance/styles.css +131 -0
- package/balance/types.cjs +0 -0
- package/balance/types.d.cts +21 -0
- package/balance/types.d.mts +21 -0
- package/balance/types.mjs +1 -0
- package/center/center.cjs +34 -0
- package/center/center.d.cts +12 -0
- package/center/center.d.mts +13 -0
- package/center/center.mjs +32 -0
- package/center/index.cjs +3 -0
- package/center/index.d.cts +3 -0
- package/center/index.d.mts +3 -0
- package/center/index.mjs +3 -0
- package/center/styles.css +157 -0
- package/center/types.cjs +0 -0
- package/center/types.d.cts +9 -0
- package/center/types.d.mts +9 -0
- package/center/types.mjs +1 -0
- package/constants.cjs +109 -0
- package/constants.d.cts +112 -0
- package/constants.d.mts +112 -0
- package/constants.mjs +101 -0
- package/flow/flow.cjs +71 -0
- package/flow/flow.d.cts +12 -0
- package/flow/flow.d.mts +13 -0
- package/flow/flow.mjs +69 -0
- package/flow/index.cjs +3 -0
- package/flow/index.d.cts +3 -0
- package/flow/index.d.mts +3 -0
- package/flow/index.mjs +3 -0
- package/flow/styles.css +160 -0
- package/flow/types.cjs +0 -0
- package/flow/types.d.cts +21 -0
- package/flow/types.d.mts +21 -0
- package/flow/types.mjs +1 -0
- package/helpers/_internal/constants.cjs +25 -0
- package/helpers/_internal/constants.d.cts +13 -0
- package/helpers/_internal/constants.d.mts +13 -0
- package/helpers/_internal/constants.mjs +16 -0
- package/helpers/_internal/createExtractLayoutOptions.cjs +25 -0
- package/helpers/_internal/createExtractLayoutOptions.d.cts +8 -0
- package/helpers/_internal/createExtractLayoutOptions.d.mts +9 -0
- package/helpers/_internal/createExtractLayoutOptions.mjs +24 -0
- package/helpers/extractBalanceOptions.cjs +15 -0
- package/helpers/extractBalanceOptions.d.cts +5 -0
- package/helpers/extractBalanceOptions.d.mts +6 -0
- package/helpers/extractBalanceOptions.mjs +15 -0
- package/helpers/extractCenterOptions.cjs +14 -0
- package/helpers/extractCenterOptions.d.cts +6 -0
- package/helpers/extractCenterOptions.d.mts +7 -0
- package/helpers/extractCenterOptions.mjs +14 -0
- package/helpers/extractFlowOptions.cjs +15 -0
- package/helpers/extractFlowOptions.d.cts +6 -0
- package/helpers/extractFlowOptions.d.mts +7 -0
- package/helpers/extractFlowOptions.mjs +15 -0
- package/helpers/extractLayerOptions.cjs +13 -0
- package/helpers/extractLayerOptions.d.cts +6 -0
- package/helpers/extractLayerOptions.d.mts +7 -0
- package/helpers/extractLayerOptions.mjs +13 -0
- package/helpers/extractMatrixOptions.cjs +17 -0
- package/helpers/extractMatrixOptions.d.cts +5 -0
- package/helpers/extractMatrixOptions.d.mts +6 -0
- package/helpers/extractMatrixOptions.mjs +17 -0
- package/helpers/extractPackOptions.cjs +8 -0
- package/helpers/extractPackOptions.d.cts +6 -0
- package/helpers/extractPackOptions.d.mts +7 -0
- package/helpers/extractPackOptions.mjs +8 -0
- package/helpers/extractPinOptions.cjs +8 -0
- package/helpers/extractPinOptions.d.cts +6 -0
- package/helpers/extractPinOptions.d.mts +7 -0
- package/helpers/extractPinOptions.mjs +8 -0
- package/helpers/extractStackOptions.cjs +15 -0
- package/helpers/extractStackOptions.d.cts +6 -0
- package/helpers/extractStackOptions.d.mts +7 -0
- package/helpers/extractStackOptions.mjs +15 -0
- package/helpers/extractTileOptions.cjs +15 -0
- package/helpers/extractTileOptions.d.cts +6 -0
- package/helpers/extractTileOptions.d.mts +7 -0
- package/helpers/extractTileOptions.mjs +15 -0
- package/helpers/index.cjs +20 -0
- package/helpers/index.d.cts +10 -0
- package/helpers/index.d.mts +10 -0
- package/helpers/index.mjs +11 -0
- package/index.cjs +20 -0
- package/index.d.cts +20 -0
- package/index.d.mts +20 -0
- package/index.mjs +11 -0
- package/layer/index.cjs +3 -0
- package/layer/index.d.cts +3 -0
- package/layer/index.d.mts +3 -0
- package/layer/index.mjs +3 -0
- package/layer/layer.cjs +34 -0
- package/layer/layer.d.cts +13 -0
- package/layer/layer.d.mts +14 -0
- package/layer/layer.mjs +32 -0
- package/layer/styles.css +56 -0
- package/layer/types.cjs +0 -0
- package/layer/types.d.cts +13 -0
- package/layer/types.d.mts +13 -0
- package/layer/types.mjs +1 -0
- package/matrix/index.cjs +3 -0
- package/matrix/index.d.cts +3 -0
- package/matrix/index.d.mts +3 -0
- package/matrix/index.mjs +3 -0
- package/matrix/matrix.cjs +110 -0
- package/matrix/matrix.d.cts +12 -0
- package/matrix/matrix.d.mts +13 -0
- package/matrix/matrix.mjs +108 -0
- package/matrix/styles.css +141 -0
- package/matrix/types.cjs +0 -0
- package/matrix/types.d.cts +46 -0
- package/matrix/types.d.mts +46 -0
- package/matrix/types.mjs +1 -0
- package/pack/index.cjs +3 -0
- package/pack/index.d.cts +3 -0
- package/pack/index.d.mts +3 -0
- package/pack/index.mjs +3 -0
- package/pack/pack.cjs +25 -0
- package/pack/pack.d.cts +11 -0
- package/pack/pack.d.mts +12 -0
- package/pack/pack.mjs +23 -0
- package/pack/styles.css +35 -0
- package/pack/types.cjs +0 -0
- package/pack/types.d.cts +6 -0
- package/pack/types.d.mts +6 -0
- package/pack/types.mjs +1 -0
- package/package.json +52 -4
- package/pin/index.cjs +3 -0
- package/pin/index.d.cts +3 -0
- package/pin/index.d.mts +3 -0
- package/pin/index.mjs +3 -0
- package/pin/pin.cjs +23 -0
- package/pin/pin.d.cts +11 -0
- package/pin/pin.d.mts +12 -0
- package/pin/pin.mjs +23 -0
- package/pin/styles.css +19 -0
- package/pin/types.cjs +0 -0
- package/pin/types.d.cts +6 -0
- package/pin/types.d.mts +6 -0
- package/pin/types.mjs +1 -0
- package/stack/index.cjs +3 -0
- package/stack/index.d.cts +3 -0
- package/stack/index.d.mts +3 -0
- package/stack/index.mjs +3 -0
- package/stack/stack.cjs +96 -0
- package/stack/stack.d.cts +11 -0
- package/stack/stack.d.mts +12 -0
- package/stack/stack.mjs +94 -0
- package/stack/styles.css +167 -0
- package/stack/types.cjs +0 -0
- package/stack/types.d.cts +21 -0
- package/stack/types.d.mts +21 -0
- package/stack/types.mjs +1 -0
- package/styles.css +1055 -0
- package/tile/index.cjs +3 -0
- package/tile/index.d.cts +3 -0
- package/tile/index.d.mts +3 -0
- package/tile/index.mjs +3 -0
- package/tile/styles.css +181 -0
- package/tile/tile.cjs +36 -0
- package/tile/tile.d.cts +12 -0
- package/tile/tile.d.mts +13 -0
- package/tile/tile.mjs +34 -0
- package/tile/types.cjs +0 -0
- package/tile/types.d.cts +9 -0
- package/tile/types.d.mts +9 -0
- package/tile/types.mjs +1 -0
- package/types.cjs +0 -0
- package/types.d.cts +14 -0
- package/types.d.mts +14 -0
- package/types.mjs +1 -0
- package/with-css/balance/index.cjs +8 -0
- package/with-css/balance/index.d.cts +3 -0
- package/with-css/balance/index.d.mts +3 -0
- package/with-css/balance/index.mjs +8 -0
- package/with-css/center/index.cjs +8 -0
- package/with-css/center/index.d.cts +3 -0
- package/with-css/center/index.d.mts +3 -0
- package/with-css/center/index.mjs +8 -0
- package/with-css/flow/index.cjs +8 -0
- package/with-css/flow/index.d.cts +3 -0
- package/with-css/flow/index.d.mts +3 -0
- package/with-css/flow/index.mjs +8 -0
- package/with-css/index.cjs +20 -0
- package/with-css/index.d.cts +20 -0
- package/with-css/index.d.mts +20 -0
- package/with-css/index.mjs +11 -0
- package/with-css/layer/index.cjs +8 -0
- package/with-css/layer/index.d.cts +3 -0
- package/with-css/layer/index.d.mts +3 -0
- package/with-css/layer/index.mjs +8 -0
- package/with-css/matrix/index.cjs +8 -0
- package/with-css/matrix/index.d.cts +3 -0
- package/with-css/matrix/index.d.mts +3 -0
- package/with-css/matrix/index.mjs +8 -0
- package/with-css/pack/index.cjs +8 -0
- package/with-css/pack/index.d.cts +3 -0
- package/with-css/pack/index.d.mts +3 -0
- package/with-css/pack/index.mjs +8 -0
- package/with-css/pin/index.cjs +8 -0
- package/with-css/pin/index.d.cts +3 -0
- package/with-css/pin/index.d.mts +3 -0
- package/with-css/pin/index.mjs +8 -0
- package/with-css/stack/index.cjs +8 -0
- package/with-css/stack/index.d.cts +3 -0
- package/with-css/stack/index.d.mts +3 -0
- package/with-css/stack/index.mjs +8 -0
- package/with-css/tile/index.cjs +8 -0
- package/with-css/tile/index.d.cts +3 -0
- package/with-css/tile/index.d.mts +3 -0
- package/with-css/tile/index.mjs +8 -0
package/flow/types.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AdjustBase } from "../constants.mjs";
|
|
2
|
+
import { AdjustOptions, AlignOptions, DirectionOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/flow/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* flowのオプション
|
|
7
|
+
*
|
|
8
|
+
* - `direction='x'` 時: `adjustY` に `fit`,`grow`,`shrink` 指定不可
|
|
9
|
+
* - `direction='y'` 時: `adjustX` に `fit`,`grow`,`shrink` 指定不可
|
|
10
|
+
*/
|
|
11
|
+
type FlowLayoutOptions = AlignOptions & GapOptions & ItemSizeOptions & ItemRatioOptions & FlowDirectionWithAdjustOptions;
|
|
12
|
+
/**
|
|
13
|
+
* direction & adjustのオプション
|
|
14
|
+
*/
|
|
15
|
+
type FlowDirectionWithAdjustOptions = (DirectionOptions<'x'> & Omit<AdjustOptions, 'adjustY'> & {
|
|
16
|
+
adjustY?: AdjustBase;
|
|
17
|
+
}) | (DirectionOptions<'y'> & Omit<AdjustOptions, 'adjustX'> & {
|
|
18
|
+
adjustX?: AdjustBase;
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FlowLayoutOptions };
|
package/flow/types.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/_internal/constants.ts
|
|
4
|
+
const DIRECTION_OPTIONS_KEYS = ["direction"];
|
|
5
|
+
const ALIGN_OPTIONS_KEYS = ["alignX", "alignY"];
|
|
6
|
+
const ADJUST_OPTIONS_KEYS = ["adjustX", "adjustY"];
|
|
7
|
+
const GAP_OPTIONS_KEYS = [
|
|
8
|
+
"gap",
|
|
9
|
+
"gapX",
|
|
10
|
+
"gapY"
|
|
11
|
+
];
|
|
12
|
+
const ITEM_SIZE_OPTIONS_KEYS = ["itemSizeX", "itemSizeY"];
|
|
13
|
+
const ITEM_RATIO_OPTIONS_KEYS = ["itemRatioX", "itemRatioY"];
|
|
14
|
+
const ITEM_COUNT_OPTIONS_KEYS = ["itemCountX", "itemCountY"];
|
|
15
|
+
const TRACKS_OPTIONS_KEYS = ["tracksX", "tracksY"];
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.ADJUST_OPTIONS_KEYS = ADJUST_OPTIONS_KEYS;
|
|
19
|
+
exports.ALIGN_OPTIONS_KEYS = ALIGN_OPTIONS_KEYS;
|
|
20
|
+
exports.DIRECTION_OPTIONS_KEYS = DIRECTION_OPTIONS_KEYS;
|
|
21
|
+
exports.GAP_OPTIONS_KEYS = GAP_OPTIONS_KEYS;
|
|
22
|
+
exports.ITEM_COUNT_OPTIONS_KEYS = ITEM_COUNT_OPTIONS_KEYS;
|
|
23
|
+
exports.ITEM_RATIO_OPTIONS_KEYS = ITEM_RATIO_OPTIONS_KEYS;
|
|
24
|
+
exports.ITEM_SIZE_OPTIONS_KEYS = ITEM_SIZE_OPTIONS_KEYS;
|
|
25
|
+
exports.TRACKS_OPTIONS_KEYS = TRACKS_OPTIONS_KEYS;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdjustOptions, AlignOptions, DirectionOptions, GapOptions, ItemCountOptions, ItemRatioOptions, ItemSizeOptions, TracksOptions } from "../../_types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/_internal/constants.d.ts
|
|
4
|
+
declare const DIRECTION_OPTIONS_KEYS: (keyof DirectionOptions)[];
|
|
5
|
+
declare const ALIGN_OPTIONS_KEYS: (keyof AlignOptions)[];
|
|
6
|
+
declare const ADJUST_OPTIONS_KEYS: (keyof AdjustOptions)[];
|
|
7
|
+
declare const GAP_OPTIONS_KEYS: (keyof GapOptions)[];
|
|
8
|
+
declare const ITEM_SIZE_OPTIONS_KEYS: (keyof ItemSizeOptions)[];
|
|
9
|
+
declare const ITEM_RATIO_OPTIONS_KEYS: (keyof ItemRatioOptions)[];
|
|
10
|
+
declare const ITEM_COUNT_OPTIONS_KEYS: (keyof ItemCountOptions)[];
|
|
11
|
+
declare const TRACKS_OPTIONS_KEYS: (keyof TracksOptions)[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_COUNT_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS, TRACKS_OPTIONS_KEYS };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdjustOptions, AlignOptions, DirectionOptions, GapOptions, ItemCountOptions, ItemRatioOptions, ItemSizeOptions, TracksOptions } from "../../_types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/_internal/constants.d.ts
|
|
4
|
+
declare const DIRECTION_OPTIONS_KEYS: (keyof DirectionOptions)[];
|
|
5
|
+
declare const ALIGN_OPTIONS_KEYS: (keyof AlignOptions)[];
|
|
6
|
+
declare const ADJUST_OPTIONS_KEYS: (keyof AdjustOptions)[];
|
|
7
|
+
declare const GAP_OPTIONS_KEYS: (keyof GapOptions)[];
|
|
8
|
+
declare const ITEM_SIZE_OPTIONS_KEYS: (keyof ItemSizeOptions)[];
|
|
9
|
+
declare const ITEM_RATIO_OPTIONS_KEYS: (keyof ItemRatioOptions)[];
|
|
10
|
+
declare const ITEM_COUNT_OPTIONS_KEYS: (keyof ItemCountOptions)[];
|
|
11
|
+
declare const TRACKS_OPTIONS_KEYS: (keyof TracksOptions)[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_COUNT_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS, TRACKS_OPTIONS_KEYS };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/helpers/_internal/constants.ts
|
|
2
|
+
const DIRECTION_OPTIONS_KEYS = ["direction"];
|
|
3
|
+
const ALIGN_OPTIONS_KEYS = ["alignX", "alignY"];
|
|
4
|
+
const ADJUST_OPTIONS_KEYS = ["adjustX", "adjustY"];
|
|
5
|
+
const GAP_OPTIONS_KEYS = [
|
|
6
|
+
"gap",
|
|
7
|
+
"gapX",
|
|
8
|
+
"gapY"
|
|
9
|
+
];
|
|
10
|
+
const ITEM_SIZE_OPTIONS_KEYS = ["itemSizeX", "itemSizeY"];
|
|
11
|
+
const ITEM_RATIO_OPTIONS_KEYS = ["itemRatioX", "itemRatioY"];
|
|
12
|
+
const ITEM_COUNT_OPTIONS_KEYS = ["itemCountX", "itemCountY"];
|
|
13
|
+
const TRACKS_OPTIONS_KEYS = ["tracksX", "tracksY"];
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_COUNT_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS, TRACKS_OPTIONS_KEYS };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/helpers/_internal/createExtractLayoutOptions.ts
|
|
3
|
+
/**
|
|
4
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する関数を作成する
|
|
5
|
+
*
|
|
6
|
+
* @param optionsKeys レイアウトオプションのキー
|
|
7
|
+
*/
|
|
8
|
+
function createExtractLayoutOptions(optionKeys) {
|
|
9
|
+
const keySet = new Set(optionKeys);
|
|
10
|
+
/**
|
|
11
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する
|
|
12
|
+
*
|
|
13
|
+
* @param record レイアウトオプションとその他のプロパティを含むレコード
|
|
14
|
+
* @returns `[layoutOptions, rest]` のタプル。`layoutOptions` はレイアウトに対応するプロパティ、`rest` はそれ以外のプロパティ
|
|
15
|
+
*/
|
|
16
|
+
return (record) => {
|
|
17
|
+
const options = {};
|
|
18
|
+
const rest = {};
|
|
19
|
+
if (record) for (const [k, v] of Object.entries(record)) (keySet.has(k) ? options : rest)[k] = v;
|
|
20
|
+
return [options, rest];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
module.exports = createExtractLayoutOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/helpers/_internal/createExtractLayoutOptions.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する関数を作成する
|
|
4
|
+
*
|
|
5
|
+
* @param optionsKeys レイアウトオプションのキー
|
|
6
|
+
*/
|
|
7
|
+
declare function createExtractLayoutOptions<TOptions extends Record<string, unknown>>(optionKeys: (keyof TOptions)[]): <T extends Record<string, unknown>>(record: T) => [TOptions, Omit<T, keyof TOptions>];
|
|
8
|
+
export = createExtractLayoutOptions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/helpers/_internal/createExtractLayoutOptions.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する関数を作成する
|
|
4
|
+
*
|
|
5
|
+
* @param optionsKeys レイアウトオプションのキー
|
|
6
|
+
*/
|
|
7
|
+
declare function createExtractLayoutOptions<TOptions extends Record<string, unknown>>(optionKeys: (keyof TOptions)[]): <T extends Record<string, unknown>>(record: T) => [TOptions, Omit<T, keyof TOptions>];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { createExtractLayoutOptions as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/helpers/_internal/createExtractLayoutOptions.ts
|
|
2
|
+
/**
|
|
3
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する関数を作成する
|
|
4
|
+
*
|
|
5
|
+
* @param optionsKeys レイアウトオプションのキー
|
|
6
|
+
*/
|
|
7
|
+
function createExtractLayoutOptions(optionKeys) {
|
|
8
|
+
const keySet = new Set(optionKeys);
|
|
9
|
+
/**
|
|
10
|
+
* レコードからレイアウトオプションとそれ以外のプロパティを分離する
|
|
11
|
+
*
|
|
12
|
+
* @param record レイアウトオプションとその他のプロパティを含むレコード
|
|
13
|
+
* @returns `[layoutOptions, rest]` のタプル。`layoutOptions` はレイアウトに対応するプロパティ、`rest` はそれ以外のプロパティ
|
|
14
|
+
*/
|
|
15
|
+
return (record) => {
|
|
16
|
+
const options = {};
|
|
17
|
+
const rest = {};
|
|
18
|
+
if (record) for (const [k, v] of Object.entries(record)) (keySet.has(k) ? options : rest)[k] = v;
|
|
19
|
+
return [options, rest];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { createExtractLayoutOptions as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractBalanceOptions.ts
|
|
5
|
+
var extractBalanceOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
module.exports = extractBalanceOptions_default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { BalanceLayoutOptions } from "../balance/types.cjs";
|
|
3
|
+
//#region src/helpers/extractBalanceOptions.d.ts
|
|
4
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [BalanceLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
5
|
+
export = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { BalanceLayoutOptions } from "../balance/types.mjs";
|
|
3
|
+
//#region src/helpers/extractBalanceOptions.d.ts
|
|
4
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [BalanceLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractBalanceOptions.ts
|
|
5
|
+
var extractBalanceOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...GAP_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { extractBalanceOptions_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractCenterOptions.ts
|
|
5
|
+
var extractCenterOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
module.exports = extractCenterOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { CenterLayoutOptions } from "../center/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractCenterOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [CenterLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions>];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { CenterLayoutOptions } from "../center/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractCenterOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [CenterLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractCenterOptions.ts
|
|
5
|
+
var extractCenterOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ADJUST_OPTIONS_KEYS,
|
|
8
|
+
...GAP_OPTIONS_KEYS,
|
|
9
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { extractCenterOptions_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractFlowOptions.ts
|
|
5
|
+
var extractFlowOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
module.exports = extractFlowOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { FlowLayoutOptions } from "../flow/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractFlowOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { FlowLayoutOptions } from "../flow/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractFlowOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractFlowOptions.ts
|
|
5
|
+
var extractFlowOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...GAP_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { extractFlowOptions_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractLayerOptions.ts
|
|
5
|
+
var extractLayerOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
module.exports = extractLayerOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdjustOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { LayerLayoutOptions } from "../layer/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractLayerOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AdjustOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { LayerLayoutOptions } from "../layer/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractLayerOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractLayerOptions.ts
|
|
5
|
+
var extractLayerOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...ALIGN_OPTIONS_KEYS,
|
|
7
|
+
...ADJUST_OPTIONS_KEYS,
|
|
8
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
9
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { extractLayerOptions_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractMatrixOptions.ts
|
|
5
|
+
var extractMatrixOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS,
|
|
12
|
+
...require_helpers__internal_constants.ITEM_COUNT_OPTIONS_KEYS,
|
|
13
|
+
...require_helpers__internal_constants.TRACKS_OPTIONS_KEYS
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
module.exports = extractMatrixOptions_default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MatrixLayoutOptions } from "../matrix/types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/extractMatrixOptions.d.ts
|
|
4
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | "gap" | "gapX" | "gapY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "alignX" | "alignY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
|
|
5
|
+
export = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MatrixLayoutOptions } from "../matrix/types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/extractMatrixOptions.d.ts
|
|
4
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | "gap" | "gapX" | "gapY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "alignX" | "alignY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_COUNT_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS, TRACKS_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractMatrixOptions.ts
|
|
5
|
+
var extractMatrixOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...GAP_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...ITEM_RATIO_OPTIONS_KEYS,
|
|
12
|
+
...ITEM_COUNT_OPTIONS_KEYS,
|
|
13
|
+
...TRACKS_OPTIONS_KEYS
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { extractMatrixOptions_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPackOptions.ts
|
|
5
|
+
var extractPackOptions_default = require_helpers__internal_createExtractLayoutOptions([...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS, ...require_helpers__internal_constants.GAP_OPTIONS_KEYS]);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
module.exports = extractPackOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GapOptions } from "../_types.cjs";
|
|
2
|
+
import { PackLayoutOptions } from "../pack/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPackOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [PackLayoutOptions, Omit<T, "direction" | keyof GapOptions>];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GapOptions } from "../_types.mjs";
|
|
2
|
+
import { PackLayoutOptions } from "../pack/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPackOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [PackLayoutOptions, Omit<T, "direction" | keyof GapOptions>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPackOptions.ts
|
|
5
|
+
var extractPackOptions_default = createExtractLayoutOptions([...DIRECTION_OPTIONS_KEYS, ...GAP_OPTIONS_KEYS]);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { extractPackOptions_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPinOptions.ts
|
|
5
|
+
var extractPinOptions_default = require_helpers__internal_createExtractLayoutOptions([...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS, ...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS]);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
module.exports = extractPinOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { PinLayoutOptions } from "../pin/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPinOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [PinLayoutOptions, Omit<T, keyof ItemSizeOptions | keyof ItemRatioOptions>];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { PinLayoutOptions } from "../pin/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPinOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [PinLayoutOptions, Omit<T, keyof ItemSizeOptions | keyof ItemRatioOptions>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractPinOptions.ts
|
|
5
|
+
var extractPinOptions_default = createExtractLayoutOptions([...ITEM_SIZE_OPTIONS_KEYS, ...ITEM_RATIO_OPTIONS_KEYS]);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { extractPinOptions_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractStackOptions.ts
|
|
5
|
+
var extractStackOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
module.exports = extractStackOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { StackLayoutOptions } from "../stack/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractStackOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { StackLayoutOptions } from "../stack/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractStackOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractStackOptions.ts
|
|
5
|
+
var extractStackOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...GAP_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { extractStackOptions_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_helpers__internal_constants = require('./_internal/constants.cjs');
|
|
2
|
+
const require_helpers__internal_createExtractLayoutOptions = require('./_internal/createExtractLayoutOptions.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractTileOptions.ts
|
|
5
|
+
var extractTileOptions_default = require_helpers__internal_createExtractLayoutOptions([
|
|
6
|
+
...require_helpers__internal_constants.DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...require_helpers__internal_constants.ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...require_helpers__internal_constants.ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...require_helpers__internal_constants.GAP_OPTIONS_KEYS,
|
|
10
|
+
...require_helpers__internal_constants.ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...require_helpers__internal_constants.ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
module.exports = extractTileOptions_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdjustOptions, AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs";
|
|
2
|
+
import { TileLayoutOptions } from "../tile/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractTileOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
|
|
6
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AdjustOptions, AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs";
|
|
2
|
+
import { TileLayoutOptions } from "../tile/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractTileOptions.d.ts
|
|
5
|
+
declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ADJUST_OPTIONS_KEYS, ALIGN_OPTIONS_KEYS, DIRECTION_OPTIONS_KEYS, GAP_OPTIONS_KEYS, ITEM_RATIO_OPTIONS_KEYS, ITEM_SIZE_OPTIONS_KEYS } from "./_internal/constants.mjs";
|
|
2
|
+
import createExtractLayoutOptions from "./_internal/createExtractLayoutOptions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/extractTileOptions.ts
|
|
5
|
+
var extractTileOptions_default = createExtractLayoutOptions([
|
|
6
|
+
...DIRECTION_OPTIONS_KEYS,
|
|
7
|
+
...ALIGN_OPTIONS_KEYS,
|
|
8
|
+
...ADJUST_OPTIONS_KEYS,
|
|
9
|
+
...GAP_OPTIONS_KEYS,
|
|
10
|
+
...ITEM_SIZE_OPTIONS_KEYS,
|
|
11
|
+
...ITEM_RATIO_OPTIONS_KEYS
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { extractTileOptions_default as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_helpers_extractBalanceOptions = require('./extractBalanceOptions.cjs');
|
|
3
|
+
const require_helpers_extractCenterOptions = require('./extractCenterOptions.cjs');
|
|
4
|
+
const require_helpers_extractFlowOptions = require('./extractFlowOptions.cjs');
|
|
5
|
+
const require_helpers_extractLayerOptions = require('./extractLayerOptions.cjs');
|
|
6
|
+
const require_helpers_extractMatrixOptions = require('./extractMatrixOptions.cjs');
|
|
7
|
+
const require_helpers_extractPackOptions = require('./extractPackOptions.cjs');
|
|
8
|
+
const require_helpers_extractPinOptions = require('./extractPinOptions.cjs');
|
|
9
|
+
const require_helpers_extractStackOptions = require('./extractStackOptions.cjs');
|
|
10
|
+
const require_helpers_extractTileOptions = require('./extractTileOptions.cjs');
|
|
11
|
+
|
|
12
|
+
exports.extractBalanceOptions = require_helpers_extractBalanceOptions;
|
|
13
|
+
exports.extractCenterOptions = require_helpers_extractCenterOptions;
|
|
14
|
+
exports.extractFlowOptions = require_helpers_extractFlowOptions;
|
|
15
|
+
exports.extractLayerOptions = require_helpers_extractLayerOptions;
|
|
16
|
+
exports.extractMatrixOptions = require_helpers_extractMatrixOptions;
|
|
17
|
+
exports.extractPackOptions = require_helpers_extractPackOptions;
|
|
18
|
+
exports.extractPinOptions = require_helpers_extractPinOptions;
|
|
19
|
+
exports.extractStackOptions = require_helpers_extractStackOptions;
|
|
20
|
+
exports.extractTileOptions = require_helpers_extractTileOptions;
|