[RDView] 啊草我 degug 怎么还在里面(

This commit is contained in:
OLDREDSTONE 2026-01-16 20:14:42 +08:00
parent 4e1e57b08e
commit a14b4436f5
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# 更新信息 # 更新信息
#### 2026-01-16
- RDTKView(~~RDView2~~) 已完成部署
#### 2026-01-14 #### 2026-01-14
- 制作人员表增加了 - 制作人员表增加了
- RDView 对正式版编辑器新特性的部分适配 - RDView 对正式版编辑器新特性的部分适配

View File

@ -15,7 +15,6 @@ export function render(data, width, height, scale = 2.0) {
for (let obj of objs) { for (let obj of objs) {
const style = { ...eventStyle, enabled: obj.active ?? true }; const style = { ...eventStyle, enabled: obj.active ?? true };
const elem = createElementEvent(obj, style); const elem = createElementEvent(obj, style);
console.log(obj, elem);
if (!elem) continue; if (!elem) continue;
elem.eventStyle = style; elem.eventStyle = style;
elem.style.position = "absolute"; elem.style.position = "absolute";
@ -58,11 +57,9 @@ export function render(data, width, height, scale = 2.0) {
window.$docsify.plugins = [].concat(window.$docsify.plugins, (hook) => { window.$docsify.plugins = [].concat(window.$docsify.plugins, (hook) => {
hook.doneEach(() => { hook.doneEach(() => {
console.log("hello");
const pres = document.querySelectorAll("pre"); const pres = document.querySelectorAll("pre");
pres.forEach((codeBlock) => { pres.forEach((codeBlock) => {
const lang = codeBlock.getAttribute("data-lang") || ""; const lang = codeBlock.getAttribute("data-lang") || "";
console.log(codeBlock, lang);
if (lang.startsWith("rdtkview")) { if (lang.startsWith("rdtkview")) {
const code = codeBlock.querySelector("code").innerText || ""; const code = codeBlock.querySelector("code").innerText || "";
const args = lang.slice(8).trim().split(" "); const args = lang.slice(8).trim().split(" ");