@esri/calcite-ui-icons 3.29.1-next.0 → 3.29.1
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/.github/workflows/npm-release.yml +20 -0
- package/CONTRIBUTE.md +29 -0
- package/LICENSE.md +5 -4
- package/README.md +41 -36
- package/bin/build.js +24 -0
- package/bin/cli.js +6 -0
- package/bin/convert-mobile.js +218 -0
- package/bin/optimize.js +68 -0
- package/bin/path-data.js +136 -0
- package/bin/server.js +41 -0
- package/bin/templates/imageset.json +29 -0
- package/bin/templates/xcassets.json +6 -0
- package/bower.json +27 -0
- package/docs/app.js +118 -0
- package/docs/icons.json +1 -1
- package/docs/index.html +132 -0
- package/docs/keywords.json +14592 -8292
- package/docs/resources/calcite-web.min.css +8 -0
- package/docs/resources/calcite-web.min.js +7 -0
- package/icons/closed-caption-16-f.svg +1 -0
- package/icons/closed-caption-16.svg +1 -0
- package/icons/closed-caption-24-f.svg +1 -0
- package/icons/closed-caption-24.svg +1 -0
- package/icons/closed-caption-32-f.svg +1 -0
- package/icons/closed-caption-32.svg +1 -0
- package/icons/flag-16-f.svg +1 -0
- package/icons/flag-16.svg +1 -0
- package/icons/flag-24-f.svg +1 -0
- package/icons/flag-24.svg +1 -0
- package/icons/flag-32-f.svg +1 -0
- package/icons/flag-32.svg +1 -0
- package/icons/flag-slash-16.svg +1 -0
- package/icons/flag-slash-24.svg +1 -0
- package/icons/flag-slash-32.svg +1 -0
- package/icons/transcript-16-f.svg +1 -0
- package/icons/transcript-16.svg +1 -0
- package/icons/transcript-24-f.svg +1 -0
- package/icons/transcript-24.svg +1 -0
- package/icons/transcript-32-f.svg +1 -0
- package/icons/transcript-32.svg +1 -0
- package/index.d.ts +3500 -3479
- package/index.js +3500 -3479
- package/js/ai16.d.ts +1 -0
- package/js/ai16.js +1 -0
- package/js/ai16.json +1 -0
- package/js/ai24.d.ts +1 -0
- package/js/ai24.js +1 -0
- package/js/ai24.json +1 -0
- package/js/ai32.d.ts +1 -0
- package/js/ai32.js +1 -0
- package/js/ai32.json +1 -0
- package/js/arrowCircleDownF16.d.ts +1 -0
- package/js/arrowCircleDownF16.js +1 -0
- package/js/arrowCircleDownF16.json +1 -0
- package/js/arrowCircleDownF24.d.ts +1 -0
- package/js/arrowCircleDownF24.js +1 -0
- package/js/arrowCircleDownF24.json +1 -0
- package/js/arrowCircleDownF32.d.ts +1 -0
- package/js/arrowCircleDownF32.js +1 -0
- package/js/arrowCircleDownF32.json +1 -0
- package/js/bookmarkF16.d.ts +1 -0
- package/js/bookmarkF16.js +1 -0
- package/js/bookmarkF16.json +1 -0
- package/js/bookmarkF24.d.ts +1 -0
- package/js/bookmarkF24.js +1 -0
- package/js/bookmarkF24.json +1 -0
- package/js/bookmarkF32.d.ts +1 -0
- package/js/bookmarkF32.js +1 -0
- package/js/bookmarkF32.json +1 -0
- package/js/closedCaption16.d.ts +1 -0
- package/js/closedCaption16.js +1 -0
- package/js/closedCaption16.json +1 -0
- package/js/closedCaption16F.d.ts +1 -0
- package/js/closedCaption16F.js +1 -0
- package/js/closedCaption16F.json +1 -0
- package/js/closedCaption24.d.ts +1 -0
- package/js/closedCaption24.js +1 -0
- package/js/closedCaption24.json +1 -0
- package/js/closedCaption24F.d.ts +1 -0
- package/js/closedCaption24F.js +1 -0
- package/js/closedCaption24F.json +1 -0
- package/js/closedCaption32.d.ts +1 -0
- package/js/closedCaption32.js +1 -0
- package/js/closedCaption32.json +1 -0
- package/js/closedCaption32F.d.ts +1 -0
- package/js/closedCaption32F.js +1 -0
- package/js/closedCaption32F.json +1 -0
- package/js/codeBrand16.d.ts +1 -0
- package/js/codeBrand16.js +1 -0
- package/js/codeBrand16.json +1 -0
- package/js/codeBrand24.d.ts +1 -0
- package/js/codeBrand24.js +1 -0
- package/js/codeBrand24.json +1 -0
- package/js/codeBrand32.d.ts +1 -0
- package/js/codeBrand32.js +1 -0
- package/js/codeBrand32.json +1 -0
- package/js/codeBrandEdit16.d.ts +1 -0
- package/js/codeBrandEdit16.js +1 -0
- package/js/codeBrandEdit16.json +1 -0
- package/js/codeBrandEdit24.d.ts +1 -0
- package/js/codeBrandEdit24.js +1 -0
- package/js/codeBrandEdit24.json +1 -0
- package/js/codeBrandEdit32.d.ts +1 -0
- package/js/codeBrandEdit32.js +1 -0
- package/js/codeBrandEdit32.json +1 -0
- package/js/esriCommunity16.d.ts +1 -0
- package/js/esriCommunity16.js +1 -0
- package/js/esriCommunity16.json +1 -0
- package/js/esriCommunity24.d.ts +1 -0
- package/js/esriCommunity24.js +1 -0
- package/js/esriCommunity24.json +1 -0
- package/js/esriCommunity32.d.ts +1 -0
- package/js/esriCommunity32.js +1 -0
- package/js/esriCommunity32.json +1 -0
- package/js/esriCommunityGlyph16.d.ts +1 -0
- package/js/esriCommunityGlyph16.js +1 -0
- package/js/esriCommunityGlyph16.json +1 -0
- package/js/esriCommunityGlyph24.d.ts +1 -0
- package/js/esriCommunityGlyph24.js +1 -0
- package/js/esriCommunityGlyph24.json +1 -0
- package/js/esriCommunityGlyph32.d.ts +1 -0
- package/js/esriCommunityGlyph32.js +1 -0
- package/js/esriCommunityGlyph32.json +1 -0
- package/js/featureDisplayOrder16.d.ts +1 -0
- package/js/featureDisplayOrder16.js +1 -0
- package/js/featureDisplayOrder16.json +1 -0
- package/js/featureDisplayOrder24.d.ts +1 -0
- package/js/featureDisplayOrder24.js +1 -0
- package/js/featureDisplayOrder24.json +1 -0
- package/js/featureDisplayOrder32.d.ts +1 -0
- package/js/featureDisplayOrder32.js +1 -0
- package/js/featureDisplayOrder32.json +1 -0
- package/js/flag16.d.ts +1 -0
- package/js/flag16.js +1 -0
- package/js/flag16.json +1 -0
- package/js/flag16F.d.ts +1 -0
- package/js/flag16F.js +1 -0
- package/js/flag16F.json +1 -0
- package/js/flag24.d.ts +1 -0
- package/js/flag24.js +1 -0
- package/js/flag24.json +1 -0
- package/js/flag24F.d.ts +1 -0
- package/js/flag24F.js +1 -0
- package/js/flag24F.json +1 -0
- package/js/flag32.d.ts +1 -0
- package/js/flag32.js +1 -0
- package/js/flag32.json +1 -0
- package/js/flag32F.d.ts +1 -0
- package/js/flag32F.js +1 -0
- package/js/flag32F.json +1 -0
- package/js/flagSlash16.d.ts +1 -0
- package/js/flagSlash16.js +1 -0
- package/js/flagSlash16.json +1 -0
- package/js/flagSlash24.d.ts +1 -0
- package/js/flagSlash24.js +1 -0
- package/js/flagSlash24.json +1 -0
- package/js/flagSlash32.d.ts +1 -0
- package/js/flagSlash32.js +1 -0
- package/js/flagSlash32.json +1 -0
- package/js/folderFill16F.d.ts +1 -0
- package/js/folderFill16F.js +1 -0
- package/js/folderFill16F.json +1 -0
- package/js/folderFill24F.d.ts +1 -0
- package/js/folderFill24F.js +1 -0
- package/js/folderFill24F.json +1 -0
- package/js/folderFill32F.d.ts +1 -0
- package/js/folderFill32F.js +1 -0
- package/js/folderFill32F.json +1 -0
- package/js/full1Column16.d.ts +1 -0
- package/js/full1Column16.js +1 -0
- package/js/full1Column16.json +1 -0
- package/js/full1Column24.d.ts +1 -0
- package/js/full1Column24.js +1 -0
- package/js/full1Column24.json +1 -0
- package/js/full1Column32.d.ts +1 -0
- package/js/full1Column32.js +1 -0
- package/js/full1Column32.json +1 -0
- package/js/fullMedium1Column16.d.ts +1 -0
- package/js/fullMedium1Column16.js +1 -0
- package/js/fullMedium1Column16.json +1 -0
- package/js/fullMedium1Column24.d.ts +1 -0
- package/js/fullMedium1Column24.js +1 -0
- package/js/fullMedium1Column24.json +1 -0
- package/js/fullMedium1Column32.d.ts +1 -0
- package/js/fullMedium1Column32.js +1 -0
- package/js/fullMedium1Column32.json +1 -0
- package/js/fullSmall1Column16.d.ts +1 -0
- package/js/fullSmall1Column16.js +1 -0
- package/js/fullSmall1Column16.json +1 -0
- package/js/fullSmall1Column24.d.ts +1 -0
- package/js/fullSmall1Column24.js +1 -0
- package/js/fullSmall1Column24.json +1 -0
- package/js/fullSmall1Column32.d.ts +1 -0
- package/js/fullSmall1Column32.js +1 -0
- package/js/fullSmall1Column32.json +1 -0
- package/js/i12XPlaybackSpeed16.d.ts +1 -0
- package/js/i12XPlaybackSpeed16.js +1 -0
- package/js/i12XPlaybackSpeed16.json +1 -0
- package/js/i12XPlaybackSpeed24.d.ts +1 -0
- package/js/i12XPlaybackSpeed24.js +1 -0
- package/js/i12XPlaybackSpeed24.json +1 -0
- package/js/i12XPlaybackSpeed32.d.ts +1 -0
- package/js/i12XPlaybackSpeed32.js +1 -0
- package/js/i12XPlaybackSpeed32.json +1 -0
- package/js/i14XPlaybackSpeed16.d.ts +1 -0
- package/js/i14XPlaybackSpeed16.js +1 -0
- package/js/i14XPlaybackSpeed16.json +1 -0
- package/js/i14XPlaybackSpeed24.d.ts +1 -0
- package/js/i14XPlaybackSpeed24.js +1 -0
- package/js/i14XPlaybackSpeed24.json +1 -0
- package/js/i14XPlaybackSpeed32.d.ts +1 -0
- package/js/i14XPlaybackSpeed32.js +1 -0
- package/js/i14XPlaybackSpeed32.json +1 -0
- package/js/i18XPlaybackSpeed16.d.ts +1 -0
- package/js/i18XPlaybackSpeed16.js +1 -0
- package/js/i18XPlaybackSpeed16.json +1 -0
- package/js/i18XPlaybackSpeed24.d.ts +1 -0
- package/js/i18XPlaybackSpeed24.js +1 -0
- package/js/i18XPlaybackSpeed24.json +1 -0
- package/js/i18XPlaybackSpeed32.d.ts +1 -0
- package/js/i18XPlaybackSpeed32.js +1 -0
- package/js/i18XPlaybackSpeed32.json +1 -0
- package/js/i1XPlaybackSpeed16.d.ts +1 -0
- package/js/i1XPlaybackSpeed16.js +1 -0
- package/js/i1XPlaybackSpeed16.json +1 -0
- package/js/i1XPlaybackSpeed24.d.ts +1 -0
- package/js/i1XPlaybackSpeed24.js +1 -0
- package/js/i1XPlaybackSpeed24.json +1 -0
- package/js/i1XPlaybackSpeed32.d.ts +1 -0
- package/js/i1XPlaybackSpeed32.js +1 -0
- package/js/i1XPlaybackSpeed32.json +1 -0
- package/js/i2XPlaybackSpeed16.d.ts +1 -0
- package/js/i2XPlaybackSpeed16.js +1 -0
- package/js/i2XPlaybackSpeed16.json +1 -0
- package/js/i2XPlaybackSpeed24.d.ts +1 -0
- package/js/i2XPlaybackSpeed24.js +1 -0
- package/js/i2XPlaybackSpeed24.json +1 -0
- package/js/i2XPlaybackSpeed32.d.ts +1 -0
- package/js/i2XPlaybackSpeed32.js +1 -0
- package/js/i2XPlaybackSpeed32.json +1 -0
- package/js/i4XPlaybackSpeed16.d.ts +1 -0
- package/js/i4XPlaybackSpeed16.js +1 -0
- package/js/i4XPlaybackSpeed16.json +1 -0
- package/js/i4XPlaybackSpeed24.d.ts +1 -0
- package/js/i4XPlaybackSpeed24.js +1 -0
- package/js/i4XPlaybackSpeed24.json +1 -0
- package/js/i4XPlaybackSpeed32.d.ts +1 -0
- package/js/i4XPlaybackSpeed32.js +1 -0
- package/js/i4XPlaybackSpeed32.json +1 -0
- package/js/i8XPlaybackSpeed16.d.ts +1 -0
- package/js/i8XPlaybackSpeed16.js +1 -0
- package/js/i8XPlaybackSpeed16.json +1 -0
- package/js/i8XPlaybackSpeed24.d.ts +1 -0
- package/js/i8XPlaybackSpeed24.js +1 -0
- package/js/i8XPlaybackSpeed24.json +1 -0
- package/js/i8XPlaybackSpeed32.d.ts +1 -0
- package/js/i8XPlaybackSpeed32.js +1 -0
- package/js/i8XPlaybackSpeed32.json +1 -0
- package/js/large2Column16.d.ts +1 -0
- package/js/large2Column16.js +1 -0
- package/js/large2Column16.json +1 -0
- package/js/large2Column24.d.ts +1 -0
- package/js/large2Column24.js +1 -0
- package/js/large2Column24.json +1 -0
- package/js/large2Column32.d.ts +1 -0
- package/js/large2Column32.js +1 -0
- package/js/large2Column32.json +1 -0
- package/js/locationSharingDisabled16.d.ts +1 -0
- package/js/locationSharingDisabled16.js +1 -0
- package/js/locationSharingDisabled16.json +1 -0
- package/js/locationSharingDisabled24.d.ts +1 -0
- package/js/locationSharingDisabled24.js +1 -0
- package/js/locationSharingDisabled24.json +1 -0
- package/js/locationSharingDisabled32.d.ts +1 -0
- package/js/locationSharingDisabled32.js +1 -0
- package/js/locationSharingDisabled32.json +1 -0
- package/js/locationSharingEnabled16.d.ts +1 -0
- package/js/locationSharingEnabled16.js +1 -0
- package/js/locationSharingEnabled16.json +1 -0
- package/js/locationSharingEnabled24.d.ts +1 -0
- package/js/locationSharingEnabled24.js +1 -0
- package/js/locationSharingEnabled24.json +1 -0
- package/js/locationSharingEnabled32.d.ts +1 -0
- package/js/locationSharingEnabled32.js +1 -0
- package/js/locationSharingEnabled32.json +1 -0
- package/js/locationSharingFilled16.d.ts +1 -0
- package/js/locationSharingFilled16.js +1 -0
- package/js/locationSharingFilled16.json +1 -0
- package/js/locationSharingFilled24.d.ts +1 -0
- package/js/locationSharingFilled24.js +1 -0
- package/js/locationSharingFilled24.json +1 -0
- package/js/locationSharingFilled32.d.ts +1 -0
- package/js/locationSharingFilled32.js +1 -0
- package/js/locationSharingFilled32.json +1 -0
- package/js/medium2Column16.d.ts +1 -0
- package/js/medium2Column16.js +1 -0
- package/js/medium2Column16.json +1 -0
- package/js/medium2Column24.d.ts +1 -0
- package/js/medium2Column24.js +1 -0
- package/js/medium2Column24.json +1 -0
- package/js/medium2Column32.d.ts +1 -0
- package/js/medium2Column32.js +1 -0
- package/js/medium2Column32.json +1 -0
- package/js/numberCircle1F16.d.ts +1 -0
- package/js/numberCircle1F16.js +1 -0
- package/js/numberCircle1F16.json +1 -0
- package/js/numberCircle1F24.d.ts +1 -0
- package/js/numberCircle1F24.js +1 -0
- package/js/numberCircle1F24.json +1 -0
- package/js/numberCircle1F32.d.ts +1 -0
- package/js/numberCircle1F32.js +1 -0
- package/js/numberCircle1F32.json +1 -0
- package/js/numberCircle2F16.d.ts +1 -0
- package/js/numberCircle2F16.js +1 -0
- package/js/numberCircle2F16.json +1 -0
- package/js/numberCircle2F24.d.ts +1 -0
- package/js/numberCircle2F24.js +1 -0
- package/js/numberCircle2F24.json +1 -0
- package/js/numberCircle2F32.d.ts +1 -0
- package/js/numberCircle2F32.js +1 -0
- package/js/numberCircle2F32.json +1 -0
- package/js/numberCircle3F16.d.ts +1 -0
- package/js/numberCircle3F16.js +1 -0
- package/js/numberCircle3F16.json +1 -0
- package/js/numberCircle3F24.d.ts +1 -0
- package/js/numberCircle3F24.js +1 -0
- package/js/numberCircle3F24.json +1 -0
- package/js/numberCircle3F32.d.ts +1 -0
- package/js/numberCircle3F32.js +1 -0
- package/js/numberCircle3F32.json +1 -0
- package/js/numberCircle4F16.d.ts +1 -0
- package/js/numberCircle4F16.js +1 -0
- package/js/numberCircle4F16.json +1 -0
- package/js/numberCircle4F24.d.ts +1 -0
- package/js/numberCircle4F24.js +1 -0
- package/js/numberCircle4F24.json +1 -0
- package/js/numberCircle4F32.d.ts +1 -0
- package/js/numberCircle4F32.js +1 -0
- package/js/numberCircle4F32.json +1 -0
- package/js/numberCircle5F16.d.ts +1 -0
- package/js/numberCircle5F16.js +1 -0
- package/js/numberCircle5F16.json +1 -0
- package/js/numberCircle5F24.d.ts +1 -0
- package/js/numberCircle5F24.js +1 -0
- package/js/numberCircle5F24.json +1 -0
- package/js/numberCircle5F32.d.ts +1 -0
- package/js/numberCircle5F32.js +1 -0
- package/js/numberCircle5F32.json +1 -0
- package/js/numberCircle6F16.d.ts +1 -0
- package/js/numberCircle6F16.js +1 -0
- package/js/numberCircle6F16.json +1 -0
- package/js/numberCircle6F24.d.ts +1 -0
- package/js/numberCircle6F24.js +1 -0
- package/js/numberCircle6F24.json +1 -0
- package/js/numberCircle6F32.d.ts +1 -0
- package/js/numberCircle6F32.js +1 -0
- package/js/numberCircle6F32.json +1 -0
- package/js/numberCircle7F16.d.ts +1 -0
- package/js/numberCircle7F16.js +1 -0
- package/js/numberCircle7F16.json +1 -0
- package/js/numberCircle7F24.d.ts +1 -0
- package/js/numberCircle7F24.js +1 -0
- package/js/numberCircle7F24.json +1 -0
- package/js/numberCircle7F32.d.ts +1 -0
- package/js/numberCircle7F32.js +1 -0
- package/js/numberCircle7F32.json +1 -0
- package/js/numberCircle8F16.d.ts +1 -0
- package/js/numberCircle8F16.js +1 -0
- package/js/numberCircle8F16.json +1 -0
- package/js/numberCircle8F24.d.ts +1 -0
- package/js/numberCircle8F24.js +1 -0
- package/js/numberCircle8F24.json +1 -0
- package/js/numberCircle8F32.d.ts +1 -0
- package/js/numberCircle8F32.js +1 -0
- package/js/numberCircle8F32.json +1 -0
- package/js/numberCircle9F16.d.ts +1 -0
- package/js/numberCircle9F16.js +1 -0
- package/js/numberCircle9F16.json +1 -0
- package/js/numberCircle9F24.d.ts +1 -0
- package/js/numberCircle9F24.js +1 -0
- package/js/numberCircle9F24.json +1 -0
- package/js/numberCircle9F32.d.ts +1 -0
- package/js/numberCircle9F32.js +1 -0
- package/js/numberCircle9F32.json +1 -0
- package/js/partlyCloud16.d.ts +1 -0
- package/js/partlyCloud16.js +1 -0
- package/js/partlyCloud16.json +1 -0
- package/js/partlyCloud24.d.ts +1 -0
- package/js/partlyCloud24.js +1 -0
- package/js/partlyCloud24.json +1 -0
- package/js/partlyCloud32.d.ts +1 -0
- package/js/partlyCloud32.js +1 -0
- package/js/partlyCloud32.json +1 -0
- package/js/pinTearF16.d.ts +1 -0
- package/js/pinTearF16.js +1 -0
- package/js/pinTearF16.json +1 -0
- package/js/pinTearF24.d.ts +1 -0
- package/js/pinTearF24.js +1 -0
- package/js/pinTearF24.json +1 -0
- package/js/pinTearF32.d.ts +1 -0
- package/js/pinTearF32.js +1 -0
- package/js/pinTearF32.json +1 -0
- package/js/popUpBlankF16.d.ts +1 -0
- package/js/popUpBlankF16.js +1 -0
- package/js/popUpBlankF16.json +1 -0
- package/js/popUpBlankF24.d.ts +1 -0
- package/js/popUpBlankF24.js +1 -0
- package/js/popUpBlankF24.json +1 -0
- package/js/popUpBlankF32.d.ts +1 -0
- package/js/popUpBlankF32.js +1 -0
- package/js/popUpBlankF32.json +1 -0
- package/js/radialTreeLinkChartYayout16.d.ts +1 -0
- package/js/radialTreeLinkChartYayout16.js +1 -0
- package/js/radialTreeLinkChartYayout16.json +1 -0
- package/js/radialTreeLinkChartYayout24.d.ts +1 -0
- package/js/radialTreeLinkChartYayout24.js +1 -0
- package/js/radialTreeLinkChartYayout24.json +1 -0
- package/js/radialTreeLinkChartYayout32.d.ts +1 -0
- package/js/radialTreeLinkChartYayout32.js +1 -0
- package/js/radialTreeLinkChartYayout32.json +1 -0
- package/js/satellite0F16.d.ts +1 -0
- package/js/satellite0F16.js +1 -0
- package/js/satellite0F16.json +1 -0
- package/js/satellite0F24.d.ts +1 -0
- package/js/satellite0F24.js +1 -0
- package/js/satellite0F24.json +1 -0
- package/js/satellite0F32.d.ts +1 -0
- package/js/satellite0F32.js +1 -0
- package/js/satellite0F32.json +1 -0
- package/js/satellite1F16.d.ts +1 -0
- package/js/satellite1F16.js +1 -0
- package/js/satellite1F16.json +1 -0
- package/js/satellite1F24.d.ts +1 -0
- package/js/satellite1F24.js +1 -0
- package/js/satellite1F24.json +1 -0
- package/js/satellite1F32.d.ts +1 -0
- package/js/satellite1F32.js +1 -0
- package/js/satellite1F32.json +1 -0
- package/js/satellite2F16.d.ts +1 -0
- package/js/satellite2F16.js +1 -0
- package/js/satellite2F16.json +1 -0
- package/js/satellite2F24.d.ts +1 -0
- package/js/satellite2F24.js +1 -0
- package/js/satellite2F24.json +1 -0
- package/js/satellite2F32.d.ts +1 -0
- package/js/satellite2F32.js +1 -0
- package/js/satellite2F32.json +1 -0
- package/js/satellite3F16.d.ts +1 -0
- package/js/satellite3F16.js +1 -0
- package/js/satellite3F16.json +1 -0
- package/js/satellite3F24.d.ts +1 -0
- package/js/satellite3F24.js +1 -0
- package/js/satellite3F24.json +1 -0
- package/js/satellite3F32.d.ts +1 -0
- package/js/satellite3F32.js +1 -0
- package/js/satellite3F32.json +1 -0
- package/js/sensor21.d.ts +1 -0
- package/js/sensor21.js +1 -0
- package/js/sensor21.json +1 -0
- package/js/sensor48.d.ts +1 -0
- package/js/sensor48.js +1 -0
- package/js/sensor48.json +1 -0
- package/js/sensor64.d.ts +1 -0
- package/js/sensor64.js +1 -0
- package/js/sensor64.json +1 -0
- package/js/sheildCoin16.d.ts +1 -0
- package/js/sheildCoin16.js +1 -0
- package/js/sheildCoin16.json +1 -0
- package/js/sheildCoin24.d.ts +1 -0
- package/js/sheildCoin24.js +1 -0
- package/js/sheildCoin24.json +1 -0
- package/js/sheildCoin32.d.ts +1 -0
- package/js/sheildCoin32.js +1 -0
- package/js/sheildCoin32.json +1 -0
- package/js/small2Column16.d.ts +1 -0
- package/js/small2Column16.js +1 -0
- package/js/small2Column16.json +1 -0
- package/js/small2Column24.d.ts +1 -0
- package/js/small2Column24.js +1 -0
- package/js/small2Column24.json +1 -0
- package/js/small2Column32.d.ts +1 -0
- package/js/small2Column32.js +1 -0
- package/js/small2Column32.json +1 -0
- package/js/transcript16.d.ts +1 -0
- package/js/transcript16.js +1 -0
- package/js/transcript16.json +1 -0
- package/js/transcript16F.d.ts +1 -0
- package/js/transcript16F.js +1 -0
- package/js/transcript16F.json +1 -0
- package/js/transcript24.d.ts +1 -0
- package/js/transcript24.js +1 -0
- package/js/transcript24.json +1 -0
- package/js/transcript24F.d.ts +1 -0
- package/js/transcript24F.js +1 -0
- package/js/transcript24F.json +1 -0
- package/js/transcript32.d.ts +1 -0
- package/js/transcript32.js +1 -0
- package/js/transcript32.json +1 -0
- package/js/transcript32F.d.ts +1 -0
- package/js/transcript32F.js +1 -0
- package/js/transcript32F.json +1 -0
- package/launch-calcite.command +1 -0
- package/launch-meridian.command +1 -0
- package/lib/spriter/cli.js +8 -7
- package/lib/spriter/index.js +40 -37
- package/package.json +37 -45
- package/sprite-16.svg +1 -1
- package/sprite-24.svg +1 -1
- package/sprite-32.svg +1 -1
package/js/sensor64.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M51.998 25.179a28.29 28.29 0 0 0-40.007.013l-.566-.565a29.088 29.088 0 0 1 41.138-.014zM32 5.1A40.295 40.295 0 0 0 3.31 16.988l.565.566a39.765 39.765 0 0 1 56.236-.014l.566-.566A40.3 40.3 0 0 0 32 5.1zM19.54 32.17l.566.566a16.812 16.812 0 0 1 23.777-.014l.566-.566a17.614 17.614 0 0 0-24.91.014zM53.9 49.5v8.4H10.1v-8.4a6.22 6.22 0 0 1 6.009-6.4H27.11c0-.034-.01-.066-.01-.1a4.9 4.9 0 0 1 9.8 0c0 .034-.01.066-.01.1h11a6.22 6.22 0 0 1 6.009 6.4zm-.8 0a5.421 5.421 0 0 0-5.209-5.6H16.11a5.421 5.421 0 0 0-5.21 5.6v7.6h42.2zm-25.19-6.4h8.18c0-.034.01-.066.01-.1a4.1 4.1 0 1 0-8.2 0c0 .034.01.066.01.1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin16: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin16 = "M8.219 14.418a4.681 4.681 0 0 0 .51.86c-.264.167-.53.332-.819.49l-.41.223-.41-.222C1.095 12.499.705 7.454 1.114 2.95l.066-.74.743-.037c2.302-.115 3.936-.645 4.998-1.62L7.5.022l.58.53c1.06.976 2.695 1.506 4.997 1.62l.743.038.066.741a19.016 19.016 0 0 1-.111 5.047 4.646 4.646 0 0 0-.999-.17 17.422 17.422 0 0 0 .124-4.663 8.713 8.713 0 0 1-5.4-1.789 8.713 8.713 0 0 1-5.4 1.789c-.36 4.132.033 8.724 5.4 11.688.254-.14.487-.288.719-.435zM16 12.5A3.5 3.5 0 1 1 12.5 9a3.504 3.504 0 0 1 3.5 3.5zm-1 0a2.5 2.5 0 1 0-2.5 2.5 2.503 2.503 0 0 0 2.5-2.5zm-2.146-.354a.5.5 0 0 1-.707.707l-.707.707a1.5 1.5 0 1 0 2.12-2.12z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M8.219 14.418a4.681 4.681 0 0 0 .51.86c-.264.167-.53.332-.819.49l-.41.223-.41-.222C1.095 12.499.705 7.454 1.114 2.95l.066-.74.743-.037c2.302-.115 3.936-.645 4.998-1.62L7.5.022l.58.53c1.06.976 2.695 1.506 4.997 1.62l.743.038.066.741a19.016 19.016 0 0 1-.111 5.047 4.646 4.646 0 0 0-.999-.17 17.422 17.422 0 0 0 .124-4.663 8.713 8.713 0 0 1-5.4-1.789 8.713 8.713 0 0 1-5.4 1.789c-.36 4.132.033 8.724 5.4 11.688.254-.14.487-.288.719-.435zM16 12.5A3.5 3.5 0 1 1 12.5 9a3.504 3.504 0 0 1 3.5 3.5zm-1 0a2.5 2.5 0 1 0-2.5 2.5 2.503 2.503 0 0 0 2.5-2.5zm-2.146-.354a.5.5 0 0 1-.707.707l-.707.707a1.5 1.5 0 1 0 2.12-2.12z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin24: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin24 = "M12.116 21.137a6.536 6.536 0 0 0 .634.785c-.405.259-.82.514-1.27.76l-.48.26-.48-.26C2.133 18.105 1.588 11.035 2.16 4.723l.078-.869.871-.044c3.312-.165 5.67-.934 7.211-2.35L11 .838l.68.625c1.54 1.415 3.898 2.184 7.21 2.35l.87.044.079.869a27.45 27.45 0 0 1-.094 6.683 6.418 6.418 0 0 0-.981-.282 26.319 26.319 0 0 0 .079-6.311l-.004-.004c-3.554-.179-6.117-1.033-7.836-2.613L11 2.196l-.002.002c-1.72 1.58-4.283 2.434-7.837 2.613l-.004.002c-.544 5.99-.036 12.692 7.841 16.99l.002.001h.002c.394-.216.756-.44 1.114-.667zM22.8 17.5a5.3 5.3 0 1 1-5.3-5.3 5.306 5.306 0 0 1 5.3 5.3zm-1 0a4.3 4.3 0 1 0-4.3 4.3 4.304 4.304 0 0 0 4.3-4.3zm-5.926-1.626a2.283 2.283 0 0 1 1.173-.63 2.381 2.381 0 0 1 .667-.035l.094-.995a3.245 3.245 0 0 0-.956.05 3.304 3.304 0 0 0-2.553 2.432l.97.243a2.296 2.296 0 0 1 .605-1.065zm4.66.323l-.92.395a2.288 2.288 0 0 1-.488 2.534 2.356 2.356 0 0 1-3.252 0l-.707.707a3.3 3.3 0 0 0 5.366-3.636z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M12.116 21.137a6.536 6.536 0 0 0 .634.785c-.405.259-.82.514-1.27.76l-.48.26-.48-.26C2.133 18.105 1.588 11.035 2.16 4.723l.078-.869.871-.044c3.312-.165 5.67-.934 7.211-2.35L11 .838l.68.625c1.54 1.415 3.898 2.184 7.21 2.35l.87.044.079.869a27.45 27.45 0 0 1-.094 6.683 6.418 6.418 0 0 0-.981-.282 26.319 26.319 0 0 0 .079-6.311l-.004-.004c-3.554-.179-6.117-1.033-7.836-2.613L11 2.196l-.002.002c-1.72 1.58-4.283 2.434-7.837 2.613l-.004.002c-.544 5.99-.036 12.692 7.841 16.99l.002.001h.002c.394-.216.756-.44 1.114-.667zM22.8 17.5a5.3 5.3 0 1 1-5.3-5.3 5.306 5.306 0 0 1 5.3 5.3zm-1 0a4.3 4.3 0 1 0-4.3 4.3 4.304 4.304 0 0 0 4.3-4.3zm-5.926-1.626a2.283 2.283 0 0 1 1.173-.63 2.381 2.381 0 0 1 .667-.035l.094-.995a3.245 3.245 0 0 0-.956.05 3.304 3.304 0 0 0-2.553 2.432l.97.243a2.296 2.296 0 0 1 .605-1.065zm4.66.323l-.92.395a2.288 2.288 0 0 1-.488 2.534 2.356 2.356 0 0 1-3.252 0l-.707.707a3.3 3.3 0 0 0 5.366-3.636z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin32: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sheildCoin32 = "M16.622 28.474a8.54 8.54 0 0 0 .652.793c-.393.246-.795.489-1.218.725l-.556.31-.556-.31C4.17 23.98 3.471 14.685 4.208 6.384l.089-1.009 1-.052c5.327-.272 7.795-1.621 9.86-3.563l.343-.322.343.322c2.065 1.942 4.533 3.291 9.86 3.563l1 .052.089 1.01a36.092 36.092 0 0 1-.179 9.214 8.421 8.421 0 0 0-.98-.317 35.025 35.025 0 0 0 .163-8.809l-.013-.144-.13-.007c-5.347-.273-7.994-1.596-10.153-3.52-2.16 1.924-4.807 3.246-10.152 3.52l-.131.007-.013.144c-.709 7.98-.049 16.912 10.227 22.646l.069.038.07-.039c.372-.208.705-.428 1.052-.644zM30.8 23.5a7.3 7.3 0 1 1-7.3-7.3 7.308 7.308 0 0 1 7.3 7.3zm-1 0a6.3 6.3 0 1 0-6.3 6.3 6.307 6.307 0 0 0 6.3-6.3zm-8.751-2.451a3.45 3.45 0 0 1 1.77-.948 3.369 3.369 0 0 1 1.004-.053l.094-.996a4.505 4.505 0 0 0-1.294.068 4.471 4.471 0 0 0-3.456 3.293l.97.242a3.445 3.445 0 0 1 .912-1.606zm6.556.688l-.92.394a3.45 3.45 0 0 1-.734 3.82 3.55 3.55 0 0 1-4.902 0l-.707.707a4.467 4.467 0 0 0 7.263-4.921z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16.622 28.474a8.54 8.54 0 0 0 .652.793c-.393.246-.795.489-1.218.725l-.556.31-.556-.31C4.17 23.98 3.471 14.685 4.208 6.384l.089-1.009 1-.052c5.327-.272 7.795-1.621 9.86-3.563l.343-.322.343.322c2.065 1.942 4.533 3.291 9.86 3.563l1 .052.089 1.01a36.092 36.092 0 0 1-.179 9.214 8.421 8.421 0 0 0-.98-.317 35.025 35.025 0 0 0 .163-8.809l-.013-.144-.13-.007c-5.347-.273-7.994-1.596-10.153-3.52-2.16 1.924-4.807 3.246-10.152 3.52l-.131.007-.013.144c-.709 7.98-.049 16.912 10.227 22.646l.069.038.07-.039c.372-.208.705-.428 1.052-.644zM30.8 23.5a7.3 7.3 0 1 1-7.3-7.3 7.308 7.308 0 0 1 7.3 7.3zm-1 0a6.3 6.3 0 1 0-6.3 6.3 6.307 6.307 0 0 0 6.3-6.3zm-8.751-2.451a3.45 3.45 0 0 1 1.77-.948 3.369 3.369 0 0 1 1.004-.053l.094-.996a4.505 4.505 0 0 0-1.294.068 4.471 4.471 0 0 0-3.456 3.293l.97.242a3.445 3.445 0 0 1 .912-1.606zm6.556.688l-.92.394a3.45 3.45 0 0 1-.734 3.82 3.55 3.55 0 0 1-4.902 0l-.707.707a4.467 4.467 0 0 0 7.263-4.921z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column16: CalciteMultiPathEntry[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column16 = [{"opacity":".25","d":"M13 3v2H6V3h3v2h1V3h3z"},{"d":"M16 16H0V0h16v16zM1 15h14V1H1v14zm13-9H5V2h9v4zM6 5h7V3H6v2z"},{"opacity":".5","d":"M10 5H9V3h1v2z"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".25","d":"M13 3v2H6V3h3v2h1V3h3z"},{"d":"M16 16H0V0h16v16zM1 15h14V1H1v14zm13-9H5V2h9v4zM6 5h7V3H6v2z"},{"opacity":".5","d":"M10 5H9V3h1v2z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column24: CalciteMultiPathEntry[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column24 = [{"opacity":".25","d":"M15 4v1h-1V4H9v3h11V4h-5zm0 3h-1V6h1v1z"},{"d":"M23 23H1V1h22v22zM2 22h20V2H2v20zM21 8H8V3h13v5zM9 7h11V4H9v3z"},{"opacity":".5","d":"M15 5h-1V4h1v1zm0 1h-1v1h1V6z"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".25","d":"M15 4v1h-1V4H9v3h11V4h-5zm0 3h-1V6h1v1z"},{"d":"M23 23H1V1h22v22zM2 22h20V2H2v20zM21 8H8V3h13v5zM9 7h11V4H9v3z"},{"opacity":".5","d":"M15 5h-1V4h1v1zm0 1h-1v1h1V6z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column32: CalciteMultiPathEntry[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const small2Column32 = [{"opacity":".25","d":"M18 9h1v1h7V6H11v4h7V9zm0-2h1v1h-1V7z"},{"d":"M30 30H2V2h28v28zM3 29h26V3H3v26zm24-18H10V5h17v6zm-16-1h15V6H11v4z"},{"opacity":".5","d":"M19 8h-1V7h1v1zm0 1h-1v1h1V9z"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".25","d":"M18 9h1v1h7V6H11v4h7V9zm0-2h1v1h-1V7z"},{"d":"M30 30H2V2h28v28zM3 29h26V3H3v26zm24-18H10V5h17v6zm-16-1h15V6H11v4z"},{"opacity":".5","d":"M19 8h-1V7h1v1zm0 1h-1v1h1V9z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript16: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript16 = "M13 7H4V6h9v1zm-2 5H4v1h7v-1zm4-12v16H2V0h13zm-1 1H3v14h11V1zM7 3v1h6V3H7zM6 3H4v1h2V3zm3 6H4v1h5V9zm1 0v1h3V9h-3z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13 7H4V6h9v1zm-2 5H4v1h7v-1zm4-12v16H2V0h13zm-1 1H3v14h11V1zM7 3v1h6V3H7zM6 3H4v1h2V3zm3 6H4v1h5V9zm1 0v1h3V9h-3z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript16F: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript16F = "M2 0v16h13V0H2zm2 3h2v1H4V3zm0 6h5v1H4V9zm7 4H4v-1h7v1zm2-3h-3V9h3v1zm0-3H4V6h9v1zm0-3H7V3h6v1z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2 0v16h13V0H2zm2 3h2v1H4V3zm0 6h5v1H4V9zm7 4H4v-1h7v1zm2-3h-3V9h3v1zm0-3H4V6h9v1zm0-3H7V3h6v1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript24: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript24 = "M18 11H6v-1h12v1zm-3 7H6v1h9v-1zm6-17v22H3V1h18zm-1 1H4v20h16V2zM9 6H6v1h3V6zm1 0v1h8V6h-8zm3 8H6v1h7v-1zm1 0v1h4v-1h-4z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M18 11H6v-1h12v1zm-3 7H6v1h9v-1zm6-17v22H3V1h18zm-1 1H4v20h16V2zM9 6H6v1h3V6zm1 0v1h8V6h-8zm3 8H6v1h7v-1zm1 0v1h4v-1h-4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript24F: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript24F = "M3 1v22h18V1H3zm3 5h3v1H6V6zm0 8h7v1H6v-1zm9 5H6v-1h9v1zm3-4h-4v-1h4v1zm0-4H6v-1h12v1zm0-4h-8V6h8v1z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M3 1v22h18V1H3zm3 5h3v1H6V6zm0 8h7v1H6v-1zm9 5H6v-1h9v1zm3-4h-4v-1h4v1zm0-4H6v-1h12v1zm0-4h-8V6h8v1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript32: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript32 = "M5 2v28h22V2H5zm21 27H6V3h20v26zm-3-14H9v-1h14v1zm-3 10H9v-1h11v1zm-8-15H9V9h3v1zm11-1v1H13V9h10zm0 10v1h-4v-1h4zm-5 1H9v-1h9v1z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M5 2v28h22V2H5zm21 27H6V3h20v26zm-3-14H9v-1h14v1zm-3 10H9v-1h11v1zm-8-15H9V9h3v1zm11-1v1H13V9h10zm0 10v1h-4v-1h4zm-5 1H9v-1h9v1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript32F: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const transcript32F = "M5 2v28h22V2H5zm4 7h3v1H9V9zm0 10h9v1H9v-1zm11 6H9v-1h11v1zm3-5h-4v-1h4v1zm0-5H9v-1h14v1zm0-5H13V9h10v1z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M5 2v28h22V2H5zm4 7h3v1H9V9zm0 10h9v1H9v-1zm11 6H9v-1h11v1zm3-5h-4v-1h4v1zm0-5H9v-1h14v1zm0-5H13V9h10v1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cd Documents/GitHub/calcite-ui-icons/; npm i; npm start; npm run server
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cd Documents/GitHub/calcite-meridian-icons/; npm i; npm start; npm run server
|
package/lib/spriter/cli.js
CHANGED
|
@@ -33,7 +33,8 @@ function getConfig() {
|
|
|
33
33
|
try {
|
|
34
34
|
const configFileContents = fs.readFileSync(input);
|
|
35
35
|
input = JSON.parse(configFileContents).input;
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
37
38
|
process.stderr.write(`config - could not read input: ${error}`);
|
|
38
39
|
process.exit(1);
|
|
39
40
|
}
|
|
@@ -45,22 +46,22 @@ function getConfig() {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
spriter(getConfig())
|
|
48
|
-
.then(
|
|
49
|
+
.then(summary => {
|
|
49
50
|
const { ellapsed, spritesheets } = summary;
|
|
50
51
|
|
|
51
52
|
process.stdout.write(
|
|
52
|
-
|
|
53
|
+
`Success!
|
|
53
54
|
|
|
54
55
|
Generated ${spritesheets.length} spritesheets in ${ellapsed} ms:
|
|
55
56
|
|
|
56
|
-
${spritesheets.map(
|
|
57
|
+
${spritesheets.map(spritesheet => `* ${spritesheet.output} (${spritesheet.icons.length} icons)`).join("\n")}
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
);
|
|
59
|
+
`);
|
|
60
60
|
|
|
61
61
|
process.exit(0);
|
|
62
62
|
})
|
|
63
|
-
.catch(
|
|
63
|
+
.catch(err => {
|
|
64
64
|
process.stderr.write(`Fail! ${err}`);
|
|
65
65
|
process.exit(1);
|
|
66
66
|
});
|
|
67
|
+
|
package/lib/spriter/index.js
CHANGED
|
@@ -17,8 +17,8 @@ const SIZES = [16, 24, 32];
|
|
|
17
17
|
const OUTLINE = "outline";
|
|
18
18
|
const FILL = "fill";
|
|
19
19
|
|
|
20
|
-
const isDir =
|
|
21
|
-
const readSVG =
|
|
20
|
+
const isDir = file => fs.lstatSync(`${ICONS}/${file}`).isDirectory();
|
|
21
|
+
const readSVG = icon => readFile(`${ICONS}/${icon.fileName}`, { encoding: "utf-8" });
|
|
22
22
|
const has = (haystack, needle) => haystack.indexOf(needle) > -1;
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -97,13 +97,14 @@ const has = (haystack, needle) => haystack.indexOf(needle) > -1;
|
|
|
97
97
|
* @return {ThenPromise<T>} - Promise that resolves when directory creation is ensured.
|
|
98
98
|
*/
|
|
99
99
|
function ensureDir(dir) {
|
|
100
|
-
return mkDir(dir)
|
|
101
|
-
|
|
100
|
+
return mkDir(dir)
|
|
101
|
+
.catch(error => {
|
|
102
|
+
const triedToCreateExisting = error.code === "EEXIST";
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
if (!triedToCreateExisting) {
|
|
105
|
+
throw error;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
@@ -116,14 +117,13 @@ function ensureDir(dir) {
|
|
|
116
117
|
function getRequestedIcons(input) {
|
|
117
118
|
const iconsPerSize = {};
|
|
118
119
|
|
|
119
|
-
SIZES.forEach(
|
|
120
|
+
SIZES.forEach(size => iconsPerSize[size] = []);
|
|
120
121
|
|
|
121
|
-
input.forEach(
|
|
122
|
+
input.forEach(icon => {
|
|
122
123
|
const { name, sizes = SIZES[0], style = OUTLINE } = icon;
|
|
123
124
|
|
|
124
|
-
sizes
|
|
125
|
-
.
|
|
126
|
-
.forEach((size) => {
|
|
125
|
+
sizes.filter(size => has(SIZES, size))
|
|
126
|
+
.forEach(size => {
|
|
127
127
|
const fillPart = style === FILL ? "-f" : "";
|
|
128
128
|
const fileName = `${name}-${size}${fillPart}.svg`;
|
|
129
129
|
|
|
@@ -142,9 +142,10 @@ function getRequestedIcons(input) {
|
|
|
142
142
|
* @return {ThenPromise<ExportInfo>} - Promise that resolves with export info.
|
|
143
143
|
*/
|
|
144
144
|
function generateExportInfo(requested) {
|
|
145
|
+
|
|
145
146
|
const processRequested = (icons) => {
|
|
146
|
-
SIZES.forEach(
|
|
147
|
-
requested[size].forEach(
|
|
147
|
+
SIZES.forEach(size => {
|
|
148
|
+
requested[size].forEach(icon => {
|
|
148
149
|
if (!has(icons, icon.fileName)) {
|
|
149
150
|
return;
|
|
150
151
|
}
|
|
@@ -153,15 +154,15 @@ function generateExportInfo(requested) {
|
|
|
153
154
|
name: icon.name,
|
|
154
155
|
style: icon.style,
|
|
155
156
|
size,
|
|
156
|
-
fileName: icon.fileName
|
|
157
|
+
fileName: icon.fileName
|
|
157
158
|
});
|
|
158
159
|
});
|
|
159
160
|
});
|
|
160
161
|
};
|
|
161
162
|
|
|
162
163
|
const processAll = (icons) => {
|
|
163
|
-
icons.forEach(
|
|
164
|
-
SIZES.forEach(
|
|
164
|
+
icons.forEach(icon => {
|
|
165
|
+
SIZES.forEach(size => {
|
|
165
166
|
const fileMatchesSize = icon.indexOf(`-${size}`) > -1;
|
|
166
167
|
|
|
167
168
|
if (!fileMatchesSize) {
|
|
@@ -175,19 +176,19 @@ function generateExportInfo(requested) {
|
|
|
175
176
|
name,
|
|
176
177
|
style: filled ? FILL : OUTLINE,
|
|
177
178
|
size,
|
|
178
|
-
fileName: icon
|
|
179
|
+
fileName: icon
|
|
179
180
|
});
|
|
180
181
|
});
|
|
181
182
|
});
|
|
182
183
|
};
|
|
183
184
|
|
|
184
|
-
const includeAll = SIZES.every(
|
|
185
|
+
const includeAll = SIZES.every(size => requested[size].length === 0);
|
|
185
186
|
|
|
186
187
|
const exportInfo = {};
|
|
187
|
-
SIZES.forEach(
|
|
188
|
+
SIZES.forEach(size => exportInfo[size] = []);
|
|
188
189
|
|
|
189
190
|
return readDir(ICONS)
|
|
190
|
-
.then(
|
|
191
|
+
.then(icons => {
|
|
191
192
|
if (includeAll) {
|
|
192
193
|
processAll(icons);
|
|
193
194
|
return;
|
|
@@ -206,13 +207,14 @@ function generateExportInfo(requested) {
|
|
|
206
207
|
* @return {ThenPromise<string>} - Promise that resolves with symbol element text content.
|
|
207
208
|
*/
|
|
208
209
|
function svgToSymbol(icon) {
|
|
209
|
-
return readSVG(icon)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
return readSVG(icon)
|
|
211
|
+
.then(svgContent => {
|
|
212
|
+
const svgContentCapturingPattern = /^\s*\<svg[^>]*>(.+)\<\/svg>\s*$/;
|
|
213
|
+
const [, innerContent] = svgContentCapturingPattern.exec(svgContent);
|
|
214
|
+
const { size } = icon;
|
|
213
215
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
return `<symbol id="${icon.name}-${size}" viewbox="0 0 ${size} ${size}">${innerContent}</symbol>`;
|
|
217
|
+
});
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
/**
|
|
@@ -227,8 +229,8 @@ function svgToSymbol(icon) {
|
|
|
227
229
|
*/
|
|
228
230
|
function createSpritesheet({ icons, output, size }) {
|
|
229
231
|
return Promise.all(icons.map(svgToSymbol))
|
|
230
|
-
.then(
|
|
231
|
-
.then(
|
|
232
|
+
.then(symbols => `<svg xmlns="http://www.w3.org/2000/svg">${symbols.join("")}</svg>`)
|
|
233
|
+
.then(content => writeFile(`${output}/${`${NAME}-${size}.svg`}`, content));
|
|
232
234
|
}
|
|
233
235
|
|
|
234
236
|
/**
|
|
@@ -239,6 +241,7 @@ function createSpritesheet({ icons, output, size }) {
|
|
|
239
241
|
* @return {ThenPromise<ExportSummary>} - Promise that resolves with export summary.
|
|
240
242
|
*/
|
|
241
243
|
function spriter(config) {
|
|
244
|
+
|
|
242
245
|
const startTime = process.hrtime();
|
|
243
246
|
const { input = [], output = "./output" } = config;
|
|
244
247
|
|
|
@@ -246,7 +249,7 @@ function spriter(config) {
|
|
|
246
249
|
.then(() => generateExportInfo(getRequestedIcons(input)))
|
|
247
250
|
.then((exportInfo) =>
|
|
248
251
|
Promise.all(
|
|
249
|
-
SIZES.map(
|
|
252
|
+
SIZES.map(size => {
|
|
250
253
|
const icons = exportInfo[size];
|
|
251
254
|
|
|
252
255
|
if (icons.length === 0) {
|
|
@@ -254,19 +257,19 @@ function spriter(config) {
|
|
|
254
257
|
}
|
|
255
258
|
|
|
256
259
|
return createSpritesheet({ icons, output, size });
|
|
257
|
-
})
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.then(
|
|
260
|
+
})
|
|
261
|
+
)
|
|
262
|
+
.then(() => exportInfo))
|
|
263
|
+
.then(exportInfo => {
|
|
261
264
|
const endTime = process.hrtime(startTime);
|
|
262
265
|
|
|
263
266
|
const nanoToMillis = 1000000;
|
|
264
267
|
const ellapsed = endTime[1] / nanoToMillis;
|
|
265
268
|
|
|
266
|
-
const spritesheets = Object.keys(exportInfo).map(
|
|
269
|
+
const spritesheets = Object.keys(exportInfo).map(size => {
|
|
267
270
|
return {
|
|
268
271
|
output: `${output}/${NAME}-${size}.svg`,
|
|
269
|
-
icons: exportInfo[size]
|
|
272
|
+
icons: exportInfo[size]
|
|
270
273
|
};
|
|
271
274
|
});
|
|
272
275
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
+
"bin": {
|
|
3
|
+
"spriter": "bin/spriter.js"
|
|
4
|
+
},
|
|
2
5
|
"name": "@esri/calcite-ui-icons",
|
|
3
|
-
"version": "3.29.1
|
|
6
|
+
"version": "3.29.1",
|
|
4
7
|
"private": false,
|
|
5
8
|
"description": "A collection of UI SVG icons created by Esri for applications.",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Esri/calcite-ui-icons.git"
|
|
12
|
+
},
|
|
13
|
+
"main": "index.js",
|
|
14
|
+
"js-next:main": "index.js",
|
|
15
|
+
"module": "index.js",
|
|
6
16
|
"keywords": [
|
|
7
17
|
"esri",
|
|
8
18
|
"arcgis",
|
|
@@ -10,65 +20,47 @@
|
|
|
10
20
|
"icons",
|
|
11
21
|
"svg"
|
|
12
22
|
],
|
|
13
|
-
"
|
|
23
|
+
"contributors": [
|
|
24
|
+
{
|
|
25
|
+
"name": "Paul Pederson",
|
|
26
|
+
"email": "<ppederson@esri.com>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Skye Seitz",
|
|
30
|
+
"email": "<sseitz@esri.com>"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"license": "SEE LICENSE IN README.md",
|
|
14
34
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/Esri/calcite-
|
|
16
|
-
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/Esri/calcite-design-system.git",
|
|
20
|
-
"directory": "packages/calcite-ui-icons"
|
|
21
|
-
},
|
|
22
|
-
"license": "SEE LICENSE.md",
|
|
23
|
-
"main": "index.js",
|
|
24
|
-
"module": "index.js",
|
|
25
|
-
"bin": {
|
|
26
|
-
"spriter": "bin/spriter.js"
|
|
35
|
+
"url": "https://github.com/Esri/calcite-ui-icons/issues"
|
|
27
36
|
},
|
|
28
|
-
"
|
|
29
|
-
"icons/",
|
|
30
|
-
"js/",
|
|
31
|
-
"lib/",
|
|
32
|
-
"bin/sprinter.js",
|
|
33
|
-
"docs/icons.json",
|
|
34
|
-
"docs/keywords.json",
|
|
35
|
-
"index.d.ts",
|
|
36
|
-
"index.js",
|
|
37
|
-
"sprite-16.svg",
|
|
38
|
-
"sprite-24.svg",
|
|
39
|
-
"sprite-32.svg"
|
|
40
|
-
],
|
|
37
|
+
"homepage": "https://github.com/Esri/calcite-ui-icons#readme",
|
|
41
38
|
"scripts": {
|
|
42
|
-
"
|
|
39
|
+
"spriter": "node bin/spriter.js",
|
|
43
40
|
"buildsprite-16": "svgstore -o sprite-16.svg icons/*-16*.svg",
|
|
44
41
|
"buildsprite-24": "svgstore -o sprite-24.svg icons/*-24*.svg",
|
|
45
42
|
"buildsprite-32": "svgstore -o sprite-32.svg icons/*-32*.svg",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
43
|
+
"optimize": "node bin/cli.js",
|
|
44
|
+
"start": "npm run buildsprite-16 && npm run buildsprite-24 && npm run buildsprite-32 && npm run optimize",
|
|
45
|
+
"server": "node bin/server.js",
|
|
48
46
|
"convert-all-ios": "node bin/convert-mobile.js -o \"../mobile-output\" -p \"ios\" -i \"24\"",
|
|
49
47
|
"convert-all-ios:size": "node bin/convert-mobile.js -o \"../mobile-output\" -p \"ios\" -s",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"spriter": "node bin/spriter.js",
|
|
53
|
-
"start": "npm run copy-assets && node bin/server.js"
|
|
48
|
+
"convert-all-desktop:size": "node bin/convert-mobile.js -o \"../desktop-output\" -i \"16\" -s",
|
|
49
|
+
"convert-all-desktop-multi": "node bin/convert-mobile.js -o \"../desktop-output\" -i \"16\" -s 16 && node bin/convert-mobile.js -o \"../desktop-output\" -s 24 && node bin/convert-mobile.js -o \"../desktop-output\" -s 32 && node bin/convert-mobile.js -o \"../desktop-output\" -s 64"
|
|
54
50
|
},
|
|
55
51
|
"devDependencies": {
|
|
56
52
|
"browser-sync": "^2.24.7",
|
|
57
|
-
"calcite-web": "github:esri/calcite-web#v1.1.0",
|
|
58
53
|
"camelcase": "^5.3.1",
|
|
59
|
-
"cli-progress": "^3.
|
|
60
|
-
"debounce": "^2.
|
|
54
|
+
"cli-progress": "^3.1.0",
|
|
55
|
+
"debounce": "^1.2.0",
|
|
61
56
|
"fs-extra": "^7.0.0",
|
|
62
|
-
"glob": "^
|
|
57
|
+
"glob": "^7.1.4",
|
|
58
|
+
"glob-promise": "^3.4.0",
|
|
63
59
|
"promise": "~8.0.1",
|
|
64
|
-
"svg2img": "1.0.0-beta.2",
|
|
65
60
|
"svgo": "^1.3.0",
|
|
66
61
|
"svgson": "^2.1.1",
|
|
67
62
|
"svgstore-cli": "^1.3.1",
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"extends": "../../package.json"
|
|
72
|
-
},
|
|
73
|
-
"gitHead": "ab35d988be703957f9c0d347511615d2319eacaa"
|
|
63
|
+
"svg2img": "^0.6.1",
|
|
64
|
+
"yargs": "^15.1.0"
|
|
65
|
+
}
|
|
74
66
|
}
|