@sw7d/paper-renderer 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2880,14 +2880,14 @@ body {
2880
2880
  }
2881
2881
 
2882
2882
  /* ---------- SVG 内部样式(渲染引擎) ---------- */
2883
- .paper-page text.text {
2883
+ .paper-page text.swed-text {
2884
2884
  dominant-baseline: hanging;
2885
2885
  white-space: pre;
2886
2886
  }
2887
- .paper-page .block:hover {
2887
+ .paper-page [data-block-id]:hover {
2888
2888
  cursor: default;
2889
2889
  }
2890
- .paper-page .formula svg {
2890
+ .paper-page .swed-formula svg {
2891
2891
  overflow: visible;
2892
2892
  vertical-align: middle;
2893
2893
  }
@@ -2904,15 +2904,15 @@ body {
2904
2904
  svg.paper-page {
2905
2905
  display: block;
2906
2906
  }
2907
- text.topic-no {
2907
+ text.swed-topic-no {
2908
2908
  dominant-baseline: hanging;
2909
2909
  }
2910
- text.question-score {
2910
+ text.swed-question-score {
2911
2911
  dominant-baseline: hanging;
2912
2912
  }
2913
2913
 
2914
2914
  /* ---------- foreignObject 头部样式 ---------- */
2915
- .title_wrapper {
2915
+ .swed-title_wrapper {
2916
2916
  font-size: 14pt;
2917
2917
  font-family: 'Times New Roman', 黑体;
2918
2918
  border: none;
@@ -2927,20 +2927,20 @@ text.question-score {
2927
2927
  text-align: left;
2928
2928
  position: relative;
2929
2929
  }
2930
- .title_wrapper .title-content {
2930
+ .swed-title_wrapper .swed-title-content {
2931
2931
  width: 100%;
2932
2932
  display: inline-flex;
2933
2933
  align-items: center;
2934
2934
  overflow: hidden;
2935
2935
  }
2936
- .title_wrapper .title-content .title-text {
2936
+ .swed-title_wrapper .swed-title-content .swed-title-text {
2937
2937
  font-size: 15px;
2938
2938
  font-weight: 600;
2939
2939
  line-height: 32px;
2940
2940
  color: #231f20;
2941
2941
  white-space: nowrap;
2942
2942
  }
2943
- .title_wrapper .title-content .title-score {
2943
+ .swed-title_wrapper .swed-title-content .swed-title-score {
2944
2944
  border: none;
2945
2945
  padding: 0 2px 0 8px;
2946
2946
  font-size: 10pt;
@@ -2949,10 +2949,10 @@ text.question-score {
2949
2949
  font-weight: 400;
2950
2950
  }
2951
2951
 
2952
- .header-block {
2952
+ .swed-header-block {
2953
2953
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
2954
2954
  }
2955
- .header-school-info {
2955
+ .swed-header-school-info {
2956
2956
  display: flex;
2957
2957
  justify-content: center;
2958
2958
  align-items: center;
@@ -2961,38 +2961,38 @@ text.question-score {
2961
2961
  padding: 6px 0 0;
2962
2962
  color: #595959;
2963
2963
  }
2964
- .header-school-info--simple {
2964
+ .swed-header-school-info--simple {
2965
2965
  padding-top: 3px;
2966
2966
  }
2967
- .headerDesc {
2967
+ .swed-headerDesc {
2968
2968
  font-size: 14px;
2969
2969
  line-height: 1.5;
2970
2970
  }
2971
- .headerDesc strong {
2971
+ .swed-headerDesc strong {
2972
2972
  font-size: 16px;
2973
2973
  color: #000;
2974
2974
  }
2975
- .header-school-info .score {
2975
+ .swed-header-school-info .swed-score {
2976
2976
  font-size: 12px;
2977
2977
  white-space: nowrap;
2978
2978
  display: inline-block;
2979
2979
  line-height: 1.5;
2980
2980
  }
2981
- .header-paper-name {
2981
+ .swed-header-paper-name {
2982
2982
  width: 100%;
2983
2983
  text-align: center;
2984
2984
  padding: 2px 0;
2985
2985
  }
2986
- .header-paper-name .input-box {
2986
+ .swed-header-paper-name .swed-input-box {
2987
2987
  display: flex;
2988
2988
  flex-direction: column;
2989
2989
  align-items: center;
2990
2990
  justify-content: center;
2991
2991
  }
2992
- .header-paper-name .input-box__label {
2992
+ .swed-header-paper-name .swed-input-box__label {
2993
2993
  display: none;
2994
2994
  }
2995
- .header-paper-name .input-box__input {
2995
+ .swed-header-paper-name .swed-input-box__input {
2996
2996
  display: block;
2997
2997
  font-size: 22px;
2998
2998
  font-weight: bold;
@@ -3004,66 +3004,66 @@ text.question-score {
3004
3004
  padding: 2px 8px;
3005
3005
  line-height: 1.5;
3006
3006
  }
3007
- .header-student-info {
3007
+ .swed-header-student-info {
3008
3008
  display: flex;
3009
3009
  gap: 16px;
3010
3010
  align-items: flex-start;
3011
3011
  width: 100%;
3012
3012
  padding: 4px 0 0;
3013
3013
  }
3014
- .header-student-info .qr-code-img {
3014
+ .swed-header-student-info .swed-qr-code-img {
3015
3015
  width: 65px;
3016
3016
  height: 65px;
3017
3017
  flex-shrink: 0;
3018
3018
  }
3019
- .header-student-info .qr-code-img img {
3019
+ .swed-header-student-info .swed-qr-code-img img {
3020
3020
  display: block;
3021
3021
  width: 100%;
3022
3022
  height: auto;
3023
3023
  }
3024
- .student-fields {
3024
+ .swed-student-fields {
3025
3025
  flex: 1;
3026
3026
  display: flex;
3027
3027
  flex-direction: column;
3028
3028
  gap: 10px;
3029
3029
  min-width: 0;
3030
3030
  }
3031
- .student-fields-row {
3031
+ .swed-student-fields-row {
3032
3032
  display: flex;
3033
3033
  gap: 16px;
3034
3034
  flex-wrap: wrap;
3035
3035
  }
3036
- .student-field {
3036
+ .swed-student-field {
3037
3037
  display: flex;
3038
3038
  align-items: center;
3039
3039
  flex: 1;
3040
3040
  min-width: 120px;
3041
3041
  }
3042
- .student-field .label {
3042
+ .swed-student-field .swed-label {
3043
3043
  font-size: 14px;
3044
3044
  color: #000;
3045
3045
  margin-right: 4px;
3046
3046
  white-space: nowrap;
3047
3047
  }
3048
- .student-field .underline {
3048
+ .swed-student-field .swed-underline {
3049
3049
  flex: 1;
3050
3050
  border-bottom: 1px solid #000;
3051
3051
  min-width: 60px;
3052
3052
  height: 22px;
3053
3053
  }
3054
- .student-code {
3054
+ .swed-student-code {
3055
3055
  font-size: 13px;
3056
3056
  color: #000;
3057
3057
  display: flex;
3058
3058
  align-items: center;
3059
3059
  }
3060
- .student-code-table {
3060
+ .swed-student-code-table {
3061
3061
  border-collapse: collapse;
3062
3062
  display: inline-table;
3063
3063
  vertical-align: middle;
3064
3064
  margin-left: 4px;
3065
3065
  }
3066
- .student-code-cell {
3066
+ .swed-student-code-cell {
3067
3067
  width: 25px;
3068
3068
  height: 30px;
3069
3069
  border: 1px solid #000;
@@ -3072,70 +3072,70 @@ text.question-score {
3072
3072
  }
3073
3073
 
3074
3074
  /* ---------- foreignObject 尾部样式 ---------- */
3075
- .tail-time-wrapper {
3075
+ .swed-tail-time-wrapper {
3076
3076
  width: 100%;
3077
3077
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
3078
3078
  font-size: 12px;
3079
3079
  color: #595959;
3080
3080
  }
3081
- .answer-wrapper,
3082
- .revise-wrapper {
3081
+ .swed-answer-wrapper,
3082
+ .swed-revise-wrapper {
3083
3083
  display: flex;
3084
3084
  align-items: center;
3085
3085
  gap: 6px;
3086
3086
  }
3087
- .tail-col {
3087
+ .swed-tail-col {
3088
3088
  display: flex;
3089
3089
  align-items: center;
3090
3090
  gap: 3px;
3091
3091
  }
3092
- .center-col {
3092
+ .swed-center-col {
3093
3093
  display: flex;
3094
3094
  align-items: center;
3095
3095
  gap: 2px;
3096
3096
  flex-direction: column;
3097
3097
  }
3098
- .tail-col-item {
3098
+ .swed-tail-col-item {
3099
3099
  gap: 1px;
3100
3100
  }
3101
- .tail-label.text {
3101
+ .swed-tail-label.swed-text {
3102
3102
  font-size: 11px;
3103
3103
  color: #8c8c8c;
3104
3104
  white-space: nowrap;
3105
3105
  }
3106
- .tail-col .text {
3106
+ .swed-tail-col .swed-text {
3107
3107
  font-size: 12px;
3108
3108
  color: #595959;
3109
3109
  white-space: nowrap;
3110
3110
  }
3111
- .tail-col .text-second {
3111
+ .swed-tail-col .swed-text-second {
3112
3112
  font-size: 10px;
3113
3113
  color: #bfbfbf;
3114
3114
  }
3115
- .rect {
3115
+ .swed-rect {
3116
3116
  width: 18px;
3117
3117
  height: 18px;
3118
3118
  border: 1px solid #d9d9d9;
3119
3119
  border-radius: 2px;
3120
3120
  box-sizing: border-box;
3121
3121
  }
3122
- .rect-fill {
3122
+ .swed-rect-fill {
3123
3123
  background: #f0f0f0;
3124
3124
  }
3125
- .rect-stroke {
3125
+ .swed-rect-stroke {
3126
3126
  background: transparent;
3127
3127
  }
3128
- .revise-area {
3128
+ .swed-revise-area {
3129
3129
  display: flex;
3130
3130
  align-items: center;
3131
3131
  gap: 4px;
3132
3132
  }
3133
- .revise-area-label {
3133
+ .swed-revise-area-label {
3134
3134
  font-size: 11px;
3135
3135
  color: #8c8c8c;
3136
3136
  white-space: nowrap;
3137
3137
  }
3138
- .revise-area-rect {
3138
+ .swed-revise-area-rect {
3139
3139
  width: 18px;
3140
3140
  height: 18px;
3141
3141
  border: 1px solid #d9d9d9;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sw7d/paper-renderer",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "题卡设计器核心组件 - 纯编辑表面",
5
5
  "type": "module",
6
6
  "main": "./dist/paper-renderer.js",