@eveshipfit/images 1.3552227.3 → 2.3561556.0
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/README.md +4 -2
- package/dist/images/03cb84ce3e5b70bf.webp +0 -0
- package/dist/images/05304124420d521d.webp +0 -0
- package/dist/images/07b77ac6e9e199b4.webp +0 -0
- package/dist/images/09c9185659623696.webp +0 -0
- package/dist/images/114bca3e520389dc.webp +0 -0
- package/dist/images/1485c5fe2a80e63f.webp +0 -0
- package/dist/images/16854bb16e2ae97c.webp +0 -0
- package/dist/images/1df4eb87d8af5d3f.webp +0 -0
- package/dist/images/1e5fa80d3abc1cba.webp +0 -0
- package/dist/images/200c5aa73039ef36.webp +0 -0
- package/dist/images/22646fabd5c48c72.webp +0 -0
- package/dist/images/227106a729b4fe31.webp +0 -0
- package/dist/images/2702d4eae56c37b8.webp +0 -0
- package/dist/images/2db0f5fd8d34483f.webp +0 -0
- package/dist/images/30e0adad9f3345cc.webp +0 -0
- package/dist/images/39f6ffee860afee1.webp +0 -0
- package/dist/images/3da4f13dae3ed95e.webp +0 -0
- package/dist/images/4216911b13b4a57c.webp +0 -0
- package/dist/images/44cdf557857bd124.webp +0 -0
- package/dist/images/45fd5e9a6a689b64.webp +0 -0
- package/dist/images/4b12ec7f30a0ef82.webp +0 -0
- package/dist/images/4cfc14e4ec2bc8cb.webp +0 -0
- package/dist/images/4dc88d387b4bcbad.webp +0 -0
- package/dist/images/4e5d34b28f5fd907.webp +0 -0
- package/dist/images/51a7b755f18298ca.webp +0 -0
- package/dist/images/52078f40f4832c11.webp +0 -0
- package/dist/images/523a7a293765646d.webp +0 -0
- package/dist/images/53629a70c7a933c6.webp +0 -0
- package/dist/images/56c147a0232a8b3a.webp +0 -0
- package/dist/images/57159667628ab455.webp +0 -0
- package/dist/images/581ae8f70e23ecb1.webp +0 -0
- package/dist/images/5d5d4810f36d42f8.webp +0 -0
- package/dist/images/5d946e30690cc39a.webp +0 -0
- package/dist/images/6278c609e7c27de6.webp +0 -0
- package/dist/images/6464123cd21475a4.webp +0 -0
- package/dist/images/64c36130b6fa38a2.webp +0 -0
- package/dist/images/66fa562de371f59c.webp +0 -0
- package/dist/images/6c476a508398f442.webp +0 -0
- package/dist/images/6c6f1486ec0d26bd.webp +0 -0
- package/dist/images/6f3dd94824d381e8.webp +0 -0
- package/dist/images/6f8d5e62e5280c4f.webp +0 -0
- package/dist/images/74071ead587db099.webp +0 -0
- package/dist/images/76bf37541db34494.webp +0 -0
- package/dist/images/85064bdd4ad6c690.webp +0 -0
- package/dist/images/862fb8dec14ca7d3.webp +0 -0
- package/dist/images/8fc7b03e7ae488a9.webp +0 -0
- package/dist/images/900fcecbe1e7c35e.webp +0 -0
- package/dist/images/92694ce723b967d4.webp +0 -0
- package/dist/images/92716932418bee29.webp +0 -0
- package/dist/images/93f92121383de093.webp +0 -0
- package/dist/images/93faf0658e663e52.webp +0 -0
- package/dist/images/93fc5f5ec080e83b.webp +0 -0
- package/dist/images/9da94d878508de8a.webp +0 -0
- package/dist/images/a1bcf31c72f5b679.webp +0 -0
- package/dist/images/a1d0b48793071be5.webp +0 -0
- package/dist/images/a6210f4d9d8dd54c.webp +0 -0
- package/dist/images/a720d9c024458a59.webp +0 -0
- package/dist/images/aa8fcec0c9b8c6d1.webp +0 -0
- package/dist/images/aae0eb47941aad1a.webp +0 -0
- package/dist/images/ad7bd44ecb10df2e.webp +0 -0
- package/dist/images/b395d65f8ce69bd4.webp +0 -0
- package/dist/images/b765e5489ad70820.webp +0 -0
- package/dist/images/b833b5ccf52188d3.webp +0 -0
- package/dist/images/b954dbb8a746321a.webp +0 -0
- package/dist/images/baf7bab434e68473.webp +0 -0
- package/dist/images/bb7620831834b091.webp +0 -0
- package/dist/images/bdf5edc068995c94.webp +0 -0
- package/dist/images/c514c1a923200e81.webp +0 -0
- package/dist/images/c74b41d3efd168c5.webp +0 -0
- package/dist/images/c8d0e4fbd54a3b71.webp +0 -0
- package/dist/images/ca275852292a92e7.webp +0 -0
- package/dist/images/cb84ebdf4dd6aef1.webp +0 -0
- package/dist/images/d07667606fc6386e.webp +0 -0
- package/dist/images/d5daf330ad4edc78.webp +0 -0
- package/dist/images/d6bd954d18617ea5.webp +0 -0
- package/dist/images/dc1b32e5bf980f02.webp +0 -0
- package/dist/images/dc3145955788260b.webp +0 -0
- package/dist/images/e0c45b8b17984fb2.webp +0 -0
- package/dist/images/f2ec328baaeb22a9.webp +0 -0
- package/dist/images/f59b6340c2d7006a.webp +0 -0
- package/dist/images/f65510636eec5471.webp +0 -0
- package/dist/images/f6580ea588137688.webp +0 -0
- package/dist/images/f7b0659bb97beb7e.webp +0 -0
- package/dist/images/f8cc9a6fb9cd795b.webp +0 -0
- package/dist/images/fea1cd2af746f097.webp +0 -0
- package/dist/images.dat +0 -0
- package/lib/generated/images/images.d.ts +14 -0
- package/lib/generated/images/images.js +35 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/package.json +1 -1
- package/specs/images.fbs +4 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
EVE Online's icons, as WebP.
|
|
9
9
|
|
|
10
|
-
Every published type, market group, meta group and
|
|
10
|
+
Every published type, market group, meta group, faction, dogma attribute and dogma effect has its icon here, together with the client's UI textures EVEShipFit uses.
|
|
11
11
|
Icons are not composited: a type has an icon, a frame and a marker, so the tech level or faction marker can be left off.
|
|
12
12
|
|
|
13
13
|
## Why?
|
|
@@ -47,7 +47,7 @@ Converted images are kept in `cache/`, so a next build only fetches what changed
|
|
|
47
47
|
|
|
48
48
|
`build` writes to `dist/`:
|
|
49
49
|
- `images/`, one WebP per image. A file is named after a hash of its source, so it keeps its name while it does not change.
|
|
50
|
-
- `images.dat`, a flatbuffer, described in [specs/](specs/images.fbs), which tells which images every type, market group, meta group and
|
|
50
|
+
- `images.dat`, a flatbuffer, described in [specs/](specs/images.fbs), which tells which images every type, market group, meta group, faction, dogma attribute and dogma effect uses.
|
|
51
51
|
|
|
52
52
|
Icons are scaled to 64 by 64 pixels, lossy at quality 90.
|
|
53
53
|
Icons smaller than that, markers, frames and UI textures keep their own size, and are lossless.
|
|
@@ -83,6 +83,8 @@ images.typeIcon(691, { copy: true }); // Rifter Blueprint, as a copy
|
|
|
83
83
|
images.marketGroupIcon(4); // Ships
|
|
84
84
|
images.metaGroupIcon(2); // Tech II
|
|
85
85
|
images.factionIcon(500001); // Caldari State
|
|
86
|
+
images.attributeIcon(263); // Shield Capacity
|
|
87
|
+
images.effectIcon(12); // High Power Slot
|
|
86
88
|
images.uiTexture("classes/fitting/statsicons/armorhp");
|
|
87
89
|
```
|
|
88
90
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/images.dat
CHANGED
|
Binary file
|
|
@@ -44,6 +44,16 @@ export declare class Images {
|
|
|
44
44
|
*/
|
|
45
45
|
factions(index: number, obj?: KeyedImage): KeyedImage | null;
|
|
46
46
|
factionsLength(): number;
|
|
47
|
+
/**
|
|
48
|
+
* Dogma attributes, by attribute ID. Sorted on id.
|
|
49
|
+
*/
|
|
50
|
+
attributes(index: number, obj?: KeyedImage): KeyedImage | null;
|
|
51
|
+
attributesLength(): number;
|
|
52
|
+
/**
|
|
53
|
+
* Dogma effects, by effect ID. Sorted on id.
|
|
54
|
+
*/
|
|
55
|
+
effects(index: number, obj?: KeyedImage): KeyedImage | null;
|
|
56
|
+
effectsLength(): number;
|
|
47
57
|
static startImages(builder: flatbuffers.Builder): void;
|
|
48
58
|
static addImages(builder: flatbuffers.Builder, imagesOffset: flatbuffers.Offset): void;
|
|
49
59
|
static startImagesVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
@@ -64,6 +74,10 @@ export declare class Images {
|
|
|
64
74
|
static startUiTexturesVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
65
75
|
static addFactions(builder: flatbuffers.Builder, factionsOffset: flatbuffers.Offset): void;
|
|
66
76
|
static startFactionsVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
77
|
+
static addAttributes(builder: flatbuffers.Builder, attributesOffset: flatbuffers.Offset): void;
|
|
78
|
+
static startAttributesVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
79
|
+
static addEffects(builder: flatbuffers.Builder, effectsOffset: flatbuffers.Offset): void;
|
|
80
|
+
static startEffectsVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
67
81
|
static endImages(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
68
82
|
static finishImagesBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
69
83
|
static finishSizePrefixedImagesBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
@@ -111,8 +111,30 @@ export class Images {
|
|
|
111
111
|
const offset = this.bb.__offset(this.bb_pos, 24);
|
|
112
112
|
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Dogma attributes, by attribute ID. Sorted on id.
|
|
116
|
+
*/
|
|
117
|
+
attributes(index, obj) {
|
|
118
|
+
const offset = this.bb.__offset(this.bb_pos, 26);
|
|
119
|
+
return offset ? (obj || new KeyedImage()).__init(this.bb.__vector(this.bb_pos + offset) + index * 8, this.bb) : null;
|
|
120
|
+
}
|
|
121
|
+
attributesLength() {
|
|
122
|
+
const offset = this.bb.__offset(this.bb_pos, 26);
|
|
123
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Dogma effects, by effect ID. Sorted on id.
|
|
127
|
+
*/
|
|
128
|
+
effects(index, obj) {
|
|
129
|
+
const offset = this.bb.__offset(this.bb_pos, 28);
|
|
130
|
+
return offset ? (obj || new KeyedImage()).__init(this.bb.__vector(this.bb_pos + offset) + index * 8, this.bb) : null;
|
|
131
|
+
}
|
|
132
|
+
effectsLength() {
|
|
133
|
+
const offset = this.bb.__offset(this.bb_pos, 28);
|
|
134
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
135
|
+
}
|
|
114
136
|
static startImages(builder) {
|
|
115
|
-
builder.startObject(
|
|
137
|
+
builder.startObject(13);
|
|
116
138
|
}
|
|
117
139
|
static addImages(builder, imagesOffset) {
|
|
118
140
|
builder.addFieldOffset(0, imagesOffset, 0);
|
|
@@ -175,6 +197,18 @@ export class Images {
|
|
|
175
197
|
static startFactionsVector(builder, numElems) {
|
|
176
198
|
builder.startVector(8, numElems, 4);
|
|
177
199
|
}
|
|
200
|
+
static addAttributes(builder, attributesOffset) {
|
|
201
|
+
builder.addFieldOffset(11, attributesOffset, 0);
|
|
202
|
+
}
|
|
203
|
+
static startAttributesVector(builder, numElems) {
|
|
204
|
+
builder.startVector(8, numElems, 4);
|
|
205
|
+
}
|
|
206
|
+
static addEffects(builder, effectsOffset) {
|
|
207
|
+
builder.addFieldOffset(12, effectsOffset, 0);
|
|
208
|
+
}
|
|
209
|
+
static startEffectsVector(builder, numElems) {
|
|
210
|
+
builder.startVector(8, numElems, 4);
|
|
211
|
+
}
|
|
178
212
|
static endImages(builder) {
|
|
179
213
|
const offset = builder.endObject();
|
|
180
214
|
return offset;
|
package/lib/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export declare class Images {
|
|
|
28
28
|
/** Also the marker of the meta group's types. */
|
|
29
29
|
metaGroupIcon(metaGroupId: number): string | undefined;
|
|
30
30
|
factionIcon(factionId: number): string | undefined;
|
|
31
|
+
attributeIcon(attributeId: number): string | undefined;
|
|
32
|
+
effectIcon(effectId: number): string | undefined;
|
|
31
33
|
/** By its path below res:/ui/texture/, without extension. */
|
|
32
34
|
uiTexture(name: string): string | undefined;
|
|
33
35
|
}
|
package/lib/index.js
CHANGED
|
@@ -46,6 +46,14 @@ export class Images {
|
|
|
46
46
|
const image = this.#keyed(this.#raw.factionsLength(), (index) => this.#raw.factions(index), factionId);
|
|
47
47
|
return image === undefined ? undefined : this.#url(image);
|
|
48
48
|
}
|
|
49
|
+
attributeIcon(attributeId) {
|
|
50
|
+
const image = this.#keyed(this.#raw.attributesLength(), (index) => this.#raw.attributes(index), attributeId);
|
|
51
|
+
return image === undefined ? undefined : this.#url(image);
|
|
52
|
+
}
|
|
53
|
+
effectIcon(effectId) {
|
|
54
|
+
const image = this.#keyed(this.#raw.effectsLength(), (index) => this.#raw.effects(index), effectId);
|
|
55
|
+
return image === undefined ? undefined : this.#url(image);
|
|
56
|
+
}
|
|
49
57
|
/** By its path below res:/ui/texture/, without extension. */
|
|
50
58
|
uiTexture(name) {
|
|
51
59
|
const texture = search(this.#raw.uiTexturesLength(), (index) => this.#raw.uiTextures(index), (entry) => compare(entry.name(), name));
|
package/package.json
CHANGED
package/specs/images.fbs
CHANGED
|
@@ -62,6 +62,10 @@ table Images {
|
|
|
62
62
|
ui_textures: [UiTexture];
|
|
63
63
|
/// Sorted on id.
|
|
64
64
|
factions: [KeyedImage];
|
|
65
|
+
/// Dogma attributes, by attribute ID. Sorted on id.
|
|
66
|
+
attributes: [KeyedImage];
|
|
67
|
+
/// Dogma effects, by effect ID. Sorted on id.
|
|
68
|
+
effects: [KeyedImage];
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
root_type Images;
|