liwei 1 سال پیش
والد
کامیت
8eec5dc0e6

+ 2 - 2
src/modules/editor/components/CompUI/basicUI/Arc/index.ts

@@ -14,10 +14,10 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 1,
     isFill: false,
-    fillColor: "black",
+    fillColor: "#000000",
     reverseFill: false,
     start: 0,
     end: 360

+ 2 - 2
src/modules/editor/components/CompUI/basicUI/Curve/index.ts

@@ -13,10 +13,10 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 1,
     isFill: false,
-    fillColor: "black",
+    fillColor: "#000000",
     reverseFill: false,
     points: [],
     isClose: true,

+ 2 - 2
src/modules/editor/components/CompUI/basicUI/Ellipse/index.ts

@@ -14,10 +14,10 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 1,
     isFill: false,
-    fillColor: "black",
+    fillColor: "#000000",
     reverseFill: false,
     start: 0,
     end: 360

+ 2 - 2
src/modules/editor/components/CompUI/basicUI/Line/component.tsx

@@ -29,8 +29,8 @@ export const Component = defineComponent({
 
         const ctx = canvasRef.value?.getContext("2d") as CanvasRenderingContext2D;
 
-        const width = data.layout.size[0];
-        const height = data.layout.size[1];
+        const width = data.layout.size[0] *2;
+        const height = data.layout.size[1] *2;
         canvas.width = Math.ceil(Math.max(1, width));
         canvas.height = Math.ceil(Math.max(1, height));
         ctx.clearRect(0, 0, canvas.width, canvas.height);

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/Line/index.ts

@@ -14,7 +14,7 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 1,
     dashX: 0,
     dashY: 0,

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/Polygon/index.ts

@@ -13,7 +13,7 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 0,
     isFill: true,
     fillColor: "#A4A4A4",

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/PolygonNormal/index.ts

@@ -14,7 +14,7 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 0,
     isFill: true,
     fillColor: "#A4A4A4",

+ 2 - 2
src/modules/editor/components/CompUI/basicUI/QuadraticCurve/index.ts

@@ -14,10 +14,10 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 1,
     isFill: false,
-    fillColor: "black",
+    fillColor: "#000000",
     cp1: 0.5,  //控制点1
     p1: 0,  //顶点1的位置
     p2: 1,  //顶点1的位置

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/Rectage/component.tsx

@@ -44,7 +44,7 @@ export const Component = defineComponent({
         }
         
         const padding =  data.value.lineWidth / 2.0;
-        ctx.lineJoin = "round";
+        // ctx.lineJoin = "round";
         ctx.beginPath();
         ctx.moveTo(padding, padding);
         ctx.lineTo(width - padding, padding);

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/Rectage/index.ts

@@ -13,7 +13,7 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 0,
     isFill: true,
     fillColor: "#A4A4A4",

+ 1 - 1
src/modules/editor/components/CompUI/basicUI/Triangle/index.ts

@@ -13,7 +13,7 @@ export const options = {
 
 export const { createComp, useCompData } = createCompHooks({
   value: {
-    lineColor: "black",
+    lineColor: "#000000",
     lineWidth: 0,
     isFill: true,
     fillColor: "#A4A4A4",

+ 4 - 4
src/modules/editor/components/CompUI/customUI/index.ts

@@ -1,14 +1,14 @@
-// export * as Card from "./Cards/Card";
-// export * as Cards11 from "./Cards/Card11";
+export * as Card from "./Cards/Card";
+export * as Cards11 from "./Cards/Card11";
 export * as Cards12 from "./Cards/Card12";
 export * as Cards13 from "./Cards/Card13";
 export * as Cards14 from "./Cards/Card14";
 export * as Cards15 from "./Cards/Card15";
 export * as Card2 from "./Cards/Card2";
 export * as Card3 from "./Cards/Card3";
-// export * as Card4 from "./Cards/Card4";
+export * as Card4 from "./Cards/Card4";
 export * as Card5 from "./Cards/Card5";
-// export * as CardList from "./Cards/CardList";
+export * as CardList from "./Cards/CardList";
 export * as Cover from "./Covers/Cover";
 export * as Cover2 from "./Covers/Cover2";
 export * as Text1 from "./Texts/Text1";

+ 3 - 3
src/modules/editor/components/Viewport/Slider/SliderLeft/CustomComps.tsx

@@ -18,9 +18,9 @@ const compList = [
   // "Card2",
   // "Card3",
   // "Card5",
-  "CardList",
-  "Cards11",
-  "Cards12",
+  // "CardList",
+  // "Cards11",
+  // "Cards12",
   // "Cards13",
   "Cards14",
   "Cards15",