routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
// Utilities
|
||||
import { propsFactory } from "../../../util/index.js"; // Types
|
||||
export const makeLineProps = propsFactory({
|
||||
autoDraw: Boolean,
|
||||
autoDrawDuration: [Number, String],
|
||||
autoDrawEasing: {
|
||||
type: String,
|
||||
default: 'ease'
|
||||
},
|
||||
color: String,
|
||||
gradient: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
gradientDirection: {
|
||||
type: String,
|
||||
validator: val => ['top', 'bottom', 'left', 'right'].includes(val),
|
||||
default: 'top'
|
||||
},
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: 75
|
||||
},
|
||||
labels: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
labelSize: {
|
||||
type: [Number, String],
|
||||
default: 7
|
||||
},
|
||||
lineWidth: {
|
||||
type: [String, Number],
|
||||
default: 4
|
||||
},
|
||||
id: String,
|
||||
itemValue: {
|
||||
type: String,
|
||||
default: 'value'
|
||||
},
|
||||
modelValue: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
min: [String, Number],
|
||||
max: [String, Number],
|
||||
padding: {
|
||||
type: [String, Number],
|
||||
default: 8
|
||||
},
|
||||
showLabels: Boolean,
|
||||
smooth: [Boolean, String, Number],
|
||||
width: {
|
||||
type: [Number, String],
|
||||
default: 300
|
||||
}
|
||||
}, 'Line');
|
||||
//# sourceMappingURL=line.js.map
|
||||
Reference in New Issue
Block a user