@@ -15,6 +15,8 @@ export type NumberProp = string | number;
1515export type NumberArray = NumberProp[] | NumberProp;
1616export type FillRule = "evenodd" | "nonzero";
1717export type Units = "userSpaceOnUse" | "objectBoundingBox";
18+ export type MarkerUnits = "strokeWidth" | "userSpaceOnUse";
19+ export type Orient = "auto" | "auto-start-reverse";
1820export type TextAnchor = "start" | "middle" | "end";
1921export type FontStyle = "normal" | "italic" | "oblique";
2022export type FontVariant = "normal" | "small-caps";
@@ -429,35 +431,19 @@ export type UseProps = {
429431} & CommonPathProps;
430432declare export var Use: React.ComponentClass<UseProps>;
431433export type UseType = React.ComponentClass<UseProps>;
432- declare export var EMaskUnits: {|
433- +USER_SPACE_ON_USE: "userSpaceOnUse", // "userSpaceOnUse"
434- +OBJECT_BOUNDING_BOX: "objectBoundingBox", // "objectBoundingBox"
435- |};
436- export type TMaskUnits =
437- | typeof EMaskUnits.USER_SPACE_ON_USE
438- | typeof EMaskUnits.OBJECT_BOUNDING_BOX;
439434export type MaskProps = {
440435 id?: string,
441436 x?: NumberProp,
442437 y?: NumberProp,
443438 width?: NumberProp,
444439 height?: NumberProp,
445440 maskTransform?: ColumnMajorTransformMatrix | string,
446- maskUnits?: TMaskUnits ,
447- maskContentUnits?: TMaskUnits ,
441+ maskUnits?: Units ,
442+ maskContentUnits?: Units ,
448443 ...
449444} & CommonPathProps;
450445declare export var Mask: React.ComponentClass<MaskProps>;
451446export type MaskType = React.ComponentClass<MaskProps>;
452- declare export var MarkerUnits: {|
453- +STROKE_WIDTH: "strokeWidth", // "strokeWidth"
454- +USER_SPACE_ON_USE: "userSpaceOnUse", // "userSpaceOnUse"
455- |};
456-
457- declare export var Orient: {|
458- +AUTO: "auto", // "auto"
459- +AUTO_START_REVERSE: "auto-start-reverse", // "auto-start-reverse"
460- |};
461447export interface MarkerProps {
462448 id?: string;
463449 viewBox?: string;
@@ -466,8 +452,8 @@ export interface MarkerProps {
466452 refY?: NumberProp;
467453 markerWidth?: NumberProp;
468454 markerHeight?: NumberProp;
469- markerUnits?: $Values<typeof MarkerUnits> ;
470- orient?: $Values<typeof Orient> | NumberProp;
455+ markerUnits?: MarkerUnits;
456+ orient?: Orient | NumberProp;
471457}
472458declare export var Marker: React.ComponentClass<MarkerProps>;
473459export type MarkerType = React.ComponentClass<MarkerProps>;
0 commit comments