@operato/board 0.4.2 → 1.0.0-alpha.10
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 +92 -0
- package/dist/src/modeller/property-sidebar/abstract-property.js +0 -3
- package/dist/src/modeller/property-sidebar/abstract-property.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects-shared-style.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/effects-shared-style.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js +4 -4
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/value-converter.js +0 -2
- package/dist/src/modeller/property-sidebar/effects/value-converter.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-shared-style.js +1 -1
- package/dist/src/modeller/property-sidebar/property-shared-style.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/styles/styles.js +5 -7
- package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
- package/dist/src/ox-board-viewer.js +3 -3
- package/dist/src/ox-board-viewer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -12
- package/src/modeller/property-sidebar/abstract-property.ts +0 -4
- package/src/modeller/property-sidebar/effects/effects-shared-style.ts +2 -2
- package/src/modeller/property-sidebar/effects/property-shadow.ts +4 -5
- package/src/modeller/property-sidebar/effects/value-converter.ts +0 -3
- package/src/modeller/property-sidebar/property-shared-style.ts +1 -1
- package/src/modeller/property-sidebar/styles/styles.ts +6 -9
- package/src/ox-board-viewer.ts +3 -4
|
@@ -26,10 +26,6 @@ export class AbstractProperty extends LitElement {
|
|
|
26
26
|
var value
|
|
27
27
|
|
|
28
28
|
switch (element.tagName) {
|
|
29
|
-
case 'THINGS-EDITOR-ANGLE-INPUT':
|
|
30
|
-
value = Number((element as any).radian) || 0
|
|
31
|
-
break
|
|
32
|
-
|
|
33
29
|
case 'INPUT':
|
|
34
30
|
switch ((element as any).type) {
|
|
35
31
|
case 'checkbox':
|
|
@@ -29,7 +29,7 @@ export const EffectsSharedStyle = css`
|
|
|
29
29
|
input,
|
|
30
30
|
select,
|
|
31
31
|
ox-input-angle,
|
|
32
|
-
|
|
32
|
+
ox-input-color,
|
|
33
33
|
[custom-editor] {
|
|
34
34
|
grid-column: span 7;
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ export const EffectsSharedStyle = css`
|
|
|
37
37
|
input,
|
|
38
38
|
select,
|
|
39
39
|
ox-input-angle input,
|
|
40
|
-
|
|
40
|
+
ox-input-color input,
|
|
41
41
|
[custom-editor] input {
|
|
42
42
|
border: var(--property-sidebar-fieldset-border);
|
|
43
43
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import '@things-factory/modeller-ui/client/editors/things-editor-color'
|
|
6
5
|
import '@operato/i18n/ox-i18n.js'
|
|
6
|
+
import '@operato/input/ox-input-color.js'
|
|
7
7
|
|
|
8
|
-
import { css, html
|
|
8
|
+
import { LitElement, css, html } from 'lit'
|
|
9
9
|
import { customElement, property } from 'lit/decorators.js'
|
|
10
10
|
|
|
11
11
|
import { Properties } from '@hatiolab/things-scene'
|
|
12
|
-
|
|
13
12
|
import { convert } from './value-converter'
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -48,7 +47,7 @@ export default class PropertyShadow extends LitElement {
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
input[type='number'],
|
|
51
|
-
|
|
50
|
+
ox-input-color {
|
|
52
51
|
grid-column: span 7;
|
|
53
52
|
}
|
|
54
53
|
input[type='number'] {
|
|
@@ -93,7 +92,7 @@ export default class PropertyShadow extends LitElement {
|
|
|
93
92
|
|
|
94
93
|
<label class="icon-only-label color"></label>
|
|
95
94
|
|
|
96
|
-
<
|
|
95
|
+
<ox-input-color value-key="color" .value=${value.color}> </ox-input-color>
|
|
97
96
|
`
|
|
98
97
|
}
|
|
99
98
|
|
|
@@ -52,7 +52,7 @@ export const PropertySharedStyle = css`
|
|
|
52
52
|
.property-grid > select,
|
|
53
53
|
.property-grid > ox-input-angle,
|
|
54
54
|
.property-grid > ox-buttons-radio,
|
|
55
|
-
.property-grid >
|
|
55
|
+
.property-grid > ox-input-color,
|
|
56
56
|
[custom-editor] {
|
|
57
57
|
grid-column: span 7;
|
|
58
58
|
align-self: stretch;
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import '@polymer/paper-dropdown-menu/paper-dropdown-menu'
|
|
6
6
|
import '@operato/help/ox-title-with-help.js'
|
|
7
|
-
import '@
|
|
8
|
-
import '@
|
|
7
|
+
import '@operato/input/ox-input-color.js'
|
|
8
|
+
import '@operato/app/input/ox-input-fill-style.js'
|
|
9
9
|
import '@things-factory/modeller-ui/client/editors/things-editor-font-selector'
|
|
10
10
|
import '@operato/i18n/ox-i18n.js'
|
|
11
11
|
|
|
12
12
|
import { css, html } from 'lit'
|
|
13
13
|
import { customElement, property } from 'lit/decorators.js'
|
|
14
14
|
|
|
15
|
-
import { Component } from '@hatiolab/things-scene'
|
|
16
|
-
|
|
17
15
|
import { AbstractProperty } from '../abstract-property'
|
|
16
|
+
import { Component } from '@hatiolab/things-scene'
|
|
18
17
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
19
18
|
|
|
20
19
|
@customElement('property-style')
|
|
@@ -388,8 +387,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
388
387
|
<input type="number" value-key="lineHeight" .value=${lineHeight} class="property-half-input" />
|
|
389
388
|
|
|
390
389
|
<label class="property-half-label icon-only-label color"></label>
|
|
391
|
-
<
|
|
392
|
-
</things-editor-color>
|
|
390
|
+
<ox-input-color value-key="fontColor" .value=${fontColor} class="property-half-input"> </ox-input-color>
|
|
393
391
|
|
|
394
392
|
<label class="property-half-label"></label>
|
|
395
393
|
<div class="property-half-input btn-group">
|
|
@@ -406,7 +404,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
406
404
|
>
|
|
407
405
|
</legend>
|
|
408
406
|
|
|
409
|
-
<
|
|
407
|
+
<ox-input-fill-style value-key="fillStyle" .value=${fillStyle}> </ox-input-fill-style>
|
|
410
408
|
</fieldset>
|
|
411
409
|
|
|
412
410
|
<fieldset>
|
|
@@ -419,8 +417,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
419
417
|
<input type="number" value-key="lineWidth" .value=${lineWidth} class="property-half-input" />
|
|
420
418
|
|
|
421
419
|
<label class="property-half-label icon-only-label color"></label>
|
|
422
|
-
<
|
|
423
|
-
</things-editor-color>
|
|
420
|
+
<ox-input-color value-key="strokeStyle" .value=${strokeStyle} class="property-half-input"> </ox-input-color>
|
|
424
421
|
|
|
425
422
|
<label class="property-full-label">
|
|
426
423
|
<ox-i18n msgid="label.line-type">line type</ox-i18n>
|
package/src/ox-board-viewer.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import '@material/mwc-fab'
|
|
2
2
|
import '@material/mwc-icon'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { LitElement, PropertyValues, css, html } from 'lit'
|
|
5
|
+
import { SCENE_MODE, create } from '@hatiolab/things-scene'
|
|
5
6
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
6
|
-
|
|
7
|
-
import { create, SCENE_MODE } from '@hatiolab/things-scene'
|
|
8
7
|
import { isIOS, togglefullscreen } from '@operato/utils'
|
|
9
8
|
|
|
10
9
|
@customElement('ox-board-viewer')
|
|
@@ -494,7 +493,7 @@ export class BoardViewer extends LitElement {
|
|
|
494
493
|
const x = (mql: MediaQueryListEvent) => {
|
|
495
494
|
if (mql.matches) {
|
|
496
495
|
if (!viewTarget) {
|
|
497
|
-
viewTarget = this.
|
|
496
|
+
viewTarget = (this.renderRoot as ShadowRoot)!.getElementById('target')
|
|
498
497
|
this.renderRoot.replaceChild(printTarget!, viewTarget!)
|
|
499
498
|
}
|
|
500
499
|
} else {
|