@ca-plant-list/ca-plant-list 0.4.18 → 0.4.20
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/data/genera.json +36 -32
- package/data/inattaxonphotos.csv +4 -0
- package/data/synonyms.csv +2 -0
- package/data/taxa.csv +6 -5
- package/data/text/Polypodium-calirhiza.md +1 -0
- package/data/text/Polypodium-scouleri.md +1 -0
- package/data/text/Rumex-conglomeratus.md +1 -0
- package/data/text/Rumex-obtusifolius.md +1 -0
- package/data/text/Rumex-pulcher.md +1 -0
- package/data/text/Rumex-salicifolius.md +1 -0
- package/lib/basepagerenderer.js +3 -3
- package/lib/ebook/glossarypages.js +3 -3
- package/lib/ebook/images.js +7 -7
- package/lib/ebook/pages/page_list_families.js +1 -1
- package/lib/ebook/pages/page_list_flower_color.js +2 -2
- package/lib/ebook/pages/page_list_flowers.js +8 -8
- package/lib/ebook/pages/page_list_species.js +1 -1
- package/lib/ebook/pages/taxonpage.js +2 -2
- package/lib/ebook/pages/tocpage.js +2 -2
- package/lib/ebook/plantbook.js +3 -3
- package/lib/externalsites.js +20 -15
- package/lib/families.js +14 -14
- package/lib/flowercolor.js +2 -2
- package/lib/genera.js +3 -3
- package/lib/htmltaxon.js +16 -7
- package/lib/index.d.ts +46 -1
- package/lib/pagerenderer.js +223 -220
- package/lib/photo.js +52 -31
- package/lib/plants/glossary.js +2 -4
- package/lib/program.js +10 -2
- package/lib/sitegenerator.js +13 -3
- package/lib/taxa.js +16 -12
- package/lib/taxon.js +12 -6
- package/lib/tools/calflora.js +41 -8
- package/lib/tools/calscape.js +4 -4
- package/lib/tools/inat.js +7 -7
- package/lib/tools/jepsoneflora.js +28 -4
- package/lib/tools/jepsonfamilies.js +102 -0
- package/lib/tools/rpi.js +8 -9
- package/lib/tools/supplementaltext.js +43 -0
- package/lib/tools/taxacsv.js +2 -2
- package/lib/utils/inat-tools.js +39 -2
- package/lib/web/glossarypages.js +6 -6
- package/lib/web/pagetaxon.js +4 -6
- package/package.json +10 -8
- package/scripts/cpl-photos.js +2 -2
- package/scripts/cpl-tools.js +11 -3
- package/scripts/inatobsphotos.js +10 -1
- package/scripts/inattaxonphotos.js +45 -43
- package/lib/inat_photo.js +0 -43
- package/types/classes.d.ts +0 -232
package/types/classes.d.ts
DELETED
@@ -1,232 +0,0 @@
|
|
1
|
-
declare class CommandLineOptions {
|
2
|
-
datadir: string;
|
3
|
-
outputdir: string;
|
4
|
-
"show-flower-errors": boolean;
|
5
|
-
}
|
6
|
-
|
7
|
-
declare class Config {
|
8
|
-
getConfigValue(
|
9
|
-
prefix: string,
|
10
|
-
name: string,
|
11
|
-
subcategory?: string,
|
12
|
-
defaultValue?: string,
|
13
|
-
): string | undefined;
|
14
|
-
getCountyCodes(): string[];
|
15
|
-
getLabel(name: string, dflt: string): string;
|
16
|
-
}
|
17
|
-
|
18
|
-
declare class ErrorLog {
|
19
|
-
log(...args: any[]): void;
|
20
|
-
write(): void;
|
21
|
-
}
|
22
|
-
|
23
|
-
declare class Families {
|
24
|
-
getFamilies(): Family[];
|
25
|
-
getFamily(name: string): Family;
|
26
|
-
renderPages(outputDir: string, cols?: TaxaCol[]): void;
|
27
|
-
}
|
28
|
-
|
29
|
-
declare class Family {
|
30
|
-
getFileName(): string;
|
31
|
-
getName(): string;
|
32
|
-
getSectionName(): string;
|
33
|
-
getTaxa(): Taxon[];
|
34
|
-
}
|
35
|
-
|
36
|
-
declare class FlowerColor {
|
37
|
-
getColorCode(): string;
|
38
|
-
getColorName(upperCase?: boolean): string;
|
39
|
-
getFileName(): string;
|
40
|
-
getTaxa(): Taxon[];
|
41
|
-
}
|
42
|
-
|
43
|
-
declare class Genera {
|
44
|
-
addTaxon(taxon: Taxon): void;
|
45
|
-
getGenus(name: string): Genus;
|
46
|
-
}
|
47
|
-
|
48
|
-
declare class Genus {
|
49
|
-
getFamily(): Family;
|
50
|
-
getTaxa(): Taxon[];
|
51
|
-
}
|
52
|
-
|
53
|
-
declare class GlossaryEntry {
|
54
|
-
getMarkdown(): string;
|
55
|
-
getTermName(): string;
|
56
|
-
}
|
57
|
-
|
58
|
-
declare class InatObsOptions {
|
59
|
-
coords?: [number, number];
|
60
|
-
project_id?: string;
|
61
|
-
subview?: "grid" | "list" | "map";
|
62
|
-
taxon_id?: string;
|
63
|
-
}
|
64
|
-
|
65
|
-
declare class SiteGenerator {
|
66
|
-
copyIllustrations(flowerColors: FlowerColor[]): void;
|
67
|
-
mkdir(path: string): void;
|
68
|
-
writeTemplate(
|
69
|
-
content: string,
|
70
|
-
attributes: Record<string, string>,
|
71
|
-
filename: string,
|
72
|
-
): void;
|
73
|
-
}
|
74
|
-
|
75
|
-
declare class SynonymData {
|
76
|
-
Current: string;
|
77
|
-
Former: string;
|
78
|
-
Type: string;
|
79
|
-
}
|
80
|
-
|
81
|
-
declare class Taxa {
|
82
|
-
getFamilies(): Families;
|
83
|
-
getFlowerColors(): FlowerColor[];
|
84
|
-
getTaxon(name: string): Taxon;
|
85
|
-
getTaxonList(): Taxon[];
|
86
|
-
hasSynonym(name: string): boolean;
|
87
|
-
isSubset(): boolean;
|
88
|
-
}
|
89
|
-
|
90
|
-
declare class TaxaCol {
|
91
|
-
class?: string;
|
92
|
-
data: (taxon: Taxon) => string;
|
93
|
-
title: string;
|
94
|
-
}
|
95
|
-
|
96
|
-
type StatusCode = "N" | "NC" | "U" | "X";
|
97
|
-
declare class Taxon {
|
98
|
-
constructor(data: TaxonData, genera: Genera, meta: any);
|
99
|
-
getBaseFileName(): string;
|
100
|
-
getBloomEnd(): number | undefined;
|
101
|
-
getBloomStart(): number | undefined;
|
102
|
-
getCalfloraID(): string;
|
103
|
-
getCalfloraName(): string;
|
104
|
-
getCalfloraTaxonLink(): string | undefined;
|
105
|
-
getCalscapeCommonName(): string | undefined;
|
106
|
-
getCalscapeName(): string;
|
107
|
-
getCESA(): string | undefined;
|
108
|
-
getCNDDBRank(): string | undefined;
|
109
|
-
getCommonNames(): string[];
|
110
|
-
getFamily(): Family;
|
111
|
-
getFESA(): string | undefined;
|
112
|
-
getFileName(): string;
|
113
|
-
getFlowerColors(): string[] | undefined;
|
114
|
-
getGenus(): Genus;
|
115
|
-
getGenusName(): string;
|
116
|
-
getGlobalRank(): string | undefined;
|
117
|
-
getHTMLLink(
|
118
|
-
href: boolean | string | undefined,
|
119
|
-
includeRPI?: boolean,
|
120
|
-
): string;
|
121
|
-
getINatID(): string;
|
122
|
-
getINatName(): string;
|
123
|
-
getINatSyn(): string | undefined;
|
124
|
-
getINatTaxonLink(): string;
|
125
|
-
getJepsonID(): string;
|
126
|
-
getLifeCycle(): string;
|
127
|
-
getName(): string;
|
128
|
-
getPhotos(): Photo[];
|
129
|
-
getRPIID(): string | undefined;
|
130
|
-
getRPIRank(): string;
|
131
|
-
getRPIRankAndThreat(): string;
|
132
|
-
getRPIRankAndThreatTooltip(): string;
|
133
|
-
getRPITaxonLink(): string;
|
134
|
-
getStatus(): StatusCode;
|
135
|
-
getStatusDescription(config: Config): string;
|
136
|
-
getSynonyms(): string[];
|
137
|
-
isCANative(): boolean;
|
138
|
-
isNative(): boolean;
|
139
|
-
}
|
140
|
-
|
141
|
-
declare class TaxonData {
|
142
|
-
bloom_end: string;
|
143
|
-
bloom_start: string;
|
144
|
-
calrecnum: string;
|
145
|
-
calscape_cn?: string;
|
146
|
-
CESA: string;
|
147
|
-
"common name": string;
|
148
|
-
CRPR: string;
|
149
|
-
FESA: string;
|
150
|
-
flower_color: string;
|
151
|
-
GRank: string;
|
152
|
-
"inat id": string;
|
153
|
-
"jepson id": string;
|
154
|
-
life_cycle: string;
|
155
|
-
"RPI ID": string;
|
156
|
-
SRank: string;
|
157
|
-
status: StatusCode;
|
158
|
-
taxon_name: string;
|
159
|
-
}
|
160
|
-
|
161
|
-
type PhotoRights = "CC0" | "CC BY" | "CC BY-NC" | "C" | null;
|
162
|
-
|
163
|
-
declare class Photo {
|
164
|
-
url?: string;
|
165
|
-
rightsHolder: null | string;
|
166
|
-
rights?: PhotoRights;
|
167
|
-
getExt(): string;
|
168
|
-
getId(): number;
|
169
|
-
getUrl(): string;
|
170
|
-
getSourceUrl(): string;
|
171
|
-
}
|
172
|
-
|
173
|
-
declare class InatPhoto extends Photo {
|
174
|
-
inatPhotoId: number;
|
175
|
-
ext: string;
|
176
|
-
}
|
177
|
-
|
178
|
-
type InatPhotoInfo = {
|
179
|
-
id: string;
|
180
|
-
ext: string;
|
181
|
-
licenseCode: string;
|
182
|
-
attrName: string | undefined;
|
183
|
-
};
|
184
|
-
|
185
|
-
type InatLicenseCode =
|
186
|
-
| "cc-by-nc-sa"
|
187
|
-
| "cc-by-nc"
|
188
|
-
| "cc-by-nc-nd"
|
189
|
-
| "cc-by"
|
190
|
-
| "cc-by-sa"
|
191
|
-
| "cc-by-nd"
|
192
|
-
| "pd"
|
193
|
-
| "gdfl"
|
194
|
-
| "cc0";
|
195
|
-
|
196
|
-
declare class InatCsvPhoto {
|
197
|
-
name: string;
|
198
|
-
id: number;
|
199
|
-
ext: string;
|
200
|
-
licenseCode: InatLicenseCode;
|
201
|
-
attrName: string;
|
202
|
-
}
|
203
|
-
|
204
|
-
declare class InatApiPhoto {
|
205
|
-
id: number;
|
206
|
-
attribution: string;
|
207
|
-
license_code: InatLicenseCode;
|
208
|
-
medium_url?: string;
|
209
|
-
url?: string;
|
210
|
-
}
|
211
|
-
|
212
|
-
declare class InatApiTaxon {
|
213
|
-
id: number;
|
214
|
-
taxon_photos: {
|
215
|
-
photo: InatApiPhoto;
|
216
|
-
}[];
|
217
|
-
}
|
218
|
-
|
219
|
-
declare class InatApiObservation {
|
220
|
-
observation_photos: {
|
221
|
-
photo: InatApiPhoto;
|
222
|
-
}[]
|
223
|
-
}
|
224
|
-
|
225
|
-
declare class InatObsPhotosCommandLineOptions extends CommandLineOptions {
|
226
|
-
filename?: string;
|
227
|
-
inatObsQuery?: string;
|
228
|
-
}
|
229
|
-
|
230
|
-
declare class InatTaxonPhotosCommandLineOptions extends CommandLineOptions {
|
231
|
-
filename?: string;
|
232
|
-
}
|