dls-graphics
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -76,5 +76,3 @@ import fs from 'fs' | ||
await writeFile(outputSvgFile, svg, 'utf8') | ||
if (css) { | ||
await writeFile(outputCssFile, css, 'utf8') | ||
} | ||
await writeFile(outputCssFile, css || '', 'utf8') | ||
@@ -81,0 +79,0 @@ return result |
> ⚠️ - Breaking Changes | ||
## 0.1.3 | ||
- Export `<name>Css` even when no styles can be extracted so that implementation can be more transparent. | ||
## 0.1.2 | ||
@@ -4,0 +8,0 @@ |
@@ -1,9 +0,10 @@ | ||
export const forbidden = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-10-10H90V90H-10z"/><g transform="translate(2 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M43.796 75H7.385C3.306 75 0 71.776 0 67.8V34.2C0 30.224 3.306 27 7.385 27h49.23C60.694 27 64 30.224 64 34.2v4.684"/><rect width="16" height="16" x="56" y="46" stroke="#A8B0BF" stroke-width="2.8" rx="8"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M52 74c0-6.627 5.373-12 12-12s12 5.373 12 12"/><path stroke="#A8B0BF" stroke-width="2.8" d="M32 0c9.941 0 18 8.059 18 18v9h0-36v-9c0-9.941 8.059-18 18-18z"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M21 27v-9c0-6.075 4.925-11 11-11s11 4.925 11 11v1.478h0"/><circle cx="32" cy="46" r="6" fill="#E2E6F0"/><path fill="#E2E6F0" d="M29 46h6v13a3 3 0 01-6 0V46z"/></g></g>', | ||
export const notFound = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-6-9H94V91H-6z"/><g transform="translate(-1 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M69.647 10.521C63.134 4.02 54.143 0 44.214 0c-19.882 0-36 16.118-36 36s16.118 36 36 36 36-16.118 36-36c0-5.626-1.29-10.952-3.592-15.695"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M48.922 71.567c1.262-2.103.694-6.718-3.059-8.355-3.752-1.638-6.758 2.067-9.432 2.387-2.675.32-5.006-2.695-7.293 1.461M59.307 5.379a5 5 0 11-9.272-3.746"/><path fill="#E2E6F0" fill-rule="nonzero" d="M29.298 10.22a1.75 1.75 0 111.697 3.06c-6.69 3.71-11.563 10.091-13.328 17.561a1.75 1.75 0 01-3.406-.804c1.992-8.435 7.49-15.632 15.037-19.817z"/><circle cx="14.964" cy="36.75" r="1.75" fill="#E2E6F0"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M8.214 37.879c-4.532 3.626-6.344 6.669-5.535 9.687 1.434 5.351 12.219 7.419 26.656 5.9m9.08-1.349c3.06-.579 6.215-1.297 9.422-2.157 22.94-6.146 39.913-17.184 37.912-24.652-.774-2.886-3.895-5.008-9.125-5.008"/></g></g>', | ||
attrs: { | ||
width: '80', | ||
height: '79', | ||
viewBox: '0 0 80 79' | ||
width: '87', | ||
height: '76', | ||
viewBox: '0 0 87 76' | ||
} | ||
} | ||
export const notFoundCss = '' | ||
@@ -18,11 +19,13 @@ export const serverError = { | ||
} | ||
export const serverErrorCss = '' | ||
export const notFound = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-6-9H94V91H-6z"/><g transform="translate(-1 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M69.647 10.521C63.134 4.02 54.143 0 44.214 0c-19.882 0-36 16.118-36 36s16.118 36 36 36 36-16.118 36-36c0-5.626-1.29-10.952-3.592-15.695"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M48.922 71.567c1.262-2.103.694-6.718-3.059-8.355-3.752-1.638-6.758 2.067-9.432 2.387-2.675.32-5.006-2.695-7.293 1.461M59.307 5.379a5 5 0 11-9.272-3.746"/><path fill="#E2E6F0" fill-rule="nonzero" d="M29.298 10.22a1.75 1.75 0 111.697 3.06c-6.69 3.71-11.563 10.091-13.328 17.561a1.75 1.75 0 01-3.406-.804c1.992-8.435 7.49-15.632 15.037-19.817z"/><circle cx="14.964" cy="36.75" r="1.75" fill="#E2E6F0"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M8.214 37.879c-4.532 3.626-6.344 6.669-5.535 9.687 1.434 5.351 12.219 7.419 26.656 5.9m9.08-1.349c3.06-.579 6.215-1.297 9.422-2.157 22.94-6.146 39.913-17.184 37.912-24.652-.774-2.886-3.895-5.008-9.125-5.008"/></g></g>', | ||
export const forbidden = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-10-10H90V90H-10z"/><g transform="translate(2 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M43.796 75H7.385C3.306 75 0 71.776 0 67.8V34.2C0 30.224 3.306 27 7.385 27h49.23C60.694 27 64 30.224 64 34.2v4.684"/><rect width="16" height="16" x="56" y="46" stroke="#A8B0BF" stroke-width="2.8" rx="8"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M52 74c0-6.627 5.373-12 12-12s12 5.373 12 12"/><path stroke="#A8B0BF" stroke-width="2.8" d="M32 0c9.941 0 18 8.059 18 18v9h0-36v-9c0-9.941 8.059-18 18-18z"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M21 27v-9c0-6.075 4.925-11 11-11s11 4.925 11 11v1.478h0"/><circle cx="32" cy="46" r="6" fill="#E2E6F0"/><path fill="#E2E6F0" d="M29 46h6v13a3 3 0 01-6 0V46z"/></g></g>', | ||
attrs: { | ||
width: '87', | ||
height: '76', | ||
viewBox: '0 0 87 76' | ||
width: '80', | ||
height: '79', | ||
viewBox: '0 0 80 79' | ||
} | ||
} | ||
export const forbiddenCss = '' | ||
@@ -38,1 +41,2 @@ export const loading = { | ||
} | ||
export const loadingCss = '' |
@@ -1,9 +0,10 @@ | ||
export const forbidden = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-10-10H90V90H-10z"/><g transform="translate(2 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M43.796 75H7.385C3.306 75 0 71.776 0 67.8V34.2C0 30.224 3.306 27 7.385 27h49.23C60.694 27 64 30.224 64 34.2v4.684"/><rect width="16" height="16" x="56" y="46" stroke="#A8B0BF" stroke-width="2.8" rx="8"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M52 74c0-6.627 5.373-12 12-12s12 5.373 12 12"/><path stroke="#A8B0BF" stroke-width="2.8" d="M32 0c9.941 0 18 8.059 18 18v9h0-36v-9c0-9.941 8.059-18 18-18z"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M21 27v-9c0-6.075 4.925-11 11-11s11 4.925 11 11v1.478h0"/><circle cx="32" cy="46" r="6" fill="#E2E6F0"/><path fill="#E2E6F0" d="M29 46h6v13a3 3 0 01-6 0V46z"/></g></g>', | ||
export const notFound = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-6-9H94V91H-6z"/><g transform="translate(-1 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M69.647 10.521C63.134 4.02 54.143 0 44.214 0c-19.882 0-36 16.118-36 36s16.118 36 36 36 36-16.118 36-36c0-5.626-1.29-10.952-3.592-15.695"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M48.922 71.567c1.262-2.103.694-6.718-3.059-8.355-3.752-1.638-6.758 2.067-9.432 2.387-2.675.32-5.006-2.695-7.293 1.461M59.307 5.379a5 5 0 11-9.272-3.746"/><path fill="#E2E6F0" fill-rule="nonzero" d="M29.298 10.22a1.75 1.75 0 111.697 3.06c-6.69 3.71-11.563 10.091-13.328 17.561a1.75 1.75 0 01-3.406-.804c1.992-8.435 7.49-15.632 15.037-19.817z"/><circle cx="14.964" cy="36.75" r="1.75" fill="#E2E6F0"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M8.214 37.879c-4.532 3.626-6.344 6.669-5.535 9.687 1.434 5.351 12.219 7.419 26.656 5.9m9.08-1.349c3.06-.579 6.215-1.297 9.422-2.157 22.94-6.146 39.913-17.184 37.912-24.652-.774-2.886-3.895-5.008-9.125-5.008"/></g></g>', | ||
attrs: { | ||
width: '80', | ||
height: '79', | ||
viewBox: '0 0 80 79' | ||
width: '87', | ||
height: '76', | ||
viewBox: '0 0 87 76' | ||
} | ||
} | ||
export const notFoundCss = '' | ||
@@ -18,11 +19,13 @@ export const serverError = { | ||
} | ||
export const serverErrorCss = '' | ||
export const notFound = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-6-9H94V91H-6z"/><g transform="translate(-1 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M69.647 10.521C63.134 4.02 54.143 0 44.214 0c-19.882 0-36 16.118-36 36s16.118 36 36 36 36-16.118 36-36c0-5.626-1.29-10.952-3.592-15.695"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M48.922 71.567c1.262-2.103.694-6.718-3.059-8.355-3.752-1.638-6.758 2.067-9.432 2.387-2.675.32-5.006-2.695-7.293 1.461M59.307 5.379a5 5 0 11-9.272-3.746"/><path fill="#E2E6F0" fill-rule="nonzero" d="M29.298 10.22a1.75 1.75 0 111.697 3.06c-6.69 3.71-11.563 10.091-13.328 17.561a1.75 1.75 0 01-3.406-.804c1.992-8.435 7.49-15.632 15.037-19.817z"/><circle cx="14.964" cy="36.75" r="1.75" fill="#E2E6F0"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M8.214 37.879c-4.532 3.626-6.344 6.669-5.535 9.687 1.434 5.351 12.219 7.419 26.656 5.9m9.08-1.349c3.06-.579 6.215-1.297 9.422-2.157 22.94-6.146 39.913-17.184 37.912-24.652-.774-2.886-3.895-5.008-9.125-5.008"/></g></g>', | ||
export const forbidden = { | ||
contents: '<g fill="none" fill-rule="evenodd"><path d="M-10-10H90V90H-10z"/><g transform="translate(2 2)"><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M43.796 75H7.385C3.306 75 0 71.776 0 67.8V34.2C0 30.224 3.306 27 7.385 27h49.23C60.694 27 64 30.224 64 34.2v4.684"/><rect width="16" height="16" x="56" y="46" stroke="#A8B0BF" stroke-width="2.8" rx="8"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-width="2.8" d="M52 74c0-6.627 5.373-12 12-12s12 5.373 12 12"/><path stroke="#A8B0BF" stroke-width="2.8" d="M32 0c9.941 0 18 8.059 18 18v9h0-36v-9c0-9.941 8.059-18 18-18z"/><path stroke="#A8B0BF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8" d="M21 27v-9c0-6.075 4.925-11 11-11s11 4.925 11 11v1.478h0"/><circle cx="32" cy="46" r="6" fill="#E2E6F0"/><path fill="#E2E6F0" d="M29 46h6v13a3 3 0 01-6 0V46z"/></g></g>', | ||
attrs: { | ||
width: '87', | ||
height: '76', | ||
viewBox: '0 0 87 76' | ||
width: '80', | ||
height: '79', | ||
viewBox: '0 0 80 79' | ||
} | ||
} | ||
export const forbiddenCss = '' | ||
@@ -29,0 +32,0 @@ export const loading = { |
{ | ||
"name": "dls-graphics", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Graphics materials for Baidu Light DLS.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
37393
31
317