@fmsim/board 2.0.0-beta.23 → 2.0.0-beta.28
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/custom-elements.json +254 -244
- package/dist/src/component/etc.js +18 -0
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +10 -0
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/icons/components/text.png +0 -0
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -2454,7 +2454,7 @@
|
|
|
2454
2454
|
"type": {
|
|
2455
2455
|
"text": "ComponentGroup"
|
|
2456
2456
|
},
|
|
2457
|
-
"default": "{ name: 'etc', description: 'a group of components that have not yet been defined.', icon, templates: [ { type: 'rect', description: 'rectangle shape', icon: rect, group: 'shape', model: { type: 'rect', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'ellipse', description: 'ellipse shape', icon: ellipse, group: 'shape', model: { type: 'ellipse', rx: 50, ry: 50, cx: 150, cy: 150, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'triangle', description: 'triangle shape', icon: triangle, group: 'shape', model: { type: 'triangle', x1: 150, y1: 100, x2: 100, y2: 200, x3: 200, y3: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'line', description: 'simple line', icon: lineIcon, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'solid', lineCap: 'butt' } }, { type: 'dash', description: 'dash line', icon: dash, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'round-dot', lineCap: 'butt' } }, { type: 'container', description: 'container shape', icon: container, group: 'container', model: { type: 'container', left: 100, top: 100, width: 400, height: 300, fillStyle: '#fff', strokeStyle: '#999', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'popup', description: 'popup window', icon: popup, group: 'container', model: { type: 'popup', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: 'DarkGoldenRod' } }, { type: 'floor-plate', description: 'floor plate for multi-story layout', icon: rect, group: '3d', model: { type: 'floor-plate', left: 100, top: 100, width: 500, height: 500, depth: 2, fillStyle: '#e8e8e8', strokeStyle: '#999999', alpha: 0.7 } } ] }"
|
|
2457
|
+
"default": "{ name: 'etc', description: 'a group of components that have not yet been defined.', icon, templates: [ { type: 'text', description: 'text', icon: text, group: 'shape', model: { type: 'text', left: 100, top: 100, width: 200, height: 50, fillStyle: 'transparent', fontColor: '#000', fontSize: 16, text: 'Text' } }, { type: 'rect', description: 'rectangle shape', icon: rect, group: 'shape', model: { type: 'rect', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'ellipse', description: 'ellipse shape', icon: ellipse, group: 'shape', model: { type: 'ellipse', rx: 50, ry: 50, cx: 150, cy: 150, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'triangle', description: 'triangle shape', icon: triangle, group: 'shape', model: { type: 'triangle', x1: 150, y1: 100, x2: 100, y2: 200, x3: 200, y3: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'line', description: 'simple line', icon: lineIcon, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'solid', lineCap: 'butt' } }, { type: 'dash', description: 'dash line', icon: dash, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'round-dot', lineCap: 'butt' } }, { type: 'container', description: 'container shape', icon: container, group: 'container', model: { type: 'container', left: 100, top: 100, width: 400, height: 300, fillStyle: '#fff', strokeStyle: '#999', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'popup', description: 'popup window', icon: popup, group: 'container', model: { type: 'popup', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: 'DarkGoldenRod' } }, { type: 'floor-plate', description: 'floor plate for multi-story layout', icon: rect, group: '3d', model: { type: 'floor-plate', left: 100, top: 100, width: 500, height: 500, depth: 2, fillStyle: '#e8e8e8', strokeStyle: '#999999', alpha: 0.7 } } ] }"
|
|
2458
2458
|
}
|
|
2459
2459
|
],
|
|
2460
2460
|
"exports": [
|
|
@@ -8383,6 +8383,249 @@
|
|
|
8383
8383
|
}
|
|
8384
8384
|
]
|
|
8385
8385
|
},
|
|
8386
|
+
{
|
|
8387
|
+
"kind": "javascript-module",
|
|
8388
|
+
"path": "src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts",
|
|
8389
|
+
"declarations": [
|
|
8390
|
+
{
|
|
8391
|
+
"kind": "variable",
|
|
8392
|
+
"name": "BoxPaddingEditorStyles",
|
|
8393
|
+
"default": "css` .box-padding { width: 100%; } .box-padding td { background: var(--url-icon-properties-padding) 50% 0 no-repeat; } .box-padding tr:nth-child(1), .box-padding tr:nth-child(3) { height: 20px; } .box-padding tr td:nth-child(1), .box-padding tr td:nth-child(3) { width: 18px; } .box-padding .slide1 { background-position: 0 0; } .box-padding .slide2 { background-position: 50% -40px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide3 { background-position: 100% -440px; } .box-padding .slide4 { background-position: 0 -360px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide5 { background: none; text-align: center; } .box-padding .slide6 { background-position: 100% -160px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide7 { background-position: 0 100%; } .box-padding .slide8 { background-position: 50% -320px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide9 { background-position: 0 0px; } .box-padding input { background-color: transparent; width: 35px; margin: 0px; padding: 0px; clear: both; float: initial; border: 1px solid #fff; border-width: 0 0 1px 0; text-align: right; font-size: 14px; } .slide5 input:nth-child(1), .slide5 input:nth-child(4) { display: block; margin: auto; } .slide5 input:nth-child(2) { float: left; } .slide5 input:nth-child(3) { float: right; margin-top: -25px; } .slide5 input:nth-child(4) { margin-top: -5px; } `"
|
|
8394
|
+
}
|
|
8395
|
+
],
|
|
8396
|
+
"exports": [
|
|
8397
|
+
{
|
|
8398
|
+
"kind": "js",
|
|
8399
|
+
"name": "BoxPaddingEditorStyles",
|
|
8400
|
+
"declaration": {
|
|
8401
|
+
"name": "BoxPaddingEditorStyles",
|
|
8402
|
+
"module": "src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts"
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
]
|
|
8406
|
+
},
|
|
8407
|
+
{
|
|
8408
|
+
"kind": "javascript-module",
|
|
8409
|
+
"path": "src/modeller/property-sidebar/shapes/shapes.ts",
|
|
8410
|
+
"declarations": [
|
|
8411
|
+
{
|
|
8412
|
+
"kind": "class",
|
|
8413
|
+
"description": "",
|
|
8414
|
+
"name": "PropertyShapes",
|
|
8415
|
+
"members": [
|
|
8416
|
+
{
|
|
8417
|
+
"kind": "field",
|
|
8418
|
+
"name": "value",
|
|
8419
|
+
"type": {
|
|
8420
|
+
"text": "Properties | undefined"
|
|
8421
|
+
},
|
|
8422
|
+
"attribute": "value"
|
|
8423
|
+
},
|
|
8424
|
+
{
|
|
8425
|
+
"kind": "field",
|
|
8426
|
+
"name": "bounds",
|
|
8427
|
+
"type": {
|
|
8428
|
+
"text": "BOUNDS | null"
|
|
8429
|
+
},
|
|
8430
|
+
"default": "null",
|
|
8431
|
+
"attribute": "bounds"
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
"kind": "field",
|
|
8435
|
+
"name": "selected",
|
|
8436
|
+
"type": {
|
|
8437
|
+
"text": "Component[]"
|
|
8438
|
+
},
|
|
8439
|
+
"default": "[]",
|
|
8440
|
+
"attribute": "selected"
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
"kind": "method",
|
|
8444
|
+
"name": "_onValueChange",
|
|
8445
|
+
"parameters": [
|
|
8446
|
+
{
|
|
8447
|
+
"name": "e",
|
|
8448
|
+
"type": {
|
|
8449
|
+
"text": "Event"
|
|
8450
|
+
}
|
|
8451
|
+
}
|
|
8452
|
+
],
|
|
8453
|
+
"inheritedFrom": {
|
|
8454
|
+
"name": "AbstractProperty",
|
|
8455
|
+
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
8456
|
+
}
|
|
8457
|
+
},
|
|
8458
|
+
{
|
|
8459
|
+
"kind": "method",
|
|
8460
|
+
"name": "_hasTextProperty",
|
|
8461
|
+
"parameters": [
|
|
8462
|
+
{
|
|
8463
|
+
"name": "selected",
|
|
8464
|
+
"type": {
|
|
8465
|
+
"text": "Component[]"
|
|
8466
|
+
}
|
|
8467
|
+
}
|
|
8468
|
+
]
|
|
8469
|
+
},
|
|
8470
|
+
{
|
|
8471
|
+
"kind": "method",
|
|
8472
|
+
"name": "_hasProperties",
|
|
8473
|
+
"parameters": [
|
|
8474
|
+
{
|
|
8475
|
+
"name": "selected",
|
|
8476
|
+
"type": {
|
|
8477
|
+
"text": "Component[]"
|
|
8478
|
+
}
|
|
8479
|
+
}
|
|
8480
|
+
]
|
|
8481
|
+
},
|
|
8482
|
+
{
|
|
8483
|
+
"kind": "method",
|
|
8484
|
+
"name": "_isIdentifiable",
|
|
8485
|
+
"parameters": [
|
|
8486
|
+
{
|
|
8487
|
+
"name": "selected",
|
|
8488
|
+
"type": {
|
|
8489
|
+
"text": "Component[]"
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
]
|
|
8493
|
+
},
|
|
8494
|
+
{
|
|
8495
|
+
"kind": "method",
|
|
8496
|
+
"name": "_isClassIdentifiable",
|
|
8497
|
+
"parameters": [
|
|
8498
|
+
{
|
|
8499
|
+
"name": "selected",
|
|
8500
|
+
"type": {
|
|
8501
|
+
"text": "Component[]"
|
|
8502
|
+
}
|
|
8503
|
+
}
|
|
8504
|
+
]
|
|
8505
|
+
},
|
|
8506
|
+
{
|
|
8507
|
+
"kind": "method",
|
|
8508
|
+
"name": "_isLine",
|
|
8509
|
+
"parameters": [
|
|
8510
|
+
{
|
|
8511
|
+
"name": "selected",
|
|
8512
|
+
"type": {
|
|
8513
|
+
"text": "Component[]"
|
|
8514
|
+
}
|
|
8515
|
+
}
|
|
8516
|
+
]
|
|
8517
|
+
},
|
|
8518
|
+
{
|
|
8519
|
+
"kind": "method",
|
|
8520
|
+
"name": "_is3dish",
|
|
8521
|
+
"parameters": [
|
|
8522
|
+
{
|
|
8523
|
+
"name": "selected",
|
|
8524
|
+
"type": {
|
|
8525
|
+
"text": "Component[]"
|
|
8526
|
+
}
|
|
8527
|
+
}
|
|
8528
|
+
]
|
|
8529
|
+
},
|
|
8530
|
+
{
|
|
8531
|
+
"kind": "method",
|
|
8532
|
+
"name": "_getValueFromEventTarget",
|
|
8533
|
+
"parameters": [
|
|
8534
|
+
{
|
|
8535
|
+
"name": "element",
|
|
8536
|
+
"type": {
|
|
8537
|
+
"text": "HTMLElement"
|
|
8538
|
+
}
|
|
8539
|
+
}
|
|
8540
|
+
],
|
|
8541
|
+
"inheritedFrom": {
|
|
8542
|
+
"name": "AbstractProperty",
|
|
8543
|
+
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
8544
|
+
}
|
|
8545
|
+
},
|
|
8546
|
+
{
|
|
8547
|
+
"kind": "method",
|
|
8548
|
+
"name": "_onAfterValueChange",
|
|
8549
|
+
"parameters": [
|
|
8550
|
+
{
|
|
8551
|
+
"name": "key",
|
|
8552
|
+
"type": {
|
|
8553
|
+
"text": "string"
|
|
8554
|
+
}
|
|
8555
|
+
},
|
|
8556
|
+
{
|
|
8557
|
+
"name": "value",
|
|
8558
|
+
"type": {
|
|
8559
|
+
"text": "any"
|
|
8560
|
+
}
|
|
8561
|
+
}
|
|
8562
|
+
],
|
|
8563
|
+
"inheritedFrom": {
|
|
8564
|
+
"name": "AbstractProperty",
|
|
8565
|
+
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
8566
|
+
}
|
|
8567
|
+
}
|
|
8568
|
+
],
|
|
8569
|
+
"events": [
|
|
8570
|
+
{
|
|
8571
|
+
"name": "bounds-change",
|
|
8572
|
+
"type": {
|
|
8573
|
+
"text": "CustomEvent"
|
|
8574
|
+
}
|
|
8575
|
+
},
|
|
8576
|
+
{
|
|
8577
|
+
"name": "property-change",
|
|
8578
|
+
"type": {
|
|
8579
|
+
"text": "CustomEvent"
|
|
8580
|
+
},
|
|
8581
|
+
"inheritedFrom": {
|
|
8582
|
+
"name": "AbstractProperty",
|
|
8583
|
+
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
8584
|
+
}
|
|
8585
|
+
}
|
|
8586
|
+
],
|
|
8587
|
+
"attributes": [
|
|
8588
|
+
{
|
|
8589
|
+
"name": "value",
|
|
8590
|
+
"type": {
|
|
8591
|
+
"text": "Properties | undefined"
|
|
8592
|
+
},
|
|
8593
|
+
"fieldName": "value"
|
|
8594
|
+
},
|
|
8595
|
+
{
|
|
8596
|
+
"name": "bounds",
|
|
8597
|
+
"type": {
|
|
8598
|
+
"text": "BOUNDS | null"
|
|
8599
|
+
},
|
|
8600
|
+
"default": "null",
|
|
8601
|
+
"fieldName": "bounds"
|
|
8602
|
+
},
|
|
8603
|
+
{
|
|
8604
|
+
"name": "selected",
|
|
8605
|
+
"type": {
|
|
8606
|
+
"text": "Component[]"
|
|
8607
|
+
},
|
|
8608
|
+
"default": "[]",
|
|
8609
|
+
"fieldName": "selected"
|
|
8610
|
+
}
|
|
8611
|
+
],
|
|
8612
|
+
"superclass": {
|
|
8613
|
+
"name": "AbstractProperty",
|
|
8614
|
+
"module": "/src/modeller/property-sidebar/abstract-property"
|
|
8615
|
+
}
|
|
8616
|
+
}
|
|
8617
|
+
],
|
|
8618
|
+
"exports": [
|
|
8619
|
+
{
|
|
8620
|
+
"kind": "js",
|
|
8621
|
+
"name": "PropertyShapes",
|
|
8622
|
+
"declaration": {
|
|
8623
|
+
"name": "PropertyShapes",
|
|
8624
|
+
"module": "src/modeller/property-sidebar/shapes/shapes.ts"
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
]
|
|
8628
|
+
},
|
|
8386
8629
|
{
|
|
8387
8630
|
"kind": "javascript-module",
|
|
8388
8631
|
"path": "src/modeller/property-sidebar/specifics/specific-properties-builder.ts",
|
|
@@ -8563,6 +8806,16 @@
|
|
|
8563
8806
|
"static": true,
|
|
8564
8807
|
"readonly": true
|
|
8565
8808
|
},
|
|
8809
|
+
{
|
|
8810
|
+
"kind": "method",
|
|
8811
|
+
"name": "_isGroupSelected",
|
|
8812
|
+
"privacy": "private",
|
|
8813
|
+
"return": {
|
|
8814
|
+
"type": {
|
|
8815
|
+
"text": "boolean"
|
|
8816
|
+
}
|
|
8817
|
+
}
|
|
8818
|
+
},
|
|
8566
8819
|
{
|
|
8567
8820
|
"kind": "method",
|
|
8568
8821
|
"name": "_onValueChange",
|
|
@@ -8899,249 +9152,6 @@
|
|
|
8899
9152
|
}
|
|
8900
9153
|
}
|
|
8901
9154
|
]
|
|
8902
|
-
},
|
|
8903
|
-
{
|
|
8904
|
-
"kind": "javascript-module",
|
|
8905
|
-
"path": "src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts",
|
|
8906
|
-
"declarations": [
|
|
8907
|
-
{
|
|
8908
|
-
"kind": "variable",
|
|
8909
|
-
"name": "BoxPaddingEditorStyles",
|
|
8910
|
-
"default": "css` .box-padding { width: 100%; } .box-padding td { background: var(--url-icon-properties-padding) 50% 0 no-repeat; } .box-padding tr:nth-child(1), .box-padding tr:nth-child(3) { height: 20px; } .box-padding tr td:nth-child(1), .box-padding tr td:nth-child(3) { width: 18px; } .box-padding .slide1 { background-position: 0 0; } .box-padding .slide2 { background-position: 50% -40px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide3 { background-position: 100% -440px; } .box-padding .slide4 { background-position: 0 -360px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide5 { background: none; text-align: center; } .box-padding .slide6 { background-position: 100% -160px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide7 { background-position: 0 100%; } .box-padding .slide8 { background-position: 50% -320px; background-color: rgba(69, 46, 41, 0.2); } .box-padding .slide9 { background-position: 0 0px; } .box-padding input { background-color: transparent; width: 35px; margin: 0px; padding: 0px; clear: both; float: initial; border: 1px solid #fff; border-width: 0 0 1px 0; text-align: right; font-size: 14px; } .slide5 input:nth-child(1), .slide5 input:nth-child(4) { display: block; margin: auto; } .slide5 input:nth-child(2) { float: left; } .slide5 input:nth-child(3) { float: right; margin-top: -25px; } .slide5 input:nth-child(4) { margin-top: -5px; } `"
|
|
8911
|
-
}
|
|
8912
|
-
],
|
|
8913
|
-
"exports": [
|
|
8914
|
-
{
|
|
8915
|
-
"kind": "js",
|
|
8916
|
-
"name": "BoxPaddingEditorStyles",
|
|
8917
|
-
"declaration": {
|
|
8918
|
-
"name": "BoxPaddingEditorStyles",
|
|
8919
|
-
"module": "src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts"
|
|
8920
|
-
}
|
|
8921
|
-
}
|
|
8922
|
-
]
|
|
8923
|
-
},
|
|
8924
|
-
{
|
|
8925
|
-
"kind": "javascript-module",
|
|
8926
|
-
"path": "src/modeller/property-sidebar/shapes/shapes.ts",
|
|
8927
|
-
"declarations": [
|
|
8928
|
-
{
|
|
8929
|
-
"kind": "class",
|
|
8930
|
-
"description": "",
|
|
8931
|
-
"name": "PropertyShapes",
|
|
8932
|
-
"members": [
|
|
8933
|
-
{
|
|
8934
|
-
"kind": "field",
|
|
8935
|
-
"name": "value",
|
|
8936
|
-
"type": {
|
|
8937
|
-
"text": "Properties | undefined"
|
|
8938
|
-
},
|
|
8939
|
-
"attribute": "value"
|
|
8940
|
-
},
|
|
8941
|
-
{
|
|
8942
|
-
"kind": "field",
|
|
8943
|
-
"name": "bounds",
|
|
8944
|
-
"type": {
|
|
8945
|
-
"text": "BOUNDS | null"
|
|
8946
|
-
},
|
|
8947
|
-
"default": "null",
|
|
8948
|
-
"attribute": "bounds"
|
|
8949
|
-
},
|
|
8950
|
-
{
|
|
8951
|
-
"kind": "field",
|
|
8952
|
-
"name": "selected",
|
|
8953
|
-
"type": {
|
|
8954
|
-
"text": "Component[]"
|
|
8955
|
-
},
|
|
8956
|
-
"default": "[]",
|
|
8957
|
-
"attribute": "selected"
|
|
8958
|
-
},
|
|
8959
|
-
{
|
|
8960
|
-
"kind": "method",
|
|
8961
|
-
"name": "_onValueChange",
|
|
8962
|
-
"parameters": [
|
|
8963
|
-
{
|
|
8964
|
-
"name": "e",
|
|
8965
|
-
"type": {
|
|
8966
|
-
"text": "Event"
|
|
8967
|
-
}
|
|
8968
|
-
}
|
|
8969
|
-
],
|
|
8970
|
-
"inheritedFrom": {
|
|
8971
|
-
"name": "AbstractProperty",
|
|
8972
|
-
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
8973
|
-
}
|
|
8974
|
-
},
|
|
8975
|
-
{
|
|
8976
|
-
"kind": "method",
|
|
8977
|
-
"name": "_hasTextProperty",
|
|
8978
|
-
"parameters": [
|
|
8979
|
-
{
|
|
8980
|
-
"name": "selected",
|
|
8981
|
-
"type": {
|
|
8982
|
-
"text": "Component[]"
|
|
8983
|
-
}
|
|
8984
|
-
}
|
|
8985
|
-
]
|
|
8986
|
-
},
|
|
8987
|
-
{
|
|
8988
|
-
"kind": "method",
|
|
8989
|
-
"name": "_hasProperties",
|
|
8990
|
-
"parameters": [
|
|
8991
|
-
{
|
|
8992
|
-
"name": "selected",
|
|
8993
|
-
"type": {
|
|
8994
|
-
"text": "Component[]"
|
|
8995
|
-
}
|
|
8996
|
-
}
|
|
8997
|
-
]
|
|
8998
|
-
},
|
|
8999
|
-
{
|
|
9000
|
-
"kind": "method",
|
|
9001
|
-
"name": "_isIdentifiable",
|
|
9002
|
-
"parameters": [
|
|
9003
|
-
{
|
|
9004
|
-
"name": "selected",
|
|
9005
|
-
"type": {
|
|
9006
|
-
"text": "Component[]"
|
|
9007
|
-
}
|
|
9008
|
-
}
|
|
9009
|
-
]
|
|
9010
|
-
},
|
|
9011
|
-
{
|
|
9012
|
-
"kind": "method",
|
|
9013
|
-
"name": "_isClassIdentifiable",
|
|
9014
|
-
"parameters": [
|
|
9015
|
-
{
|
|
9016
|
-
"name": "selected",
|
|
9017
|
-
"type": {
|
|
9018
|
-
"text": "Component[]"
|
|
9019
|
-
}
|
|
9020
|
-
}
|
|
9021
|
-
]
|
|
9022
|
-
},
|
|
9023
|
-
{
|
|
9024
|
-
"kind": "method",
|
|
9025
|
-
"name": "_isLine",
|
|
9026
|
-
"parameters": [
|
|
9027
|
-
{
|
|
9028
|
-
"name": "selected",
|
|
9029
|
-
"type": {
|
|
9030
|
-
"text": "Component[]"
|
|
9031
|
-
}
|
|
9032
|
-
}
|
|
9033
|
-
]
|
|
9034
|
-
},
|
|
9035
|
-
{
|
|
9036
|
-
"kind": "method",
|
|
9037
|
-
"name": "_is3dish",
|
|
9038
|
-
"parameters": [
|
|
9039
|
-
{
|
|
9040
|
-
"name": "selected",
|
|
9041
|
-
"type": {
|
|
9042
|
-
"text": "Component[]"
|
|
9043
|
-
}
|
|
9044
|
-
}
|
|
9045
|
-
]
|
|
9046
|
-
},
|
|
9047
|
-
{
|
|
9048
|
-
"kind": "method",
|
|
9049
|
-
"name": "_getValueFromEventTarget",
|
|
9050
|
-
"parameters": [
|
|
9051
|
-
{
|
|
9052
|
-
"name": "element",
|
|
9053
|
-
"type": {
|
|
9054
|
-
"text": "HTMLElement"
|
|
9055
|
-
}
|
|
9056
|
-
}
|
|
9057
|
-
],
|
|
9058
|
-
"inheritedFrom": {
|
|
9059
|
-
"name": "AbstractProperty",
|
|
9060
|
-
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
9061
|
-
}
|
|
9062
|
-
},
|
|
9063
|
-
{
|
|
9064
|
-
"kind": "method",
|
|
9065
|
-
"name": "_onAfterValueChange",
|
|
9066
|
-
"parameters": [
|
|
9067
|
-
{
|
|
9068
|
-
"name": "key",
|
|
9069
|
-
"type": {
|
|
9070
|
-
"text": "string"
|
|
9071
|
-
}
|
|
9072
|
-
},
|
|
9073
|
-
{
|
|
9074
|
-
"name": "value",
|
|
9075
|
-
"type": {
|
|
9076
|
-
"text": "any"
|
|
9077
|
-
}
|
|
9078
|
-
}
|
|
9079
|
-
],
|
|
9080
|
-
"inheritedFrom": {
|
|
9081
|
-
"name": "AbstractProperty",
|
|
9082
|
-
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
9083
|
-
}
|
|
9084
|
-
}
|
|
9085
|
-
],
|
|
9086
|
-
"events": [
|
|
9087
|
-
{
|
|
9088
|
-
"name": "bounds-change",
|
|
9089
|
-
"type": {
|
|
9090
|
-
"text": "CustomEvent"
|
|
9091
|
-
}
|
|
9092
|
-
},
|
|
9093
|
-
{
|
|
9094
|
-
"name": "property-change",
|
|
9095
|
-
"type": {
|
|
9096
|
-
"text": "CustomEvent"
|
|
9097
|
-
},
|
|
9098
|
-
"inheritedFrom": {
|
|
9099
|
-
"name": "AbstractProperty",
|
|
9100
|
-
"module": "src/modeller/property-sidebar/abstract-property.ts"
|
|
9101
|
-
}
|
|
9102
|
-
}
|
|
9103
|
-
],
|
|
9104
|
-
"attributes": [
|
|
9105
|
-
{
|
|
9106
|
-
"name": "value",
|
|
9107
|
-
"type": {
|
|
9108
|
-
"text": "Properties | undefined"
|
|
9109
|
-
},
|
|
9110
|
-
"fieldName": "value"
|
|
9111
|
-
},
|
|
9112
|
-
{
|
|
9113
|
-
"name": "bounds",
|
|
9114
|
-
"type": {
|
|
9115
|
-
"text": "BOUNDS | null"
|
|
9116
|
-
},
|
|
9117
|
-
"default": "null",
|
|
9118
|
-
"fieldName": "bounds"
|
|
9119
|
-
},
|
|
9120
|
-
{
|
|
9121
|
-
"name": "selected",
|
|
9122
|
-
"type": {
|
|
9123
|
-
"text": "Component[]"
|
|
9124
|
-
},
|
|
9125
|
-
"default": "[]",
|
|
9126
|
-
"fieldName": "selected"
|
|
9127
|
-
}
|
|
9128
|
-
],
|
|
9129
|
-
"superclass": {
|
|
9130
|
-
"name": "AbstractProperty",
|
|
9131
|
-
"module": "/src/modeller/property-sidebar/abstract-property"
|
|
9132
|
-
}
|
|
9133
|
-
}
|
|
9134
|
-
],
|
|
9135
|
-
"exports": [
|
|
9136
|
-
{
|
|
9137
|
-
"kind": "js",
|
|
9138
|
-
"name": "PropertyShapes",
|
|
9139
|
-
"declaration": {
|
|
9140
|
-
"name": "PropertyShapes",
|
|
9141
|
-
"module": "src/modeller/property-sidebar/shapes/shapes.ts"
|
|
9142
|
-
}
|
|
9143
|
-
}
|
|
9144
|
-
]
|
|
9145
9155
|
}
|
|
9146
9156
|
]
|
|
9147
9157
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const text = new URL('../../../icons/components/text.png', import.meta.url).href;
|
|
1
2
|
const rect = new URL('../../../icons/components/rect.png', import.meta.url).href;
|
|
2
3
|
const ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href;
|
|
3
4
|
const lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href;
|
|
@@ -22,6 +23,23 @@ export const etc = {
|
|
|
22
23
|
description: 'a group of components that have not yet been defined.',
|
|
23
24
|
icon,
|
|
24
25
|
templates: [
|
|
26
|
+
{
|
|
27
|
+
type: 'text',
|
|
28
|
+
description: 'text',
|
|
29
|
+
icon: text,
|
|
30
|
+
group: 'shape',
|
|
31
|
+
model: {
|
|
32
|
+
type: 'text',
|
|
33
|
+
left: 100,
|
|
34
|
+
top: 100,
|
|
35
|
+
width: 200,
|
|
36
|
+
height: 50,
|
|
37
|
+
fillStyle: 'transparent',
|
|
38
|
+
fontColor: '#000',
|
|
39
|
+
fontSize: 16,
|
|
40
|
+
text: 'Text'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
25
43
|
{
|
|
26
44
|
type: 'rect',
|
|
27
45
|
description: 'rectangle shape',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etc.js","sourceRoot":"","sources":["../../../src/component/etc.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACpF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,wCAAwC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACxF,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,yCAAyC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC1F,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,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K,EAAE,WAAW;YAClB,KAAK,EAAE;gBACL,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,CAAC;gBACZ,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,MAAM;aAChB;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,eAAe;aAC7B;SACF;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,KAAK,EAAE;gBACL,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,SAAS;gBACpB,WAAW,EAAE,SAAS;gBACtB,KAAK,EAAE,GAAG;aACX;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types'\n\nconst rect = new URL('../../../icons/components/rect.png', import.meta.url).href\nconst ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href\nconst lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href\nconst dash = new URL('../../../icons/components/dash.png', import.meta.url).href\nconst triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href\nconst container = new URL('../../../icons/components/container.png', import.meta.url).href\nconst popup = new URL('../../../icons/components/popup.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <circle class=\"st0\" cx=\"7.1\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"15\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"22.9\" cy=\"15\" r=\"2\"/>\n </g>\n</svg>\n`\n\nexport const etc: ComponentGroup = {\n name: 'etc',\n description: 'a group of components that have not yet been defined.',\n icon,\n templates: [\n {\n type: 'rect',\n description: 'rectangle shape',\n icon: rect,\n group: 'shape',\n model: {\n type: 'rect',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'ellipse',\n description: 'ellipse shape',\n icon: ellipse,\n group: 'shape',\n model: {\n type: 'ellipse',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'triangle',\n description: 'triangle shape',\n icon: triangle,\n group: 'shape',\n model: {\n type: 'triangle',\n x1: 150,\n y1: 100,\n x2: 100,\n y2: 200,\n x3: 200,\n y3: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'line',\n description: 'simple line',\n icon: lineIcon,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'dash',\n description: 'dash line',\n icon: dash,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'round-dot',\n lineCap: 'butt'\n }\n },\n {\n type: 'container',\n description: 'container shape',\n icon: container,\n group: 'container',\n model: {\n type: 'container',\n left: 100,\n top: 100,\n width: 400,\n height: 300,\n fillStyle: '#fff',\n strokeStyle: '#999',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'popup',\n description: 'popup window',\n icon: popup,\n group: 'container',\n model: {\n type: 'popup',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: 'DarkGoldenRod'\n }\n },\n {\n type: 'floor-plate',\n description: 'floor plate for multi-story layout',\n icon: rect,\n group: '3d',\n model: {\n type: 'floor-plate',\n left: 100,\n top: 100,\n width: 500,\n height: 500,\n depth: 2,\n fillStyle: '#e8e8e8',\n strokeStyle: '#999999',\n alpha: 0.7\n }\n }\n ]\n}\n"]}
|
|
1
|
+
{"version":3,"file":"etc.js","sourceRoot":"","sources":["../../../src/component/etc.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uC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gBACjB,OAAO,EAAE,MAAM;aAChB;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,eAAe;aAC7B;SACF;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,KAAK,EAAE;gBACL,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,SAAS;gBACpB,WAAW,EAAE,SAAS;gBACtB,KAAK,EAAE,GAAG;aACX;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types'\n\nconst text = new URL('../../../icons/components/text.png', import.meta.url).href\nconst rect = new URL('../../../icons/components/rect.png', import.meta.url).href\nconst ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href\nconst lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href\nconst dash = new URL('../../../icons/components/dash.png', import.meta.url).href\nconst triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href\nconst container = new URL('../../../icons/components/container.png', import.meta.url).href\nconst popup = new URL('../../../icons/components/popup.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <circle class=\"st0\" cx=\"7.1\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"15\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"22.9\" cy=\"15\" r=\"2\"/>\n </g>\n</svg>\n`\n\nexport const etc: ComponentGroup = {\n name: 'etc',\n description: 'a group of components that have not yet been defined.',\n icon,\n templates: [\n {\n type: 'text',\n description: 'text',\n icon: text,\n group: 'shape',\n model: {\n type: 'text',\n left: 100,\n top: 100,\n width: 200,\n height: 50,\n fillStyle: 'transparent',\n fontColor: '#000',\n fontSize: 16,\n text: 'Text'\n }\n },\n {\n type: 'rect',\n description: 'rectangle shape',\n icon: rect,\n group: 'shape',\n model: {\n type: 'rect',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'ellipse',\n description: 'ellipse shape',\n icon: ellipse,\n group: 'shape',\n model: {\n type: 'ellipse',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'triangle',\n description: 'triangle shape',\n icon: triangle,\n group: 'shape',\n model: {\n type: 'triangle',\n x1: 150,\n y1: 100,\n x2: 100,\n y2: 200,\n x3: 200,\n y3: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'line',\n description: 'simple line',\n icon: lineIcon,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'dash',\n description: 'dash line',\n icon: dash,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'round-dot',\n lineCap: 'butt'\n }\n },\n {\n type: 'container',\n description: 'container shape',\n icon: container,\n group: 'container',\n model: {\n type: 'container',\n left: 100,\n top: 100,\n width: 400,\n height: 300,\n fillStyle: '#fff',\n strokeStyle: '#999',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'popup',\n description: 'popup window',\n icon: popup,\n group: 'container',\n model: {\n type: 'popup',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: 'DarkGoldenRod'\n }\n },\n {\n type: 'floor-plate',\n description: 'floor plate for multi-story layout',\n icon: rect,\n group: '3d',\n model: {\n type: 'floor-plate',\n left: 100,\n top: 100,\n width: 500,\n height: 500,\n depth: 2,\n fillStyle: '#e8e8e8',\n strokeStyle: '#999999',\n alpha: 0.7\n }\n }\n ]\n}\n"]}
|
|
@@ -18,6 +18,7 @@ export declare class PropertySpecific extends PropertySpecific_base {
|
|
|
18
18
|
static get scopedElements(): {
|
|
19
19
|
'specific-properties-builder': typeof SpecificPropertiesBuilder;
|
|
20
20
|
};
|
|
21
|
+
private _isGroupSelected;
|
|
21
22
|
render(): import("lit-html").TemplateResult<1>;
|
|
22
23
|
_onValueChange(e: Event): void;
|
|
23
24
|
_isIdentifiable(selected: Component[]): boolean;
|
|
@@ -30,9 +30,16 @@ export class PropertySpecific extends ScopedElementsMixin(AbstractProperty) {
|
|
|
30
30
|
'specific-properties-builder': SpecificPropertiesBuilder
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
_isGroupSelected() {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
return ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_c = (_b = this.selected[0]).isGroup) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
36
|
+
}
|
|
33
37
|
render() {
|
|
34
38
|
const selected = this.selected && this.selected[0];
|
|
35
39
|
const value = this.value || {};
|
|
40
|
+
if (this._isGroupSelected()) {
|
|
41
|
+
return html `<label component-type>${value.type}</label>`;
|
|
42
|
+
}
|
|
36
43
|
return html `
|
|
37
44
|
<label component-type>${value.type}</label>
|
|
38
45
|
<fieldset>
|
|
@@ -76,8 +83,11 @@ export class PropertySpecific extends ScopedElementsMixin(AbstractProperty) {
|
|
|
76
83
|
this._onAfterValueChange(key, value);
|
|
77
84
|
}
|
|
78
85
|
_isIdentifiable(selected) {
|
|
86
|
+
var _a, _b;
|
|
79
87
|
if (!selected || selected.length == 0 || selected.length > 1 || (selected[0].isLayer && selected[0].isLayer()))
|
|
80
88
|
return false;
|
|
89
|
+
if ((_b = (_a = selected[0]).isGroup) === null || _b === void 0 ? void 0 : _b.call(_a))
|
|
90
|
+
return false;
|
|
81
91
|
return true;
|
|
82
92
|
}
|
|
83
93
|
_hasTextProperty(selected) {
|