Skip to content

Commit

Permalink
test(ol-style-fill): export Gradient types
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Sep 4, 2024
1 parent 4812ded commit 9701c57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/demos/PolygonDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@

<script lang="ts" setup>
import { ref } from "vue";
import type { LinearGradient, RadialGradient } from "vue3-openlayers";
import type { ConicGradient } from "@components/styles";
import type {
LinearGradient,
RadialGradient,
ConicGradient,
} from "vue3-openlayers";
const center = ref([-98.8449, 19.6869]);
const projection = ref("EPSG:4326");
Expand Down
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import {
import Providers from "./providers";
import type { App, Plugin } from "vue";
import type { Vue3OpenlayersGlobalOptions } from "./types";
import type {
LinearGradient,
RadialGradient,
ConicGradient,
Gradient,
} from "@components/styles";
export * from "./composables";

const install: Plugin = (app: App, options?: Vue3OpenlayersGlobalOptions) => {
Expand Down Expand Up @@ -46,4 +52,8 @@ export {
Animations,
Providers,
type Vue3OpenlayersGlobalOptions,
type LinearGradient,
type RadialGradient,
type ConicGradient,
type Gradient,
};
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@/*": ["./src/*"],
"@components/*": ["./src/components/*"],
"@demos/*": ["./src/demos/*"],
"vue3-openlayers/*": ["src/*"]
"vue3-openlayers": ["./src/index.ts"]
},
"checkJs": false
},
Expand Down

0 comments on commit 9701c57

Please sign in to comment.