fix: Marker arrowheads not displayed
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
import { FunctionalComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
interface MarkerProps {
|
interface MarkerProps {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ((props: MarkerProps, { slots }) => {
|
export default defineComponent({
|
||||||
|
props: {
|
||||||
|
id: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
setup(props: MarkerProps, { slots }) {
|
||||||
return () => (
|
return () => (
|
||||||
<marker
|
<marker
|
||||||
id={props.id}
|
id={props.id}
|
||||||
@@ -19,4 +26,5 @@ export default ((props: MarkerProps, { slots }) => {
|
|||||||
{slots.default ? slots.default() : ''}
|
{slots.default ? slots.default() : ''}
|
||||||
</marker>
|
</marker>
|
||||||
);
|
);
|
||||||
}) as FunctionalComponent<MarkerProps>;
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user