timeOffset
TypeScriptget timeOffset(): numberSwift declarationvar timeOffset: TimeInterval { get }Time offset since the start of the stroke in seconds.
struct · iOS 14.0+ · SDK 27.1
struct PKStrokePointget timeOffset(): numberSwift declarationvar timeOffset: TimeInterval { get }Time offset since the start of the stroke in seconds.
get lateralJitter(): numberSwift declarationvar lateralJitter: CGFloat { get }The amount of lateral particle jitter at the stroke edge for supported inks. Lateral jitter applies only to some inks, such as `.pencil`.
get secondaryScale(): numberSwift declarationvar secondaryScale: CGFloat { get }The scaling of the point for secondary effects.
get size(): { width: number; height: number }Swift declarationvar size: CGSize { get }Size of the point.
get force(): numberSwift declarationvar force: CGFloat { get }Force used to create this point.
get azimuth(): numberSwift declarationvar azimuth: CGFloat { get }Azimuth of the point in radians, 0.0-2π radians
get opacity(): numberSwift declarationvar opacity: CGFloat { get }Opacity of the point.
get altitude(): numberSwift declarationvar altitude: CGFloat { get }Altitude used to create this point in radians, 0.0-π/2 radians
static initLocationTimeOffsetSizeOpacityForceAzimuthAltitudeSecondaryScaleThresholdLateralJitter(location: { x: number; y: number }, timeOffset: number, size: { width: number; height: number }, opacity: number, force: number, azimuth: number, altitude: number, secondaryScale: number, threshold: number, lateralJitter: number): PKStrokePointSwift declarationinit(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat, threshold: CGFloat, lateralJitter: CGFloat)Creates a stroke point with the specified properties, including lateral jitter.
static initLocationTimeOffsetSizeOpacityForceAzimuthAltitudeSecondaryScaleThreshold(location: { x: number; y: number }, timeOffset: number, size: { width: number; height: number }, opacity: number, force: number, azimuth: number, altitude: number, secondaryScale: number, threshold: number): PKStrokePointSwift declarationinit(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat, threshold: CGFloat)Creates a stroke point with the specified properties, including a rendering threshold.
static initLocationTimeOffsetSizeOpacityForceAzimuthAltitudeSecondaryScale(location: { x: number; y: number }, timeOffset: number, size: { width: number; height: number }, opacity: number, force: number, azimuth: number, altitude: number, secondaryScale: number): PKStrokePointSwift declarationinit(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat, secondaryScale: CGFloat)Creates a stroke point with the specified properties, including secondary scale.
static initLocationTimeOffsetSizeOpacityForceAzimuthAltitude(location: { x: number; y: number }, timeOffset: number, size: { width: number; height: number }, opacity: number, force: number, azimuth: number, altitude: number): PKStrokePointSwift declarationinit(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat)Creates a stroke point with the specified properties.
get location(): { x: number; y: number }Swift declarationvar location: CGPoint { get }Location of the point.
get threshold(): numberSwift declarationvar threshold: CGFloat { get }The alpha threshold for clipping the stroke rendering for supported inks. Only pixels with an alpha greater than the threshold are drawn. A threshold of `0` has no effect on rendering; a threshold of `1` draws nothing. Thresholds apply only to some inks, such as `.reed`.
No declarations were skipped in this snapshot.