KMGlobal.swift 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. //
  2. // KMGlobal.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by wanjun on 2022/12/21.
  6. //
  7. import Cocoa
  8. class KMGlobal: NSObject {
  9. var sizing: [String : Any] = [:]
  10. var spacing: [String : Any] = [:]
  11. var color: [String : Any] = [:]
  12. var border_radius: [String : Any] = [:]
  13. var border_width: [String : Any] = [:]
  14. var shadow: [String : Any] = [:]
  15. var text_mac: [String : Any] = [:]
  16. var text_windows: [String : Any] = [:]
  17. }
  18. // MARK: sizing
  19. class KMGlobal_sizing: NSObject {
  20. var sizing1: [String : Any] = [:]
  21. var sizing4: [String : Any] = [:]
  22. var sizing8: [String : Any] = [:]
  23. var sizing10: [String : Any] = [:]
  24. var sizing12: [String : Any] = [:]
  25. var sizing14: [String : Any] = [:]
  26. var sizing16: [String : Any] = [:]
  27. var sizing18: [String : Any] = [:]
  28. var sizing20: [String : Any] = [:]
  29. var sizing21: [String : Any] = [:]
  30. var sizing22: [String : Any] = [:]
  31. var sizing24: [String : Any] = [:]
  32. var sizing26: [String : Any] = [:]
  33. var sizing28: [String : Any] = [:]
  34. var sizing30: [String : Any] = [:]
  35. var sizing32: [String : Any] = [:]
  36. var sizing34: [String : Any] = [:]
  37. var sizing36: [String : Any] = [:]
  38. var sizing40: [String : Any] = [:]
  39. var sizing48: [String : Any] = [:]
  40. var sizing50: [String : Any] = [:]
  41. var sizing58: [String : Any] = [:]
  42. var sizing60: [String : Any] = [:]
  43. var sizing64: [String : Any] = [:]
  44. var sizing68: [String : Any] = [:]
  45. var sizing72: [String : Any] = [:]
  46. var sizing110: [String : Any] = [:]
  47. var sizing116: [String : Any] = [:]
  48. var sizing120: [String : Any] = [:]
  49. var sizing132: [String : Any] = [:]
  50. var sizing139: [String : Any] = [:]
  51. var sizing180: [String : Any] = [:]
  52. var sizing200: [String : Any] = [:]
  53. var sizing228: [String : Any] = [:]
  54. var sizing260: [String : Any] = [:]
  55. }
  56. // MARK: spacing
  57. class KMGlobal_spacing: NSObject {
  58. var spacing0: [String : Any] = [:]
  59. var spacing1: [String : Any] = [:]
  60. var spacing2: [String : Any] = [:]
  61. var spacing4: [String : Any] = [:]
  62. var spacing5: [String : Any] = [:]
  63. var spacing6: [String : Any] = [:]
  64. var spacing8: [String : Any] = [:]
  65. var spacing10: [String : Any] = [:]
  66. var spacing12: [String : Any] = [:]
  67. var spacing16: [String : Any] = [:]
  68. var spacing24: [String : Any] = [:]
  69. var spacing32: [String : Any] = [:]
  70. var spacing40: [String : Any] = [:]
  71. var spacing56: [String : Any] = [:]
  72. var spacing64: [String : Any] = [:]
  73. var spacing80: [String : Any] = [:]
  74. var spacing88: [String : Any] = [:]
  75. }
  76. // MARK: color
  77. class KMGlobal_color: NSObject {
  78. var light: [String : Any] = [:]
  79. var dark: [String : Any] = [:]
  80. }
  81. // MARK: border-radius
  82. class KMGlobal_borderRadius: NSObject {
  83. var number2: [String : Any] = [:]
  84. var number4: [String : Any] = [:]
  85. var number6: [String : Any] = [:]
  86. var number8: [String : Any] = [:]
  87. var number10: [String : Any] = [:]
  88. var number12: [String : Any] = [:]
  89. var number16: [String : Any] = [:]
  90. var number20: [String : Any] = [:]
  91. }
  92. // MARK: border-Width
  93. class KMGlobal_borderWidth: NSObject {
  94. var number1: [String : Any] = [:]
  95. var number2: [String : Any] = [:]
  96. }
  97. // MARK: shadow
  98. class KMGlobal_shadow: NSObject {
  99. var black_2_2: [String : Any] = [:]
  100. var black_4_8: [String : Any] = [:]
  101. var black_2_8: [String : Any] = [:]
  102. var blue_0_4: [String : Any] = [:]
  103. var red_0_4: [String : Any] = [:]
  104. }
  105. // MARK: text-mac
  106. class KMGlobal_textMac: NSObject {
  107. var regular: [String : Any] = [:]
  108. var semibold: [String : Any] = [:]
  109. }
  110. // MARK: text-Windows
  111. class KMGlobal_textWindows: NSObject {
  112. var regular: [String : Any] = [:]
  113. var semibold: [String : Any] = [:]
  114. }
  115. // MARK: -
  116. class KMGlobal_number: NSObject {
  117. var number11: [String : Any] = [:]
  118. var number12: [String : Any] = [:]
  119. var number14: [String : Any] = [:]
  120. var number16: [String : Any] = [:]
  121. var number20: [String : Any] = [:]
  122. }
  123. class KMGlobal_colorNumber: NSObject {
  124. var number1: [String : Any] = [:]
  125. var number2: [String : Any] = [:]
  126. var number3: [String : Any] = [:]
  127. var number4: [String : Any] = [:]
  128. var number5: [String : Any] = [:]
  129. var number6: [String : Any] = [:]
  130. var number7: [String : Any] = [:]
  131. var number8: [String : Any] = [:]
  132. var number9: [String : Any] = [:]
  133. var number10: [String : Any] = [:]
  134. var number11: [String : Any] = [:]
  135. var number12: [String : Any] = [:]
  136. }
  137. class KMGlobal_colorValue: NSObject {
  138. var blue: [String : Any] = [:]
  139. var gray: [String : Any] = [:]
  140. var navy_blue: [String : Any] = [:]
  141. var green: [String : Any] = [:]
  142. var gold: [String : Any] = [:]
  143. var red: [String : Any] = [:]
  144. var orange: [String : Any] = [:]
  145. var cyan: [String : Any] = [:]
  146. var purple: [String : Any] = [:]
  147. var pink: [String : Any] = [:]
  148. }
  149. // MARK: Final data
  150. class KMGlobal_valueType: NSObject {
  151. var value: [String : Any] = [:]
  152. var type: [String : String] = [:]
  153. }
  154. class KMGlobal_UIValue: NSObject {
  155. var fontFamily: [String : String] = [:]
  156. var fontWeight: [String : String] = [:]
  157. var lineHeight: [String : String] = [:]
  158. var fontSize: [String : String] = [:]
  159. var x: [String : String] = [:]
  160. var y: [String : String] = [:]
  161. var blur: [String : String] = [:]
  162. var spread: [String : String] = [:]
  163. var color: [String : String] = [:]
  164. var type: [String : String] = [:]
  165. }
  166. // MARK: PDF Reader Pro 初版数据
  167. @objcMembers class KMBoxShadowValue: NSObject {
  168. var x : String = ""
  169. var y : String = ""
  170. var blur : String = ""
  171. var spread : String = ""
  172. var color : NSColor = .clear
  173. var type : String = ""
  174. }
  175. @objcMembers class KMTypographyValue: NSObject {
  176. var fontFamily : String = ""
  177. var fontWeight : String = ""
  178. var lineHeight : String = ""
  179. var fontSize : String = ""
  180. }
  181. @objcMembers class KMBorderValue: NSObject {
  182. }