itmar-block-packages 1.3.11 → 1.3.13
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/README.md +30 -0
- package/build/index.asset.php +1 -1
- package/build/index.js +2 -2
- package/package.json +1 -1
- package/src/BlockPlace.js +95 -48
- package/src/cssPropertes.js +23 -3
package/README.md
CHANGED
|
@@ -14,6 +14,13 @@ import {関数名又はコンポーネント名} from "itmar-block-packages"
|
|
|
14
14
|
npm i @wordpress/scripts@^27.6.0 --save-dev
|
|
15
15
|
|
|
16
16
|
## 更新履歴
|
|
17
|
+
= 1.3.13 =
|
|
18
|
+
- BlockWidthのラベル表示が誤っていたのを修正
|
|
19
|
+
|
|
20
|
+
= 1.3.12 =
|
|
21
|
+
- BlockPlaceの配置タイプが絶対位置の場合に縦横の中央揃えが設定できる機能を追加
|
|
22
|
+
- 中央揃えができるようにしたために、position_prmにそれに対応するCSSプロパティを返す機能を追加
|
|
23
|
+
|
|
17
24
|
= 1.3.11 =
|
|
18
25
|
- BlockPlace、BlockWidth、BlockHeightのfreeサイズにpx以外の単位を設定できるように修正
|
|
19
26
|
- freeサイズにpx以外の単位を設定できるようにしたことから、max_width_prm、width_prm、height_prmがそれに対応できるように修正
|
|
@@ -159,6 +166,29 @@ marginやpaddingに設定するプロパティを文字列で返します。
|
|
|
159
166
|
#### 引数
|
|
160
167
|
- `space` object
|
|
161
168
|
top,right,bottom,leftをキーとしてもつオブジェクト
|
|
169
|
+
|
|
170
|
+
### position_prm
|
|
171
|
+
絶対位置のポジションに関するCSSを返します。
|
|
172
|
+
#### 引数
|
|
173
|
+
- `pos` object,boolean
|
|
174
|
+
次の形式のオブジェクト又はboolean
|
|
175
|
+
```
|
|
176
|
+
"posValue": {
|
|
177
|
+
"vertBase": "top",
|
|
178
|
+
"horBase": "left",
|
|
179
|
+
"vertValue": "3em",
|
|
180
|
+
"horValue": "3em",
|
|
181
|
+
"isVertCenter": false,
|
|
182
|
+
"isHorCenter": false
|
|
183
|
+
},
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
- `type` string
|
|
187
|
+
staic, relative,absolute,fixed,stickyのいづれか
|
|
188
|
+
|
|
189
|
+
#### 戻り値
|
|
190
|
+
- typeがabsolute,fixed,stickyのときposの値に応じてtop,buttom,left,rightのcssプロパティを返す。 pos内の中央揃えのフラグがオンならtransformのcssプロパティも返す。
|
|
191
|
+
- posがtrueのとき`top:50%;left: 50%;transform: translate(-50%, -50%);`を返す。
|
|
162
192
|
|
|
163
193
|
|
|
164
194
|
### max_width_prm
|
package/build/index.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '2107f5067e381d833dd3');
|