bfg-common 1.3.378 → 1.3.380

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.
@@ -239,7 +239,7 @@ const wizard: Wizard = new Wizard(
239
239
  if (isSphere.value) wizard.changeScheme(1)
240
240
  const wasCompleted = computed<boolean>(() => wizard.wasCompleted())
241
241
  const selectedScheme = computed<number[]>(() => wizard.selectedScheme.value)
242
- const alertMessages = computed<string[][]>(() => wizard.alertMessages.value)
242
+ // const alertMessages = computed<string[][]>(() => wizard.alertMessages.value)
243
243
 
244
244
  const isShowPowerOn = computed<boolean>(() => wizard.selectedStepId > 8)
245
245
 
@@ -39,7 +39,10 @@ export interface API_UI_I_DatastoreLunDiskItem {
39
39
  id: string
40
40
  adapter: string
41
41
  capacity_mb: string
42
- datastore: string
42
+ datastore: {
43
+ name: string
44
+ type: string
45
+ }
43
46
  drive_type: string
44
47
  hardware_acceleration: string
45
48
  identifier: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.378",
4
+ "version": "1.3.380",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -125,10 +125,16 @@ wdi.CodecVp8 = {
125
125
  G = Math.round(Y - 0.39465 * (U - 128) - 0.5806 * (V - 128))
126
126
  B = Math.round(Y + 2.03211 * (U - 128))
127
127
 
128
- outputData[0 + w * 4 + width * 4 * h] = R
129
- outputData[1 + w * 4 + width * 4 * h] = G
130
- outputData[2 + w * 4 + width * 4 * h] = B
131
- outputData[3 + w * 4 + width * 4 * h] = 255
128
+ // outputData[0 + w * 4 + width * 4 * h] = R
129
+ // outputData[1 + w * 4 + width * 4 * h] = G
130
+ // outputData[2 + w * 4 + width * 4 * h] = B
131
+ // outputData[3 + w * 4 + width * 4 * h] = 255
132
+ // Изменим порядок записи пикселей, чтобы перевернуть изображение
133
+ const flippedIndex = ((height - 1 - h) * width + w) * 4
134
+ outputData[flippedIndex] = R
135
+ outputData[flippedIndex + 1] = G
136
+ outputData[flippedIndex + 2] = B
137
+ outputData[flippedIndex + 3] = 255
132
138
  }
133
139
  }
134
140