mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update annotations
This commit is contained in:
@@ -87,7 +87,7 @@ end
|
||||
|
||||
--- Set current and min/max angles for component
|
||||
-- @tparam PinKnob self @{PinKnob}
|
||||
-- @tparam[opt=1] number value The spin speed multiplier
|
||||
-- @tparam number|nil value The spin speed multiplier. Default: 1
|
||||
-- @treturn PinKnob @{PinKnob}
|
||||
function PinKnob.set_friction(self, value)
|
||||
self._friction = value or 1
|
||||
|
@@ -138,9 +138,9 @@ end
|
||||
-- You can override this component styles params in Druid styles table
|
||||
-- or create your own style
|
||||
-- @table style
|
||||
-- @tfield[opt={}] table COLORS Rich Text color aliases
|
||||
-- @tfield[opt=20] number ADJUST_STEPS Amount steps of attemps text adjust by height
|
||||
-- @tfield[opt=0.02] number ADJUST_SCALE_DELTA Scale step on each height adjust step
|
||||
-- @tfield table|nil COLORS Rich Text color aliases. Default: {}
|
||||
-- @tfield number|nil ADJUST_STEPS Amount steps of attemps text adjust by height. Default: 20
|
||||
-- @tfield number|nil ADJUST_SCALE_DELTA Scale step on each height adjust step. Default: 0.02
|
||||
function RichText.on_style_change(self, style)
|
||||
self.style = {}
|
||||
self.style.COLORS = style.COLORS or {}
|
||||
|
Reference in New Issue
Block a user