@fmsim/board 0.0.89 → 0.0.90

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.
@@ -1821,6 +1821,200 @@
1821
1821
  }
1822
1822
  ]
1823
1823
  },
1824
+ {
1825
+ "kind": "javascript-module",
1826
+ "path": "src/layers/mcs-mouse-event-handler.ts",
1827
+ "declarations": [],
1828
+ "exports": []
1829
+ },
1830
+ {
1831
+ "kind": "javascript-module",
1832
+ "path": "src/layers/movement-layer.ts",
1833
+ "declarations": [
1834
+ {
1835
+ "kind": "class",
1836
+ "description": "",
1837
+ "name": "MovementLayer",
1838
+ "members": [
1839
+ {
1840
+ "kind": "field",
1841
+ "name": "drawInstructionHandler"
1842
+ },
1843
+ {
1844
+ "kind": "field",
1845
+ "name": "clickComponentHandler"
1846
+ },
1847
+ {
1848
+ "kind": "method",
1849
+ "name": "ready"
1850
+ },
1851
+ {
1852
+ "kind": "method",
1853
+ "name": "dispose"
1854
+ },
1855
+ {
1856
+ "kind": "field",
1857
+ "name": "capturable",
1858
+ "readonly": true
1859
+ },
1860
+ {
1861
+ "kind": "method",
1862
+ "name": "drawArrow",
1863
+ "parameters": [
1864
+ {
1865
+ "name": "ctx",
1866
+ "type": {
1867
+ "text": "CanvasRenderingContext2D"
1868
+ }
1869
+ },
1870
+ {
1871
+ "name": "p0",
1872
+ "type": {
1873
+ "text": "POINT"
1874
+ }
1875
+ },
1876
+ {
1877
+ "name": "p1",
1878
+ "type": {
1879
+ "text": "POINT"
1880
+ }
1881
+ },
1882
+ {
1883
+ "name": "headLength",
1884
+ "default": "10",
1885
+ "type": {
1886
+ "text": "number"
1887
+ }
1888
+ }
1889
+ ]
1890
+ },
1891
+ {
1892
+ "kind": "method",
1893
+ "name": "findSourceAndTarget",
1894
+ "return": {
1895
+ "type": {
1896
+ "text": "[Component?, Component?]"
1897
+ }
1898
+ },
1899
+ "parameters": [
1900
+ {
1901
+ "name": "path",
1902
+ "type": {
1903
+ "text": "PATH"
1904
+ }
1905
+ }
1906
+ ]
1907
+ },
1908
+ {
1909
+ "kind": "field",
1910
+ "name": "eventMap",
1911
+ "readonly": true
1912
+ },
1913
+ {
1914
+ "kind": "method",
1915
+ "name": "onchangeModelLayer",
1916
+ "parameters": [
1917
+ {
1918
+ "name": "after",
1919
+ "type": {
1920
+ "text": "any"
1921
+ }
1922
+ },
1923
+ {
1924
+ "name": "before",
1925
+ "type": {
1926
+ "text": "any"
1927
+ }
1928
+ },
1929
+ {
1930
+ "name": "hint",
1931
+ "type": {
1932
+ "text": "any"
1933
+ }
1934
+ }
1935
+ ]
1936
+ },
1937
+ {
1938
+ "kind": "method",
1939
+ "name": "onchangeData",
1940
+ "return": {
1941
+ "type": {
1942
+ "text": "void"
1943
+ }
1944
+ },
1945
+ "parameters": [
1946
+ {
1947
+ "name": "after",
1948
+ "type": {
1949
+ "text": "Properties"
1950
+ }
1951
+ },
1952
+ {
1953
+ "name": "before",
1954
+ "type": {
1955
+ "text": "Properties"
1956
+ }
1957
+ }
1958
+ ]
1959
+ }
1960
+ ],
1961
+ "superclass": {
1962
+ "name": "Layer",
1963
+ "package": "@hatiolab/things-scene"
1964
+ }
1965
+ }
1966
+ ],
1967
+ "exports": [
1968
+ {
1969
+ "kind": "js",
1970
+ "name": "default",
1971
+ "declaration": {
1972
+ "name": "MovementLayer",
1973
+ "module": "src/layers/movement-layer.ts"
1974
+ }
1975
+ }
1976
+ ]
1977
+ },
1978
+ {
1979
+ "kind": "javascript-module",
1980
+ "path": "src/layers/tooltip-decorator.ts",
1981
+ "declarations": [
1982
+ {
1983
+ "kind": "function",
1984
+ "name": "tooltipDecorator",
1985
+ "parameters": [
1986
+ {
1987
+ "name": "component",
1988
+ "type": {
1989
+ "text": "Component"
1990
+ }
1991
+ },
1992
+ {
1993
+ "name": "context",
1994
+ "type": {
1995
+ "text": "CanvasRenderingContext2D"
1996
+ }
1997
+ },
1998
+ {
1999
+ "name": "delta",
2000
+ "type": {
2001
+ "text": "number"
2002
+ }
2003
+ }
2004
+ ]
2005
+ }
2006
+ ],
2007
+ "exports": [
2008
+ {
2009
+ "kind": "js",
2010
+ "name": "default",
2011
+ "declaration": {
2012
+ "name": "tooltipDecorator",
2013
+ "module": "src/layers/tooltip-decorator.ts"
2014
+ }
2015
+ }
2016
+ ]
2017
+ },
1824
2018
  {
1825
2019
  "kind": "javascript-module",
1826
2020
  "path": "src/modeller/edit-toolbar-style.ts",
@@ -2224,22 +2418,6 @@
2224
2418
  }
2225
2419
  ]
2226
2420
  },
2227
- {
2228
- "kind": "method",
2229
- "name": "onTapSymmetryX"
2230
- },
2231
- {
2232
- "kind": "method",
2233
- "name": "onTapSymmetryY"
2234
- },
2235
- {
2236
- "kind": "method",
2237
- "name": "onTapRotateCW"
2238
- },
2239
- {
2240
- "kind": "method",
2241
- "name": "onTapRotateCCW"
2242
- },
2243
2421
  {
2244
2422
  "kind": "method",
2245
2423
  "name": "onTapGroup"
@@ -2364,243 +2542,49 @@
2364
2542
  },
2365
2543
  {
2366
2544
  "kind": "javascript-module",
2367
- "path": "src/layers/mcs-mouse-event-handler.ts",
2368
- "declarations": [],
2369
- "exports": []
2370
- },
2371
- {
2372
- "kind": "javascript-module",
2373
- "path": "src/layers/movement-layer.ts",
2545
+ "path": "src/selector/board-creation-popup.ts",
2374
2546
  "declarations": [
2375
2547
  {
2376
2548
  "kind": "class",
2377
2549
  "description": "",
2378
- "name": "MovementLayer",
2550
+ "name": "BoardCreationPopup",
2379
2551
  "members": [
2380
2552
  {
2381
2553
  "kind": "field",
2382
- "name": "drawInstructionHandler"
2554
+ "name": "defaultGroup",
2555
+ "type": {
2556
+ "text": "string | undefined"
2557
+ },
2558
+ "attribute": "defaultGroup"
2383
2559
  },
2384
2560
  {
2385
2561
  "kind": "field",
2386
- "name": "clickComponentHandler"
2562
+ "name": "groups",
2563
+ "type": {
2564
+ "text": "{ id: string; name: string }[] | undefined"
2565
+ },
2566
+ "attribute": "groups"
2387
2567
  },
2388
2568
  {
2389
2569
  "kind": "method",
2390
- "name": "ready"
2391
- },
2570
+ "name": "onClickSubmit"
2571
+ }
2572
+ ],
2573
+ "events": [
2392
2574
  {
2393
- "kind": "method",
2394
- "name": "dispose"
2395
- },
2575
+ "name": "create-board",
2576
+ "type": {
2577
+ "text": "CustomEvent"
2578
+ }
2579
+ }
2580
+ ],
2581
+ "attributes": [
2396
2582
  {
2397
- "kind": "field",
2398
- "name": "capturable",
2399
- "readonly": true
2400
- },
2401
- {
2402
- "kind": "method",
2403
- "name": "drawArrow",
2404
- "parameters": [
2405
- {
2406
- "name": "ctx",
2407
- "type": {
2408
- "text": "CanvasRenderingContext2D"
2409
- }
2410
- },
2411
- {
2412
- "name": "p0",
2413
- "type": {
2414
- "text": "POINT"
2415
- }
2416
- },
2417
- {
2418
- "name": "p1",
2419
- "type": {
2420
- "text": "POINT"
2421
- }
2422
- },
2423
- {
2424
- "name": "headLength",
2425
- "default": "10",
2426
- "type": {
2427
- "text": "number"
2428
- }
2429
- }
2430
- ]
2431
- },
2432
- {
2433
- "kind": "method",
2434
- "name": "findSourceAndTarget",
2435
- "return": {
2436
- "type": {
2437
- "text": "[Component?, Component?]"
2438
- }
2439
- },
2440
- "parameters": [
2441
- {
2442
- "name": "path",
2443
- "type": {
2444
- "text": "PATH"
2445
- }
2446
- }
2447
- ]
2448
- },
2449
- {
2450
- "kind": "field",
2451
- "name": "eventMap",
2452
- "readonly": true
2453
- },
2454
- {
2455
- "kind": "method",
2456
- "name": "onchangeModelLayer",
2457
- "parameters": [
2458
- {
2459
- "name": "after",
2460
- "type": {
2461
- "text": "any"
2462
- }
2463
- },
2464
- {
2465
- "name": "before",
2466
- "type": {
2467
- "text": "any"
2468
- }
2469
- },
2470
- {
2471
- "name": "hint",
2472
- "type": {
2473
- "text": "any"
2474
- }
2475
- }
2476
- ]
2477
- },
2478
- {
2479
- "kind": "method",
2480
- "name": "onchangeData",
2481
- "return": {
2482
- "type": {
2483
- "text": "void"
2484
- }
2485
- },
2486
- "parameters": [
2487
- {
2488
- "name": "after",
2489
- "type": {
2490
- "text": "Properties"
2491
- }
2492
- },
2493
- {
2494
- "name": "before",
2495
- "type": {
2496
- "text": "Properties"
2497
- }
2498
- }
2499
- ]
2500
- }
2501
- ],
2502
- "superclass": {
2503
- "name": "Layer",
2504
- "package": "@hatiolab/things-scene"
2505
- }
2506
- }
2507
- ],
2508
- "exports": [
2509
- {
2510
- "kind": "js",
2511
- "name": "default",
2512
- "declaration": {
2513
- "name": "MovementLayer",
2514
- "module": "src/layers/movement-layer.ts"
2515
- }
2516
- }
2517
- ]
2518
- },
2519
- {
2520
- "kind": "javascript-module",
2521
- "path": "src/layers/tooltip-decorator.ts",
2522
- "declarations": [
2523
- {
2524
- "kind": "function",
2525
- "name": "tooltipDecorator",
2526
- "parameters": [
2527
- {
2528
- "name": "component",
2529
- "type": {
2530
- "text": "Component"
2531
- }
2532
- },
2533
- {
2534
- "name": "context",
2535
- "type": {
2536
- "text": "CanvasRenderingContext2D"
2537
- }
2538
- },
2539
- {
2540
- "name": "delta",
2541
- "type": {
2542
- "text": "number"
2543
- }
2544
- }
2545
- ]
2546
- }
2547
- ],
2548
- "exports": [
2549
- {
2550
- "kind": "js",
2551
- "name": "default",
2552
- "declaration": {
2553
- "name": "tooltipDecorator",
2554
- "module": "src/layers/tooltip-decorator.ts"
2555
- }
2556
- }
2557
- ]
2558
- },
2559
- {
2560
- "kind": "javascript-module",
2561
- "path": "src/selector/board-creation-popup.ts",
2562
- "declarations": [
2563
- {
2564
- "kind": "class",
2565
- "description": "",
2566
- "name": "BoardCreationPopup",
2567
- "members": [
2568
- {
2569
- "kind": "field",
2570
- "name": "defaultGroup",
2571
- "type": {
2572
- "text": "string | undefined"
2573
- },
2574
- "attribute": "defaultGroup"
2575
- },
2576
- {
2577
- "kind": "field",
2578
- "name": "groups",
2579
- "type": {
2580
- "text": "{ id: string; name: string }[] | undefined"
2581
- },
2582
- "attribute": "groups"
2583
- },
2584
- {
2585
- "kind": "method",
2586
- "name": "onClickSubmit"
2587
- }
2588
- ],
2589
- "events": [
2590
- {
2591
- "name": "create-board",
2592
- "type": {
2593
- "text": "CustomEvent"
2594
- }
2595
- }
2596
- ],
2597
- "attributes": [
2598
- {
2599
- "name": "defaultGroup",
2600
- "type": {
2601
- "text": "string | undefined"
2602
- },
2603
- "fieldName": "defaultGroup"
2583
+ "name": "defaultGroup",
2584
+ "type": {
2585
+ "text": "string | undefined"
2586
+ },
2587
+ "fieldName": "defaultGroup"
2604
2588
  },
2605
2589
  {
2606
2590
  "name": "groups",
@@ -3116,62 +3100,31 @@
3116
3100
  },
3117
3101
  {
3118
3102
  "kind": "javascript-module",
3119
- "path": "src/modeller/property-sidebar/abstract-property.ts",
3103
+ "path": "src/modeller/component-toolbar/component-detail.ts",
3120
3104
  "declarations": [
3121
3105
  {
3122
3106
  "kind": "class",
3123
3107
  "description": "",
3124
- "name": "AbstractProperty",
3108
+ "name": "ComponentDetail",
3125
3109
  "members": [
3126
3110
  {
3127
- "kind": "method",
3128
- "name": "_onValueChange",
3129
- "parameters": [
3130
- {
3131
- "name": "e",
3132
- "type": {
3133
- "text": "Event"
3134
- }
3135
- }
3136
- ]
3137
- },
3138
- {
3139
- "kind": "method",
3140
- "name": "_getValueFromEventTarget",
3141
- "parameters": [
3142
- {
3143
- "name": "element",
3144
- "type": {
3145
- "text": "HTMLElement"
3146
- }
3147
- }
3148
- ]
3149
- },
3150
- {
3151
- "kind": "method",
3152
- "name": "_onAfterValueChange",
3153
- "parameters": [
3154
- {
3155
- "name": "key",
3156
- "type": {
3157
- "text": "string"
3158
- }
3159
- },
3160
- {
3161
- "name": "value",
3162
- "type": {
3163
- "text": "any"
3164
- }
3165
- }
3166
- ]
3111
+ "kind": "field",
3112
+ "name": "template",
3113
+ "type": {
3114
+ "text": "{ about: string } | null"
3115
+ },
3116
+ "default": "null",
3117
+ "attribute": "template"
3167
3118
  }
3168
3119
  ],
3169
- "events": [
3120
+ "attributes": [
3170
3121
  {
3171
- "name": "property-change",
3122
+ "name": "template",
3172
3123
  "type": {
3173
- "text": "CustomEvent"
3174
- }
3124
+ "text": "{ about: string } | null"
3125
+ },
3126
+ "default": "null",
3127
+ "fieldName": "template"
3175
3128
  }
3176
3129
  ],
3177
3130
  "superclass": {
@@ -3184,131 +3137,71 @@
3184
3137
  "exports": [
3185
3138
  {
3186
3139
  "kind": "js",
3187
- "name": "AbstractProperty",
3188
- "declaration": {
3189
- "name": "AbstractProperty",
3190
- "module": "src/modeller/property-sidebar/abstract-property.ts"
3191
- }
3192
- }
3193
- ]
3194
- },
3195
- {
3196
- "kind": "javascript-module",
3197
- "path": "src/modeller/property-sidebar/property-shared-style.ts",
3198
- "declarations": [
3199
- {
3200
- "kind": "variable",
3201
- "name": "PropertySharedStyle",
3202
- "default": "css`\n fieldset {\n border: none;\n margin: 4px;\n padding: 9px 4px 9px 4px;\n border-bottom: var(--property-sidebar-fieldset-border);\n color: var(--property-sidebar-fieldset-legend-color);\n font: var(--property-sidebar-fieldset-label);\n }\n\n fieldset legend {\n padding: 5px 0 0 5px;\n color: var(--property-sidebar-fieldset-legend-color);\n font: var(--property-sidebar-fieldset-legend);\n text-transform: capitalize;\n }\n\n select,\n input {\n border: var(--property-sidebar-fieldset-border);\n }\n\n ox-input-data {\n height: 300px;\n }\n\n /* property grid */\n .property-grid {\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n align-items: center;\n }\n\n .property-grid > * {\n width: 100%;\n box-sizing: border-box;\n }\n\n .property-grid > label {\n grid-column: span 3;\n text-align: right;\n text-transform: capitalize;\n line-height: 2;\n }\n\n .property-grid > input,\n .property-grid > table,\n .property-grid > select,\n .property-grid > ox-input-angle,\n .property-grid > ox-buttons-radio,\n .property-grid > ox-input-color,\n [custom-editor] {\n grid-column: span 7;\n align-self: stretch;\n }\n\n .property-grid > .checkbox-row {\n grid-column: span 10;\n }\n\n .property-grid > .property-full-label {\n grid-column: span 3;\n text-align: right;\n text-transform: capitalize;\n }\n\n .property-grid > .property-half-label {\n grid-column: span 1;\n }\n\n .property-grid > .property-full-input {\n grid-column: span 7;\n }\n\n .property-grid > .property-half-input {\n grid-column: span 4;\n }\n\n /* checkbox-row */\n .checkbox-row {\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n align-items: center;\n }\n\n .checkbox-row > input {\n grid-column: 4 / 5;\n }\n\n .checkbox-row > label {\n grid-column: span 6;\n text-align: left;\n }\n\n /* image resources */\n .icon-only-label {\n grid-column: span 1;\n\n background: var(--url-icon-properties-label) no-repeat;\n float: left;\n margin: 0;\n align-self: stretch;\n }\n\n .icon-only-label.color {\n background-position: 100% -500px;\n }\n .icon-only-label.font-size {\n background-position: 100% -594px;\n }\n .icon-only-label.leading {\n background-position: 100% -696px;\n }\n .icon-only-label.hscale {\n background-position: 100% -296px;\n }\n .icon-only-label.vscale {\n background-position: 100% -396px;\n }\n .icon-only-label.linewidth {\n background-position: 100% -894px;\n }\n .icon-only-label.lineHeight {\n background-position: 100% -995px;\n }\n`"
3203
- }
3204
- ],
3205
- "exports": [
3206
- {
3207
- "kind": "js",
3208
- "name": "PropertySharedStyle",
3140
+ "name": "ComponentDetail",
3209
3141
  "declaration": {
3210
- "name": "PropertySharedStyle",
3211
- "module": "src/modeller/property-sidebar/property-shared-style.ts"
3142
+ "name": "ComponentDetail",
3143
+ "module": "src/modeller/component-toolbar/component-detail.ts"
3212
3144
  }
3213
3145
  }
3214
3146
  ]
3215
3147
  },
3216
3148
  {
3217
3149
  "kind": "javascript-module",
3218
- "path": "src/modeller/property-sidebar/property-sidebar.ts",
3150
+ "path": "src/modeller/component-toolbar/component-menu.ts",
3219
3151
  "declarations": [
3220
3152
  {
3221
3153
  "kind": "class",
3222
3154
  "description": "",
3223
- "name": "PropertySidebar",
3155
+ "name": "ComponentMenu",
3224
3156
  "members": [
3225
3157
  {
3226
3158
  "kind": "field",
3227
- "name": "scene",
3228
- "type": {
3229
- "text": "Scene | null"
3230
- },
3231
- "default": "null",
3232
- "attribute": "scene"
3233
- },
3234
- {
3235
- "kind": "field",
3236
- "name": "bounds",
3237
- "type": {
3238
- "text": "any"
3239
- },
3240
- "default": "{}",
3241
- "attribute": "bounds"
3242
- },
3243
- {
3244
- "kind": "field",
3245
- "name": "model",
3246
- "type": {
3247
- "text": "Model | null"
3248
- },
3249
- "default": "{}",
3250
- "attribute": "model"
3251
- },
3252
- {
3253
- "kind": "field",
3254
- "name": "selected",
3159
+ "name": "groups",
3255
3160
  "type": {
3256
- "text": "Component[]"
3161
+ "text": "Pallet[]"
3257
3162
  },
3258
3163
  "default": "[]",
3259
- "attribute": "selected"
3164
+ "attribute": "groups"
3260
3165
  },
3261
3166
  {
3262
3167
  "kind": "field",
3263
- "name": "specificProps",
3168
+ "name": "scene",
3264
3169
  "type": {
3265
- "text": "any"
3170
+ "text": "Scene | null"
3266
3171
  },
3267
- "attribute": "specificProps"
3172
+ "default": "null",
3173
+ "attribute": "scene"
3268
3174
  },
3269
3175
  {
3270
3176
  "kind": "field",
3271
- "name": "tabName",
3177
+ "name": "group",
3272
3178
  "type": {
3273
3179
  "text": "string | null"
3274
3180
  },
3275
- "default": "'specific'",
3276
- "attribute": "tabName"
3277
- },
3278
- {
3279
- "kind": "field",
3280
- "name": "collapsed",
3281
- "type": {
3282
- "text": "boolean"
3283
- },
3284
- "default": "false",
3285
- "attribute": "collapsed"
3181
+ "default": "''",
3182
+ "attribute": "group"
3286
3183
  },
3287
3184
  {
3288
3185
  "kind": "field",
3289
- "name": "fonts",
3186
+ "name": "templates",
3290
3187
  "type": {
3291
- "text": "any[]"
3188
+ "text": "PalletItem[]"
3292
3189
  },
3293
- "default": "[]",
3294
- "attribute": "fonts"
3190
+ "default": "[]"
3295
3191
  },
3296
3192
  {
3297
3193
  "kind": "field",
3298
- "name": "propertyEditor",
3194
+ "name": "template",
3299
3195
  "type": {
3300
- "text": "any[]"
3301
- },
3302
- "default": "[]",
3303
- "attribute": "propertyEditor"
3196
+ "text": "PalletItem | any"
3197
+ }
3304
3198
  },
3305
3199
  {
3306
3200
  "kind": "field",
3307
- "name": "propertyTarget",
3201
+ "name": "detail",
3308
3202
  "type": {
3309
- "text": "Component | null"
3310
- },
3311
- "default": "null"
3203
+ "text": "HTMLElement"
3204
+ }
3312
3205
  },
3313
3206
  {
3314
3207
  "kind": "field",
@@ -3318,84 +3211,48 @@
3318
3211
  },
3319
3212
  {
3320
3213
  "kind": "method",
3321
- "name": "_onPropertyChanged",
3214
+ "name": "findTemplate",
3322
3215
  "parameters": [
3323
3216
  {
3324
- "name": "e",
3217
+ "name": "type",
3325
3218
  "type": {
3326
- "text": "CustomEvent"
3219
+ "text": "string | null | undefined"
3327
3220
  }
3328
3221
  }
3329
3222
  ]
3330
3223
  },
3331
3224
  {
3332
3225
  "kind": "method",
3333
- "name": "_onBoundsChanged",
3226
+ "name": "onHoverComponent",
3334
3227
  "parameters": [
3335
3228
  {
3336
3229
  "name": "e",
3337
3230
  "type": {
3338
- "text": "CustomEvent"
3339
- }
3340
- }
3341
- ]
3342
- },
3343
- {
3344
- "kind": "method",
3345
- "name": "_onChangedByScene"
3346
- },
3347
- {
3348
- "kind": "method",
3349
- "name": "_setPropertyTargetAsDefault"
3350
- },
3351
- {
3352
- "kind": "method",
3353
- "name": "_onCollapsed",
3354
- "parameters": [
3355
- {
3356
- "name": "collapsed",
3357
- "type": {
3358
- "text": "boolean"
3359
- }
3360
- }
3361
- ]
3362
- },
3363
- {
3364
- "kind": "method",
3365
- "name": "_onSceneChanged"
3366
- },
3367
- {
3368
- "kind": "method",
3369
- "name": "_onSelectedChanged",
3370
- "parameters": [
3371
- {
3372
- "name": "after",
3373
- "type": {
3374
- "text": "Component[]"
3231
+ "text": "MouseEvent"
3375
3232
  }
3376
3233
  }
3377
3234
  ]
3378
3235
  },
3379
3236
  {
3380
3237
  "kind": "method",
3381
- "name": "_setPropertyTarget",
3238
+ "name": "onClickTemplate",
3382
3239
  "parameters": [
3383
3240
  {
3384
- "name": "newTarget",
3241
+ "name": "e",
3385
3242
  "type": {
3386
- "text": "Component | null"
3243
+ "text": "MouseEvent"
3387
3244
  }
3388
3245
  }
3389
3246
  ]
3390
3247
  },
3391
3248
  {
3392
3249
  "kind": "method",
3393
- "name": "_setBounds",
3250
+ "name": "templateIcon",
3394
3251
  "parameters": [
3395
3252
  {
3396
- "name": "bounds",
3253
+ "name": "template",
3397
3254
  "type": {
3398
- "text": "BOUNDS"
3255
+ "text": "PalletItem"
3399
3256
  }
3400
3257
  }
3401
3258
  ]
@@ -3403,75 +3260,28 @@
3403
3260
  ],
3404
3261
  "attributes": [
3405
3262
  {
3406
- "name": "scene",
3407
- "type": {
3408
- "text": "Scene | null"
3409
- },
3410
- "default": "null",
3411
- "fieldName": "scene"
3412
- },
3413
- {
3414
- "name": "bounds",
3415
- "type": {
3416
- "text": "any"
3417
- },
3418
- "default": "{}",
3419
- "fieldName": "bounds"
3420
- },
3421
- {
3422
- "name": "model",
3423
- "type": {
3424
- "text": "Model | null"
3425
- },
3426
- "default": "{}",
3427
- "fieldName": "model"
3428
- },
3429
- {
3430
- "name": "selected",
3263
+ "name": "groups",
3431
3264
  "type": {
3432
- "text": "Component[]"
3265
+ "text": "Pallet[]"
3433
3266
  },
3434
3267
  "default": "[]",
3435
- "fieldName": "selected"
3268
+ "fieldName": "groups"
3436
3269
  },
3437
3270
  {
3438
- "name": "specificProps",
3271
+ "name": "scene",
3439
3272
  "type": {
3440
- "text": "any"
3273
+ "text": "Scene | null"
3441
3274
  },
3442
- "fieldName": "specificProps"
3275
+ "default": "null",
3276
+ "fieldName": "scene"
3443
3277
  },
3444
3278
  {
3445
- "name": "tabName",
3279
+ "name": "group",
3446
3280
  "type": {
3447
3281
  "text": "string | null"
3448
3282
  },
3449
- "default": "'specific'",
3450
- "fieldName": "tabName"
3451
- },
3452
- {
3453
- "name": "collapsed",
3454
- "type": {
3455
- "text": "boolean"
3456
- },
3457
- "default": "false",
3458
- "fieldName": "collapsed"
3459
- },
3460
- {
3461
- "name": "fonts",
3462
- "type": {
3463
- "text": "any[]"
3464
- },
3465
- "default": "[]",
3466
- "fieldName": "fonts"
3467
- },
3468
- {
3469
- "name": "propertyEditor",
3470
- "type": {
3471
- "text": "any[]"
3472
- },
3473
- "default": "[]",
3474
- "fieldName": "propertyEditor"
3283
+ "default": "''",
3284
+ "fieldName": "group"
3475
3285
  }
3476
3286
  ],
3477
3287
  "mixins": [
@@ -3490,118 +3300,95 @@
3490
3300
  "exports": [
3491
3301
  {
3492
3302
  "kind": "js",
3493
- "name": "PropertySidebar",
3303
+ "name": "ComponentMenu",
3494
3304
  "declaration": {
3495
- "name": "PropertySidebar",
3496
- "module": "src/modeller/property-sidebar/property-sidebar.ts"
3305
+ "name": "ComponentMenu",
3306
+ "module": "src/modeller/component-toolbar/component-menu.ts"
3497
3307
  }
3498
3308
  }
3499
3309
  ]
3500
3310
  },
3501
3311
  {
3502
3312
  "kind": "javascript-module",
3503
- "path": "src/modeller/component-toolbar/component-detail.ts",
3313
+ "path": "src/modeller/component-toolbar/component-toolbar.ts",
3504
3314
  "declarations": [
3505
3315
  {
3506
3316
  "kind": "class",
3507
3317
  "description": "",
3508
- "name": "ComponentDetail",
3318
+ "name": "ComponentToolbar",
3509
3319
  "members": [
3510
3320
  {
3511
3321
  "kind": "field",
3512
- "name": "template",
3322
+ "name": "componentGroupList",
3513
3323
  "type": {
3514
- "text": "{ about: string } | null"
3324
+ "text": "ComponentGroup[]"
3515
3325
  },
3516
- "default": "null",
3517
- "attribute": "template"
3518
- }
3519
- ],
3520
- "attributes": [
3326
+ "default": "[]",
3327
+ "attribute": "componentGroupList"
3328
+ },
3521
3329
  {
3522
- "name": "template",
3330
+ "kind": "field",
3331
+ "name": "group",
3523
3332
  "type": {
3524
- "text": "{ about: string } | null"
3333
+ "text": "string | null | undefined"
3525
3334
  },
3526
- "default": "null",
3527
- "fieldName": "template"
3528
- }
3529
- ],
3530
- "superclass": {
3531
- "name": "LitElement",
3532
- "package": "lit"
3533
- },
3534
- "customElement": true
3535
- }
3536
- ],
3537
- "exports": [
3538
- {
3539
- "kind": "js",
3540
- "name": "ComponentDetail",
3541
- "declaration": {
3542
- "name": "ComponentDetail",
3543
- "module": "src/modeller/component-toolbar/component-detail.ts"
3544
- }
3545
- }
3546
- ]
3547
- },
3548
- {
3549
- "kind": "javascript-module",
3550
- "path": "src/modeller/component-toolbar/component-menu.ts",
3551
- "declarations": [
3552
- {
3553
- "kind": "class",
3554
- "description": "",
3555
- "name": "ComponentMenu",
3556
- "members": [
3335
+ "attribute": "group"
3336
+ },
3557
3337
  {
3558
3338
  "kind": "field",
3559
- "name": "groups",
3339
+ "name": "scene",
3560
3340
  "type": {
3561
- "text": "Pallet[]"
3341
+ "text": "Scene"
3562
3342
  },
3563
- "default": "[]",
3564
- "attribute": "groups"
3343
+ "attribute": "scene"
3565
3344
  },
3566
3345
  {
3567
3346
  "kind": "field",
3568
- "name": "scene",
3347
+ "name": "mode",
3569
3348
  "type": {
3570
- "text": "Scene | null"
3349
+ "text": "SCENE_MODE"
3571
3350
  },
3572
- "default": "null",
3573
- "attribute": "scene"
3351
+ "attribute": "mode"
3574
3352
  },
3575
3353
  {
3576
3354
  "kind": "field",
3577
- "name": "group",
3355
+ "name": "shift",
3578
3356
  "type": {
3579
- "text": "string | null"
3357
+ "text": "HTMLImageElement"
3358
+ }
3359
+ },
3360
+ {
3361
+ "kind": "field",
3362
+ "name": "menu",
3363
+ "type": {
3364
+ "text": "HTMLElement"
3580
3365
  },
3581
- "default": "''",
3582
- "attribute": "group"
3366
+ "privacy": "private"
3583
3367
  },
3584
3368
  {
3585
3369
  "kind": "field",
3586
- "name": "templates",
3370
+ "name": "componentsContainer",
3587
3371
  "type": {
3588
- "text": "PalletItem[]"
3372
+ "text": "HTMLElement"
3589
3373
  },
3590
- "default": "[]"
3374
+ "privacy": "private"
3591
3375
  },
3592
3376
  {
3593
3377
  "kind": "field",
3594
- "name": "template",
3378
+ "name": "groups",
3595
3379
  "type": {
3596
- "text": "PalletItem | any"
3597
- }
3380
+ "text": "NodeListOf<HTMLElement>"
3381
+ },
3382
+ "privacy": "private"
3598
3383
  },
3599
3384
  {
3600
3385
  "kind": "field",
3601
- "name": "detail",
3386
+ "name": "icons",
3602
3387
  "type": {
3603
- "text": "HTMLElement"
3604
- }
3388
+ "text": "{ [name: string]: string }"
3389
+ },
3390
+ "privacy": "private",
3391
+ "default": "{}"
3605
3392
  },
3606
3393
  {
3607
3394
  "kind": "field",
@@ -3611,31 +3398,31 @@
3611
3398
  },
3612
3399
  {
3613
3400
  "kind": "method",
3614
- "name": "findTemplate",
3401
+ "name": "onWheelEvent",
3615
3402
  "parameters": [
3616
3403
  {
3617
- "name": "type",
3404
+ "name": "e",
3618
3405
  "type": {
3619
- "text": "string | null | undefined"
3406
+ "text": "Event"
3620
3407
  }
3621
3408
  }
3622
3409
  ]
3623
3410
  },
3624
3411
  {
3625
3412
  "kind": "method",
3626
- "name": "onHoverComponent",
3413
+ "name": "_setMode",
3627
3414
  "parameters": [
3628
3415
  {
3629
- "name": "e",
3416
+ "name": "mode",
3630
3417
  "type": {
3631
- "text": "MouseEvent"
3418
+ "text": "SCENE_MODE"
3632
3419
  }
3633
3420
  }
3634
3421
  ]
3635
3422
  },
3636
3423
  {
3637
3424
  "kind": "method",
3638
- "name": "onClickTemplate",
3425
+ "name": "_onClickShift",
3639
3426
  "parameters": [
3640
3427
  {
3641
3428
  "name": "e",
@@ -3647,41 +3434,54 @@
3647
3434
  },
3648
3435
  {
3649
3436
  "kind": "method",
3650
- "name": "templateIcon",
3437
+ "name": "_onClickGroup",
3651
3438
  "parameters": [
3652
3439
  {
3653
- "name": "template",
3440
+ "name": "e",
3654
3441
  "type": {
3655
- "text": "PalletItem"
3442
+ "text": "MouseEvent"
3656
3443
  }
3657
3444
  }
3658
3445
  ]
3659
3446
  }
3660
3447
  ],
3448
+ "events": [
3449
+ {
3450
+ "name": "mode-changed",
3451
+ "type": {
3452
+ "text": "CustomEvent"
3453
+ }
3454
+ }
3455
+ ],
3661
3456
  "attributes": [
3662
3457
  {
3663
- "name": "groups",
3458
+ "name": "componentGroupList",
3664
3459
  "type": {
3665
- "text": "Pallet[]"
3460
+ "text": "ComponentGroup[]"
3666
3461
  },
3667
3462
  "default": "[]",
3668
- "fieldName": "groups"
3463
+ "fieldName": "componentGroupList"
3464
+ },
3465
+ {
3466
+ "name": "group",
3467
+ "type": {
3468
+ "text": "string | null | undefined"
3469
+ },
3470
+ "fieldName": "group"
3669
3471
  },
3670
3472
  {
3671
3473
  "name": "scene",
3672
3474
  "type": {
3673
- "text": "Scene | null"
3475
+ "text": "Scene"
3674
3476
  },
3675
- "default": "null",
3676
3477
  "fieldName": "scene"
3677
3478
  },
3678
3479
  {
3679
- "name": "group",
3480
+ "name": "mode",
3680
3481
  "type": {
3681
- "text": "string | null"
3482
+ "text": "SCENE_MODE"
3682
3483
  },
3683
- "default": "''",
3684
- "fieldName": "group"
3484
+ "fieldName": "mode"
3685
3485
  }
3686
3486
  ],
3687
3487
  "mixins": [
@@ -3700,95 +3500,243 @@
3700
3500
  "exports": [
3701
3501
  {
3702
3502
  "kind": "js",
3703
- "name": "ComponentMenu",
3503
+ "name": "ComponentToolbar",
3704
3504
  "declaration": {
3705
- "name": "ComponentMenu",
3706
- "module": "src/modeller/component-toolbar/component-menu.ts"
3505
+ "name": "ComponentToolbar",
3506
+ "module": "src/modeller/component-toolbar/component-toolbar.ts"
3507
+ }
3508
+ }
3509
+ ]
3510
+ },
3511
+ {
3512
+ "kind": "javascript-module",
3513
+ "path": "src/modeller/component-toolbar/mode-icons.ts",
3514
+ "declarations": [
3515
+ {
3516
+ "kind": "variable",
3517
+ "name": "ICON_EDIT_MODE",
3518
+ "default": "`\n <svg\n version=\"1.1\"\n id=\"Layer_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 30 30\"\n style=\"enable-background:new 0 0 30 30;\"\n xml:space=\"preserve\"\n >\n <style type=\"text/css\">\n .st0 {\n fill: {{strokeColor}};\n }\n .st1 {\n fill: none;\n stroke: {{strokeColor}};\n stroke-width: 0.75;\n stroke-linejoin: round;\n stroke-miterlimit: 10;\n }\n </style>\n <g>\n <polygon class=\"st0\" points=\"2.7,3.9 2.7,22.8 7.8,17.2 16.1,16.9 \t\" />\n <path\n class=\"st1\"\n d=\"M27.7,20.1L26.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L20.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5\n l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0\n c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L21,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1\n s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C27.7,20.2,27.7,20.1,27.7,20.1z\"\n />\n </g>\n </svg>\n`"
3519
+ },
3520
+ {
3521
+ "kind": "variable",
3522
+ "name": "ICON_SHIFT_MODE",
3523
+ "default": "`\n <svg\n version=\"1.1\"\n id=\"Layer_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 30 30\"\n style=\"enable-background:new 0 0 30 30;\"\n xml:space=\"preserve\"\n >\n <style type=\"text/css\">\n .st0 {\n fill: {{strokeColor}};\n stroke: {{strokeColor}};\n fill-rule: evenodd;\n clip-rule: evenodd;\n }\n .st1 {\n fill: {{strokeColor}};\n stroke: {{strokeColor}};\n stroke-width: 0.75;\n stroke-linejoin: round;\n stroke-miterlimit: 10;\n }\n </style>\n <g>\n <path\n class=\"st0\"\n d=\"M7.8,23.2c1.6,0,3.8,0,5.7,0c0.8,0,1.3-0.3,1.6-1.2c0.4-2.9,1.5-4.9,2.4-6.9s1.4-2.5,1.6-3.4\n c0.1-0.5,0.2-1.6-0.4-1.9c-0.6-0.3-1.2,0.1-1.9,1.3c-0.8,1.6-1,2-1.4,2c-0.3,0-0.1-4,0-5.4c0.1-1.3-0.6-1.8-1.3-1.8\n c-0.8-0.1-1.5,0.4-1.5,1.5c0,1.5-0.2,5.2-0.7,5.2c-0.4,0-0.3-4.3-0.6-6.7c-0.1-1-0.6-1.8-1.5-1.8C9.1,4.2,8.4,4.7,8.3,5.8\n c-0.1,1.3,1,6.7,0.5,6.7c-0.4,0-1.4-3.3-2.3-5.1C6,6.5,5.6,6,4.6,6.4C3.9,6.7,3.5,7.6,3.8,8.5c0.5,1.2,2.7,6.8,2.2,6.8\n c-0.4,0-1.4-1.4-2.7-2.1c-1.1-0.6-1.8-0.4-2.1-0.1c-0.4,0.3-0.7,1,0.9,2.8c0.6,0.6,3.1,2.3,3.7,3.2c0.7,1.3,0.6,1,0.8,2.8\n C6.7,22.7,7,23.2,7.8,23.2z\"\n />\n <path\n class=\"st1\"\n d=\"M28.7,20.1L27.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L21.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5\n l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0\n c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L22,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1\n s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C28.7,20.2,28.7,20.1,28.7,20.1z\"\n />\n </g>\n </svg>\n`"
3524
+ }
3525
+ ],
3526
+ "exports": [
3527
+ {
3528
+ "kind": "js",
3529
+ "name": "ICON_EDIT_MODE",
3530
+ "declaration": {
3531
+ "name": "ICON_EDIT_MODE",
3532
+ "module": "src/modeller/component-toolbar/mode-icons.ts"
3533
+ }
3534
+ },
3535
+ {
3536
+ "kind": "js",
3537
+ "name": "ICON_SHIFT_MODE",
3538
+ "declaration": {
3539
+ "name": "ICON_SHIFT_MODE",
3540
+ "module": "src/modeller/component-toolbar/mode-icons.ts"
3541
+ }
3542
+ }
3543
+ ]
3544
+ },
3545
+ {
3546
+ "kind": "javascript-module",
3547
+ "path": "src/modeller/property-sidebar/abstract-property.ts",
3548
+ "declarations": [
3549
+ {
3550
+ "kind": "class",
3551
+ "description": "",
3552
+ "name": "AbstractProperty",
3553
+ "members": [
3554
+ {
3555
+ "kind": "method",
3556
+ "name": "_onValueChange",
3557
+ "parameters": [
3558
+ {
3559
+ "name": "e",
3560
+ "type": {
3561
+ "text": "Event"
3562
+ }
3563
+ }
3564
+ ]
3565
+ },
3566
+ {
3567
+ "kind": "method",
3568
+ "name": "_getValueFromEventTarget",
3569
+ "parameters": [
3570
+ {
3571
+ "name": "element",
3572
+ "type": {
3573
+ "text": "HTMLElement"
3574
+ }
3575
+ }
3576
+ ]
3577
+ },
3578
+ {
3579
+ "kind": "method",
3580
+ "name": "_onAfterValueChange",
3581
+ "parameters": [
3582
+ {
3583
+ "name": "key",
3584
+ "type": {
3585
+ "text": "string"
3586
+ }
3587
+ },
3588
+ {
3589
+ "name": "value",
3590
+ "type": {
3591
+ "text": "any"
3592
+ }
3593
+ }
3594
+ ]
3595
+ }
3596
+ ],
3597
+ "events": [
3598
+ {
3599
+ "name": "property-change",
3600
+ "type": {
3601
+ "text": "CustomEvent"
3602
+ }
3603
+ }
3604
+ ],
3605
+ "superclass": {
3606
+ "name": "LitElement",
3607
+ "package": "lit"
3608
+ },
3609
+ "customElement": true
3610
+ }
3611
+ ],
3612
+ "exports": [
3613
+ {
3614
+ "kind": "js",
3615
+ "name": "AbstractProperty",
3616
+ "declaration": {
3617
+ "name": "AbstractProperty",
3618
+ "module": "src/modeller/property-sidebar/abstract-property.ts"
3619
+ }
3620
+ }
3621
+ ]
3622
+ },
3623
+ {
3624
+ "kind": "javascript-module",
3625
+ "path": "src/modeller/property-sidebar/property-shared-style.ts",
3626
+ "declarations": [
3627
+ {
3628
+ "kind": "variable",
3629
+ "name": "PropertySharedStyle",
3630
+ "default": "css`\n fieldset {\n border: none;\n margin: 4px;\n padding: 9px 4px 9px 4px;\n border-bottom: var(--property-sidebar-fieldset-border);\n color: var(--property-sidebar-fieldset-legend-color);\n font: var(--property-sidebar-fieldset-label);\n }\n\n fieldset legend {\n padding: 5px 0 0 5px;\n color: var(--property-sidebar-fieldset-legend-color);\n font: var(--property-sidebar-fieldset-legend);\n text-transform: capitalize;\n }\n\n select,\n input {\n border: var(--property-sidebar-fieldset-border);\n }\n\n ox-input-data {\n height: 300px;\n }\n\n /* property grid */\n .property-grid {\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n align-items: center;\n }\n\n .property-grid > * {\n width: 100%;\n box-sizing: border-box;\n }\n\n .property-grid > label {\n grid-column: span 3;\n text-align: right;\n text-transform: capitalize;\n line-height: 2;\n }\n\n .property-grid > input,\n .property-grid > table,\n .property-grid > select,\n .property-grid > ox-input-angle,\n .property-grid > ox-buttons-radio,\n .property-grid > ox-input-color,\n [custom-editor] {\n grid-column: span 7;\n align-self: stretch;\n }\n\n .property-grid > .checkbox-row {\n grid-column: span 10;\n }\n\n .property-grid > .property-full-label {\n grid-column: span 3;\n text-align: right;\n text-transform: capitalize;\n }\n\n .property-grid > .property-half-label {\n grid-column: span 1;\n }\n\n .property-grid > .property-full-input {\n grid-column: span 7;\n }\n\n .property-grid > .property-half-input {\n grid-column: span 4;\n }\n\n /* checkbox-row */\n .checkbox-row {\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n align-items: center;\n }\n\n .checkbox-row > input {\n grid-column: 4 / 5;\n }\n\n .checkbox-row > label {\n grid-column: span 6;\n text-align: left;\n }\n\n /* image resources */\n .icon-only-label {\n grid-column: span 1;\n\n background: var(--url-icon-properties-label) no-repeat;\n float: left;\n margin: 0;\n align-self: stretch;\n }\n\n .icon-only-label.color {\n background-position: 100% -500px;\n }\n .icon-only-label.font-size {\n background-position: 100% -594px;\n }\n .icon-only-label.leading {\n background-position: 100% -696px;\n }\n .icon-only-label.hscale {\n background-position: 100% -296px;\n }\n .icon-only-label.vscale {\n background-position: 100% -396px;\n }\n .icon-only-label.linewidth {\n background-position: 100% -894px;\n }\n .icon-only-label.lineHeight {\n background-position: 100% -995px;\n }\n`"
3631
+ }
3632
+ ],
3633
+ "exports": [
3634
+ {
3635
+ "kind": "js",
3636
+ "name": "PropertySharedStyle",
3637
+ "declaration": {
3638
+ "name": "PropertySharedStyle",
3639
+ "module": "src/modeller/property-sidebar/property-shared-style.ts"
3707
3640
  }
3708
3641
  }
3709
3642
  ]
3710
3643
  },
3711
3644
  {
3712
3645
  "kind": "javascript-module",
3713
- "path": "src/modeller/component-toolbar/component-toolbar.ts",
3646
+ "path": "src/modeller/property-sidebar/property-sidebar.ts",
3714
3647
  "declarations": [
3715
3648
  {
3716
3649
  "kind": "class",
3717
3650
  "description": "",
3718
- "name": "ComponentToolbar",
3651
+ "name": "PropertySidebar",
3719
3652
  "members": [
3720
3653
  {
3721
3654
  "kind": "field",
3722
- "name": "componentGroupList",
3655
+ "name": "scene",
3723
3656
  "type": {
3724
- "text": "ComponentGroup[]"
3657
+ "text": "Scene | null"
3725
3658
  },
3726
- "default": "[]",
3727
- "attribute": "componentGroupList"
3659
+ "default": "null",
3660
+ "attribute": "scene"
3728
3661
  },
3729
3662
  {
3730
3663
  "kind": "field",
3731
- "name": "group",
3664
+ "name": "bounds",
3732
3665
  "type": {
3733
- "text": "string | null | undefined"
3666
+ "text": "any"
3734
3667
  },
3735
- "attribute": "group"
3668
+ "default": "{}",
3669
+ "attribute": "bounds"
3736
3670
  },
3737
3671
  {
3738
3672
  "kind": "field",
3739
- "name": "scene",
3673
+ "name": "model",
3740
3674
  "type": {
3741
- "text": "Scene"
3675
+ "text": "Model | null"
3742
3676
  },
3743
- "attribute": "scene"
3677
+ "default": "{}",
3678
+ "attribute": "model"
3744
3679
  },
3745
3680
  {
3746
3681
  "kind": "field",
3747
- "name": "mode",
3682
+ "name": "selected",
3748
3683
  "type": {
3749
- "text": "SCENE_MODE"
3684
+ "text": "Component[]"
3750
3685
  },
3751
- "attribute": "mode"
3686
+ "default": "[]",
3687
+ "attribute": "selected"
3752
3688
  },
3753
3689
  {
3754
3690
  "kind": "field",
3755
- "name": "shift",
3691
+ "name": "specificProps",
3756
3692
  "type": {
3757
- "text": "HTMLImageElement"
3758
- }
3693
+ "text": "any"
3694
+ },
3695
+ "attribute": "specificProps"
3759
3696
  },
3760
3697
  {
3761
3698
  "kind": "field",
3762
- "name": "menu",
3699
+ "name": "tabName",
3763
3700
  "type": {
3764
- "text": "HTMLElement"
3701
+ "text": "string | null"
3765
3702
  },
3766
- "privacy": "private"
3703
+ "default": "'specific'",
3704
+ "attribute": "tabName"
3767
3705
  },
3768
3706
  {
3769
3707
  "kind": "field",
3770
- "name": "componentsContainer",
3708
+ "name": "collapsed",
3771
3709
  "type": {
3772
- "text": "HTMLElement"
3710
+ "text": "boolean"
3773
3711
  },
3774
- "privacy": "private"
3712
+ "default": "false",
3713
+ "attribute": "collapsed"
3775
3714
  },
3776
3715
  {
3777
3716
  "kind": "field",
3778
- "name": "groups",
3717
+ "name": "fonts",
3779
3718
  "type": {
3780
- "text": "NodeListOf<HTMLElement>"
3719
+ "text": "any[]"
3781
3720
  },
3782
- "privacy": "private"
3721
+ "default": "[]",
3722
+ "attribute": "fonts"
3783
3723
  },
3784
3724
  {
3785
3725
  "kind": "field",
3786
- "name": "icons",
3726
+ "name": "propertyEditor",
3787
3727
  "type": {
3788
- "text": "{ [name: string]: string }"
3728
+ "text": "any[]"
3789
3729
  },
3790
- "privacy": "private",
3791
- "default": "{}"
3730
+ "default": "[]",
3731
+ "attribute": "propertyEditor"
3732
+ },
3733
+ {
3734
+ "kind": "field",
3735
+ "name": "propertyTarget",
3736
+ "type": {
3737
+ "text": "Component | null"
3738
+ },
3739
+ "default": "null"
3792
3740
  },
3793
3741
  {
3794
3742
  "kind": "field",
@@ -3798,90 +3746,160 @@
3798
3746
  },
3799
3747
  {
3800
3748
  "kind": "method",
3801
- "name": "onWheelEvent",
3749
+ "name": "_onPropertyChanged",
3802
3750
  "parameters": [
3803
3751
  {
3804
3752
  "name": "e",
3805
3753
  "type": {
3806
- "text": "Event"
3754
+ "text": "CustomEvent"
3807
3755
  }
3808
3756
  }
3809
3757
  ]
3810
3758
  },
3811
3759
  {
3812
3760
  "kind": "method",
3813
- "name": "_setMode",
3761
+ "name": "_onBoundsChanged",
3814
3762
  "parameters": [
3815
3763
  {
3816
- "name": "mode",
3764
+ "name": "e",
3817
3765
  "type": {
3818
- "text": "SCENE_MODE"
3766
+ "text": "CustomEvent"
3819
3767
  }
3820
3768
  }
3821
3769
  ]
3822
3770
  },
3823
3771
  {
3824
3772
  "kind": "method",
3825
- "name": "_onClickShift",
3773
+ "name": "_onChangedByScene"
3774
+ },
3775
+ {
3776
+ "kind": "method",
3777
+ "name": "_setPropertyTargetAsDefault"
3778
+ },
3779
+ {
3780
+ "kind": "method",
3781
+ "name": "_onCollapsed",
3826
3782
  "parameters": [
3827
3783
  {
3828
- "name": "e",
3784
+ "name": "collapsed",
3829
3785
  "type": {
3830
- "text": "MouseEvent"
3786
+ "text": "boolean"
3831
3787
  }
3832
3788
  }
3833
3789
  ]
3834
3790
  },
3835
3791
  {
3836
3792
  "kind": "method",
3837
- "name": "_onClickGroup",
3793
+ "name": "_onSceneChanged"
3794
+ },
3795
+ {
3796
+ "kind": "method",
3797
+ "name": "_onSelectedChanged",
3838
3798
  "parameters": [
3839
3799
  {
3840
- "name": "e",
3800
+ "name": "after",
3841
3801
  "type": {
3842
- "text": "MouseEvent"
3802
+ "text": "Component[]"
3843
3803
  }
3844
3804
  }
3845
3805
  ]
3846
- }
3847
- ],
3848
- "events": [
3806
+ },
3849
3807
  {
3850
- "name": "mode-changed",
3851
- "type": {
3852
- "text": "CustomEvent"
3853
- }
3808
+ "kind": "method",
3809
+ "name": "_setPropertyTarget",
3810
+ "parameters": [
3811
+ {
3812
+ "name": "newTarget",
3813
+ "type": {
3814
+ "text": "Component | null"
3815
+ }
3816
+ }
3817
+ ]
3818
+ },
3819
+ {
3820
+ "kind": "method",
3821
+ "name": "_setBounds",
3822
+ "parameters": [
3823
+ {
3824
+ "name": "bounds",
3825
+ "type": {
3826
+ "text": "BOUNDS"
3827
+ }
3828
+ }
3829
+ ]
3854
3830
  }
3855
3831
  ],
3856
3832
  "attributes": [
3857
3833
  {
3858
- "name": "componentGroupList",
3834
+ "name": "scene",
3859
3835
  "type": {
3860
- "text": "ComponentGroup[]"
3836
+ "text": "Scene | null"
3837
+ },
3838
+ "default": "null",
3839
+ "fieldName": "scene"
3840
+ },
3841
+ {
3842
+ "name": "bounds",
3843
+ "type": {
3844
+ "text": "any"
3845
+ },
3846
+ "default": "{}",
3847
+ "fieldName": "bounds"
3848
+ },
3849
+ {
3850
+ "name": "model",
3851
+ "type": {
3852
+ "text": "Model | null"
3853
+ },
3854
+ "default": "{}",
3855
+ "fieldName": "model"
3856
+ },
3857
+ {
3858
+ "name": "selected",
3859
+ "type": {
3860
+ "text": "Component[]"
3861
3861
  },
3862
3862
  "default": "[]",
3863
- "fieldName": "componentGroupList"
3863
+ "fieldName": "selected"
3864
3864
  },
3865
3865
  {
3866
- "name": "group",
3866
+ "name": "specificProps",
3867
3867
  "type": {
3868
- "text": "string | null | undefined"
3868
+ "text": "any"
3869
3869
  },
3870
- "fieldName": "group"
3870
+ "fieldName": "specificProps"
3871
3871
  },
3872
3872
  {
3873
- "name": "scene",
3873
+ "name": "tabName",
3874
3874
  "type": {
3875
- "text": "Scene"
3875
+ "text": "string | null"
3876
3876
  },
3877
- "fieldName": "scene"
3877
+ "default": "'specific'",
3878
+ "fieldName": "tabName"
3878
3879
  },
3879
3880
  {
3880
- "name": "mode",
3881
+ "name": "collapsed",
3881
3882
  "type": {
3882
- "text": "SCENE_MODE"
3883
+ "text": "boolean"
3883
3884
  },
3884
- "fieldName": "mode"
3885
+ "default": "false",
3886
+ "fieldName": "collapsed"
3887
+ },
3888
+ {
3889
+ "name": "fonts",
3890
+ "type": {
3891
+ "text": "any[]"
3892
+ },
3893
+ "default": "[]",
3894
+ "fieldName": "fonts"
3895
+ },
3896
+ {
3897
+ "name": "propertyEditor",
3898
+ "type": {
3899
+ "text": "any[]"
3900
+ },
3901
+ "default": "[]",
3902
+ "fieldName": "propertyEditor"
3885
3903
  }
3886
3904
  ],
3887
3905
  "mixins": [
@@ -3900,44 +3918,10 @@
3900
3918
  "exports": [
3901
3919
  {
3902
3920
  "kind": "js",
3903
- "name": "ComponentToolbar",
3904
- "declaration": {
3905
- "name": "ComponentToolbar",
3906
- "module": "src/modeller/component-toolbar/component-toolbar.ts"
3907
- }
3908
- }
3909
- ]
3910
- },
3911
- {
3912
- "kind": "javascript-module",
3913
- "path": "src/modeller/component-toolbar/mode-icons.ts",
3914
- "declarations": [
3915
- {
3916
- "kind": "variable",
3917
- "name": "ICON_EDIT_MODE",
3918
- "default": "`\n <svg\n version=\"1.1\"\n id=\"Layer_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 30 30\"\n style=\"enable-background:new 0 0 30 30;\"\n xml:space=\"preserve\"\n >\n <style type=\"text/css\">\n .st0 {\n fill: {{strokeColor}};\n }\n .st1 {\n fill: none;\n stroke: {{strokeColor}};\n stroke-width: 0.75;\n stroke-linejoin: round;\n stroke-miterlimit: 10;\n }\n </style>\n <g>\n <polygon class=\"st0\" points=\"2.7,3.9 2.7,22.8 7.8,17.2 16.1,16.9 \t\" />\n <path\n class=\"st1\"\n d=\"M27.7,20.1L26.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L20.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5\n l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0\n c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L21,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1\n s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C27.7,20.2,27.7,20.1,27.7,20.1z\"\n />\n </g>\n </svg>\n`"
3919
- },
3920
- {
3921
- "kind": "variable",
3922
- "name": "ICON_SHIFT_MODE",
3923
- "default": "`\n <svg\n version=\"1.1\"\n id=\"Layer_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 30 30\"\n style=\"enable-background:new 0 0 30 30;\"\n xml:space=\"preserve\"\n >\n <style type=\"text/css\">\n .st0 {\n fill: {{strokeColor}};\n stroke: {{strokeColor}};\n fill-rule: evenodd;\n clip-rule: evenodd;\n }\n .st1 {\n fill: {{strokeColor}};\n stroke: {{strokeColor}};\n stroke-width: 0.75;\n stroke-linejoin: round;\n stroke-miterlimit: 10;\n }\n </style>\n <g>\n <path\n class=\"st0\"\n d=\"M7.8,23.2c1.6,0,3.8,0,5.7,0c0.8,0,1.3-0.3,1.6-1.2c0.4-2.9,1.5-4.9,2.4-6.9s1.4-2.5,1.6-3.4\n c0.1-0.5,0.2-1.6-0.4-1.9c-0.6-0.3-1.2,0.1-1.9,1.3c-0.8,1.6-1,2-1.4,2c-0.3,0-0.1-4,0-5.4c0.1-1.3-0.6-1.8-1.3-1.8\n c-0.8-0.1-1.5,0.4-1.5,1.5c0,1.5-0.2,5.2-0.7,5.2c-0.4,0-0.3-4.3-0.6-6.7c-0.1-1-0.6-1.8-1.5-1.8C9.1,4.2,8.4,4.7,8.3,5.8\n c-0.1,1.3,1,6.7,0.5,6.7c-0.4,0-1.4-3.3-2.3-5.1C6,6.5,5.6,6,4.6,6.4C3.9,6.7,3.5,7.6,3.8,8.5c0.5,1.2,2.7,6.8,2.2,6.8\n c-0.4,0-1.4-1.4-2.7-2.1c-1.1-0.6-1.8-0.4-2.1-0.1c-0.4,0.3-0.7,1,0.9,2.8c0.6,0.6,3.1,2.3,3.7,3.2c0.7,1.3,0.6,1,0.8,2.8\n C6.7,22.7,7,23.2,7.8,23.2z\"\n />\n <path\n class=\"st1\"\n d=\"M28.7,20.1L27.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L21.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5\n l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0\n c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L22,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1\n s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1\n c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C28.7,20.2,28.7,20.1,28.7,20.1z\"\n />\n </g>\n </svg>\n`"
3924
- }
3925
- ],
3926
- "exports": [
3927
- {
3928
- "kind": "js",
3929
- "name": "ICON_EDIT_MODE",
3930
- "declaration": {
3931
- "name": "ICON_EDIT_MODE",
3932
- "module": "src/modeller/component-toolbar/mode-icons.ts"
3933
- }
3934
- },
3935
- {
3936
- "kind": "js",
3937
- "name": "ICON_SHIFT_MODE",
3921
+ "name": "PropertySidebar",
3938
3922
  "declaration": {
3939
- "name": "ICON_SHIFT_MODE",
3940
- "module": "src/modeller/component-toolbar/mode-icons.ts"
3923
+ "name": "PropertySidebar",
3924
+ "module": "src/modeller/property-sidebar/property-sidebar.ts"
3941
3925
  }
3942
3926
  }
3943
3927
  ]
@@ -5346,6 +5330,13 @@
5346
5330
  "type": {
5347
5331
  "text": "Component"
5348
5332
  }
5333
+ },
5334
+ {
5335
+ "name": "append",
5336
+ "default": "false",
5337
+ "type": {
5338
+ "text": "boolean"
5339
+ }
5349
5340
  }
5350
5341
  ]
5351
5342
  },