@operato/board 1.4.36 → 1.4.37
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/CHANGELOG.md +9 -0
- package/dist/src/modeller/property-sidebar/property-sidebar.js +3 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +21 -20
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/property-sidebar/property-sidebar.ts +3 -1
- package/src/modeller/property-sidebar/shapes/shapes.ts +26 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.37",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"prettier --write"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "aaf6dbbf793ff79a1739db07e2356598baa22770"
|
|
152
152
|
}
|
|
@@ -214,10 +214,12 @@ export class PropertySidebar extends ScopedElementsMixin(LitElement) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
_onChangedByScene() {
|
|
217
|
-
if (this.propertyTarget)
|
|
217
|
+
if (this.propertyTarget) {
|
|
218
218
|
this.model = {
|
|
219
219
|
...this.propertyTarget.model
|
|
220
220
|
}
|
|
221
|
+
this._setBounds(this.propertyTarget.bounds)
|
|
222
|
+
}
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
_setPropertyTargetAsDefault() {
|
|
@@ -10,6 +10,7 @@ import '@operato/help/ox-title-with-help.js'
|
|
|
10
10
|
|
|
11
11
|
import { css, html } from 'lit'
|
|
12
12
|
import { property, state } from 'lit/decorators.js'
|
|
13
|
+
import { keyed } from 'lit/directives/keyed.js'
|
|
13
14
|
|
|
14
15
|
import { BOUNDS, Component, Properties } from '@hatiolab/things-scene'
|
|
15
16
|
|
|
@@ -144,6 +145,7 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
144
145
|
|
|
145
146
|
render() {
|
|
146
147
|
const value = this.value || {}
|
|
148
|
+
const { width, height } = this.bounds || {}
|
|
147
149
|
|
|
148
150
|
return html`
|
|
149
151
|
<fieldset>
|
|
@@ -191,27 +193,30 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
191
193
|
</fieldset>
|
|
192
194
|
|
|
193
195
|
${!this._isLine(this.selected)
|
|
194
|
-
?
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
196
|
+
? keyed(
|
|
197
|
+
this.selected,
|
|
198
|
+
html`
|
|
199
|
+
<fieldset class="icon-label unit ratio">
|
|
200
|
+
<legend>
|
|
201
|
+
<ox-title-with-help topic="board-modeller/shapes/size" msgid="label.size">size</ox-title-with-help>
|
|
202
|
+
</legend>
|
|
203
|
+
|
|
204
|
+
<div class="property-grid">
|
|
205
|
+
<label class="width"> <ox-i18n msgid="label.width">width</ox-i18n> </label>
|
|
206
|
+
<input type="number" value-key="bounds.width" .value=${String(width)} />
|
|
207
|
+
<label class="height"> <ox-i18n msgid="label.height">height</ox-i18n> </label>
|
|
208
|
+
<input type="number" value-key="bounds.height" .value=${String(height)} />
|
|
209
|
+
|
|
210
|
+
${this.selected.length && this.selected[0].isRootModel()
|
|
211
|
+
? html``
|
|
212
|
+
: html`
|
|
213
|
+
<label class="rotate"> <ox-i18n msgid="label.rotate">rotate</ox-i18n> </label>
|
|
214
|
+
<ox-input-angle value-key="rotation" .value=${value.rotation}> </ox-input-angle>
|
|
215
|
+
`}
|
|
216
|
+
</div>
|
|
217
|
+
</fieldset>
|
|
218
|
+
`
|
|
219
|
+
)
|
|
215
220
|
: html``}
|
|
216
221
|
${this._is3dish(this.selected)
|
|
217
222
|
? html`
|