@@ -15,6 +15,8 @@ export type NumberProp = string | number;
15
15
export type NumberArray = NumberProp[] | NumberProp;
16
16
export type FillRule = "evenodd" | "nonzero";
17
17
export type Units = "userSpaceOnUse" | "objectBoundingBox";
18
+ export type MarkerUnits = "strokeWidth" | "userSpaceOnUse";
19
+ export type Orient = "auto" | "auto-start-reverse";
18
20
export type TextAnchor = "start" | "middle" | "end";
19
21
export type FontStyle = "normal" | "italic" | "oblique";
20
22
export type FontVariant = "normal" | "small-caps";
@@ -429,35 +431,19 @@ export type UseProps = {
429
431
} & CommonPathProps;
430
432
declare export var Use: React.ComponentClass<UseProps>;
431
433
export 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;
439
434
export type MaskProps = {
440
435
id?: string,
441
436
x?: NumberProp,
442
437
y?: NumberProp,
443
438
width?: NumberProp,
444
439
height?: NumberProp,
445
440
maskTransform?: ColumnMajorTransformMatrix | string,
446
- maskUnits?: TMaskUnits ,
447
- maskContentUnits?: TMaskUnits ,
441
+ maskUnits?: Units ,
442
+ maskContentUnits?: Units ,
448
443
...
449
444
} & CommonPathProps;
450
445
declare export var Mask: React.ComponentClass<MaskProps>;
451
446
export 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
- |};
461
447
export interface MarkerProps {
462
448
id?: string;
463
449
viewBox?: string;
@@ -466,8 +452,8 @@ export interface MarkerProps {
466
452
refY?: NumberProp;
467
453
markerWidth?: NumberProp;
468
454
markerHeight?: NumberProp;
469
- markerUnits?: $Values<typeof MarkerUnits> ;
470
- orient?: $Values<typeof Orient> | NumberProp;
455
+ markerUnits?: MarkerUnits;
456
+ orient?: Orient | NumberProp;
471
457
}
472
458
declare export var Marker: React.ComponentClass<MarkerProps>;
473
459
export type MarkerType = React.ComponentClass<MarkerProps>;
0 commit comments